<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Archiving and Interchange DTD v2.3 20070202//EN" "archivearticle.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="methods-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Neuroinform.</journal-id>
<journal-title>Frontiers in Neuroinformatics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Neuroinform.</abbrev-journal-title>
<issn pub-type="epub">1662-5196</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fninf.2024.1354708</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Methods</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Exploring white matter dynamics and morphology through interactive numerical phantoms: the White Matter Generator</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes" equal-contrib="yes">
<name><surname>Winther</surname> <given-names>Sidsel</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>
<xref ref-type="author-notes" rid="fn001"><sup>&#x02020;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2603046/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
<contrib contrib-type="author" equal-contrib="yes">
<name><surname>Peulicke</surname> <given-names>Oscar</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="author-notes" rid="fn001"><sup>&#x02020;</sup></xref>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Andersson</surname> <given-names>Mariam</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/1831797/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Kjer</surname> <given-names>Hans M.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
<contrib contrib-type="author">
<name><surname>B&#x000E6;rentzen</surname> <given-names>Jakob A.</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Dyrby</surname> <given-names>Tim B.</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="c002"><sup>&#x0002A;</sup></xref>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/funding-acquisition/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Department of Applied Mathematics and Computer Science, Technical University of Denmark</institution>, <addr-line>Kongens Lyngby</addr-line>, <country>Denmark</country></aff>
<aff id="aff2"><sup>2</sup><institution>Danish Research Centre for Magnetic Resonance, Centre for Functional and Diagnostic Imaging and Research, Copenhagen University Hospital&#x02014;Amager and Hvidovre</institution>, <addr-line>Hvidovre</addr-line>, <country>Denmark</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Ludovico Minati, University of Electronic Science and Technology of China, China</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Silvia De Santis, Spanish National Research Council (CSIC), Spain</p>
<p>Ali Abdollahzadeh, New York University, United States</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Sidsel Winther <email>siwin&#x00040;dtu.dk</email></corresp>
<corresp id="c002">Tim B. Dyrby <email>timd&#x00040;drcmr.dk</email></corresp>
<fn fn-type="equal" id="fn001"><p>&#x02020;These authors share first authorship</p></fn></author-notes>
<pub-date pub-type="epub">
<day>31</day>
<month>07</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="collection">
<year>2024</year>
</pub-date>
<volume>18</volume>
<elocation-id>1354708</elocation-id>
<history>
<date date-type="received">
<day>12</day>
<month>12</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>25</day>
<month>06</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2024 Winther, Peulicke, Andersson, Kjer, B&#x000E6;rentzen and Dyrby.</copyright-statement>
<copyright-year>2024</copyright-year>
<copyright-holder>Winther, Peulicke, Andersson, Kjer, B&#x000E6;rentzen and Dyrby</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>
<p>Brain white matter is a dynamic environment that continuously adapts and reorganizes in response to stimuli and pathological changes. Glial cells, especially, play a key role in tissue repair, inflammation modulation, and neural recovery. The movements of glial cells and changes in their concentrations can influence the surrounding axon morphology. We introduce the White Matter Generator (WMG) tool to enable the study of how axon morphology is influenced through such dynamical processes, and how this, in turn, influences the diffusion-weighted MRI signal. This is made possible by allowing interactive changes to the configuration of the phantom generation throughout the optimization process. The phantoms can consist of myelinated axons, unmyelinated axons, and cell clusters, separated by extra-cellular space. Due to morphological flexibility and computational advantages during the optimization, the tool uses ellipsoids as building blocks for all structures; chains of ellipsoids for axons, and individual ellipsoids for cell clusters. After optimization, the ellipsoid representation can be converted to a mesh representation which can be employed in Monte-Carlo diffusion simulations. This offers an effective method for evaluating tissue microstructure models for diffusion-weighted MRI in controlled bio-mimicking white matter environments. Hence, the WMG offers valuable insights into white matter&#x00027;s adaptive nature and implications for diffusion-weighted MRI microstructure models, and thereby holds the potential to advance clinical diagnosis, treatment, and rehabilitation strategies for various neurological disorders and injuries.</p></abstract>
<kwd-group>
<kwd>diffusion MRI (dMRI)</kwd>
<kwd>white matter (WM)</kwd>
<kwd>numerical phantom</kwd>
<kwd>Monte Carlo simulations</kwd>
<kwd>microstructure imaging</kwd>
<kwd>interactive</kwd>
<kwd>dynamic</kwd>
</kwd-group>
<contract-sponsor id="cn001">Danmarks Tekniske Universitet<named-content content-type="fundref-id">10.13039/501100005192</named-content></contract-sponsor>
<contract-sponsor id="cn002">HORIZON EUROPE European Research Council<named-content content-type="fundref-id">10.13039/100019180</named-content></contract-sponsor>
<contract-sponsor id="cn003">Region Hovedstaden<named-content content-type="fundref-id">10.13039/501100005275</named-content></contract-sponsor>
<counts>
<fig-count count="13"/>
<table-count count="1"/>
<equation-count count="4"/>
<ref-count count="40"/>
<page-count count="19"/>
<word-count count="11114"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1 Introduction</title>
<p>The neuronal network of the brain is a dynamic structure, constantly adapting to internal and external stimuli. Within the white matter, the local environment of neurons is found to modulate their axon morphology (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). Especially glial cells play a significant role in this modulation. While the glial cells do not directly participate in neuronal signaling, they carry out crucial supporting tasks: myelination (oligodendrocytes), maintaining an appropriate chemical environment for neuronal signaling (astrocytes), and removing cellular debris from sites of injury or normal cell turnover (microglial) (Purves et al., <xref ref-type="bibr" rid="B33">2001</xref>). To carry out these tasks, the glial cells move through the tissue. Such dynamic behavior has been observed with microscopy (Davalos et al., <xref ref-type="bibr" rid="B14">2005</xref>; Nimmerjahn et al., <xref ref-type="bibr" rid="B31">2005</xref>; T&#x000F8;nnesen et al., <xref ref-type="bibr" rid="B38">2018</xref>). Furthermore, it has been found that the morphology of axons adapts in response to these environmental changes (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). Moreover, there is a relation between the morphology and function of the individual neurons. Morphological factors that affect the axonal conduction velocity include the axon diameter (Hursh, <xref ref-type="bibr" rid="B20">1939</xref>; Skoven et al., <xref ref-type="bibr" rid="B36">2023</xref>), the myelin sheath thickness (Sanders and Whitteridge, <xref ref-type="bibr" rid="B35">1946</xref>), and the length and spacing of nodes of Ranvier (Arancibia-C&#x000E1;rcamo et al., <xref ref-type="bibr" rid="B7">2017</xref>). Quantifying the morphology of axons and brain white matter in general is thus of great interest for enhancing our understanding of various brain processes, and can provide a potential biomarker of disease.</p>
<p>The most promising method for assessing axon morphology non-invasively, is diffusion-weighted MRI (dMRI). dMRI reflects the morphological properties of the underlying tissue by measuring diffusion properties of water molecules within the tissue (Basser et al., <xref ref-type="bibr" rid="B9">1994</xref>; Beaulieu, <xref ref-type="bibr" rid="B10">2002</xref>; Alexander et al., <xref ref-type="bibr" rid="B3">2019</xref>; Novikov et al., <xref ref-type="bibr" rid="B32">2019</xref>). To advance the method even further, we need access to extensive experimentation for scan sequence optimization and biophysical model validation informed by known ground truths. This is unfeasible to obtain with either preclinical or clinical MRI due to the limited spatial resolution.</p>
<p>It is therefore of great interest to supplement dMRI research with numerical simulations, because these come with a ground truth. dMRI can with advantage be simulated based on Monte Carlo (MC) diffusion simulations (Hall and Alexander, <xref ref-type="bibr" rid="B19">2009</xref>; Rafael-Patino et al., <xref ref-type="bibr" rid="B34">2020</xref>). The level of realism in simulations is crucial for the specificity and applicability obtainable by the models developed based on them (Nilsson et al., <xref ref-type="bibr" rid="B30">2012</xref>; Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>; Brabec et al., <xref ref-type="bibr" rid="B11">2020</xref>; Lee et al., <xref ref-type="bibr" rid="B26">2020</xref>).</p>
<p>Mimicking the highly complex tissue of white matter is a great challenge. White matter has commonly been represented as idealized straight, coaxial, infinitely long, and non-touching cylinders (Novikov et al., <xref ref-type="bibr" rid="B32">2019</xref>). However, from recent advances in 3D histology, it has been validated that the white matter has a much more complex configuration (T&#x000F8;nnesen et al., <xref ref-type="bibr" rid="B38">2018</xref>; Abdollahzadeh et al., <xref ref-type="bibr" rid="B2">2019</xref>; Lee et al., <xref ref-type="bibr" rid="B27">2019</xref>; Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>)(Abdollahzadeh et al., <xref ref-type="bibr" rid="B1">2021</xref>). While individual axons are found to express non-circular cross-sections, longitudinal diameter variations, and tortuosity, axons on the ensemble scale are found to express orientation dispersion and crossing fibers. Furthermore, recent studies show that such characteristics have a crucial impact on the diffusion signal and modeling (Nilsson et al., <xref ref-type="bibr" rid="B30">2012</xref>; Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>; Brabec et al., <xref ref-type="bibr" rid="B11">2020</xref>; Lee et al., <xref ref-type="bibr" rid="B26">2020</xref>; Winther et al., <xref ref-type="bibr" rid="B40">2023</xref>), and should therefore be incorporated into our simulations to improve the realism.</p>
<p>Two primary approaches have been taken to generate realistic numerical white matter phantoms: segmentation (both semiautomatic and automatic) from 3D histology of tissue (Abdollahzadeh et al., <xref ref-type="bibr" rid="B2">2019</xref>; Lee et al., <xref ref-type="bibr" rid="B27">2019</xref>, <xref ref-type="bibr" rid="B25">2021</xref>; Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>), and numerical synthesis (Balls and Frank, <xref ref-type="bibr" rid="B8">2009</xref>; Hall and Alexander, <xref ref-type="bibr" rid="B19">2009</xref>; Budde and Frank, <xref ref-type="bibr" rid="B12">2010</xref>; Landman et al., <xref ref-type="bibr" rid="B24">2010</xref>; Mingasson et al., <xref ref-type="bibr" rid="B28">2017</xref>; Ginsburger et al., <xref ref-type="bibr" rid="B17">2019</xref>; Callaghan et al., <xref ref-type="bibr" rid="B13">2020</xref>; Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>). Segmentation of white matter tissue provides a very high degree of realism. However, it can be very resource-consuming with respect to time for manual editing and the sacrifice of animal lives. Furthermore, this approach provides little flexibility in the morphological variation of the tissue and only provides static snapshots thereof. In contrast, numerical synthesis allows for much lower resource consumption and allows for a high degree of morphological flexibility. However, the outputs are based on assumptions of what the anatomy looks like (Dyrby et al., <xref ref-type="bibr" rid="B15">2018</xref>).</p>
<p>Various tools have been developed for numerical synthesis of white matter phantoms with complex morphological properties. Recent tools include MEDUSA (Ginsburger et al., <xref ref-type="bibr" rid="B17">2019</xref>), ConFiG (Callaghan et al., <xref ref-type="bibr" rid="B13">2020</xref>), and CACTUS (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>). MEDUSA (Ginsburger et al., <xref ref-type="bibr" rid="B17">2019</xref>) enables the representation of the most diverse tissue elements by allowing multiple compartments including axons, astrocytes, oligodendrocytes, nodes of Ranvier, and myelinated axons. All structures are represented as spheres. While the sphere representation allows for high representational power of the longitudinal axon morphology characteristics, it does not allow for eccentric cross-sections documented by histology (Abdollahzadeh et al., <xref ref-type="bibr" rid="B2">2019</xref>; Lee et al., <xref ref-type="bibr" rid="B27">2019</xref>; Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). Meanwhile, both ConFiG (Callaghan et al., <xref ref-type="bibr" rid="B13">2020</xref>) and CACTUS (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>) allow only for the inclusion of myelinated axons. However, due to a higher refinement of the axonal cross-sections, these possess higher realism compared with the otherwise circular cross-sections. CACTUS (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>) stands out for its superior computational efficiency, which in turn enables the creation of larger and more dense phantoms. However, none of these tools considers the dynamic aspects of white matter tissue which has a crucial influence on axon morphology (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). In this work, we present the White Matter Generator (WMG); a new tool for generating interactive numerical phantoms for Monte Carlo dMRI simulations. The interactivity of the WMG tool enables the mimicking of brain white matter dynamics. The phantoms can consist of multiple compartments: unmyelinated axons, myelinated axons, (here defined as fibers), and cells, separated by extra-cellular space. The key assumption for the synthesis is that axon morphology is modulated by the local environment, as observed with XNH imaging in our previous work (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>, <xref ref-type="bibr" rid="B6">2022</xref>). Due to morphological flexibility and computational advantages during the optimization, the tool uses ellipsoids as building blocks for all structures during the synthesis; chains of ellipsoids for fibers, and individual ellipsoids for cells. Thereby, fibers can obtain non-circular cross-sections, longitudinal diameter variations, and tortuosity as observed in 3D histology. To mimic a dynamic tissue environment, the tool allows the user to generate phantoms at consecutive time points by interactively changing parameters and tissue composition during the optimization process. The output is in the format of PLY surface meshes, which makes them directly compatible with existing Monte Carlo diffusion simulators such as the widely used MC-DC Simulator (Rafael-Patino et al., <xref ref-type="bibr" rid="B34">2020</xref>) and Camino (Hall and Alexander, <xref ref-type="bibr" rid="B19">2009</xref>). We demonstrate examples of various tissue configurations: varying degrees of fiber dispersion, types of bundle crossings, demyelination, inclusion of static cells, and cell dynamics. The biological relevance of the outputted axons is evaluated based on a set of morphological metrics and compared with those observed with XNH imaging of monkey brain white matter in our previous work (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>, <xref ref-type="bibr" rid="B6">2022</xref>).</p></sec>
<sec sec-type="methods" id="s2">
<title>2 Methods</title>
<p>Phantoms can consist of myelinated axons, axons, and cells, separated by extra-cellular space. To obtain morphological flexibility and computational advantages during the optimization, the tool uses ellipsoids as the building blocks for all structures during the synthesis; chains of ellipsoids for fibers, and individual ellipsoids for cells.</p>
<p>The optimization is based on a force-biased packing algorithm, first introduced by Altendorf and Jeulin (<xref ref-type="bibr" rid="B4">2011</xref>), where the phantoms are obtained as an equilibrium between <italic>repulsion forces</italic> (for avoiding overlap between individual axons and cells) and <italic>recover forces</italic> (for ensuring the structure of the individual axons) between the ellipsoidal building blocks.</p>
<p>Different brain regions and types of cell dynamics can be mimicked by adapting the configuration w.r.t. fiber diameter distributions, fiber volume fractions (FVF), cell volume fractions (CVF), global dispersion (&#x003F5;), bundle crossings, and interactive changes. Changes to the configuration can be made interactively and at any time during the optimization.</p>
<p>An optimization starts with one configuration file (config-file) and ends with another updated config-file. Thereby, the updated config file can be easily adapted and given as input for another round of optimization according to these adaptations. A conceptual flow chart is seen in <xref ref-type="fig" rid="F1">Figure 1</xref>, and each compartment is described in more detail later in this section.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>The WMG tool can be divided into four compartments. <bold>Configuration:</bold> A config-file is generated based on a set of phantom parameters and optimization parameters. Within the config-file, all structures are represented by ellipsoids. <bold>Optimization:</bold> The optimization runs based on the config-file, and is carried out by iterating over the axonal ellipsoids. Cellular ellipsoids remain static. Maintaining consistency between the input and output format makes interactive adaptation of the configuration convenient. <bold>Re-configuration:</bold> After a round of optimization, the config-file can be adapted by changing phantom parameters (e.g., CVF and cell positions), and/or optimization parameters (e.g.,<monospace>ellipsoidDensity</monospace>, <monospace>growSpeed</monospace> and <monospace>maxIterations</monospace>). It can then be used as input for another round of optimization. <bold>Post-processing:</bold> After a round of optimization, the config-file can be post-processed to obtain a mesh-representation from the ellipsoid-representation. Furthermore, it is often beneficial to perform a Garland Heckbert simplification of these meshes to remove redundant vertices to reduce the computational load of e.g., Monte Carlo diffusion simulations.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0001.tif"/>
</fig>
<p>The WMG tool is written in TypeScript, whereas supporting functions for configuration and post-processing are written in Python 3. A simplified version of the WMG tool is available as a graphical web interface at <ext-link ext-link-type="uri" xlink:href="https://map-science.github.io/WhiteMatterGenerator">https://map-science.github.io/WhiteMatterGenerator</ext-link>. This version allows one to get a more intuitive feeling of the tool and its parameters while testing out different configurations. The full version is available as a command line interface which can be installed by following the instructions at <ext-link ext-link-type="uri" xlink:href="https://map-science.github.io/WhiteMatterGenerator/help/cli">https://map-science.github.io/WhiteMatterGenerator/help/cli</ext-link>. This version enables automation and large-scale production, and this is the version we will be focusing on here. The supporting functions for configuration and post-processing are available at <ext-link ext-link-type="uri" xlink:href="https://github.com/MaP-science/WhiteMatterGenerator">https://github.com/MaP-science/WhiteMatterGenerator</ext-link>.</p>
<sec>
<title>2.1 Configuration</title>
<p>There are two types of parameters: <italic>phantom parameters</italic>, which specify the content and limits of the phantom, and <italic>optimization parameters</italic>, which specify the optimization criteria of the phantom. As long as the config-file follows the correct formatting, the user can configure the phantom in any way they like. Below is a guide to the options provided with the WMG.</p>
<p><bold>The phantom parameters are:</bold></p>
<list list-type="bullet">
<list-item><p>Voxel:</p></list-item>
</list>
<list list-type="simple">
<list-item><p>- Outer (larger) voxel dimensions: Defines the spatial restriction of phantom content as a cuboid.</p></list-item>
<list-item><p>- Inner (smaller) voxel dimensions: Defines the cuboid volume wherein the FVF is optimized and represents the field-of-view of the phantom. This voxel is necessary because the discontinuation at the outer voxel boundary will lead to biased morphology at that boundary.</p></list-item>
</list>
<list list-type="bullet">
<list-item><p>Fibers:</p></list-item>
</list>
<list list-type="simple">
<list-item><p>- Initial base point (<bold>b</bold>) and direction (<bold>r</bold>): fibers are initialized as chains of ellipsoids arranged in straight lines defined with a direction and one fixed base point. The fixed points are uniformly distributed along the axis of primary fiber-orientation .</p></list-item>
<list-item><p>- Global fiber dispersion (&#x003F5;): fiber directions are uniformly sampled on the surface of a spherical cone, where the height of the cone cap is scaled by &#x003F5;. &#x003F5; &#x0003D; 0.0 allows disperson of 0 deg and &#x003F5; &#x0003D; 1.0 allows dispersion of 90 deg.</p></list-item>
<list-item><p>- Crossing bundles: Can be configured either as adjacent sheets (Kjer et al., <xref ref-type="bibr" rid="B22">2023</xref>) or interwoven (see <xref ref-type="fig" rid="F5">Figure 5</xref>). Specified by the number of bundles, their primary direction and the fraction of fibers they contain.</p></list-item>
<list-item><p>- fiber-ellipsoid&#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;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;separation (<monospace>mapFromMaxDiameterToEllipsoidSeparation</monospace>): The ellipsoid separation within each fiber is defined from a user-specified mapping function which takes the maximum allowed fiber-diameter as input.</p></list-item>
<list-item><p>- Allowed diameter ranges for the individual fibers (<monospace>mapFromMaxDiameterToMinDiameter</monospace>):&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;To enable closer packing of the axons, it is possible to allow the diameter of each ellipsoid to vary. The range is defined by a user-specified mapping function which takes the maximum allowed fiber-diameter as input. We set the allowed diameter range of the individual axon as a margin around its targeted diameter. The targeted diameters come from an idealized packing of straight parallel cylinders with diameters that follow the targeted gamma-distribution. This initial packing is obtained with the <monospace>CylinderGammaDistribution()</monospace> function of the MC-DC Simulator (Rafael-Patino et al., <xref ref-type="bibr" rid="B34">2020</xref>). By initializing all fibers with a diameter which is significantly lower than that of the idealized packing, the axons are able to move more freely during the initial iterations of the optimizations and thereby achieve a more dense packing.</p></list-item>
<list-item><p>- g-ratio: When the ellipsoid-representation is converted to the mesh-representation the fiber is compartmentalized into axon and myelin based on this g-ratio. That is, the myelin diameter matches that of the fiber, while the axon diameter is scaled in relation to the fiber&#x00027;s diameter through the g-ratio.</p></list-item>
<list-item><p>- Contract speed (<monospace>contractSpeed</monospace>): How much the fibers contract per step, i.e., how stiff the axons are. This number should be &#x02265;0.</p></list-item>
<list-item><p>- Deformation&#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;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;factor (<monospace>mapFromDiameterToDeformationFactor</monospace>):&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;How much the fiber-ellipsoids should deform (change diameter and eccentricity) as opposed to change position when a collision occurs. The deformation is a number between 0 and 1, and is defined by a user-specified mapping function which takes the current fiber-diameter as input. A deformation factor of 0 means that the axonal ellipsoid cannot be deformed at all and hence remains as is. A deformation factor of 1 means that the ellipsoid will deform as much as possible rather than change the position of its center. By adjusting this map between stages of an optimization scheme, the diameters and cross-sections of axons can be fixed such that only the axon trajectories will adapt according to later cell mobility.</p></list-item>
</list>
<list list-type="bullet">
<list-item><p>Cells:</p></list-item>
</list>
<list list-type="simple">
<list-item><p>- Target CVF (<monospace>targetCVF</monospace>): Cells can be added based on ellipsoidal dimensions randomly sampled from normal distributions. One cell is sampled and placed at a time. Cells are added until the <monospace>targetCVF</monospace> is met. When placed, a cell may overlap with axons but not cells. In the following optimization, the axons will then adapt to avoid any overlap.</p></list-item>
<list-item><p>- Position: Defines the center of the cell.</p></list-item>
<list-item><p>- Shape: Specifies the 3 &#x000D7; 3 transformation matrix used when going from a unit sphere to an ellipsoid. This ellipsoid will be the shape of the cell.</p></list-item>
</list>
<list list-type="bullet">
<list-item><p>Output format:</p></list-item>
</list>
<list list-type="simple">
<list-item><p>- Radial resolution of outputted meshes: Determines how detailed the output mesh will be.</p></list-item>
<list-item><p>- Extend fibers around the voxel: Defines whether or not to extend the fibers around the voxel to create mirrored intra-axonal compartments.</p></list-item>
</list>
<p><bold>The optimization parameters are:</bold></p>
<list list-type="bullet">
<list-item><p>Target FVF (<monospace>targetFVF</monospace>): The targeted FVF.</p></list-item>
<list-item><p>Grow speed (<monospace>growSpeed</monospace>): How much the fibers grow per optimization step. 0 means no growth, and 1 means that the axon will grow to 100% of its target size in 1 step.</p></list-item>
<list-item><p>Maximum number of iterations (<monospace>maxIterations</monospace>): Even if the <monospace>targetFVF</monospace> is not reached at this point, the optimization will terminate here.</p></list-item>
<list-item><p>Output interval (<monospace>outputInterval</monospace>): Interval with which an output with the current configuration is provided.</p></list-item>
</list>
<p>It is beneficial to apply optimization schemes that start out with higher <monospace>growSpeed</monospace> (bigger steps) and lower intra-fiber ellipsoid density (less computationally demanding), and go toward lower <monospace>growSpeed</monospace> (smaller steps) and higher intra-fiber ellipsoid resolution (more computationally demanding). An example is illustrated in <xref ref-type="fig" rid="F2">Figure 2</xref>. Furthermore, it is crucial to choose realistic parameters to obtain a successful phantom optimization.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>Example of an optimization scheme. At <bold>initialization</bold>, the phantom consists of an outer-voxel (for spatial restriction), an inner voxel (for the computing optimization metric FVF), straight fibers, and cells. Initially, smaller diameters are assigned to the fibers to allow for more flexibility as they grow into their converged morphology. <bold>(A)</bold> Inter-fiber ellipsoids grow step-wise toward their maximum allowed diameter while adapting to their surroundings as a consequence of collisions with these. <bold>(B)</bold> The fiber-ellipsoid density is increased. <bold>(C)</bold> Growth is repeated. <bold>(D)</bold> Steps <bold>(B)</bold> and <bold>(C)</bold> or variations thereof can be repeated. <bold>(E)</bold> Once optimized to the user&#x00027;s liking, the ellipsoid-representation can be converted to a mesh-representation and then applied in e.g., Monte Carlo diffusion simulations.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0002.tif"/>
</fig>
</sec>
<sec>
<title>2.2 Optimization</title>
<sec>
<title>2.2.1 Initialization of voxels, fibers, and cells</title>
<p>Each fiber is initialized with a base point, <bold>b</bold>, and a direction, <bold>r</bold>. A ray is traced along <bold>r</bold> and &#x02212;<bold>r</bold> until the voxel boundary is hit. The two points hit by the ray define the endpoints of the fiber. The straight line connecting the two endpoints is then filled with ellipsoids according to the specified ellipsoid density and minimum fiber diameter. Each cell is represented by a single ellipsoid. They cannot move or deform, but otherwise act in the same way as fibers.</p>
<p>Each ellipsoid has two properties: a position vector and a shape matrix. With no deformation, the shape of an ellipsoid is a unit sphere <italic>S</italic><sup>2</sup> &#x0003D; {<bold>q</bold> &#x02208; &#x0211D;<sup>3</sup>| ||<bold>q</bold>|| &#x0003D; 1}. The deformation of the sphere is represented by a 3 &#x000D7; 3 matrix, <bold>S</bold>, such that the surface of the resulting ellipsoid is <italic>E</italic> &#x0003D; {<bold>Sq</bold> &#x0002B; <bold>p</bold>| ||<bold>q</bold>|| &#x0003D; 1} where <bold>p</bold> is the position.</p>
<p>Initially, the matrix <bold>S</bold> &#x0003D; &#x003BC;<bold>I</bold> where &#x003BC; is given by the allowed minimum radius for the given fiber. For increased flexibility, &#x003BC; should be very small relative to the voxel size.</p>
<p>Hence, each ellipsoid, <italic>j</italic>, on each fiber, <italic>i</italic>, is represented by a position vector, <bold>p</bold><sub><italic>i, j</italic></sub>, and a shape matrix, <bold>S</bold><sub><italic>i, j</italic></sub>, and the surface of the ellipsoid is thus defined by</p>
<disp-formula id="E1"><label>(1)</label><mml:math id="M1"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>S</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mstyle mathvariant='bold'><mml:mtext>q</mml:mtext></mml:mstyle><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:mo>||</mml:mo><mml:mstyle mathvariant='bold'><mml:mtext>q</mml:mtext></mml:mstyle><mml:mo>||</mml:mo><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>Ellipsoids are deformed by applying a deformation matrix <bold>D</bold> &#x0003D; <italic>s</italic><bold>rr</bold><sup><italic>T</italic></sup> &#x0002B;<bold>I</bold> . Multiplying (the points on) a surface by <bold>D</bold> thereby results in a scaling of 1 &#x0002B; <italic>s</italic> along <bold>r</bold> where <italic>s</italic> &#x02208; &#x0211D; and <bold>r</bold> &#x02208; &#x0211D;<sup>3</sup>, ||<bold>r</bold>|| &#x0003D; 1. This can be seen by taking an arbitrary point <bold>p</bold> and transforming it using <bold>D</bold></p>
<disp-formula id="E2"><label>(2)</label><mml:math id="M2"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>s</mml:mi><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:mstyle mathvariant='bold'><mml:mtext>I</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:mi>s</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle><mml:mo>&#x0002B;</mml:mo><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:mi>s</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle><mml:mo>&#x0002B;</mml:mo><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>After <italic>n</italic> deformations of an ellipsoid the shape matrix will have the form <bold>S</bold> &#x0003D; <bold>D</bold><sub><italic>n</italic></sub>...<bold>D</bold><sub>2</sub><bold>D</bold><sub>1</sub>.</p></sec>
<sec>
<title>2.2.2 Growth, contraction, and redistribution for fiber-ellipsoids</title>
<p>The growth step considers each ellipsoid <italic>j</italic> of each fiber <italic>i</italic>. The shape matrix of the updated ellipsoid <bold>S</bold><sub>new</sub> is set to a weighted average between the current shape <bold>S</bold><sub>old</sub> and the target shape (i.e., a sphere having the maximum radius <italic>r</italic><sub>max</sub>) by</p>
<disp-formula id="E3"><label>(3)</label><mml:math id="M3"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>S</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mtext>new</mml:mtext></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>a</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>S</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mtext>old</mml:mtext></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:mi>a</mml:mi><mml:msub><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mtext>max</mml:mtext></mml:mrow></mml:msub><mml:mstyle mathvariant='bold'><mml:mtext>I</mml:mtext></mml:mstyle></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <italic>a</italic> &#x02208; [0, 1] is the <monospace>growSpeed</monospace>.</p>
<p>A contraction step adjusts the curve on which the ellipsoids lie. The force along the fiber is dependent on the contraction coefficient &#x003BA;. A value of &#x003BA; &#x0003D; 0 will do nothing, and a value of &#x003BA; &#x0003D; 1 will move the position <bold>p</bold><sub><italic>i, j</italic></sub> of the ellipsoid all the way over to <inline-formula><mml:math id="M4"><mml:mstyle mathvariant='bold'><mml:mtext>c</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi><mml:mo>&#x0002B;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> making this segment of the fiber a straight line. For any value of &#x003BA;&#x02208;[0, 1] the position is updated to (1&#x02212;&#x003BA;)<bold>p</bold><sub><italic>i, j</italic></sub>&#x0002B;&#x003BA;<bold>c</bold>.</p>
<p>A redistribution step is then performed to prevent ellipsoids from clumping together and thereby creating gaps in the ellipsoid chain. This is done by updating the position of each ellipsoid in a chain such that they are evenly distributed along the trajectory of the fiber. Furthermore, the endpoints of the fibers are moved to the nearest side whenever they are inside the voxel to make sure that the fiber spans the entire voxel.</p></sec>
<sec>
<title>2.2.3 Collisions: fiber-voxel, fiber-fiber, and fiber-cell</title>
<p>Fiber-voxel collisions (outer voxel) are checked for each ellipsoid independently. Whenever an ellipsoid&#x00027;s center is outside of the voxel it is projected back onto the boundary. fiber-fiber collisions are checked by computing the potential overlap between each ellipsoid of a fiber and all other ellipsoids of all other fibers. fiber-cell collisions are checked by likewise computing the potential overlap between each ellipsoid of a fiber and all cells.</p>
<p>To compute overlaps between ellipsoids (see <xref ref-type="fig" rid="F3">Figure 3</xref>), we utilize that finding the surface point of an ellipsoid furthest away along a vector <bold>r</bold> is the same as finding the surface point which has the normal <bold>r</bold>. When deforming an ellipsoid using the matrix <bold>D</bold>, the normals are transformed by <bold>D</bold><sup>&#x02212;1</sup>. Since after <italic>n</italic> deformations <bold>D</bold><sub><italic>i</italic></sub>, <italic>i</italic> &#x02208; {1, ..., <italic>n</italic>} the shape has the form <bold>S</bold> &#x0003D; <bold>D</bold><sub><italic>n</italic></sub>...<bold>D</bold><sub>2</sub><bold>D</bold><sub>1</sub>, the corresponding transformation matrix <bold>N</bold> for the normals is</p>
<disp-formula id="E4"><label>(4)</label><mml:math id="M6"><mml:mtable class="eqnarray" columnalign="right"><mml:mtr><mml:mtd><mml:mstyle mathvariant='bold'><mml:mtext>N</mml:mtext></mml:mstyle><mml:mo>=</mml:mo><mml:msubsup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:msubsup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:msubsup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:msubsup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:msubsup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:mo>=</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:mo>.</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>S</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>since each <bold>D</bold><sub><italic>i</italic></sub> is symmetric. When going from a normal on an ellipsoid to the corresponding normal of the original sphere, the normal should be transformed by the inverse, i.e., <bold>N</bold><sup>&#x02212;1</sup> &#x0003D; <bold>S</bold><sup><italic>T</italic></sup>. After this transformation, the resulting vector can be normalized. Since we now have a unit normal on a unit sphere, the position on that sphere is given by the same vector. To get the corresponding position on the ellipsoid, one can simply multiply by <bold>S</bold>. Hence the point with the normal <bold>r</bold> on the ellipsoid with shape <bold>S</bold> and center at the origin is <inline-formula><mml:math id="M8"><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mstyle mathvariant='bold'><mml:mtext>S</mml:mtext></mml:mstyle><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>S</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>||</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>S</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle><mml:mo>||</mml:mo></mml:mrow></mml:mfrac></mml:math></inline-formula>. Given the ellipsoid <italic>j</italic> of fiber <italic>i</italic> and a direction <bold>r</bold> the extremal point is thus <bold>e</bold><sub><italic>i, j</italic></sub>(<bold>r</bold>) &#x0003D; <bold>p</bold><sub><italic>i, j</italic></sub> &#x0002B; <bold>x</bold><sub><italic>i, j</italic></sub>(<bold>r</bold>). This extremum is used to compute the overlap between two ellipsoids.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>2D visualization of the concept applied for checking for potential overlap of two ellipsoids. In the example, we have two ellipsoids centered at p<sub>1</sub> and p<sub>2</sub>, respectively. The objective is to check if there exists a set of hyperplanes, P<sub>1</sub>(r) and P<sub>2</sub>(&#x02212;r), which separates the ellipsoids. This is done by finding the surface point e<sub>1</sub>(r) for which the normal is parallel with <italic>r</italic>, and the surface point e<sub>2</sub>(&#x02212;r) for which the normal is parallel with &#x02212;r. Now, if the dot product between the vector r<sup><italic>T</italic></sup> [lying in the plane P<sub>1</sub>(r)] and the vector e<sub>1</sub>(r)&#x02212;e<sub>2</sub>(&#x02212;r) is &#x0003C; 0, the planes P<sub>1</sub>(r) and P<sub>2</sub>(&#x02212;r) must separate the two ellipsoids. i.e., if there exists an r such that r<sup><italic>T</italic></sup> &#x000B7; (e<sub>1</sub>(r) &#x02212; e<sub>2</sub>(&#x02212;r)) &#x0003C; 0, the two ellipsoids are not overlapping.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0003.tif"/>
</fig>
<p>Define the overlap of two ellipsoids <italic>j</italic><sub>1</sub> and <italic>j</italic><sub>2</sub> belonging to the fibers <italic>i</italic><sub>1</sub> and <italic>i</italic><sub>2</sub> respectively along an axis <bold>r</bold> as <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub><inline-formula><mml:math id="M9"><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>e</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>e</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>. If one can find a <italic>separating</italic> axis (Gottschalk et al., <xref ref-type="bibr" rid="B18">1997</xref>), <bold>r</bold>, such that <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) &#x0003C; 0, the ellipsoids do not overlap. If <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) &#x0003E; 0 for all values of <bold>r</bold>, the ellipsoids overlap, since they are convex. To check whether two ellipsoids overlap, one can find the minimum overlap and check if it is positive or negative. The ellipsoids overlap if and only if <inline-formula><mml:math id="M10"><mml:munder class="msub"><mml:mrow><mml:mo class="qopname">min</mml:mo></mml:mrow><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow></mml:munder><mml:msub><mml:mrow><mml:mi>o</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x0003E;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula>. The minimum is computed numerically starting with the initial guess <bold>r</bold> &#x0003D; <bold>p</bold><sub><italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub></sub> &#x02212; <bold>p</bold><sub><italic>i</italic><sub>1</sub>, <italic>j</italic><sub>1</sub></sub>.</p>
<p>When the axis <bold>r</bold> providing the least overlap <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) is found, it is checked if <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) &#x0003C; 0. If so, nothing should be done. In the case where <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) &#x0003E; 0 the ellipsoids should be updated such that the new value of <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) is 0. This is done by updating both the positions and shapes of the ellipsoids depending on the deformation factor. In practice, a small constant is added to <italic>o</italic> to make sure that there is a minimum distance between fibers in order to avoid overlaps in the final mesh-representation.</p>
<p>The overlaps are computed at each iteration of the algorithm. In most cases, the overlap will be negative since most ellipsoids are far apart. To avoid the need for computing the overlap between all pairs of ellipsoids, a hierarchy of axis-aligned bounding boxes (AABB) is computed for each axon. If the AABBs of two axons do not overlap, then the overlap computation of all the pairs of ellipsoids between these two axons can be skipped. If the AABBs do overlap, the AABBs will be recursively split into smaller AABBs and checked for overlap until the bottom of the hierarchy is reached. In this case, the ellipsoid overlap is computed.</p></sec>
<sec>
<title>2.2.4 Updating shapes and positions of fiber-ellipsoids</title>
<p>The key assumption, that axon morphology is influenced by the local environment (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>, <xref ref-type="bibr" rid="B6">2022</xref>), is implemented by requiring each axonal ellipsoid to adapt both shape and position according to its local environment in order to avoid overlapping structures. Each ellipsoid will have a specified deformation factor &#x003B4;(||<bold>x</bold><sub><italic>i, j</italic></sub>(<bold>r</bold>)||) &#x02208; [0, 1] depending on the specified deformation factor map. Each fiber has a minimum allowed radius &#x003BC;<sub><italic>i</italic></sub> specifying that it should hold for any ellipsoid <italic>j</italic> that ||<bold>x</bold><sub><italic>i, j</italic></sub>(<bold>r</bold>)|| &#x02265; &#x003BC;<sub><italic>i</italic></sub>. The overlap <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) is divided in two equally big parts, and each part is handled by each of the two ellipsoids. So the deformation of an ellipsoid will result in a decrease in its size of at most <inline-formula><mml:math id="M11"><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>o</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>. This will ensure that the ellipsoids will not have a negative overlap after being deformed. Since multiplying by a deformation matrix corresponds to a scaling along <bold>r</bold>, the distance that the extremal point should be moved has to be divided by the current size along <bold>r</bold> to get the scaling factor <italic>s</italic>. So in the case with ellipsoid <italic>j</italic><sub>1</sub> of fiber <italic>i</italic><sub>1</sub> the value of <italic>s</italic> would be <inline-formula><mml:math id="M12"><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mo>-</mml:mo><mml:mi>&#x003B4;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>||</mml:mo></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>o</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>||</mml:mo></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mfrac><mml:mrow><mml:mi>&#x003B4;</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>||</mml:mo></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mi>o</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>||</mml:mo></mml:mrow></mml:mfrac></mml:math></inline-formula>. In the case where this deformation would make the ellipsoid&#x00027;s size smaller than the minimum &#x003BC;<sub><italic>i</italic></sub>, a less negative value of <italic>s</italic> is chosen such that the resulting size is exactly &#x003BC;<sub><italic>i</italic></sub>: <inline-formula><mml:math id="M13"><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>||</mml:mo></mml:mrow><mml:mrow><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>||</mml:mo></mml:mrow></mml:mfrac><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003BC;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>||</mml:mo><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>x</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>||</mml:mo></mml:mrow></mml:mfrac><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:math></inline-formula>. So the resulting value of <italic>s</italic> is <italic>s</italic> &#x0003D; max(<italic>s</italic><sub>1</sub>, <italic>s</italic><sub>2</sub>). So the deformation matrix <bold>D</bold><sub>1</sub> for ellipsoid <italic>j</italic><sub>1</sub> is <inline-formula><mml:math id="M14"><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>D</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo class="qopname">max</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:mstyle mathvariant='bold'><mml:mtext>I</mml:mtext></mml:mstyle></mml:math></inline-formula>. Now the shape matrix can be updated by calculating <bold>D</bold><sub>1</sub><bold>S</bold><sub><italic>i</italic><sub>1</sub>, <italic>j</italic><sub>1</sub></sub>. The equivalent computations are performed for ellipsoid <italic>j</italic><sub>2</sub>.</p>
<p>Secondly, the positions of the ellipsoids are updated. Each ellipsoid is treated as if they had equal &#x0201C;mass&#x0201D;, i.e., the center of their positions is conserved. The total distance to move the ellipsoids apart is equal to the overlap <italic>o</italic><sub>(<sub><italic>i</italic></sub><sub>1</sub>, <italic>j</italic><sub>1</sub>), (<italic>i</italic><sub>2</sub>, <italic>j</italic><sub>2</sub>)</sub>(<bold>r</bold>) after the shapes have been updated. By moving the two ellipsoids by the same amount, the new positions are updated to <inline-formula><mml:math id="M15"><mml:msub><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>p</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msup><mml:mfrac><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>o</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>r</mml:mtext></mml:mstyle></mml:math></inline-formula> for <italic>l</italic> &#x02208; {1, 2}.</p></sec>
<sec>
<title>2.2.5 Computational complexity</title>
<p>In the worst case, all ellipsoids are close to each other and the number of overlaps that need to be computed will be <italic>O</italic>(ellipsoidCount<sup>2</sup>). Since the number of ellipsoids is proportional to (1) the number of axons, (2) the voxel size, and (3) the ellipsoid density, this could also be written as <italic>O</italic>((axonCount&#x000B7;voxelSize&#x000B7;ellipsoidDensity)<sup>2</sup>).</p>
</sec>
</sec>
<sec>
<title>2.3 Post-processing</title>
<p>A phantom is outputted in two formats: an ellipsoid-representation and a mesh-representation. The ellipsoid-representation is the updated config-file where the shape and position of each ellipsoid is specified. This config-file can be edited and used as input for further optimization. The mesh-representation is acquired from the ellipsoid-representation by generating tube-like mesh-segments to connect all ellipsoidal cross-sections within a fiber. The user specifies the number of radial segments that the tubes should have (radial resolution). The number of longitudinal segments is equal to the number of ellipsoids on the fiber. The cells are exported as they are&#x02014;i.e., meshes having the shape of the corresponding ellipsoids. The mesh-representation can be outputted as individual files for each fiber and cell, or as one combined file containing all elements.</p>
<sec>
<title>2.3.1 Optimization of meshes for Monte Carlo diffusion simulations</title>
<p>The higher the ellipsoid-density, the smaller deviation is reached between the ellipsoid-representation and the mesh-representation due to gaps between ellipsoids. Hence, a high ellipsoid density is required to avoid overlapping fibers after conversion to the mesh-representation. This means that the resulting meshes have a likewise high longitudinal resolution. Especially if the meshes are intended for Monte Carlo simulations of dMRI, this is unfavorable since each mesh element comes with a computational cost due to the extensive collision-detection involved. Meanwhile, the high mesh resolution is often redundant.</p>
<p>By performing Garland Heckbert simplification (Garland and Heckbert, <xref ref-type="bibr" rid="B16">1997</xref>) of each myelin and axon mesh, we reduce the number of faces and vertices significantly. The reduction depends on the initial resolution and the allowed deviation between the initial and the simplified mesh. We allow a deviation of <monospace>minDistance</monospace>/2 &#x02212; 0.0005 &#x003BC;m, where <monospace>minDistance</monospace> is the minimum distance allowed between ellipsoids of different fibers. For a radial resolution of 16 segments and <monospace>ellipsoidDensityScaler</monospace> of 0.20, the Garland Heckbert simplification decreases the number of faces by around 50%.</p>
<p>Before employing the phantoms in Monte Carlo diffusion simulations, the ends of the meshes are sealed to obtain &#x0201C;water tightness&#x0201D;.</p>
<p>The intra-axonal compartment can be extended by making two extra copies of the ellipsoids mirrored through each of the fiber&#x00027;s endpoints without the requirement of further optimization.</p>
</sec>
</sec>
<sec>
<title>2.4 Morphological analysis</title>
<p>To demonstrate the biological relevance of the morphological features expressed in the numerical phantoms generated with the WMG, we compare the morphology of a set of numerical phantoms with real axons. The real axons originate from a monkey brain, and have been quantified by segmentation from XNH-volumes in previous work (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). A total of 58 axons with lengths between 120 and 304 &#x003BC;m were segmented. The meshes are available at <ext-link ext-link-type="uri" xlink:href="http://www.drcmr.dk/powder-averaging-dataset">www.drcmr.dk/powder-averaging-dataset</ext-link>. The morphological metrics quantify axon diameter variations, cross-sectional eccentricity, and tortuosity. All metrics are sampled with &#x0007E;375 nm spacing along axon trajectories (some variation due to tortuosity).</p>
<sec>
<title>2.4.1 Axon diameters</title>
<p>We quantify axon diameter (AD) by the equivalent diameter as in Abdollahzadeh et al. (<xref ref-type="bibr" rid="B2">2019</xref>). i.e., axon diameters reported here are the diameter of a circle with an area equal to that of the axonal cross-section perpendicular to its local trajectory. For the real axons, the metric is extracted from the segmentation. This method is described in more detail in Andersson et al. (<xref ref-type="bibr" rid="B5">2020</xref>). For the WMG-generated axons, the metric is extracted from the ellipsoid-representation.</p>
<p>For individual axons, mean AD [mean(AD)] is calculated over all measurements along an axon, and the standard deviation of the AD [std(AD)] quantifies the variation of these values.</p></sec>
<sec>
<title>2.4.2 Cross-sectional eccentricity</title>
<p>We quantify cross-sectional eccentricity based on elliptic parameterization by <inline-formula><mml:math id="M16"><mml:mi>e</mml:mi><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:msup><mml:mrow><mml:mi>b</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>/</mml:mo><mml:msup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:msqrt></mml:math></inline-formula> where <italic>a</italic> is the major axis and <italic>b</italic> is the minor axis (see <xref ref-type="fig" rid="F10">Figure 10</xref>). For the real axons, the circumference of the segmentation is sampled by 24 points. The length of the major and minor axes of a corresponding ellipse is then extracted by fitting a Principal Component Analysis to the sampled points. The results depend on the resolution and smoothing of the images. For the WMG-generated axons, the lengths of the major and minor axes are extracted directly from the ellipsoids.</p>
<p>For individual axons, mean eccentricity [mean (eccentricity)] is calculated over all measurements along an axon, while the standard deviation of the eccentricity [std (eccentricity)] quantifies the variation of these values.</p></sec>
<sec>
<title>2.4.3 Tortuosity</title>
<p>We quantify tortuosity based on the tortuosity factor and the maximum deviation. The tortuosity factor is given as the ratio between the geodesic length of the centerline of an axon, and the Euclidean length between the end points of the centerline (see <xref ref-type="fig" rid="F11">Figure 11</xref>). The maximum deviation is given by the maximum Euclidean distance between the centerline and a straight line spanning the endpoints of the centerline when measured perpendicular to the straight line (see <xref ref-type="fig" rid="F11">Figure 11</xref>).</p>
</sec>
</sec>
<sec>
<title>2.5 Phantoms presented here</title>
<p>All phantoms included in this paper, are generated based on the optimization scheme shown in <xref ref-type="table" rid="T1">Table 1</xref>.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Optimization scheme used to generate the phantoms presented in the Section 3.</p></caption>
<table frame="box" rules="all">
<thead>
<tr style="background-color:#919498;color:#ffffff">
<th valign="top" align="left"><bold>Stage</bold></th>
<th valign="top" align="center"><bold>ellipsoidDensityScaler</bold></th>
<th valign="top" align="center"><bold>growSpeed</bold></th>
<th valign="top" align="center"><bold>maxIterations</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">1</td>
<td valign="top" align="center">0.50</td>
<td valign="top" align="center">0.02</td>
<td valign="top" align="center">50</td>
</tr> <tr>
<td valign="top" align="left">2</td>
<td valign="top" align="center">0.50</td>
<td valign="top" align="center">0.01</td>
<td valign="top" align="center">500</td>
</tr> <tr>
<td valign="top" align="left">3</td>
<td valign="top" align="center">0.25</td>
<td valign="top" align="center">0.01</td>
<td valign="top" align="center">100</td>
</tr> <tr>
<td valign="top" align="left">4</td>
<td valign="top" align="center">0.25</td>
<td valign="top" align="center">0.01</td>
<td valign="top" align="center">10</td>
</tr></tbody>
</table>
</table-wrap>
<p>The growth in the first stage is rougher (i.e., lower <monospace>ellipsoidDensityScaler</monospace> and higher <monospace>growSpeed</monospace>), and then gets finer through the stages (i.e., higher <monospace>ellipsoidDensityScaler</monospace>, and lower <monospace>growSpeed</monospace>). Different optimization schemes may yield different FVFs and generation times. The following parameters are kept constant and equal for all phantoms:</p>
<list list-type="bullet">
<list-item><p><monospace>targetFVF = 0.8</monospace></p></list-item>
<list-item><p><monospace>mapFromMaxDiameterToMinDiameter =</monospace></p>
<p><monospace>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;{&#x00027;from&#x00027;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;:&#x000A0;&#x000A0;&#x000A0;[0.2, &#x000A0;&#x000A0;0.5, &#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;1.25],&#x000A0;&#x000A0;&#x000A0;&#x00027;to&#x00027;&#x000A0;&#x000A0;:</monospace></p>
<p><monospace>[0.2, &#x000A0;&#x000A0;&#x000A0;0.2, &#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;0.5]}</monospace></p>
</list-item>
</list>
<p>Some phantoms include cells with CVF = 0.05. The size and shape of the cell clusters are determined by randomly sampling the ellipsoid axes from normal distributions. Each primary axis <italic>l</italic><sub>1</sub> is sampled from the distribution <italic>l</italic><sub>1</sub> &#x0007E; <italic>N</italic>(&#x003BC; &#x0003D; 13 &#x003BC;m, &#x003C3; &#x0003D; 2&#x003BC;m), while the secondary <italic>l</italic><sub>2</sub> and tertiary <italic>l</italic><sub>3</sub> axes are set to be equal, and sampled from the distribution <italic>l</italic><sub>2</sub> &#x0003D; <italic>l</italic><sub>3</sub> &#x0007E; <italic>N</italic>(&#x003BC; &#x0003D; 5 &#x003BC;m, &#x003C3; &#x0003D; 1 &#x003BC;m). This results in a mean fractional anisotropy of 0.54. The dispersion angles of the cell clusters (i.e., orientation relative to the primary axis of axons) are sampled from a uniform distribution over the interval (&#x02212;23, 23) deg. This is in accordance with observations of CVF, anisotropy and fiber dispersion in Andersson et al. (<xref ref-type="bibr" rid="B5">2020</xref>), where cell clusters from healthy monkey white matter were approximated as ellipsoids (or tensors).</p></sec></sec>
<sec sec-type="results" id="s3">
<title>3 Results</title>
<p>To demonstrate the applications of the interactive feature of the WMG, we focus on two scenarios: general cell mobility and inflammatory response. Firstly, we demonstrate the biological relevance of the morphological features expressed in the numerical phantoms generated with the WMG, by comparing the morphology of a set of numerical phantoms with real axons. The real axons originate from a monkey brain, and have been quantified by segmentation from XNH-volumes in previous work (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). Then, by interactively changing the cell configurations over time, we show the morphology of the surrounding fibers changes consequently. We quantify the changes by analyzing longitudinal axon diameter variations, longitudinal variations of cross-sectional eccentricity, and tortuosity of fibers.</p>
<sec>
<title>3.1 The WMG mimicking different tissue compositions</title>
<p>The global fiber dispersion is controlled by the parameter &#x003F5;. Examples of varying degrees of dispersion are shown both with and without cells in <xref ref-type="fig" rid="F4">Figure 4</xref>. When increasing &#x003F5;, the fibers are forced to bend and deform more to achieve a higher FVF. Similarly, the presence of the static cells forces the fibers to adapt around them.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Demonstration of the global fiber dispersion parameter &#x003F5; and the presence of cells (blue ellipsoids). The unit spheres on the left show the global dispersion associated with each &#x003F5;. A cut is made at 1/3 of the voxel&#x00027;s height to enhance the visualization of individual fiber morphology. Above this height, the meshes are pruned such that only 7% are left. The black voxel marks the boundary of the ellipsoid centers, while the gray voxel marks the volume for which the FVF is optimized. The two voxels are used to avoid boundary effects within the optimized volume. Cross-sections and individual axons are visualized in <xref ref-type="supplementary-material" rid="SM1">Supplementary Figure S1</xref>.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0004.tif"/>
</fig>
<p>Crossing fiber bundles can be generated in two configurations&#x02014;sheets (Kjer et al., <xref ref-type="bibr" rid="B22">2023</xref>) and interwoven. Examples are shown in <xref ref-type="fig" rid="F5">Figure 5</xref>.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Demonstration of two crossing bundle configurations. The black voxel marks the boundary spatial limit of the ellipsoid centers, while the gray voxel marks the volume for which the FVF is optimized. In both examples, the number of fibers is split equally between the two perpendicular bundles. The split and fiber directions can be varied, and the number of crossing bundles can be increased. <bold>(A)</bold> Sheet configuration where the fibers of each bundle are separated into sheets. <bold>(B)</bold> Interwoven configuration where the fibers of each bundle are interwoven with each other.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0005.tif"/>
</fig>
<p>Demyelination can be mimicked by selectively stripping the myelin from axons and adding cells to mimic an inflammatory response as shown in <xref ref-type="fig" rid="F6">Figure 6</xref>. This can be done either between optimization steps by decreasing the allowed diameter range of a fiber to that of the corresponding axon, or by removing the myelin mesh after optimization.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Demonstration of demyelination showing a demyelinated version of the phantom shown in <xref ref-type="fig" rid="F4">Figure 4</xref> (&#x003F5; &#x0003D; 0.2, with cells). The black voxel marks the boundary for the ellipsoid centers, while the gray voxel marks the volume for which the FVF is optimized.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0006.tif"/>
</fig>
</sec>
<sec>
<title>3.2 Performance of the WMG</title>
<p><xref ref-type="fig" rid="F7">Figure 7</xref> shows the obtained FVFs and the processing time for the parameters and optimization scheme described in <xref ref-type="table" rid="T1">Table 1</xref>. We achieve mean (FVF) &#x02265; 0.72 for phantoms of all degrees of &#x003F5; without cells and mean (FVF) &#x02265; 0.66 with cell clusters (CVF = 0.05). It is seen that the processing time increases with &#x003F5;. This is a consequence of the increased fiber dispersion leading to a higher frequency of collisions of the chain of ellipsoids comprising the axons. Each collision necessitates correction, leading to a longer optimization time. Likewise, the increased dispersion complicates dense packing and results in lower FVF. Similarly, the presence of cells (CVF = 0.05) results in a much increased processing time compared to phantoms which have otherwise identical parameter configurations. This is due to the additional volume taken up by the static cell clusters further complicating the packing and resulting in lower FVF.</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p>Performance of the WMG in terms of achieved axonal volume fraction (FVF) and processing time. Each point is based on five samples/repetitions. Mean (FVF) &#x0003E; 0.66 is achieved for all configurations. The complexity of the phantom configuration is increased by increasing dispersion (&#x003F5;), adding cell clusters, and introducing fiber crossings. The higher complexity makes it more challenging to achieve higher FVFs.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0007.tif"/>
</fig>
</sec>
<sec>
<title>3.3 Morphological variation of WMG-generated phantoms</title>
<p>To demonstrate that the morphological features expressed in the WMG-generated phantoms are relevant in relation to real 3D morphology, we compare the morphology of the axons with real axons quantified from XNH-volumes. The comparisons are based on longitudinal axon diameter variations, cross-sectional eccentricity, and tortuosity&#x02014; all metrics which are reflected in the dMRI signal.</p>
<sec>
<title>3.3.1 Longitudinal axon diameters</title>
<p><xref ref-type="fig" rid="F8">Figure 8</xref> shows an example of target and output distributions of mean axon diameters for individual axons. Much flexibility in morphology parameters is required to obtain the high FVFs. Hence, some deviation from the target is to be expected. For the parameters and optimization scheme described in <xref ref-type="table" rid="T1">Table 1</xref>, the mean &#x003BC; values of the distributions are within 0.6 &#x003BC;m of that of the target distribution with &#x003BC; &#x0003D; 1.8&#x003BC;m.</p>
<fig id="F8" position="float">
<label>Figure 8</label>
<caption><p>Target vs. outputted distributions of mean axon diameters for individual axons <italic>mean</italic>(<italic>AD</italic>). Gamma distributions are fitted to the histogram bins of the outputted mean axon diameters. The desired diameter of each axon is sampled from a gamma distribution (the desired distribution). Due to the packing procedure, some deviation is expected for the outputted distributions. Here, deviations of mean values are within 0.6 &#x003BC;m.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0008.tif"/>
</fig>
<p><xref ref-type="fig" rid="F9">Figure 9</xref> shows a positive correlation between the std (AD) and mean (AD). We compare with the XNH-samples and see an overlap of the metrics and a likewise positive correlation. We see that std (AD) can be regulated both by varying &#x003F5; and CVF. The higher &#x003F5; forces the individual axons to deform more to pack to the dispersing environment&#x02014;and vice versa. Similarly for increased CVF (see &#x0201C;&#x003F5; &#x0003D; 0.0, CVF=0.00&#x0201D; vs. &#x0201C;&#x003F5; &#x0003D; 0.0, CVF=0.05&#x0201D;), where the presence of cells force additional ellipsoid deformation in order to obtain the dense packing.</p>
<fig id="F9" position="float">
<label>Figure 9</label>
<caption><p>Longitudinal axon diameter variation. Each marker represents one axon from a given sample, while the lines are the linear fits of all axons in a sample/numerical phantom. The standard deviation of the mean axon diameter per axon [std (AD)] correlates positively with the mean axon diameter per axon [mean (AD)]&#x02014;both for the XNH and WMG axons. Note that the distribution of axon diameters of the XNH axons is not representative of the tissue as a whole, but biased toward the larger axons due to those axons being more clear on the XNH images.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0009.tif"/>
</fig>
</sec>
<sec>
<title>3.3.2 Axonal cross-sectional eccentricity</title>
<p><xref ref-type="fig" rid="F10">Figure 10</xref> shows the variation in cross-sectional eccentricity along WMG-generated axons as a function of the mean cross-sectional eccentricity along the axons. Both the mean (eccentricity) and the std (eccentricity) can be regulated by varying &#x003F5; and CVF. Again, because the higher &#x003F5; forces the individual axons to deform more to pack to the dispersing environment&#x02014;and vice versa. Similarly for increased CVF (see &#x0201C;&#x003F5; &#x0003D; 0.0, CVF=0.00&#x0201D; vs. &#x0201C;&#x003F5; &#x0003D; 0.0, CVF=0.05&#x0201D;), where the presence of cells force additional ellipsoid deformation to obtain the dense packing. The types of eccentricities in the XNH-segmented axons and the WMG-generated axons are different in nature. While the cross sections of the XNH axons are asymmetric and squiggly by nature, the cross sections of the synthetic WMG axons are limited to being elliptic due to the axon being comprised of ellipsoids. Hence, while the eccentricity measure does provide a rough estimation of the dominating cross-sectional eccentricity in both cases, it is not directly comparable across the two.</p>
<fig id="F10" position="float">
<label>Figure 10</label>
<caption><p>Cross-sectional eccentricity. We achieve an overlapping degree of eccentricity for the WMG-generated axons as we observed for the XNH axons. Meanwhile, the std (eccentricity) shows a higher degree of variation than the XNH samples. We see a higher degree of eccentricity in the crossing fiber (CF) compared to the corpus callosum (CC) quantified from the XNH images.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0010.tif"/>
</fig>
</sec>
<sec>
<title>3.3.3 Axonal tortuosity</title>
<p>A positive correlation between maximum deviation and tortuosity both for axons from the WMG and XNH is observed. This is shown in <xref ref-type="fig" rid="F11">Figure 11</xref>. The tortuosity can be regulated by the dispersion parameter &#x003F5; and by adding cells. The higher dispersion and CVF mean that the axons have to bend more around each other to not overlap and vice versa.</p>
<fig id="F11" position="float">
<label>Figure 11</label>
<caption><p>Tortuosity. We quantify the tortuosity of the axons based on the tortuosity factor and the maximum deviation (both metrics are explained in the figure) to compare with the real axons segmented from XNH-imaging of corpus callosum (CC) and crossing fiber (CF) from a monkey. It is possible to reach overlapping tortuosity factors for the synthetic WMG axons as is observed for the real XNH axons from the corpus callosum (CC) region. However, we do not match the high tortuosity factors and maximum deviations observed for the crossing fiber (CF) region. a, b, c, and d show examples of 2D projections of the axonal centerlines at different ends of the spectrum.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0011.tif"/>
</fig>
</sec>
</sec>
<sec>
<title>3.4 Interactive configuration allows the mimicking of dynamic environments</title>
<p>Dynamic cells are mimicked by interactively changing the cell configuration during phantom optimization and letting the fibers adapt accordingly. <xref ref-type="fig" rid="F12">Figure 12</xref> shows how a dynamic cell environment can influence the morphological metrics of the surrounding axons. In the right column, we see how moving cells are causing an increase in axon diameter variations, eccentricity, and tortuosity over time. In <xref ref-type="fig" rid="F13">Figure 13</xref>, we see a similar trend when the CVF is increased over time&#x02014;except that in this example, the axons are generally straight and have non-eccentric cross-sections at the first time point due to CVF = 0.00.</p>
<fig id="F12" position="float">
<label>Figure 12</label>
<caption><p>General cell mobility: The CVF is kept constant while cells are moved around over time. <bold>(A)</bold> Visualization of three temporal snapshots of a phantom. A cut is made at 1/3 of the voxel&#x00027;s height to enhance the visualization of individual axon morphology. Above this height, the meshes are pruned such that only 7% are left. The black voxel marks the boundary of the ellipsoid centers, while the gray voxel marks the volume for which the FVF is optimized. <bold>(B)</bold> Morphological metrics computed for the phantom snapshots seen in <bold>(A)</bold>. When starting from otherwise straight axons, the moving cells cause increasing diameter variations (top), eccentricity (middle), and tortuosity (bottom) over time. For an explanation of metrics for eccentricity and tortuosity, see <xref ref-type="fig" rid="F10">Figures 10</xref>, <xref ref-type="fig" rid="F11">11</xref>, respectively.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0012.tif"/>
</fig>
<fig id="F13" position="float">
<label>Figure 13</label>
<caption><p>Cell increase: the CVF is increased in steps of 0.035 from 0.00 to 0.14 over time. <bold>(A)</bold> Visualization of three temporal snapshots of a phantom. A cut is made at 1/3 of the voxel&#x00027;s height to enhance the visualization of individual axon morphology. Above this height, the meshes are pruned such that only 7% are left. The black voxel marks the boundary of the ellipsoid centers, while the gray voxel marks the volume for which the FVF is optimized. <bold>(B)</bold> Morphological metrics computed for the phantom snapshots seen in <bold>(A)</bold>. When starting from otherwise straight axons, the increasing cell fraction causes increasing diameter variations (top), eccentricity (middle), and tortuosity (bottom) over time. For an explanation of metrics for eccentricity and tortuosity, see <xref ref-type="fig" rid="F10">Figures 10</xref>, <xref ref-type="fig" rid="F11">11</xref>, respectively.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fninf-18-1354708-g0013.tif"/>
</fig>
</sec></sec>
<sec sec-type="discussion" id="s4">
<title>4 Discussion</title>
<p>With the development of the WMG tool, we enable the generation of interactive numerical white matter phantoms composed of the compartments of axons, myelin, cells and extra-cellular space. This allows us to mimic the dynamic nature of white matter by interactively changing the configuration of the cell clusters within a given phantom while the surrounding axon morphology adapts accordingly. With these phantoms, we can thereby analyze how specific cell dynamics [such as mobility and inflammation (Davalos et al., <xref ref-type="bibr" rid="B14">2005</xref>; Nimmerjahn et al., <xref ref-type="bibr" rid="B31">2005</xref>; T&#x000F8;nnesen et al., <xref ref-type="bibr" rid="B38">2018</xref>)] influence the morphology of the surrounding axons. Furthermore, the very same phantoms can be employed as mesh inputs for Monte Carlo diffusion simulations. This enables us to study how these finer detailed morphological changes affect the dMRI signal and to evaluate microstructure models.</p>
<p>When comparing morphological metrics between axons generated with the WMG tool and real axons segmented from XNH-imaging of a vervet monkey brain (corpus callosum and crossing fiber), we see an overlap with the metrics of axon morphologies from the corpus callosum. However, the WMG tool does not offer the degree of tortuosity observed for the crossing fiber region.</p>
<p>Based on the assumption that real white matter morphology carries a history of dynamic events, the WMG tool provides an improved understanding of the dynamics of white matter morphology&#x02014;both for healthy and diseased tissue.</p>
<sec>
<title>4.1 WMG-generated axons possess histology-resembling morphological metrics</title>
<p>We analyzed the morphology of the individual axons from phantoms by the WMG tool. Based on the metrics for longitudinal diameter variations (<xref ref-type="fig" rid="F9">Figure 9</xref>), longitudinal variations of cross-sectional eccentricity (<xref ref-type="fig" rid="F10">Figure 10</xref>), and tortuosity (<xref ref-type="fig" rid="F11">Figure 11</xref>), we show that the WMG tool is capable of generating axons with morphology closely resembling that observed for axons from the corpus callosum of a vervet monkey brain with XNH imaging in Andersson et al. (<xref ref-type="bibr" rid="B5">2020</xref>, <xref ref-type="bibr" rid="B6">2022</xref>). These morphological metrics have been found to influence the dMRI signal from individual axons (Nilsson et al., <xref ref-type="bibr" rid="B30">2012</xref>; Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>, <xref ref-type="bibr" rid="B6">2022</xref>; Brabec et al., <xref ref-type="bibr" rid="B11">2020</xref>; Lee et al., <xref ref-type="bibr" rid="B26">2020</xref>; Winther et al., <xref ref-type="bibr" rid="B40">2023</xref>), and are hence essential when generating numerical white matter phantoms with the purpose of evaluating microstructure models for dMRI.</p>
<p>The longitudinal axon diameter variation (<xref ref-type="fig" rid="F9">Figure 9</xref>, <italic>y</italic>-axis) and the longitudinal variations of cross-sectional eccentricity (<xref ref-type="fig" rid="F10">Figure 10</xref>), and the tortuosity factor (<xref ref-type="fig" rid="F11">Figure 11</xref>, <italic>x</italic>-axis) reached by the WMG tool, are in agreement with that of the XNH-imaged corpus callosum. The maximum deviations (<xref ref-type="fig" rid="F11">Figure 11</xref>, <italic>y</italic>-axis), however, are generally much higher in the XNH-imaged corpus callosum. Meanwhile, the XNH-imaged crossing fiber is more challenging to match. Here, only the degree of eccentricity (<xref ref-type="fig" rid="F10">Figure 10</xref>) is in agreement. To obtain a higher degree of tortuosity, and especially the maximum deviation, the ellipsoid chains that make up the foundation of the axons would have to be initialized with an initial tortuosity rather than in a straight line. While this is not a standard configuration of the WMG tool, it can be obtained through manual configuration. No other tools for the numerical synthesis of white matter phantoms are known to output this degree of tortuosity.</p>
<p>Because the low signal-to-noise ratio of the XNH volumes challenged a robust manual segmentation of axons with mean diameters smaller than 2 &#x003BC;m, the segmented axons are not representative of the underlying distribution w.r.t. diameter (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). This quantification does, however, provide valuable insight into the realistic range of morphological metrics for the larger axons.</p>
<p>For extra-cellular space, we targeted a volume fraction of 0.2 (i.e., targetFVF = 0.8) in agreement with what has been reported for normal adult brain tissue-which is between 0.15 and 0.30, and typically 0.20 (Sykov&#x000E1; and Nicholson, <xref ref-type="bibr" rid="B37">2008</xref>). <xref ref-type="fig" rid="F7">Figure 7</xref> shows that all WMG phantoms without cells, reach well within the targeted range for all degrees of fiber dispersion. More precisely, we obtain FVFs between 0.83 &#x000B1; 0.00 and 0.80 &#x000B1; 0.01 for single fiber bundle phantoms with dispersion between 0 and 18 deg (&#x003F5; of 0.0 and 0.2, respectively), and FVF of 0.72 &#x000B1; 0.01 for dispersion 90 deg (&#x003F5; of 1.0). Meanwhile, the MEDUSA tool (Ginsburger et al., <xref ref-type="bibr" rid="B17">2019</xref>) reaches FVFs between 0.72 and 0.62 for single-fiber-bundle phantoms with dispersion between 0 and 20 deg, and the ConFiG tool (Callaghan et al., <xref ref-type="bibr" rid="B13">2020</xref>) reaches FVFs between 0.75 and 0.71 for single-fiber-bundle phantoms with dispersion between 7.75 &#x000B1; 4.23 deg and 17.46 &#x000B1; 9.92 deg. Although the CACTUS tool (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>) reaches impressive FVFs between 0.91 and 0.95 for single-fiber-bundle phantoms with dispersion between 0 and 25 deg, such high volume fractions are not necessarily relevant.</p>
</sec>
<sec>
<title>4.2 Axon morphology is modulated by cell dynamics</title>
<p>By exploiting the interactive component of the WMG tool to mimic cell dynamics in the form of general cell mobility and cell increase, we show how axon morphology can be modulated over time by these expected dynamics (<xref ref-type="fig" rid="F12">Figures 12</xref>, <xref ref-type="fig" rid="F13">13</xref>). Under the assumption that real white matter follows similar principles, we can thereby use the WMG tool to study expected tissue response in various physiological or pathological scenarios involving dynamic cell behavior. No other tool offers this feature.</p>
<p>Cell dynamics are continuously occurring in healthy tissue in the form of general glial cell mobility (Davalos et al., <xref ref-type="bibr" rid="B14">2005</xref>; Nimmerjahn et al., <xref ref-type="bibr" rid="B31">2005</xref>; T&#x000F8;nnesen et al., <xref ref-type="bibr" rid="B38">2018</xref>). However, because these changes are homogeneously distributed across the tissue, their influence on morphological metrics should stabilize over time and not cause net changes to the dMRI signal. Here, we mimic cell mobility by changing the configuration of cells over time while keeping the CVF constant (<xref ref-type="fig" rid="F12">Figure 12</xref>). By starting from straight axons, we see how the continuous cell mobility induces an increase in longitudinal morphological variation as the axons adapt to the changing environment.</p>
<p>Cell dynamics are crucial during an inflammatory response (Purves et al., <xref ref-type="bibr" rid="B33">2001</xref>; Davalos et al., <xref ref-type="bibr" rid="B14">2005</xref>; Nimmerjahn et al., <xref ref-type="bibr" rid="B31">2005</xref>; T&#x000F8;nnesen et al., <xref ref-type="bibr" rid="B38">2018</xref>). With the WMG tool, inflammation can be mimicked by the increase of cells (<xref ref-type="fig" rid="F13">Figure 13</xref>). We show how this dynamic behavior induces an increase in longitudinal morphological variation as the axons adapt to the changing environment&#x02014;similar to the observations for general cell mobility (<xref ref-type="fig" rid="F12">Figure 12</xref>). Inflammation can also involve e.g., edema due to the accumulation of fluid in the extra-axonal space (Nehring et al., <xref ref-type="bibr" rid="B29">2022</xref>). This will in turn cause an expansion of the extra-axonal space and affect the compartmental volume fractions. Such changes were not modeled here.</p>
</sec>
<sec>
<title>4.3 Synthesis method and tissue configurations</title>
<p>The high morphological flexibility enabled by the ellipsoidal building blocks of the WMG tool allows for a large variety of different tissue configurations. Here, we show examples of varying dispersion (<xref ref-type="fig" rid="F4">Figure 4</xref>), fiber crossings (<xref ref-type="fig" rid="F5">Figure 5</xref>), demyelination (<xref ref-type="fig" rid="F6">Figure 6</xref>), inclusion of static cells (<xref ref-type="fig" rid="F4">Figure 4</xref>), general cell mobility (<xref ref-type="fig" rid="F12">Figure 12</xref>), and cell increase (<xref ref-type="fig" rid="F13">Figure 13</xref>). A key assumption for the WMG tool is that axon morphology is modulated to the local environment, and thereby adapting according to surrounding axons and cells.</p>
<p>The WMG tool is the first tool developed for generating numerical white matter phantoms which includes an interactive component to allow the mimicking of cell dynamics. However, the tools MEDUSA (Ginsburger et al., <xref ref-type="bibr" rid="B17">2019</xref>), ConFiG (Callaghan et al., <xref ref-type="bibr" rid="B13">2020</xref>), and CACTUS (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>) do excel when it comes to computational efficiency and more complex morphological features.</p>
<p>Our concept of ellipsoidal building blocks is very similar to that of MEDUSA (Ginsburger et al., <xref ref-type="bibr" rid="B17">2019</xref>) where spherical building blocks are used. While the sphere representation allows for a high representational power of the longitudinal axon morphology characteristics, it does not allow for eccentric cross-sections as documented by histology (Abdollahzadeh et al., <xref ref-type="bibr" rid="B2">2019</xref>; Lee et al., <xref ref-type="bibr" rid="B27">2019</xref>; Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). On the other hand, the ellipsoid geometry allows for more degrees of freedom which, in turn, enables eccentric cross-sections&#x02014;although, still lacking cross-sectional squigglyness to truly resemble histology. Both tools are based on variations of a force-biased packing algorithm, first introduced by Altendorf and Jeulin (<xref ref-type="bibr" rid="B4">2011</xref>), where the phantoms are obtained as an equilibrium between &#x0201C;repulsion forces&#x0201D; (for avoiding overlapping axons and cells) and &#x0201C;recover forces&#x0201D; (for ensuring the structure of the individual axons). Similar mechanics are used to shape the axons in CACTUS (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>), where each axon is represented by capsular building blocks during the optimization of axon trajectories. However, the CACTUS tool contains an additional step of radial optimization, which can increase packing densities and increase the realism of the axonal cross-sections by introducing the desired natural squigglyness. Meanwhile, the ConFiG tool (Callaghan et al., <xref ref-type="bibr" rid="B13">2020</xref>) focuses on the initial growth and maturation of white matter by mimicking how axons are guided by chemical cues and adapt to the available space as they grow and extend from one end to the other. Hence, rather than initializing all axons along straight lines that extend the entire length of the voxel as done in the other tools, each axon is grown stepwise from one end to the other. This is followed by a radial optimization step similar to that of CACTUS (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>). A similar finishing radial optimization could beneficially be applied in the WMG tool to obtain likewise more realistic cross-sections.</p>
</sec>
<sec>
<title>4.4 Limitations and future work</title>
<sec>
<title>4.4.1 Tissue representativity</title>
<p>Numerical phantoms from the WMG tool can include axons, myelin, and glial cells. These are the most prominent structures in brain white matter; both in regards to volume fractions and signal contrast contributions in dMRI (Jelescu and Budde, <xref ref-type="bibr" rid="B21">2017</xref>)..</p>
<p>However, additional structures present in the brain white matter might affect water diffusion and hence the dMRI signal. Such structures include microtubules, mitochondria, nodes of Ranvier, neuron cell bodies, dendrites, glial cell processes, and morphological changes related to pathology.. These will be implemented in a future version of the WMG tool.</p>
<p>With the WMG tool, the g-ratio is modeled as constant throughout the axon length. However, it has been found that this ratio can vary across myelin segments (Andersson et al., <xref ref-type="bibr" rid="B5">2020</xref>). Demyelination in the WMG tool is mimicked by randomly stripping myelinated axons from their myelin sheets and by increasing CVF. The intermediate steps of the demyelination process are not modeled.</p>
<p>The size of the phantoms is crucial for the representational power of tissue features. For the WMG tool, the processing time is the limiting factor. It has been shown that phantom sizes larger than (200 &#x003BC;m)<sup>3</sup> can reduce the sampling bias (Rafael-Patino et al., <xref ref-type="bibr" rid="B34">2020</xref>) and hence improve the representational power. Moreover, while efforts are made to minimize structural boundary effects during synthesis, complete avoidance is challenging.</p>
<p>The WMG tool does offer a way to extend the intra-axonal compartment. All axon and myelin meshes can be mirrored around voxel boundaries without the requirement of further optimization. However, the added amounts of meshing do come with a computational cost when applied in Monte Carlo diffusion simulations&#x02014;by 3-fold.</p></sec>
<sec>
<title>4.4.2 Improving the computational efficiency</title>
<p>Creating phantoms is currently a time-consuming process with 28 &#x000B1; 3 h spent on generating phantoms containing a single fiber direction with &#x003F5; &#x0003D; 0.2 and 55 &#x000B1; 8 axons in a voxel size of 43.3&#x000B1;1.0 &#x003BC;m using one core (<xref ref-type="fig" rid="F7">Figure 7</xref>). In comparison, for generating a phantom of comparable configuration, the parallelizable CACTUS tool (Villarreal-Haro et al., <xref ref-type="bibr" rid="B39">2023</xref>) requires 4 h for generating a phantom of 33,478 axons in a voxel size of (500 &#x003BC;m)<sup>3</sup> using 64 cores. However, since the optimization procedure for the WMG tool relies on checking overlaps between ellipsoids, and this is formulated with linear algebra, there presents an excellent opportunity for leveraging GPUs to enhance efficiency. GPUs are optimized for basic numerical linear algebra operations, and will therefore in many cases outperform CPUs for tasks involving such operations. Therefore, future efforts will focus on implementing the WMG tool in a GPU-compatible manner to accelerate the phantom generation.</p>
<p>While it is already possible to generate large and numerous phantoms with the WMG tool, addressing the computational efficiency will significantly expand the capacity. This enhancement will be crucial for facilitating the generation of large-scale and machine learning-friendly datasets.</p></sec>
<sec>
<title>4.4.3 Mimicking compression and stress of fibrous tissues</title>
<p>The interactive config-files and the force-biased packing algorithm of the WMG tool could further be applied to mimic the compression and stress of tissue. Such events can be mimicked by applying selective stretch or compression to a voxel and its content through interactive changes to the config-file. Meanwhile, cell elements can be added to mimic the accompanying necrotic debris and cellular immune response. Applications lie within traumatic brain injuries where tissue compression often arises due to external forces, and/or swelling in one area causing compression in adjacent regions (Knight and Kreitzer, <xref ref-type="bibr" rid="B23">2020</xref>).</p></sec></sec>
</sec>
<sec sec-type="data-availability" id="s5">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/<xref ref-type="supplementary-material" rid="SM1">Supplementary material</xref>, further inquiries can be directed to the corresponding authors.</p></sec>
<sec sec-type="author-contributions" id="s6">
<title>Author contributions</title>
<p>SW: Data curation, Formal analysis, Investigation, Methodology, Resources, Software, Validation, Visualization, Writing &#x02013; original draft, Writing &#x02013; review &#x00026; editing. OP: Conceptualization, Investigation, Methodology, Resources, Software, Validation, Visualization, Writing &#x02013; original draft, Writing &#x02013; review &#x00026; editing. MA: Conceptualization, Methodology, Resources, Writing &#x02013; review &#x00026; editing. HK: Formal analysis, Methodology, Writing &#x02013; review &#x00026; editing. JB: Conceptualization, Methodology, Writing &#x02013; original draft, Writing &#x02013; review &#x00026; editing. TD: Conceptualization, Funding acquisition, Methodology, Project administration, Resources, Supervision, Writing &#x02013; review &#x00026; editing.</p></sec>
</body>
<back>
<sec sec-type="funding-information" id="s7">
<title>Funding</title>
<p>The author(s) declare financial support was received for the research, authorship, and/or publication of this article. SW has been supported by a DTU Alliance Stipend (project number 102682). SW, MA, and TD have received funding from the European Research Council (ERC) under the European Union&#x00027;s Horizon Europe research and innovation program (grant agreement No. 101044180) (Principal Investigator: TD). OP, MA, and HK have been supported by Capital Region Research Foundation Grant (grant number A5657; principal investigator: TD).</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="s8">
<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>
<sec sec-type="supplementary-material" id="s9">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fninf.2024.1354708/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fninf.2024.1354708/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="Image_1.pdf" id="SM1" mimetype="application/pdf" xmlns:xlink="http://www.w3.org/1999/xlink"/></sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Abdollahzadeh</surname> <given-names>A.</given-names></name> <name><surname>Belevich</surname> <given-names>I.</given-names></name> <name><surname>Jokitalo</surname> <given-names>E.</given-names></name> <name><surname>Sierra</surname> <given-names>A.</given-names></name> <name><surname>Tohka</surname> <given-names>J.</given-names></name></person-group> (<year>2021</year>). <article-title>DeepACSON automated segmentation of white matter in 3D electron microscopy</article-title>. <source>Commun. Biol</source>. <volume>4</volume>:<fpage>179</fpage>. <pub-id pub-id-type="doi">10.1038/s42003-021-01699-w</pub-id><pub-id pub-id-type="pmid">33568775</pub-id></citation></ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Abdollahzadeh</surname> <given-names>A.</given-names></name> <name><surname>Belevich</surname> <given-names>I.</given-names></name> <name><surname>Jokitalo</surname> <given-names>E.</given-names></name> <name><surname>Tohka</surname> <given-names>J.</given-names></name> <name><surname>Sierra</surname> <given-names>A.</given-names></name></person-group> (<year>2019</year>). <article-title>Automated 3D axonal morphometry of white matter</article-title>. <source>Sci. Rep</source>. <volume>9</volume>:<fpage>6084</fpage>. <pub-id pub-id-type="doi">10.1038/s41598-019-42648-2</pub-id><pub-id pub-id-type="pmid">30988411</pub-id></citation></ref>
<ref id="B3">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Alexander</surname> <given-names>D. C.</given-names></name> <name><surname>Dyrby</surname> <given-names>T. B.</given-names></name> <name><surname>Nilsson</surname> <given-names>M.</given-names></name> <name><surname>Zhang</surname> <given-names>H.</given-names></name></person-group> (<year>2019</year>). <article-title>Imaging brain microstructure with diffusion MRI: practicality and applications</article-title>. <source>NMR Biomed</source>. <volume>32</volume>:<fpage>e3841</fpage>. <pub-id pub-id-type="doi">10.1002/nbm.3841</pub-id><pub-id pub-id-type="pmid">29193413</pub-id></citation></ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Altendorf</surname> <given-names>H.</given-names></name> <name><surname>Jeulin</surname> <given-names>D.</given-names></name></person-group> (<year>2011</year>). <article-title>Random-walk-based stochastic modeling of three-dimensional fiber systems</article-title>. <source>Phys. Rev. E Stat. Nonlin. Soft Matter Phys</source>. 83 (4 Pt 1):041804. <pub-id pub-id-type="doi">10.1103/PhysRevE.83.041804</pub-id><pub-id pub-id-type="pmid">21599195</pub-id></citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Andersson</surname> <given-names>M.</given-names></name> <name><surname>Kjer</surname> <given-names>H. M.</given-names></name> <name><surname>Rafael-Patino</surname> <given-names>J.</given-names></name> <name><surname>Pacureanu</surname> <given-names>A.</given-names></name> <name><surname>Pakkenberg</surname> <given-names>B.</given-names></name> <name><surname>Thiran</surname> <given-names>J.-P.</given-names></name> <etal/></person-group>. (<year>2020</year>). <article-title>Axon morphology is modulated by the local environment and impacts the noninvasive investigation of its structure-function relationship</article-title>. <source>Proc. Natl. Acad. Sci</source>. <volume>117</volume>, <fpage>33649</fpage>&#x02013;<lpage>33659</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.2012533117</pub-id><pub-id pub-id-type="pmid">33376224</pub-id></citation></ref>
<ref id="B6">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Andersson</surname> <given-names>M.</given-names></name> <name><surname>Pizzolato</surname> <given-names>M.</given-names></name> <name><surname>Kjer</surname> <given-names>H. M.</given-names></name> <name><surname>Skodborg</surname> <given-names>K. F.</given-names></name> <name><surname>Lundell</surname> <given-names>H.</given-names></name> <name><surname>Dyrby</surname> <given-names>T. B.</given-names></name></person-group> (<year>2022</year>). <article-title>Does powder averaging remove dispersion bias in diffusion MRI diameter estimates within real 3D axonal architectures?</article-title> <source>Neuroimage</source> <volume>248</volume>:<fpage>118718</fpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2021.118718</pub-id><pub-id pub-id-type="pmid">34767939</pub-id></citation></ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Arancibia-C&#x000E1;rcamo</surname> <given-names>I. L.</given-names></name> <name><surname>Ford</surname> <given-names>M. C.</given-names></name> <name><surname>Cossell</surname> <given-names>L.</given-names></name> <name><surname>Ishida</surname> <given-names>K.</given-names></name> <name><surname>Tohyama</surname> <given-names>K.</given-names></name> <name><surname>Attwell</surname> <given-names>D.</given-names></name></person-group> (<year>2017</year>). <article-title>Node of ranvier length as a potential regulator of myelinated axon conduction speed</article-title>. <source>Elife</source> <volume>6</volume>:<fpage>e23329</fpage>. <pub-id pub-id-type="doi">10.7554/eLife.23329</pub-id><pub-id pub-id-type="pmid">28130923</pub-id></citation></ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Balls</surname> <given-names>G. T.</given-names></name> <name><surname>Frank</surname> <given-names>L. R.</given-names></name></person-group> (<year>2009</year>). <article-title>A simulation environment for diffusion weighted MR experiments in complex media</article-title>. <source>Magn. Reson. Med</source>. <volume>62</volume>, <fpage>771</fpage>&#x02013;<lpage>778</lpage>. <pub-id pub-id-type="doi">10.1002/mrm.22033</pub-id><pub-id pub-id-type="pmid">19488991</pub-id></citation></ref>
<ref id="B9">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Basser</surname> <given-names>P. J.</given-names></name> <name><surname>Mattiello</surname> <given-names>J.</given-names></name> <name><surname>LeBihan</surname> <given-names>D.</given-names></name></person-group> (<year>1994</year>). <article-title>MR diffusion tensor spectroscopy and imaging</article-title>. <source>Biophys. J</source>. <volume>66</volume>, <fpage>259</fpage>&#x02013;<lpage>267</lpage>. <pub-id pub-id-type="doi">10.1016/S0006-3495(94)80775-1</pub-id><pub-id pub-id-type="pmid">8130344</pub-id></citation></ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Beaulieu</surname> <given-names>C.</given-names></name></person-group> (<year>2002</year>). <article-title>The basis of anisotropic water diffusion in the nervous system - a technical review</article-title>. <source>NMR Biomed</source>. <volume>15</volume>, <fpage>435</fpage>&#x02013;<lpage>455</lpage>. <pub-id pub-id-type="doi">10.1002/nbm.782</pub-id><pub-id pub-id-type="pmid">12489094</pub-id></citation></ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Brabec</surname> <given-names>J.</given-names></name> <name><surname>Lasi&#x0010D;</surname> <given-names>S.</given-names></name> <name><surname>Nilsson</surname> <given-names>M.</given-names></name></person-group> (<year>2020</year>). <article-title>Time-dependent diffusion in undulating thin fibers: impact on axon diameter estimation</article-title>. <source>NMR Biomed</source>. <volume>33</volume>:<fpage>e4187</fpage>. <pub-id pub-id-type="doi">10.1002/nbm.4187</pub-id><pub-id pub-id-type="pmid">31868995</pub-id></citation></ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Budde</surname> <given-names>M. D.</given-names></name> <name><surname>Frank</surname> <given-names>J. A.</given-names></name></person-group> (<year>2010</year>). <article-title>Neurite beading is sufficient to decrease the apparent diffusion coefficient after ischemic stroke</article-title>. <source>Proc. Natl. Acad. Sci. U. S. A</source>. <volume>107</volume>, <fpage>14472</fpage>&#x02013;<lpage>14477</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.1004841107</pub-id><pub-id pub-id-type="pmid">20660718</pub-id></citation></ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Callaghan</surname> <given-names>R.</given-names></name> <name><surname>Alexander</surname> <given-names>D. C.</given-names></name> <name><surname>Palombo</surname> <given-names>M.</given-names></name> <name><surname>Zhang</surname> <given-names>H.</given-names></name></person-group> (<year>2020</year>). <article-title>ConFiG: contextual fibre growth to generate realistic axonal packing for diffusion MRI simulation</article-title>. <source>Neuroimage</source> <volume>220</volume>:<fpage>117107</fpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2020.117107</pub-id><pub-id pub-id-type="pmid">32622984</pub-id></citation></ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Davalos</surname> <given-names>D.</given-names></name> <name><surname>Grutzendler</surname> <given-names>J.</given-names></name> <name><surname>Yang</surname> <given-names>G.</given-names></name> <name><surname>Kim</surname> <given-names>J. V.</given-names></name> <name><surname>Zuo</surname> <given-names>Y.</given-names></name> <name><surname>Jung</surname> <given-names>S.</given-names></name> <etal/></person-group>. (<year>2005</year>). ATP mediates rapid microglial response to local brain injury <italic>in vivo</italic>. <italic>Nat. Neurosci</italic>. <volume>8</volume>, <fpage>752</fpage>&#x02013;<lpage>758</lpage>. <pub-id pub-id-type="doi">10.1038/nn1472</pub-id><pub-id pub-id-type="pmid">15895084</pub-id></citation></ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Dyrby</surname> <given-names>T. B.</given-names></name> <name><surname>Innocenti</surname> <given-names>G. M.</given-names></name> <name><surname>Bech</surname> <given-names>M.</given-names></name> <name><surname>Lundell</surname> <given-names>H.</given-names></name></person-group> (<year>2018</year>). <article-title>Validation strategies for the interpretation of microstructure imaging using diffusion MRI</article-title>. <source>Neuroimage</source> <volume>182</volume>, <fpage>62</fpage>&#x02013;<lpage>79</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2018.06.049</pub-id><pub-id pub-id-type="pmid">29920374</pub-id></citation></ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Garland</surname> <given-names>M.</given-names></name> <name><surname>Heckbert</surname> <given-names>P. S.</given-names></name></person-group> (<year>1997</year>). <article-title>&#x0201C;Surface simplification using quadric error metrics,&#x0201D;</article-title> in <source>Proceedings of the 24th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH &#x00027;97</source> (ACM Press/Addison-Wesley Publishing Co.), <fpage>209</fpage>&#x02013;<lpage>216</lpage>. <pub-id pub-id-type="doi">10.1145/258734.258849</pub-id></citation>
</ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ginsburger</surname> <given-names>K.</given-names></name> <name><surname>Matuschke</surname> <given-names>F.</given-names></name> <name><surname>Poupon</surname> <given-names>F.</given-names></name> <name><surname>Mangin</surname> <given-names>J.-F.</given-names></name> <name><surname>Axer</surname> <given-names>M.</given-names></name> <name><surname>Poupon</surname> <given-names>C.</given-names></name></person-group> (<year>2019</year>). <article-title>MEDUSA: a GPU-based tool to create realistic phantoms of the brain microstructure using tiny spheres</article-title>. <source>Neuroimage</source> <volume>193</volume>, <fpage>10</fpage>&#x02013;<lpage>24</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2019.02.055</pub-id><pub-id pub-id-type="pmid">30849528</pub-id></citation></ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gottschalk</surname> <given-names>S.</given-names></name> <name><surname>Lin</surname> <given-names>M.</given-names></name> <name><surname>Manocha</surname> <given-names>D.</given-names></name></person-group> (<year>1997</year>). <article-title>OBBTree: a hierarchical structure for rapid interference detection</article-title>. <source>Comput. Graph</source> <volume>30</volume>:<fpage>237244</fpage>. <pub-id pub-id-type="doi">10.1145/237170.237244</pub-id></citation>
</ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hall</surname> <given-names>M. G.</given-names></name> <name><surname>Alexander</surname> <given-names>D. C.</given-names></name></person-group> (<year>2009b</year>). <article-title>Convergence and parameter choice for Monte-Carlo simulations of diffusion MRI</article-title>. <source>IEEE Trans. Med. Imaging</source> <volume>28</volume>, <fpage>1354</fpage>&#x02013;<lpage>1364</lpage>. <pub-id pub-id-type="doi">10.1109/TMI.2009.2015756</pub-id><pub-id pub-id-type="pmid">19273001</pub-id></citation></ref>
<ref id="B20">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hursh</surname> <given-names>J. B.</given-names></name></person-group> (<year>1939</year>). <article-title>Conduction velocity and diameter of nerve fibers</article-title>. <source>Am. J. Physiol. Legacy Content</source> <volume>127</volume>, <fpage>131</fpage>&#x02013;<lpage>139</lpage>. <pub-id pub-id-type="doi">10.1152/ajplegacy.1939.127.1.131</pub-id></citation>
</ref>
<ref id="B21">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jelescu</surname> <given-names>I. O.</given-names></name> <name><surname>Budde</surname> <given-names>M. D.</given-names></name></person-group> (<year>2017</year>). <article-title>Design and validation of diffusion MRI models of white matter</article-title>. <source>Front. Phys</source>. <volume>28</volume>:<fpage>61</fpage>. <pub-id pub-id-type="doi">10.3389/fphy.2017.00061</pub-id><pub-id pub-id-type="pmid">29755979</pub-id></citation></ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kjer</surname> <given-names>H. M.</given-names></name> <name><surname>Andersson</surname> <given-names>M.</given-names></name> <name><surname>He</surname> <given-names>Y.</given-names></name> <name><surname>Pacureanu</surname> <given-names>A.</given-names></name> <name><surname>Daducci</surname> <given-names>A.</given-names></name> <name><surname>Pizzolato</surname> <given-names>M.</given-names></name> <etal/></person-group>. (<year>2023</year>). <article-title>Bridging the 3D geometrical organisation of white matter pathways across anatomical length scales and species</article-title>. <source>eLife</source> 562488. <pub-id pub-id-type="doi">10.7554/eLife.94917.1</pub-id></citation>
</ref>
<ref id="B23">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Knight</surname> <given-names>W. A.</given-names></name> <name><surname>Kreitzer</surname> <given-names>N. P.</given-names></name></person-group> (<year>2020</year>). <article-title>&#x0201C;Traumatic brain injury,&#x0201D;</article-title> in <source>Emergency Department Critical Care</source>, eds. J. R. Shiber, and S. D. Weingart (<publisher-loc>Cham</publisher-loc>: <publisher-name>Springer International Publishing</publisher-name>), <fpage>393</fpage>&#x02013;<lpage>407</lpage>.</citation>
</ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Landman</surname> <given-names>B. A.</given-names></name> <name><surname>Farrell</surname> <given-names>J. A. D.</given-names></name> <name><surname>Smith</surname> <given-names>S. A.</given-names></name> <name><surname>Reich</surname> <given-names>D. S.</given-names></name> <name><surname>Calabresi</surname> <given-names>P. A.</given-names></name> <name><surname>van Zijl</surname> <given-names>P. C. M.</given-names></name></person-group> (<year>2010</year>). <article-title>Complex geometric models of diffusion and relaxation in healthy and damaged white matter</article-title>. <source>NMR Biomed</source>. <volume>23</volume>, <fpage>152</fpage>&#x02013;<lpage>162</lpage>. <pub-id pub-id-type="doi">10.1002/nbm.1437</pub-id><pub-id pub-id-type="pmid">19739233</pub-id></citation></ref>
<ref id="B25">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lee</surname> <given-names>H.-H.</given-names></name> <name><surname>Fieremans</surname> <given-names>E.</given-names></name> <name><surname>Novikov</surname> <given-names>D. S.</given-names></name></person-group> (<year>2021</year>). <article-title>Realistic microstructure simulator (RMS): Monte carlo simulations of diffusion in three-dimensional cell segmentations of microscopy images</article-title>. <source>J. Neurosci. Methods</source> <volume>350</volume>:<fpage>109018</fpage>. <pub-id pub-id-type="doi">10.1016/j.jneumeth.2020.109018</pub-id><pub-id pub-id-type="pmid">33279478</pub-id></citation></ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lee</surname> <given-names>H.-H.</given-names></name> <name><surname>Jespersen</surname> <given-names>S. N.</given-names></name> <name><surname>Fieremans</surname> <given-names>E.</given-names></name> <name><surname>Novikov</surname> <given-names>D. S.</given-names></name></person-group> (<year>2020</year>). <article-title>The impact of realistic axonal shape on axon diameter estimation using diffusion MRI</article-title>. <source>Neuroimage</source> <volume>223</volume>:<fpage>117228</fpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2020.117228</pub-id><pub-id pub-id-type="pmid">32798676</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lee</surname> <given-names>H.-H.</given-names></name> <name><surname>Yaros</surname> <given-names>K.</given-names></name> <name><surname>Veraart</surname> <given-names>J.</given-names></name> <name><surname>Pathan</surname> <given-names>J. L.</given-names></name> <name><surname>Liang</surname> <given-names>F.-X.</given-names></name> <name><surname>Kim</surname> <given-names>S. G.</given-names></name> <etal/></person-group>. (<year>2019</year>). <article-title>Along-axon diameter variation and axonal orientation dispersion revealed with 3D electron microscopy: implications for quantifying brain white matter microstructure with histology and diffusion MRI</article-title>. <source>Brain Struct. Funct</source>. <volume>224</volume>, <fpage>1469</fpage>&#x02013;<lpage>1488</lpage>. <pub-id pub-id-type="doi">10.1007/s00429-019-01844-6</pub-id><pub-id pub-id-type="pmid">30790073</pub-id></citation></ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mingasson</surname> <given-names>T.</given-names></name> <name><surname>Duval</surname> <given-names>T.</given-names></name> <name><surname>Stikov</surname> <given-names>N.</given-names></name> <name><surname>Cohen-Adad</surname> <given-names>J.</given-names></name></person-group> (<year>2017</year>). <article-title>AxonPacking: an Open-Source software to simulate arrangements of axons in white matter</article-title>. <source>Front. Neuroinform</source>. <volume>11</volume>:<fpage>5</fpage>. <pub-id pub-id-type="doi">10.3389/fninf.2017.00005</pub-id><pub-id pub-id-type="pmid">28197091</pub-id></citation></ref>
<ref id="B29">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Nehring</surname> <given-names>S. M.</given-names></name> <name><surname>Tadi</surname> <given-names>P.</given-names></name> <name><surname>Tenny</surname> <given-names>S.</given-names></name></person-group> (<year>2022</year>). <source>Cerebral Edema</source>. StatPearls Publishing. Available online at: <ext-link ext-link-type="uri" xlink:href="https://www.ncbi.nlm.nih.gov/books/NBK537272/">https://www.ncbi.nlm.nih.gov/books/NBK537272/</ext-link></citation>
</ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nilsson</surname> <given-names>M.</given-names></name> <name><surname>L&#x000E4;tt</surname> <given-names>J.</given-names></name> <name><surname>St&#x000E5;hlberg</surname> <given-names>F.</given-names></name> <name><surname>van Westen</surname> <given-names>D.</given-names></name> <name><surname>Hagsl&#x000E4;tt</surname> <given-names>H.</given-names></name></person-group> (<year>2012</year>). <article-title>The importance of axonal undulation in diffusion MR measurements: a monte carlo simulation study</article-title>. <source>NMR Biomed</source>. <volume>25</volume>, <fpage>795</fpage>&#x02013;<lpage>805</lpage>. <pub-id pub-id-type="doi">10.1002/nbm.1795</pub-id><pub-id pub-id-type="pmid">22020832</pub-id></citation></ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nimmerjahn</surname> <given-names>A.</given-names></name> <name><surname>Kirchhoff</surname> <given-names>F.</given-names></name> <name><surname>Helmchen</surname> <given-names>F.</given-names></name></person-group> (<year>2005</year>). <article-title>Resting microglial cells are highly dynamic surveillants of brain parenchyma <italic>in vivo</italic></article-title>. <source>Science</source> <volume>308</volume>, <fpage>1314</fpage>&#x02013;<lpage>1318</lpage>. <pub-id pub-id-type="doi">10.1126/science.1110647</pub-id><pub-id pub-id-type="pmid">15831717</pub-id></citation></ref>
<ref id="B32">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Novikov</surname> <given-names>D. S.</given-names></name> <name><surname>Fieremans</surname> <given-names>E.</given-names></name> <name><surname>Jespersen</surname> <given-names>S. N.</given-names></name> <name><surname>Kiselev</surname> <given-names>V. G.</given-names></name></person-group> (<year>2019</year>). <article-title>Quantifying brain microstructure with diffusion MRI: theory and parameter estimation</article-title>. <source>NMR Biomed</source>. <volume>32</volume>:<fpage>e3998</fpage>. <pub-id pub-id-type="doi">10.1002/nbm.3998</pub-id><pub-id pub-id-type="pmid">30321478</pub-id></citation></ref>
<ref id="B33">
<citation citation-type="web"><person-group person-group-type="author"><name><surname>Purves</surname> <given-names>D.</given-names></name> <name><surname>Augustine</surname> <given-names>G. J.</given-names></name> <name><surname>Fitzpatrick</surname> <given-names>D.</given-names></name> <name><surname>Katz</surname> <given-names>L. C.</given-names></name> <name><surname>LaMantia</surname> <given-names>A.-S.</given-names></name> <name><surname>McNamara</surname> <given-names>J. O.</given-names></name> <etal/></person-group>. (<year>2001</year>). <source>Neuroglial Cells</source>. Sinauer Associates. Available online at: <ext-link ext-link-type="uri" xlink:href="https://www.ncbi.nlm.nih.gov/books/NBK10869/">https://www.ncbi.nlm.nih.gov/books/NBK10869/</ext-link></citation>
</ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rafael-Patino</surname> <given-names>J.</given-names></name> <name><surname>Romascano</surname> <given-names>D.</given-names></name> <name><surname>Ramirez-Manzanares</surname> <given-names>A.</given-names></name> <name><surname>Canales-Rodr&#x000ED;guez</surname> <given-names>E. J.</given-names></name> <name><surname>Girard</surname> <given-names>G.</given-names></name> <name><surname>Thiran</surname> <given-names>J.-P.</given-names></name></person-group> (<year>2020</year>). <article-title>Robust Monte-Carlo simulations in Diffusion-MRI: Effect of the substrate complexity and parameter choice on the reproducibility of results</article-title>. <source>Front. Neuroinform</source>. <volume>14</volume>:<fpage>8</fpage>. <pub-id pub-id-type="doi">10.3389/fninf.2020.00008</pub-id><pub-id pub-id-type="pmid">32210781</pub-id></citation></ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sanders</surname> <given-names>F. K.</given-names></name> <name><surname>Whitteridge</surname> <given-names>D.</given-names></name></person-group> (<year>1946</year>). <article-title>Conduction velocity and myelin thickness in regenerating nerve fibres</article-title>. <source>J. Physiol</source>. <volume>105</volume>, <fpage>152</fpage>&#x02013;<lpage>174</lpage>. <pub-id pub-id-type="doi">10.1113/jphysiol.1946.sp004160</pub-id></citation>
</ref>
<ref id="B36">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Skoven</surname> <given-names>C. S.</given-names></name> <name><surname>Andersson</surname> <given-names>M.</given-names></name> <name><surname>Pizzolato</surname> <given-names>M.</given-names></name> <name><surname>Siebner</surname> <given-names>H. R.</given-names></name> <name><surname>Dyrby</surname> <given-names>T. B.</given-names></name></person-group> (<year>2023</year>). <article-title>Mapping axon diameters and conduction velocity in the rat brain-different methods tell different stories of the structure-function relationship</article-title>. <source>arXiv</source> [preprint]. <pub-id pub-id-type="doi">10.1101/2023.10.20.558833</pub-id></citation>
</ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sykov&#x000E1;</surname> <given-names>E.</given-names></name> <name><surname>Nicholson</surname> <given-names>C.</given-names></name></person-group> (<year>2008</year>). <article-title>Diffusion in brain extracellular space</article-title>. <source>Physiol. Rev</source>. <volume>88</volume>, <fpage>1277</fpage>&#x02013;<lpage>1340</lpage>. <pub-id pub-id-type="doi">10.1152/physrev.00027.2007</pub-id><pub-id pub-id-type="pmid">18923183</pub-id></citation></ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>T&#x000F8;nnesen</surname> <given-names>J.</given-names></name> <name><surname>Inavalli</surname> <given-names>V. V. G. K.</given-names></name> <name><surname>N&#x000E4;gerl</surname> <given-names>U. V.</given-names></name></person-group> (<year>2018</year>). <article-title>Super-Resolution imaging of the extracellular space in living brain tissue</article-title>. <source>Cell</source> <volume>172</volume>, <fpage>1108</fpage>&#x02013;<lpage>1121</lpage>.e15. <pub-id pub-id-type="doi">10.1016/j.cell.2018.02.007</pub-id><pub-id pub-id-type="pmid">29474910</pub-id></citation></ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Villarreal-Haro</surname> <given-names>J. L.</given-names></name> <name><surname>Gardier</surname> <given-names>R.</given-names></name> <name><surname>Canales-Rodr&#x000ED;guez</surname> <given-names>E. J.</given-names></name> <name><surname>Fischi-Gomez</surname> <given-names>E.</given-names></name> <name><surname>Girard</surname> <given-names>G.</given-names></name> <name><surname>Thiran</surname> <given-names>J.-P.</given-names></name> <etal/></person-group>. (<year>2023</year>). <article-title>CACTUS: a computational framework for generating realistic white matter microstructure substrates</article-title>. <source>Front. Neuroinform</source>. <volume>17</volume>:<fpage>1208073</fpage>. <pub-id pub-id-type="doi">10.3389/fninf.2023.1208073</pub-id><pub-id pub-id-type="pmid">37603781</pub-id></citation></ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Winther</surname> <given-names>S.</given-names></name> <name><surname>Lundell</surname> <given-names>H.</given-names></name> <name><surname>Rafael-Pati&#x000F1;o</surname> <given-names>J.</given-names></name> <name><surname>Andersson</surname> <given-names>M.</given-names></name> <name><surname>Thiran</surname> <given-names>J.-P.</given-names></name> <name><surname>Dyrby</surname> <given-names>T. B.</given-names></name></person-group> (<year>2023</year>). <article-title>Susceptibility-induced internal gradients reveal axon morphology and cause anisotropic effects in the dMRI signal</article-title>. <source>arXiv</source> [preprint]. <pub-id pub-id-type="doi">10.1101/2023.05.01.538981</pub-id></citation>
</ref>
</ref-list>
</back>
</article>