Skip to main content
Advertisement
  • Loading metrics

Simulation insights on the compound action potential in multifascicular nerves

  • Joseph James Tharayil ,

    Roles Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    tharayiljoe@gmail.com

    Affiliations Blue Brain Project, École Polytechnique Fédérale de Lausanne (EPFL) Campus Biotech, Geneva, Switzerland, Foundation for Research on Information Technologies in Society (IT’IS), Zurich, Switzerland

  • Ciro Zinno,

    Roles Investigation, Methodology, Writing – original draft

    Affiliation BioRobotics Institute, Sant’Anna School of Advanced Study, Pisa, Italy

  • Filippo Agnesi,

    Roles Investigation, Methodology

    Affiliation BioRobotics Institute, Sant’Anna School of Advanced Study, Pisa, Italy

  • Bryn Lloyd,

    Roles Investigation, Methodology

    Affiliation Foundation for Research on Information Technologies in Society (IT’IS), Zurich, Switzerland

  • Silvia Farcito,

    Roles Data curation, Investigation, Methodology

    Affiliation Foundation for Research on Information Technologies in Society (IT’IS), Zurich, Switzerland

  • Antonino Cassara,

    Roles Investigation, Methodology, Resources, Software, Supervision

    Affiliation Foundation for Research on Information Technologies in Society (IT’IS), Zurich, Switzerland

  • Niels Kuster,

    Roles Funding acquisition, Resources

    Affiliations Foundation for Research on Information Technologies in Society (IT’IS), Zurich, Switzerland, Federal Institute of Technology (ETH) Zurich, Zurich, Switzerland

  • Michael Reimann,

    Roles Supervision, Writing – review & editing

    Current address: Open Brain Institute, Lausanne, Switzerland

    Affiliation Blue Brain Project, École Polytechnique Fédérale de Lausanne (EPFL) Campus Biotech, Geneva, Switzerland

  • Silvestro Micera,

    Roles Conceptualization, Funding acquisition, Project administration, Resources, Supervision

    Affiliations BioRobotics Institute, Sant’Anna School of Advanced Study, Pisa, Italy, Translational Neuroengineering, EPFL Campus Biotech, Geneva, Switzerland

  • Esra Neufeld

    Roles Conceptualization, Formal analysis, Funding acquisition, Methodology, Project administration, Resources, Supervision, Writing – review & editing

    Affiliation Foundation for Research on Information Technologies in Society (IT’IS), Zurich, Switzerland

Correction

20 Jan 2026: The PLOS Computational Biology Staff (2026) Correction: Simulation insights on the compound action potential in multifascicular nerves. PLOS Computational Biology 22(1): e1013902. https://doi.org/10.1371/journal.pcbi.1013902 View correction

Abstract

We developed an extended reciprocity theorem approach to model neuron signals which handles heterogeneous dielectric environments and arbitrary electrode shapes, and use it to study analytically the single fiber action potential. We then established a semi-analytic model that also uses hybrid electromagnetic-electrophysiological simulations to model evoked compound action potential (eCAP) signals from multi-fascicular nerves populated with heterogeneous fiber populations. For validation, model predictions were compared with cuff electrode recordings of activity induced by vagus nerve stimulation in in vivo porcine experiments. The semi-analytic model produces signals that approximate the shape and amplitude of in vivo measurements. It can account for the important variation in the recorded eCAP due to changes in the shape and placement of the stimulus and recording electrodes. We find that partially activated fascicles contribute particularly to the signal, as eCAP contributions from smoothly varying fiber calibers in fully activated ones partially cancel. As a result, eCAP magnitude does not depend monotonically on the stimulation current and recruitment level. Our method can be used to rapidly assess new stimulation and recording setups involving complex nerves and neurovascular bundles, e.g., to maximize signal information content, for closed-loop control in bioelectronic medicine applications, and potentially to non-destructively reconstruct structural and functional nerve topologies through inverse problem solving. In a proof-of-concept study, we demonstrate that parameter optimization can recover the ground-truth distribution of fiber diameters in a simplifed variant of our model.

Author summary

The evoked compound action potential (eCAP) is the recorded neural signal that is generated by electrical stimulation. In the context of bioelectronic medicine and neuroprosthetics, the eCAP can be used for monitoring, control, and optimization of stimulation parameters. However, interpretation of the eCAP is non-trivial. In this paper, we develop a computational model of the eCAP in a porcine vagus nerve, and show that this model replicates experimental results. We demonstrate that interpretation of the eCAP is complicated by the structure of the vagus nerve; the signal is sensitive to both the degree to which nerve fibers in particular fascicles are activated, as well as the relative location of those fascicles with respect to the recording electrodes. Partially activated fascicles contribute particularly to the eCAP, while the contributions to the eCAP from individual nerve fibers partially cancel out in fully-activated fascicles, resulting in a non-monotonic dependence of the eCAP amplitude on the degree of fiber activation. A proof-of-concept shows that eCAPs can help infer otherwise inaccessible fiber population statistics crucial for targeted stimulation. In the future, our model may be useful in developing new vagus nerve stimulation and sensing devices and for closed-loop control.

1. Introduction

The compound action potential (CAP) is the electric signal that can be picked-up near a nerve and results from propagating axonal action potentials (APs) [1]. It can readily be recorded from a cuff electrode, making it valuable for neural code elucidation, neural sensing, and closed-loop control applications in the field of bioelectronic medicine (‘electroceuticals’, i.e., neural interfaces for regulating (organ-)physiological function, and neuroprosthetics). However, frequently only qualitative changes in, e.g., electrically evoked CAP (eCAP) magnitude are interpreted and the detailed eCAP shape and quantitative features are not leveraged. It is, for example, assumed that eCAP magnitude is monotonically related to the level of axonal recruitment [2].

Vagus nerve stimulation (VNS) is a promising bioelectronic medicine technique, which has already been approved for epilepsy and depression, and is under investigation for many other conditions [3]. Of particular interest are potential applications of VNS to cardiac disorders, including cardiac arrest, heart failure, and arrythmias [4].

The HORIZON 2020-funded NeuHeart project was launched with the aim of restoring autonomic control over cardiac function after heart transplantation with the help of a regenerative neural interface on the cardiac branch of the vagus nerve (VN), which both facilitates re-connection of the heart to the autonomic nervous system and permits to stimulate and regulate corresponding neural input [5]. NeuHeart also includes the development of a series of sensors for closed-loop stimulation control [6]. Computational modeling of implantable neural interfaces plays a central role in designing them, optimizing stimulation parameters, establishing model-based control strategies (where it is combined with an advanced cardiovascular regulation model [79]), and interpreting neural signals. eCAP signals are of interest to NeuHeart because 1) they can be used to validate model predictions on fiber recruitment by the implanted stimulation electrodes and 2) they could provide valuable additional feedback for closed-loop control.

Several computational models of the compound action potential have previously been developed. Wijesinghe et al. [1] developed an analytical approach for the calculation of the CAP signal, but it assumes that the axon and nerve are cylindrical and infinitely long, and surrounded by an infinite, homogeneous, and isotropic bath. This makes it impossible to study the impact of internal nerve structure (fascicles, perineurium, epineurium), anisotropy (high within fascicles), or electrode shape. Others have used FEM [10,11] or the boundary element method (BEM) [12] to overcome this problem, but these methods are computationally expensive, since the number of required simulations scales with the number of current sources.

Reciprocity-based approaches [13], which calculate the recorded voltage at each time step by taking the inner product of the membrane currents and a lead field that is produced by applying a virtual current between two recording electrodes, can be used to more efficiently calculate extracellular signals in realistic tissue models. While applications of the reciprocity theorem have in general focused on infinitesimal dipoles—a restriction which prevents the application to spatially extended sources such as nerve fibers or neurons with complex morphologies—the general reciprocity approach has been used previously to calculate the recorded CAP in the cochlea [14,15]. More recently, Eiber et al. [16] and Couppey et al. [17] developed Matlab- and Python-based pipelines, respectively, to calculate electrical-stimulus-evoked compound action potentials in peripheral nerves, using reciprocity-based approaches to simulate electrical recordings. BlueRecording [18], a set of tools integrated with NEURON, and Sim4Life (Zurich MedTech AG), a commercial FEM software package, also use reciprocity-based methods to simulate electrical recordings.

While these approaches are both efficient and accurate, without access to high-performance computing resources, it remains computationally infeasible to simulate the full number of nerve fibers (over 300,000 in the vagus nerve [19]) and their heterogeneity (myelinated/unmyelinated, different fiber diameter probability distributions across the nerve topology). Goldstein and Kiang [20] developed a simplified model of the CAP, where the CAP is the convolution of a firing rate function with the waveform of the single-fiber action potential (SFAP, i.e., the contribution to a recorded extracellular signal from by an action potential in a single fiber). Variations of this model have been applied, for example, to model the auditory nerve [2124], but they are limited by the assumption that the SFAP shapes all contribute in a similar manner to the CAP signal—thereby limiting the ability of these models to account for the sensitivity of the eCAP to recording electrode placement relative to the fibers—and by the need to empirically estimate the SFAP shape.

As an alternative to simulating fibers individually, Pe na et al. recently published a semi-analytic model of the eCAP [25], which leverages a similar approach to the one we introduced in [26]. This method involves calculating transmembrane currents during an action potential from a small number of fibers, convolving these currents with an “exposure function” that accounts for the lead field as well as for diameter-dependent SFAP amplitude and conduction velocity, and summing over the distribution of fiber diameters. Pe na et al. validated this approach in a model of the rat cervical vagus nerve. However, the rat vagus nerve, unlike that of the pig and the human, contains only a single fascicle. Moreover, Pe na et al. assume that all fibers in the model are activated by the stimulus. Here, we extended this approach to multi-fascicular nerves with realistic, heterogeneous afferent and efferent, myelinated and unmyelinated fiber populations and spatially varying diameter probability distributions and consider the effects of realistic recruitment curves on the recorded signal. We show that these factors critically influence the eCAP. This refined model is applicable to studying complex, multi-fascicular nerves and neurovascular bundles. The results were experimentally validated.

The goals of this study were to:

  • develop the extended reciprocity theorem approach as analytical basis for the accurate and efficient modeling of neural signals resulting from spatially extended neural activities in models of complex nerves with realistic neural interface designs;
  • build a realistic semi-analytic model of the cardiac VN to support the NeuHeart project;
  • compare predictions from that model against data from in vivo porcine experiments; and
  • leverage the developed methodologies to improve understanding of the eCAP signal.

More specifically, we stimulate the vagus nerve with the intrafascicular NeuHeart Vagal Regenerative Autonomic Interface (VRAI) electrode (Fig 1A1B, 1D1E, [27]) and record eCAP signals with a cuff electrode (Fig 1A1C, 1F). We compare eCAPs recorded in in vivo experiments in minipigs (Fig 1A1C) with in silico eCAPs calculated using our vagus nerve (Fig 1D1F).

thumbnail
Fig 1. In vivo and in silico experimental setups.

a: Incision site on the minipig. (adapted from [28] under a CC-BY 4.0 license). b: Schematic of the VN. c: Photo taken during surgery, showing the recording electrode on the VN. d-e: VN model with stimulation electrode in horizontal (d) and vertical (e) orientations. Note that the histology-based cross section topology likely differs from that of the experimentally stimulated nerve (different minipigs). In the horizontal orientation, the insulating substrate (green element in subpanel e) is not included, to avoid piercing fascicles. As all stimulus contacts (black rectangles) are active, this does not significantly influence the E-field. f: VN model with recording cuff electrode. Recording contacts (blue) are surrounded by insulation (green).

https://doi.org/10.1371/journal.pcbi.1013452.g001

2. Results

The results section of the paper is organized as follows: First, we fit analytical formulae to the relationship between fiber diameter and velocity, and between fiber diameter and stimulus threshold. Next, we present our analytical model of the SFAP, described in Sect 5.2.2, which predicts the SFAP as a function of action potential shape and propagation velocity, and of the recording electrode potential, all of which are calculated numerically. We validate the analytic model against other approaches in simplified dielectric environments. We then present a simplified analytical model, described in Sect 5.2.4, in which the action potential shape and recording electrode potential are approximated by closed-form functions. We analyze the relationship between the SFAP and the fiber diameter and inter-electrode spacing under these simplifying assumptions. Next, using realistic AP and lead-field shapes, we calculate the stimulus-triggered eCAP with a semi-analytic model (described in Sect 5.2.6), which predicts the eCAP based on numerically computed characteristics of fiber models (rather than the closed-form functions used in the analytical model), an electromagnetic (EM) simulation of current applied to the recording electrodes, histology derived distributions of different fiber populations, and fiber recruitment curves obtained through coupled EM-electrophysiologial simulations. We compare the results of our semi-analytic model to in vivo experimental results, and assess fascicular contributions to the eCAP as a function of stimulation and recording electrode geometry. Finally, we show that by optimizing the parameters of our semi-analytic model, we can recover the fiber diameter distribution in a nerve based on the recorded eCAP, thus solving the inverse problem.

2.1. Fitting of fiber model

For myelinated fibers, conduction velocity is proportional to diameter [29], while for unmyelinated fibers, conduction velocity is proportional to the square root of diameter [30]. These relationships were reproduced with the electrophysiological models used in this study (see Fig 2). For the myelinated fiber model, the proportionality constant was determined to be (determined for a 20 μm fiber). For the unmyelinated fiber model, the proportionality constant (based on a 0.8μm fiber). The width of the action potential (or more precisely, the width of a Gaussian fit to the action potential shape) is s for a myelinated fiber (Fig 2C) and s for an unmyelinated fiber (Fig 2D). For both myelinated and unmyelinated fibers, we confirmed that the stimulus threshold is proportional to (Fig 2C2D).

thumbnail
Fig 2. Properties of the fiber models used in this study.

a-d: Blue dots indicate data points extracted from electrophysiological simulations; orange lines indicate fits to theoretical relationships. First row: Fiber velocity depends linearly on diameter for myelinated fibers (panel a) and is proportional to the square root of velocity for unmyelinated fibers (panel b). Second row: Stimulus threshold is inversely proportional to fiber diameter for myelinated (panel c) and unmyelinated (panel d) fibers. Third row: The temporal shape of the AP does not vary significantly with diameter for myelinated fibers (panel e; light blue: m, dark blue: m) and for unmyelinated fibers (panel f; light blue: m, dark blue: m).

https://doi.org/10.1371/journal.pcbi.1013452.g002

2.2. Validation of the analytical model of the SFAP

According to the reciprocity theorem [13], the voltage signal (S) recorded between two electrodes resulting from a dipolar current source is related to the electric (E-)field that is generated at the dipole location by (virtually) applying a current J to the same electrodes:

(1)

For a neural fiber with a transmembrane current density i(l) along its length, and given that Eq 1 can be expressed (c.f. Sect 2.2) as the extended reciprocity theorem:

(2)

We call the “sensitivity function”; it represents the potential field that is generated by a virtual unit current applied to the recording electrodes. For an action potential that propagates with velocity v, the signal is given by:

(3)

The spatial profile of the transmembrane current, i(l), is proportional to the second derivative of the temporal profile of the transmembrane current. During an action potential, Eq 3 can be expressed (c.f. Sects 5.2.15.2.2) as:

(4)

where is the waveform (at a given location, as a function of time) of the transmembrane potential during an AP (Fig 2C2D), is a proportionality constant that depends on the fiber diameter and the electrical properties of the fiber, and ‘’ signifies convolution in time.

To validate our approach, we calculate the SFAP of a myelinated fiber using the point-source approximation in a large homogeneous environment (Fig 3A) and using the Sim4Life Neural Sensing Tool in a simplified nerve geometry (Fig 3D), and compare the results to the SFAP calculated using Eq 4, for which we calculate numerically and obtain and v numerically from a Rat [31] fiber model. The SFAP calculated using our method agrees well with that calculated using the point-source method (Fig 3B3C). In a simplified nerve model (Fig 3D), the SFAP calculated using our analytic method aligns well with that calculated using the Sim4Life Neural Sensing tool (Fig 3E3F; note that between 0.1 and 0.3 ms, Fig 3E shows a stimulus artifact which appears in the SFAP from the Neural Sensing Tool but not in the analytically-calculated SFAP). These verification benchmarks confirm the suitability and implementation of our analytic approach.

thumbnail
Fig 3. Verification of the analytical SFAP calculation.

a: Large homogeneous environment used for calculations in panel b. Locations of recording electrodes are marked by blue spheres (enlarged for visualization). b: SFAPs calculated in a large homogeneous volume using analytic method compared to reference result obtained using point-source approximation. c: Correlations between predicted and reference voltages in (b). The signals are in good agreement (R2 = 0.99, slope=0.97, intercept=10−13). The black line represents perfect agreement. d: Simplified nerve geometry used for the calculations in panel (e). e: SFAP calculated using the analytical method compared to the reference result obtained using the Sim4Life Neural Sensing tool. f: Correlations between predicted and reference voltages in (e). The signals agree well (R2 = 0.99, slope=0.98, intercept=2 10−10). The black line represents perfect agreement.

https://doi.org/10.1371/journal.pcbi.1013452.g003

The neural simulation requires ∼40 seconds to run in Sim4Life, for a single neuron. Simulating the entire vagus nerve, with over 300000 neurons, would therefore require 3000 core-hours. In comparison, simulating the nerve using the semi-analytic method requires 0.66 core-hours, thus providing a factor ×5000 speedup. Moreover, the point-source approximation cannot handle inhomogeneous dielectric environments, while our analytic approach readily does.

2.3. Analysis of SFAP shape using a simplified analytical model

To qualitatively analyze the analytical model in Sect 2.2, we approximate the shape of the action potential and of the sensitivity function from a monopolar electrode at position xc as Gaussians. The constants and , denote the amplitude and width, respectively, of the Gaussian approximation of the action potential, and , and xc the amplitude, width, and center of the Gaussian approximation of the sensitivity function. These approximations are only used for the analytical investigation reported in this section, in order to allow for a closed-form solution to the SFAP, while realistic shapes for the AP and sensitivity function are used elsewhere. We obtain

(5)

where (see Sect 5.2.4 for a full derivation). wc corresponds to the duration, in time, of the SFAP waveform recorded by a monopolar electrode at location xc. The spatial extent of the SFAP—that is, the maximal distance from xc where the SFAP can be recorded at the time when the SFAP at xc is at its peak—is given by , where v is the propagation velocity of the fiber.

Using Eq 5, we calculate the peak amplitude of the SFAP as a function of diameter. For the recording electrodes used in this study,  mm (Fig 4A). Propagation velocities v and AP width are calculated in Sect 2.1.

thumbnail
Fig 4. Analytical investigation of the properties and behavior of the SFAP in the simplified model.

a: Normalized sensitivity function from a bipolar electrode in a realistic nerve geometry (blue trace) and a Gaussian approximation of a bipolar sensitivity function at the same location (black trace). b, c: Action potential shapes from an unmyelinated (left) and myelinated (right) fiber model (blue traces) and Gaussian approximations of the action potential shapes (black traces). d-i: Results of the analytical investigation. d, e: The SFAP amplitude increases with diameter for unmyelinated fibers (left) but plateaus for the myelinated fibers (right). Light blue bars indicate realistic fiber diameter range. f, g: Distinct trimodal waveforms are apparent for sufficiently separated contacts in the bipolar recordings of an unmyelinated fiber (f; diameter: 1 μm, spacing: 1 cm) and a myelinated fiber (g; diameter: 10 μm, spacing: 1.5 cm). h,i: With decreasing contact separation, the two waveforms merge and a single tetramodal one results (h: unmyelinated fiber, 0.1 cm spacing; i: myelinated fiber, 0.5 cm spacing). As expected, it resembles the derivative of the original waveform (dashed).

https://doi.org/10.1371/journal.pcbi.1013452.g004

Because, for realistic unmyelinated fiber diameters, (c.f. Sect 5.2.4, Table 1), their SFAP contribution magnitude monotonously increases with diameter (Fig 4D). For myelinated fibers, whose velocity is linearly dependent on diameter, however, the contribution weight saturates for large fibers (Fig 4E).

thumbnail
Table 1. Velocity as a function of diameter (first column) and diameter d  at which , for mm, (second column) for myelinated and unmyelinated fibers.

Maximum amplitude of SFAP for myelinated and unmyelinated fibers, in general (third column) and in the two limit cases (AP extent much shorter or longer than electrode potential; fourth and fifth columns). .

https://doi.org/10.1371/journal.pcbi.1013452.t001

A bipolar electrode can be approximated as the combination of two monopolar contacts at positions xc,1 and xc,2. When the two electrodes are sufficiently separated they produce an SFAP that simply reflects the distinct arrival of the AP at the two electrodes and their opposite polarities (Fig 4F4G). However, once is in the same order of magnitude as wC, the two shapes start to overlap, which can result in fewer lobes. For unmyelinated fibers in the range of 0.1 to 4 μm, the velocity ranges from 0.15 to 1 m/s, which in combination with results in a spatial AP extent in the order of 1 mm (Fig 4H). For myelinated fibers in the range of 1 to 10 μm, the velocity ranges from 4.4 to 44 m/s, which in combination with results in the same spatial AP extent in the order of 1 mm (Fig 4I). This implies that an electrode separation of less than 1 mm will result in the merging of the SFAP waveforms. Because of the bimodal shape of ϕ in bipolar recordings, convolution with ϕ is akin to a finite difference derivative and produces a signal that resembles the first derivative of a monopolar recording (see Fig 4 and Sect 2.6).

2.4. Semi-analytic model replicates shape of in vivo eCAP

The NeuHeart VRAI stimulation electrode and a recording cuff electrode were implanted in the vagus nerve of minipigs (Fig 1A1C), and eCAPs evoked by various stimulus current levels were recorded. Details of the experimental procedure are provided in Sect 5.3.

To model the eCAP from the complete vagus nerve, we develop a semi-analytic model based on the SFAP from Eq 4. The model is described in detail in Sect 5.2.6. For each fascicle, we instantiate a population of fibers with a uniform diameter distribution. We define a “scaling function” (Fig 5D), where R is the fraction of fibers of diameter d that are activated at a given current level (Fig 5A), N is the number of fibers in the fascicle, and p is the density of fibers in the fascicle for diameter d (Fig 5B), v is the fiber velocity and η the prefactor from Eq 4 (Fig 5C).

thumbnail
Fig 5. Calculation of the contribution to the eCAP for myelinated afferent fibers from three representative fascicles.

a: Fraction of myelinated afferent fibers Ri(d) recruited as a function of diameter. b: Myelinated afferent fiber diameter distribution . c: Scaling of transmembrane currents as a function of fiber diameter. d: Scaling factor . e: Sensitivity function , plotted for diameters 3 μm (solid lines) and 3.1μm (dashed lines). f: Exposure function Xi(t) for each fascicle. Sum of scaled by the diameter-dependent factor over all diameters. g: Second derivative of the AP; identical to the transmembrane current up to a scaling factor (panel c). h: eCAP contribution; convolution of f and g.

https://doi.org/10.1371/journal.pcbi.1013452.g005

To calculate the recruitment we create a 2.5D finite element model of the vagus nerve by extruding a 2D segmented image created from a histological slice and inserting models of the stimulating and recording electrodes (Fig 1D). A population of fibers of uniform diameter d0 is instantiated in each fascicle, and activation thresholds are calculated using Sim4Life, for a biphasic stimulus pulse with all of the stimulation electrodes active. From these activation thresholds, we determine the recruitment curve R(d/d0,I), where I is the stimulus current amplitude (c.f. Sect 5.4.3).

To calculate the eCAP, we multiply the scaling function by the sensitivity function from our finite element model and reparameterized in terms of (Fig 5E) to produce an “exposure function” (Fig 5F), and convolve the exposure function with the second derivative of the transmembrane potential (Fig 5G), obtained from a NEURON simulation of a Rat [31] or Sundt [32] fiber, for myelinated and unmyelinated fibers, respectively. This procedure is equivalent to scaling the SFAP by recruitment and fiber density, but is more computationally efficient.

The semi-analytic model is able to replicate key features of the in vivo eCAP, as well as its magnitude. The overall shape of the in vivo eCAP (Fig 6A)—with an initial positive deflection, a negative deflection of similar width and magnitude, and a longer, lower-amplitude positive deflection—is reproduced by the model (Fig 6B). However, the second negative deflection at 5 ms is not reproduced. While the model replicates the saturation of the eCAP signal with increasing current, it does not replicate the difference in amplitude between the eCAP evoked at I = 100 μA and eCAPs evoked at greater amplitudes. The magnitude of the model eCAP is comparable to that of the in vivo signal.

thumbnail
Fig 6. The semi-analytic model replicates the in vivo eCAP.

a: In vivo eCAP recorded 6 cm from the stimulus electrode. A large stimulus artifact is visible from t=0 to t=0.6 ms (shaded area). b: Semi-analytic model eCAP recorded 6 cm from stimulus electrode.

https://doi.org/10.1371/journal.pcbi.1013452.g006

2.5. Fascicular contributions to eCAP cluster with degree of activation

To explore the influence of fiber activation on the eCAP, we reduce the stimulus amplitude to 31.25 μA, (i.e., 500 μA total current divided equally over the 16 electrodes), as larger amplitudes result in complete activation of the myelinated fibers in the model. The shape and amplitude of the fascicular contribution to the eCAP depend non-trivially on the degree of activation. For strongly activated fascicles (Fig 5A, blue curve), the exposure function Xi(t) (Fig 5E), and correspondingly, the eCAP (Fig 5H) produced by convolution with the transmembrane current (Fig 5G) are smooth. For fascicles with an intermediate degree of activation (Fig 5A, orange curve), the exposure function (Fig 5F) is non-smooth, resulting in a large-amplitude deflection in the eCAP at 3.5 ms (Fig 5H). The reason is that the absence of activated fibers below 3 μm prevents cancellation of the contributions of fibers above this threshold are not canceled out (see Sect 3.1).

As a result, the eCAP contributions from the individual fascicles are strongly correlated for fascicles with similar degrees of activation (Fig 7, Pearson product-moment correlation). The fascicles were clustered into three groups based on the correlations between their eCAP contributions, using k-means clustering. Fascicles in each cluster have similar spatial locations (Fig 7B), fractions of fibers activated (Fig 7C), recruitment curves (Fig 7D), and eCAP contributions (Fig 7E). Fascicles in the center of the nerve, close to the stimulus electrode, belong to one cluster with high activation, steep recruitment curves, and smooth eCAP contributions. In contrast, fascicles at the edges of the nerve, farther form the stimulus electrodes, have a lower activation fraction, and consequently, less smooth eCAP contributions.

thumbnail
Fig 7. Fascicular recruitment dominates the eCAP contribution shape.

a: Correlations between eCAP contributions of the different fascicles (stimulus amplitude: 31.25 μA). Three clusters, identified using k-means, are outlined (cluster color coding consistent throughout Figs 7 and 8). b: Cross section of the nerve, with fascicles colored by cluster. c: Fraction of myelinated fibers activated in each fascicle d: Cluster-colored recruitment curves for individual fascicles. e: Cluster-colored eCAP contributions for individual fascicles.

https://doi.org/10.1371/journal.pcbi.1013452.g007

The stimulus amplitude (I) dependent peak magnitude of the fascicular contributions to the eCAP follow a stereotyped pattern, rising to a maximum before decaying again and plateauing once recruitment reaches 100% (Fig 8A). This can be explained by the non-monotonic relationship between fiber activation and eCAP amplitude demonstrated in Fig 5. Consequently, the overall eCAP also fails to monotonically increase with fiber activation (Fig 8B). As expected, fascicles in the same cluster, (see above), have similar stimulus-eCAP amplitude relationships (Fig 8A).

thumbnail
Fig 8. eCAP magnitudes are non-monotonic with respect to recruitment.

a: Peak amplitude of the fascicular eCAP contributions, as a function of current. Curves for each fascicle are colored according to the clustering from Fig 7B: Peak amplitude of the total eCAP, as a function of stimulus current. c: As in a, but as a function of their degree of activation.

https://doi.org/10.1371/journal.pcbi.1013452.g008

2.6. Interactions between fascicular structure and stimulation and recording electrode geometry influence eCAP

We next generate a new finite element model with the stimulus electrode oriented along the minor axis of the nerve (Fig 9D), recompute the recruitment curves Ri(d), and run the semi-analytical model for this configuration. The insertion angle of the stimulus electrode with respect to the nerve has a substantial impact on the eCAP (Fig 9E), as changes in the distance and orientation of the stimulus contacts relative to the different fascicles substantially change the degree of fiber activation therein (Fig 9B, 9D).

thumbnail
Fig 9. Stimulus electrode orientation influences eCAP due to differential activation of fascicles.

a: Recruitment curves for selected fascicles, electrode inserted along the major axis of the nerve (stimulus amplitude: 31.25μA) b: Fraction of myelinated fibers activated for each fascicle (electrode trajectory highlighted with black line for visualization purposes only; selected fascicles from panel a are marked with correspondingly colored asterisks). c-d: Same as a-b, for electrode insertion along the minor axis of the nerve. e: Simulated eCAPs.

https://doi.org/10.1371/journal.pcbi.1013452.g009

We also generate new finite element models with the span of the recording electrode reduced, and with varying orientations of this smaller recording electrode (Fig 10C10E), in order to recompute the sensitivity function , and evaluate the semi-analytic model. As was the case for the stimulus electrode, the orientation and extent of the recording electrode with respect to the nerve influences the eCAP (Fig 10B), because the distance from the electrode to each fascicle (Fig 10C10E) has a significant effect on each fascicle’s sensitivity function (Fig 10A).

thumbnail
Fig 10. The size and placement of the recording electrode influences the eCAP due to differing fascicular sensitivities .

a: Sensitivity to activity in a selected fascicle (marked with red asterisk in panels c-e) for three different electrodes. b: Corresponding eCAP contributions. c-e: Peak-to-peak magnitude of sensitivity function, for each fascicle and recording electrode configuration.

https://doi.org/10.1371/journal.pcbi.1013452.g010

We next compare eCAPs recorded using two bipolar cuff electrodes to monopolar recordings using one of the cuff electrodes with a distant reference. Compared to monopolar recordings, bipolar ones with small recording contact separation correspond to a finite difference derivative, such that the number of signal phases with alternating polarity (‘lobes’) is increased by 1—for the simulated eCAP in Fig 11B the monopolar signal is approximately biphasic and the bipolar one triphasic. As the contact separation increases, this corresponds to coarsening and smoothing of the finite difference derivative. It results in reduced fluctuations and noise (Fig 11C), which potentially represents a loss in temporal information content. If the separation is increased further, the signal shape undergoes a complex transformation, until two distinct monopolar recording shapes emerge.

thumbnail
Fig 11. The recording configuration affects eCAPs recorded by a four contact cuff electrode (31.25 μA stimulus current).

a: Schematic of recording electrode. Blue and red arrows indicate proximal and distal monopolar recording electrodes. Black and purple brackets indicate pairs of recording electrodes with 9mm and 3mm separation, respectively. b: Monopolar recordings with the most proximal or the most distal contact (distant reference), plotted alongside a bipolar recording using both contacts (9 mm separation). c: Bipolar recordings using 9 vs. 3 mm separation.

https://doi.org/10.1371/journal.pcbi.1013452.g011

2.7. Inference of fiber characteristics

A key advantage of our model-based approach is the ability to draw inferences between the observed features of the eCAP and the underlying biology. A natural extension of our model, therefore, would be to leverage it in order to reconstruct the structural and functional organization of the nerve based on the in vivo eCAP signal. This can be accomplished using an optimization approach: by fitting parameters of our model in order to minimize a difference metric between the in silico and in vivo eCAPs, the biological values of those parameters can be estimated.

As a proof-of-concept, we attempt to recover the shape and scale parameters of the fiber diameter distribution for myelinated afferents, keeping the parameters for the myelinated efferents fixed, and ignoring (for computational efficiency, and without loss of generality) the unmyelinated fibers. Beginning with an arbitrary set of parameters, we optimize them such that the calculated eCAP matches the “ground-truth” eCAP (i.e., that in Fig 6B), for which we know the fiber diameter distribution. Our optimization approach is able to almost perfectly (L1 norm: ) reproduce the ground-truth eCAP (Fig 12A) after ∼200 iterations (Fig 12B). The distribution parameters obtained through optimization are nearly identical (Relative error: and for the shape and scale parameters, respectively) to the ground-truth parameters (Fig 12C12E).

thumbnail
Fig 12. Proof-of-concept of fiber population statistics inference from eCAP data. Optimization is able to recover ground-truth fiber distribution parameters.

a: Reference diameter distribution, and diameter distributions with initial and inferred (i.e., optimized) parameters. b: Reference eCAP and eCAPs obtained with initial and inferred (i.e., optimized) parameters. c: Difference metric between reference eCAP and eCAP with inferred parameters decreases sharply after ∼100 optimization iterations. d-e: Shape parameter (d) and scale parameter (e) converge to ground-truth values (indicated by blue line).

https://doi.org/10.1371/journal.pcbi.1013452.g012

3. Discussions

3.1. eCAP cancellation and partial nerve activation

Based on Eq (2), it can readily be shown that eCAP signal contributions subtly annihilate on the single fiber and fiber population level:

3.1.1. Single fiber:.

For propagating APs, Eq (2) can be restated as:

(6)

where i(t) and V(t) refer to the time dependent transmembrane current and voltage at reference location x = 0.

Different situations can be distinguished: If the AP’s spatial extent is much larger than that of a sensing electrode contact at location x0 (or, more precisely, that of its ϕ along the fiber; see as well Sect 2.3), S(t) reduces to:

(7)

which is proportional to the time-varying transmembrane current at the electrode location (see Sect 5.2.5 for full derivation). This is a common situation for myelinated fibers.

Similarly (see Sect 5.2.5), when the AP’s spatial extent is much shorter than that of the sensing electrode contact:

(8)

which is proportional to the recording electrode activating function [33] at the propagating location of the AP (i.e., S(t) does not reveal information about the its shape). In summary, unless the characteristic length scales of the recording electrode potential and the AP are comparable, zeroth and first order contributions vanish, and only small second order contributions remain. This is a consequence of the cancellation of the positive and negative lobes of , respectively .

3.1.2. Fiber population:.

Furthermore, additional signal cancellation occurs on the fiber population level, as the SFAP contributions consist of positive and negative lobes that mostly cancel out when integrated over time (apparent, e.g., when integrating over Eq (7) or (8)). The fiber-diameter dependent conduction velocity leads to shifted SFAP arrival times, such that low-order eCAP contributions from fiber populations with smoothly varying diameters cancel. Higher order, diameter-dependent contributions such as degree of recruitment, diameter probability density, and signal contribution scaling are primarily responsible for the eCAP signal. This can make the eCAP signal complex to interpret and sensitive to details of the topological fiber distribution and nerve anatomy.

We have shown that in many fascicles, a significant fraction of fibers, with small diameters, are not recruited (Fig 7C7D). In most fascicles, the recruitment curve is steep (Fig 7D). Because conduction velocity is proportional to fiber diameter, SFAPs from smaller diameter fibers arrive later than those of larger diameter fibers. When there is a sharp cutoff in the diameter of the recruited fibers, the SFAP contributions of the activated fibers above the cutoff are not compensated anymore. This leads to large-amplitude deflections in the portion of the eCAP associated with the arrival of APs from the fibers immediately above the cutoff (Fig 7E), which in turn results in non-monotonicity in the peak-to-peak amplitude of the eCAP as a function of stimulus current (Fig 8). To our knowledge, the impact of partial fascicular recruitment, have not been previously reported and critically influences the interpretation of the eCAP.

3.1.3. Inference of fiber properties.

We optimized the shape and scale parameters of the diameter distribution of myelinated afferent fibers in our model, while keeping those of efferents fixed, in order to minimize the difference between the modeled eCAP and a reference eCAP. Doing so, we were able to recover the parameters of the reference distribution (Fig 12). This example serves as a proof-of-concept for the use of similar optimization procedures on our model to recover fiber parameters from in vivo eCAP measurements. Such an approach may be useful in the development of personalized stimulation protocols, which may be able to target specific fiber populations, thus enhancing the effectiveness of VNS and minimizing side-effects.

When applying the procedure to in vivo data, it will naturally be necessary to optimize additional parameters, such as the fiber diameter statistics of all subpopulations. The necessity to consider a larger parameter space, as well as uncertainty about the model geometry, tissue properties, electrode contact, etc., complicate the optimization and could render the problem degenerate—multiple combinations of parameter values could lead to equally good solutions. This problem could be mitigated by the use of additional optimization criteria, such as, for example, eCAPs recruited at different stimulus current levels or measured from different pairs of electrodes.

3.2. Limitations and issues

3.2.1. Extended reciprocity theorem:.

The only assumption underlying the derivation of the extended reciprocity theorem is that the totality of the current sources cancel (i.e., charge is conserved). Besides the physical justification for that condition, it is also evident that dropping this condition results in a lack of well-definedness, as the measurable signal would become dependent on the chosen electric potential Gauge (i.e., changes S(t)).

By computing the current source density as proportional to the second derivative of the transmembrane potential , its integral becomes proportional to the difference between the spatial gradient of at the two terminals. If non-physical boundary conditions are used in the electrophysiology simulations or the multiplying potential ϕ is non-zero where the fiber model is truncated, care must be taken to include corresponding sinks to balance the current in the model.

3.2.2. Semi-analytical eCAP model:.

The semi-analytical nerve eCAP model makes several assumptions that may limit its applicability. We assume that the temporal shape of the AP is independent of diameter. While this assumption has been validated for the fiber models used in this study (Fig 2C2D), it may not hold in vivo. We further assume that there is no systematic or stochastic background nerve activity. The model must also be refined, when complex stimulation paradigms are applied, such as multi-polar pulse-shapes, pulse-trains with high repetition rates, or high stimulation intensities that result in conduction blocking and non-monotonous recruitment curves. Assuming a reciprocal dependence of stimulation thresholds on fiber diameter is not uniformly correct for all fiber types and stimulation exposure lengths [34]. When it fails to hold, recruitment curves must instead be determined for a population of fibers representative of their real distribution. We find that applying a Gaussian jitter to the recruitment threshold for each fiber smooths the eCAP (Section B in S1 Text, Fig A in S1 Text).

For myelinated fibers, transmembrane current is mostly restricted to Ranvier nodes. When the exposing potential ϕ varies significantly over the length-scale of inter-node distances, it could become necessary to account for the spatial discreteness of the transmembrane current sources (incl. their stochastic position variability) and to replace the second derivative in by its finite-difference equivalent, while adapting to compensate for the reduced current source extent.

The finite element model assumes perfect contact between the recording electrodes and the nerve, and does not account for capacitive effects or scar tissue formation due to the insertion of a foreign body. The generalizability of the finite element model is also limited by uncertainty about the dielectric tissue properties and the perineurium thicknesses.

In principle, a too-coarse sampling of fiber diameters would limit the validity of our results. However, we show that doubling the sampling density, from 2000 to 4000 discrete diameters, hardly affects the signal (Section C in S1 Text, Fig B in S1 Text).

3.2.3. Nerve topology differences between simulation and measurements and inter/intra-subject variability:.

In view of the sensitive dependence of the eCAP signal on details of the topological fascicle and fiber distribution, as well as the nerve anatomy, it is important to keep in mind that the porcine histological data was not acquired from the same animal as the eCAP data. Thus, important differences can be expected, complicating validation. In view of future therapeutic application, this raises the problem of how to deal with important inter/intra-subject variability of the vagus topology. The following approaches appear to be relevant: 1) include minimal inter/intra-subject variability in the criteria for implantation site selection, 2) develop non-invasive means of characterizing subject- and implantation-site-specific topologies and fiber distributions (potentially by analyzing eCAP or electrical impedance tomography (EIT) signals; c.f. [35]), or 3) leverage closed-loop control strategies to compensate for the response prediction uncertainty.

3.2.4. Impact of fiber model selection:.

In this work, we have used a single fiber model to represent both myelinated efferents and myelinated afferents. In reality, afferent and efferent fibers can have different properties, including action potential shapes and stimulus thresholds [36]. Given that sensory fibers have lower thresholds than motor fibers [36], and given that sensory and motor fibers are largely segregated in different fascicles, we expect that if we modeled these differences explicitly, then for a given current level, we would be more likely to observe differing degrees of activation of primarily sensory fascicles and primarily motor fascicles.

It is, however, difficult to test this prediction in silico, as the models of sensory and motor fibers described in [36] are valid only for fiber diameters above 4 μm, whereas a significant portion of myelinated fibers in our model are smaller than 4 μm. While these models have been extended to smaller-diameter fibers [16], this extrapolation has not been extensively validated against in vivo data.

3.3. Comparison with previous work

Our model differs from that of Pe na et al. [25] in key aspects: 1) It considers fiber recruitment and accounts for partial activation, which is revealed to be crucial in interpreting eCAP signals. 2) It studies multi-fascicular porcine VNs, rather than the monofascicular rabbit nerve. 3) It is amenable to analytical evaluation, which permits the establishment of the relationship between signal features and parameters of interest. A technical differences is our use of simulated transmembrane voltages vs. transmembrane currents, which avoids separate computations for different fiber diameters. In conclusion, these developments allow for application to complex, multifascicular nerves and neurovascular bundles, and avoid resorting to problematic simplifications, such as neglecting the diameter dependence of partial fascicular activation.

3.4. Future directions

We anticipate that our model can be used to solve the inverse problem of reconstructing the distribution of fiber diameters in a nerve. We have already shown that optimization can be used to recover the diameter distribution of a fiber population (Fig 12), thus demonstrating, at least in principle, that optimizing our model to match a ground-truth eCAP can reveal information about the underlying structure of the nerve. While the overall distribution of diameters is known, the relative fractions of each fiber type in each fascicle cannot be known for an individual. However, if the location of the fascicles can be reconstructed, for example using EIT, the fiber proportions in each fascicle might be obtained by optimizing the agreement between measured and modeled eCAP signal. Knowledge of the fiber type distribution over fascicles for an individual greatly facilitates the interpretation of eCAPs signals and could help maximize stimulation selectivity and targeting, e.g., in treatment planning.

4. Conclusions

We have developed an extended reciprocity theorem approach suitable for the efficient computation of signals resulting from spatially extended electrophysiological activity in complex anatomical and dielectric environments. It has been used to establish a simplified analytical SFAP model—revealing interesting differences between myelinated fiber and unmyelinated fiber SFAP behavior—and a semi-analytical eCAP model. Employing these modeling approaches, simulations of VNS and recording were performed that leverage histological information about the multifascicular VN anatomy and its fiber population statistics. The impact on eCAP shape and magnitude of varying stimulation amplitude and stimulus and recording electrode configuration was studied. The eCAP signal is revealed to be more complex than commonly assumed, because of factors such as cancellation effects on the single fiber and fiber population level, and partial fiber recruitment, causing strong signal contributions. This complexity on the one hand complicates signal interpretation, but on the other hand might offer the opportunity to maximize signal information content by adapting the eCAP recording setup to increase the sensitivity to the quantity- or features-of-interest. The analytical and semi-analytical model are valuable instruments for that purpose, as they help understand the impact of electrode geometry (e.g., contact separation, dimension, orientation, mono- vs. bipolar, location) on eCAP recordings. The ratio of the width of the AP to the extent of the potential associated with the electrode is revealed to be a key parameter.

Our methods can be used to rapidly assess new stimulation and recording setups involving complex nerves and neurovascular bundles, e.g., for closed-loop control in bioelectronic medicine applications. By optimizing model parameters to minimize error between simulated and reference eCAPs, our methods can also be used to recover information about nerve structure and functional organization based on recorded eCAP signals.

5. Methods

5.1. Ethics statement

The protocol for all animal studies (no. 76/2014 PR) was approved by the Animal Care Committee of the Italian Ministry of Health and complied with Italian law (D.lgs. 26/2014).

5.2. Mathematical model

5.2.1. Extended reciprocity theorem:.

The well known reciprocity theorem [13] states that the voltage signal S recorded between two electrodes resulting from a dipolar current source is related to the electric (E-)field generated at the dipole location by (virtually) applying a current J to the same electrodes:

(Eq 1 revisited)

Consequently, simulation-based predictions of the signals generated by a series of time-varying dipole sources at locations xj only require a single EM simulation of current applied to the sensing electrodes to evaluate .

We represent a neural fiber as a line with a transmembrane current density i(l) along its length. For simplicity, we will first consider discretized point current sources Ii, which can either represent the integrated current density over the i-th line segment of length , or the current leaving a Ranvier node separated by a distance from the next unmyelinated location on a myelinated fiber. It can be proven by induction that placing small dipolar sources between the locations xi and xi + 1 of two consecutive current sources separated by reproduces the series of current sources Ij (charge conservation ensures that the last current source at the terminal is correctly obtained). Applying the reciprocity theorem, we get:

which in the continuum limit becomes:

where the tangential field . Using integration by parts we obtain:

Using the definition of the electric potential, :

Because of current conservation, and the expression reduces to:

With , we obtain the extended reciprocity theorem:

(Eq 2 revisited)

We call the “sensitivity function”.

5.2.2. Analytical SFAP model:.

From the extended reciprocity theorem, it follows that the SFAP is the convolution in space of the transmembrane current with the extracellular potential along the neuron:

(Eq 3 revisited)

By Ohm’s law, a neuron’s axial current I is linked to its membrane potential by , where ri is the axial resistance per unit length. Taking the derivative with respect to x, . By current conservation, , where i is the transmembrane current per unit length. Thus, . Intracellular resistivity ρ is related to ri by , where d is neuronal diameter. Thus, the trans-membrane current per unit length for a particular fiber type (index τ) can be obtained as , where , is the axial conductance of an axon (which is assumed to be constant over the length of the axon), is the transmembrane voltage (distinguished by the subscript x from the temporal transmembrane potential ), and d is its diameter ([37,38], see Sect 3.2.2 regarding myelinated fibers).

Thus,

where is the extracellular potential generated by the recording electrodes, normalized to the applied current, and v is the conduction velocity.

If is the transmembrane potential along the fiber, then, for at t = 0, , where , obtained at x = 0, is the profile of the AP in time that has the benefit of only being weakly fiber diameter dependent. For convenience, we define t = 0 to coincide with the peak of . Thus, , where the important diameter dependence enters through v(d). With a change of variables , we can express this convolution in the time domain:

(Eq 4 revisited)

where ‘’ signifies convolution in time.

5.2.3. Verification:.

We verify our implementation of the analytical model of the SFAP as follows: First, we compare the results of the analytical SFAP calculation to the point source approximation. In Sim4Life, we generate a block sized . A model of a rat sciatic nerve fiber [31] with diameter 4 μm and length 300 mm is placed inside the block. Two spherical recording electrodes, each with radius 1 mm, representing point electrodes, are placed inside the block. AN LF-EM QS simulation was executed, applying Dirichlet boundary conditions of to the recording electrodes. In postprocessing, the current applied between the electrodes is calculated by interpolating current flux over a virtual sphere surrounding one of the electrodes.

Using the Sim4Life T-NEURO module, an action potential was triggered in the fiber model by an IClamp Point Process, with amplitude 10 nA and duration 0.2 ms, placed in internode 0. Transmembrane currents and potentials at all segments were recorded at 100 evenly-spaced sampling times using an Overall Line Sensor. The T-NEURO simulation was run for 30 ms with a time step of 0.0025 ms. For each of the two electrodes, the SFAP was calculated using the point-source approximation , where refers to a summation over all compartments in the model, is the location of the i-th compartment, and is the location of the electrode. The difference between the two potentials was calculated and compared to the SFAP calculated using Eq 4.

Next we compare the results of the analytic SFAP model to those of the Sim4Life Neural Sensing Tool. In Sim4Life, we place a model of a rat sciatic nerve fiber [31], 100 mm in length and 20 μm in diameter, in the center of a cylindrical volume of the same length and 2.5 mm in diameter. Two crescent-shaped recording electrodes, with a length 2 mm and thickness 0.5 mm, are placed around the cylinder. The recording electrodes are separated by 10 mm, and the proximal electrode is 60 mm from the start of the nerve fiber. AN LF-EM QS simulation was executed as described above.

A neural simulation was conducted as described previously. Transmembrane currents and potentials at all segments were recorded at 100 evenly-spaced sampling times for 2 ms using an Overall Line Sensor. The SFAP was calculated using Sim4Life’s Neural Sensing tool, and compared to the SFAP calculated using Eq 4.

5.2.4. Gaussian approximation:.

We simplify the analytical model in Sect 2.2 by approximating the shape of the action potential and of the sensitivity function as Gaussians. The AP shape is parameterized as and the potential near a local monopolar electrode is parameterized by . The constants , , and define the amplitude and the width of these Gaussians. We note that these approximations are used only for the analytical investigation described in this section in order to allow for a closed-form solution to the SFAP, and not for the semi-analytical investigations described elsewhere. A bipolar electrode can be approximated as the combination of two monopolar contacts: .

Taking the time Fourier transform of Eq 4, we obtain

and through inverse Fourier transform we recover the SFAP.

Using the above equation, and assuming (monopolar) Gaussian shapes for and , we obtain:

(Eq 5 revisited)

where is the temporal Gaussian width after convolution and evidently the characteristic time-scale of the recorded signal. The SFAP shape corresponds to the typical peak between two side-lobes of opposite polarity—a result of the second derivative in Eq 4—that peaks at —the time it takes to reach the recording electrode. The peak magnitude is:

Two limit cases of the Gaussian approximation model are of interest: When (i.e., the AP extent is much larger than the region to which the sensing electrode is sensible), the temporal width and the amplitude becomes . When , the temporal width and the amplitude becomes (Table 1). For the recording electrodes used in this paper,  mm (Fig 4A). For the myelinated fiber model used in this study, and s (Fig 2A, 2C). For the unmyelinated fiber model, and s (Fig 2B, 2D). Thus, for the unmyelinated fiber model, realistic fiber diameters are in the regime—the theoretical diameter d  at which is >100 μm. For myelinated fibers, however, 4.7 μm, which is comparable in scale to the diameters of the relevant fiber population, such that their eCAP contribution show a more complex d dependence in terms of magnitude, but also shape (see Sect 3.1).

5.2.5. Limit cases:.

For propagating APs, Eq 3 can be expressed as:

(Eq 6 revisited)

If the AP’s spatial extent is much larger than that of a sensing electrode contact at location x0 (or, more precisely, that of its along the fiber; see as well Sect 2.3), can through Taylor expansion be approximated to second order as:

...

.

This is a common case for myelinated fibers. By partial integration:

At sufficiently remote terminals xs and xe, and , such that S(t) reduces to:

(Eq 7 revisited)

For the converse case, when the spatial extent of the AP is much shorter than that of the electrode potential, a similar analysis shows that can be approximated as:

(Eq 8 revisited)

To obtain this result, we substitute , expand around to second order, and consider that .

5.2.6. Semi-analytical eCAP model:.

In a real nerve, a large number of fibers are simultaneously active. To determine the resulting eCAP signal, their SFAP contributions must be combined. Because of the linearity of Maxwell’s equations, simple additive combination can be used. To avoid simulating SFAPs from each fiber in the nerve, we construct the eCAP based on a representative SFAP per fiber type (index τ): myelinated afferents and efferents, and unmyelinated afferents and efferents. The representative SFAP is interpolated from a neuronal simulation as described in Sect 5.4.3; the Gaussian approximation described in Sect 5.2.4 is not used in the semi-analytical model. Electrophysiologically, afferents and efferents are assumed to be identical (but c.f. Sect 3.2.4).

For each fascicle (index i), we consider 2000 fibers of each fiber type, with uniformly spaced diameters from 0.1 to 15 μm. Each SFAP is scaled by the fiber diameter density (: number of fibers of the given type, : diameter probability distribution) and the degree of fascicle recruitment (Fig 5A5B). Note that implicitly depends on the stimulation magnitude and pulse shape.

The fiber number is a random variable drawn from distributions (obtained by [19] based on in vivo data) which are dependent on the location of the fascicle within the nerve (myelinated afferents and efferents are localized on opposite sides of the nerve, and unmyelinated efferents are colocalized with myelinated afferents), and scaled by the area of the fascicle. For details on the calculation of , see Sect 5.4.3.

In multifascicular nerves, the different fascicles are separated by semi-insulating perineurium, such that within fascicle i the along fiber trajectories is similar for all fibers, but the eCAP contributions must be computed using different for the different fascicles (Fig 5E).

Thus, the eCAP is given by

(9)

where is the second temporal derivative of the transmembrane potential during the action potential, is the fascicle “exposure function”, defined as and is the width of the discretized fiber diameter bins (Section C in S1 Text). We assume that all recruited fibers fire at the same time, and that all action potentials are initiated at the same location along the fiber.

5.3. Experimental data acquisition

This study involved five healthy adult male Göttingen minipigs (Ellegaard Göttingen Minipigs A/S, Dalmose, Denmark; average body weight of 35 kg). The animals were premedicated with Zoletil (10 mg/kg) and Stressnil (1 mg/kg). Anesthesia was induced with propofol (2 mg/kg intravenously) and maintained with 1% to 2% sevoflurane in air enriched with 50% oxygen during mechanical ventilation [39][40]. To prevent dehydration, each animal received a continuous infusion of 500 mL of sodium chloride (0.9%) solution throughout the experiments. A longitudinal incision followed by a sternotomy was performed, and blunt dissection was used to expose the VN at both the cervical and thoracic levels.

The NeuHeart Vagal Regenerative Autonomic Interface (VRAI) electrode [27], which is a transversal, intrafascicular, multichannel electrode (TIME) featuring eight contacts on each side was inserted in the cardiac branch of the VN for stimulation purposes, and a cuff electrode with four ring contacts was placed at a distance of 6  cm from the stimulation electrode to record eCAP signals. Varying stimulation intensities (100 to 500 ), active contacts, and pulse repetition rates (1 to 50 Hz) were applied. The experimental presented in this paper have all contacts active, and use a 50 Hz pulse repetition rate. Note that in our simulations, we do not model the effect of pulse repetition. Stimulus-triggered averaging was used to reduce noise in the in vivo eCAPs.

Differential recordings from the four channels commercial cuff electrode (World Precision Instruments, Sarasota, FL, USA) were acquired using a TDT system (Tucker Davis Technologies; Alachua, FL, USA), with a sampling rate of 24k samples/s. Each recording session was composed of 10 s baseline activity, followed by 1 min VNS, and 1 min of washout.

In this work, we use a bipolar recording configuration, in which we measure the differential signal between two cuff electrodes. Bipolar recordings correspond to the finite difference derivative of the corresponding monopolar recordings (Fig 11, Sect 2.6). As such, they contain more information than a single monopolar recording—the difference between two monopolar recordings (Fig 11) can increase the visibility of information about the diameters of activated fibers, which is reflected in the different shapes of the signals at the two contacts due to differences in propagation velocity. The use of a bipolar recording configuration also reduces noise in the signal, by allowing for common-mode rejection (artifacts, such as EMG activity, which are detected at identical amplitudes at both contacts, do not appear in the differential signal because they cancel out).

5.4. Realistic, multifascicular nerve model

To demonstrate the application of the extended reciprocity theorem and of the semi-analytical modeling in a realistic setup, we modeled the experimental setup from Sect 5.3.

5.4.1. Anatomical and electrode geometry:.

A 2D cross section of the pig VN was segmented from a histology slice, a model of the stimulating VRAI and the recording cuff electrode was integrated, and the tissue contours were extruded to produce a 2.5D model.

We simulate two different orientations of the stimulation electrode, one in which the electrode is oriented along the major axis of the nerve (Fig 1D) and one in which it is oriented along the minor axis (Fig 1E). The geometry of the VRAI is somewhat simplified for computational efficiency: the shape of the VRAI is simplified to a rectangle outside of the nerve; the return electrode is moved down the shank of the substrate, closer to the nerve, and the contacts are modeled as squares rather than circles. To simulate the electrode placement along the major axis of the nerve, the insulating substrate is excluded, in order to prevent the electrode from piercing any of the fascicles. As all of the contacts, on both sides of the electrode, are active in our simulation, the exclusion of the substrate does not have a significant effect on the resulting E-field.

The cuff electrode consists of four contacts, each with a thickness of 125 μm, and with 3mm inter-contact spacing. The contacts are surrounded by an insulating material. Both the contacts and the insulation extend around the majority of the circumference of the nerve; the entire area of the cuff is used as a recording contact (Fig 1F). In addition to the large recording electrode, we also, separately, simulate two configurations in which the recording electrodes cover a much smaller portion of the nerve circumference (Fig 10C10D); the position of the recording electrode is changed between these two configurations.

For reasons of computational efficiency, the stimulating and recording electrodes are simulated separately, on the basis of the assumption that the presence of the recording electrode does not have a significant effect on the electric fields produced by the stimulating electrode, and vice versa.

5.4.2. EM modeling:.

The complete model was discretized, and the Sim4Life Electro-Ohmic Quasi-Static (EQS) solver was used to calculate potentials and E-fields resulting from an electrical stimulus applied at the VRAI electrodes and from a virtual current applied at the cuff electrodes.

The finite element simulation solves the equation , where σ is the electrical conductivity distribution and is the electric potential, from which the E-field is obtained as and the current density as . This approximation is suitable, as ohmic currents dominate over displacement currents and the simulation domain is much smaller than the wavelength in tissue [41]. Material properties were assigned to all tissues and materials according to Table 2, including the anisotropy of the intrafascicular endoneurium (tensorial σ). Thin resistive layer settings were assigned to patches at the interfaces between fascicles and the interfascicular tissue with a thickness computed as 3 % of the fascicle’s equivalent diameter [42].

thumbnail
Table 2. Tissue conductivities.

For anisotropic endoneurium, the longitudinal and transversal conductivities are listed.

https://doi.org/10.1371/journal.pcbi.1013452.t002

As described in Sect 5.2.6, the sensitivity function is calculated for each fascicle, by interpolating the potential field obtained from the finite element simulation along the fascicle center-line. The interpolated potential field is post-processed to ensure that it reaches 0 at the ends of the nerve. At each end of the curve, we identify the point having a predefined minimal slope. We linearize the curve from this point, until the intersection with the line , after which is set to 0.

5.4.3. Neuronal dynamics simulations:.

The temporal profile of the AP was obtained from a multicompartmental simulation in Sim4Life of a rat myelinated sensory-motor neuron [31,44] and a Sundt unmyelinated neuron [32], for myelinated and unmyelinated fibers, respectively.

The recruitment Ri for a given stimulus waveform is calculated as follows: In our finite element model of the VN, we instantiate a population of myelinated fibers with uniform diameter m in each fascicle and a unmyelinated population with m. For each fascicle, a recruitment curve was generated by titrating simulated VRAI field induced nerve activation. Titrations were performed using a single pulse, as the highest in vivo pulse repetition rate used in this study, 50 Hz, is well below the frequency at which pulse repetition rate influences threshold (c.f. Section A in S1 Text). Thanks to the ∼ diameter-dependence of fiber stimulation thresholds, can be recast as diameter-dependent Ri(d) for a given stimulus of intensity I according to .

Fiber electrophysiology simulations were executed within Sim4Life v8.0 using the T-Neuro module, which couples the EM solver with Yale’s NEURON [45]. Reference simulations to obtain shapes of the AP were performed with an axon diameter of 20 μm for myelinated fibers and 0.8 μm for unmyelinated fibers, using a time-step of 0.0025 ms. Simulations performed with myelinated and unmyelinated diameters of 10 μm and 0.4 μm, respectively,confirmed that the shape of the AP is independent of fiber diameter (Fig 2C-D). For neural titration simulations, for unmyelinated fibers and for myelinated fibers.

As discussed in Sect 5.2.6, SFAPs for each of the sampled diameters are rescaled and summed to synthesize the eCAP. Rescaling is appropriate, because the temporal AP shape only weakly depends on d (see Fig 2C2D). For myelinated fibers, conduction velocity is proportional to fiber diameter , while for unmyelinated fibers, it is proportional to the square root of fiber diameter ([46,47]; see Fig 2A2B).

5.5. Inverse problem solving

To investigate the suitability of the eCAP and our modeling approach for inferring fiber population statistics (diameter distribution), a proof-of-concept study was conducted. Using the semi-analytic model, we generate “ground-truth” eCAPs from known fiber diameter distributions. We then use the mesh_adaptive_search method in the Dakota software package to optimize the shape and scale parameters of the fiber diameter distribution of the myelinated afferent fiber subpopulation in our computational model, beginning with an arbitrary set of parameters. During optimization, Dakota iteratively calls our Python implementation of the in silico eCAP prediction for the assessed parameter configuration. The objective function to be minimized is the L1 norm between the in silico and reference signals: , where V is the in silico signal, is the reference signal, and the index i refers to each time step.

5.6. Implementation and code availability

The image-based nerve model construction was performed in Sim4Life v7.2 (ZMT Zurich MedTech AG, Switzerland) The EM simulations, fiber functionalization, electrophysiology simulations, and extraction of quantities-of-interest were performed in Sim4Life v8.0.

The semi-analytic model was run on a Windows desktop: parallelizing over 8 cores and using 64 GB of RAM, each simulation of the vagus nerve, for a single set of stimulus and recording parameters, requires 5 minutes. Finite element models were run on a Windows server with a 2.30 GHz, 32-core Xeon E5-4610 CPU and 512 GB RAM. Only one core was used. Neural simulations were run on a similar server, using 55 cores.

The finite element models used in this paper are accessible at https://osparc.io/#/study/e03935d2-79a5-11ef-8269-0242ac174ae0 and at https://zenodo.org/records/15848037. The code used to run the semi-analytic model and make the figures are available at https://github.com/joseph-tharayil/vagusNerve. The code used to run the optimization procedure is available at https://github.com/joseph-tharayil/vagusOptimization.

Supporting information

S1 Text. Investigations on model assumptions.

https://doi.org/10.1371/journal.pcbi.1013452.s001

(PDF)

References

  1. 1. Wijesinghe RS, Gielen FL, Wikswo JP Jr. A model for compound action potentials and currents in a nerve bundle. I: the forward calculation. Ann Biomed Eng. 1991;19(1):43–72. pmid:2035910
  2. 2. Gupta I, Cassará AM, Tarotin I, Donega M, Miranda JA, Sokal DM, et al. Quantification of clinically applicable stimulation parameters for precision near-organ neuromodulation of human splenic nerves. Commun Biol. 2020;3(1):577. pmid:33067560
  3. 3. Yuan H, Silberstein SD. Vagus nerve and vagus nerve stimulation, a comprehensive review: part II. Headache. 2016;56(2):259–66. pmid:26381725
  4. 4. Capilupi MJ, Kerath SM, Becker LB. Vagus nerve stimulation and the cardiovascular system. Cold Spring Harb Perspect Med. 2020;10(2):a034173. pmid:31109966
  5. 5. Agnesi F, Zinno C, Strauss I, Dushpanova A, Casieri V, Bernini F, et al. Cardiovascular response to intraneural right vagus nerve stimulation in adult minipig. Neuromodulation: Technology at the Neural Interface. 2023.
  6. 6. Zinno C, Agnesi F, D’Alesio G, Dushpanova A, Brogi L, Camboni D, et al. Implementation of an epicardial implantable MEMS sensor for continuous and real-time postoperative assessment of left ventricular activity in adult minipigs over a short- and long-term period. APL Bioeng. 2024;8(2):026102. pmid:38633836
  7. 7. Haberbusch M, Frullini S, Moscato F. A numerical model of the acute cardiac effects provoked by cervical vagus nerve stimulation. IEEE Trans Biomed Eng. 2022;69(2):613–23. pmid:34357860
  8. 8. Haberbusch M, Kronsteiner B, Kramer A-M, Kiss A, Podesser BK, Moscato F. Closed-loop vagus nerve stimulation for heart rate control evaluated in the Langendorff-perfused rabbit heart. Sci Rep. 2022;12(1):18794. pmid:36335207
  9. 9. Haberbusch M, Neufeld E. From models to heartbeats: computational design of vagus nerve stimulation for cardiac health. [cited 2023 October 18]. https://www.physiology.org/detail/event/2023/10/18/default-calendar/webinar-series-from-models-to-heartbeats-computational-design-of-vagus-nerve-stimulatio
  10. 10. Smets H, Stumpp L, mont N, Cury J, Debelle A, Innocenti B, et al. Analysing vagus nerve spontaneous activity using finite element modelling. J Neural Eng. 2021;18(5).
  11. 11. Triantis IF, Demosthenous A. Tripolar-cuff deviation from ideal model: assessment by bioelectric field simulations and saline-bath experiments. Med Eng Phys. 2008;30(5):550–62. pmid:17689281
  12. 12. Hayami T, Iramina K, Chen X, Sunagawa K. Simulation study on the effect of fiber loss to the compound action potential of a sural nerve. Annu Int Conf IEEE Eng Med Biol Soc. 2007;2007:2396–9. pmid:18002476
  13. 13. Plonsey R. Reciprocity applied to volume conductors and the ECG. IEEE Trans Biomed Eng. 1963;10:9–12. pmid:14059530
  14. 14. Briaire JJ, Frijns JHM. Unraveling the electrically evoked compound action potential. Hear Res. 2005;205(1–2):143–56. pmid:15953524
  15. 15. Westen AA, Dekker DMT, Briaire JJ, Frijns JHM. Stimulus level effects on neural excitation and eCAP amplitude. Hear Res. 2011;280(1–2):166–76. pmid:21664959
  16. 16. Eiber CD, Payne SC, Biscola NP, Havton LA, Keast JR, Osborne PB, et al. Computational modelling of nerve stimulation and recording with peripheral visceral neural interfaces. J Neural Eng. 2021;18(6):10.1088/1741-2552/ac36e2. pmid:34740201
  17. 17. Couppey T, Regnacq L, Giraud R, Romain O, Bornat Y, Kolbl F. NRV: An open framework for in silico evaluation of peripheral nerve electrical stimulation strategies. PLoS Comput Biol. 2024;20(7):e1011826. pmid:38995970
  18. 18. Tharayil JJ, Blanco Alonso J, Farcito S, Lloyd B, Romani A, Boci E, et al. BlueRecording: a pipeline for the efficient calculation of extracellular recordings in large-scale neural circuit models. PLoS Comput Biol. 2025;21(5):e1013023. pmid:40408328
  19. 19. Jayaprakash N, Song W, Toth V, Vardhan A, Levy T, Tomaio J, et al. Organ- and function-specific anatomical organization of vagal fibers supports fascicular vagus nerve stimulation. Brain Stimul. 2023;16(2):484–506.
  20. 20. Goldstein MH Jr, Kiang NY-S. Synchrony of neural activity in electric responses evoked by transient acoustic stimuli. The Journal of the Acoustical Society of America. 1958;30(2):107–14.
  21. 21. Gu D, Gander RE, Crichlow EC. Determination of nerve conduction velocity distribution from sampled compound action potential signals. IEEE Trans Biomed Eng. 1996;43(8):829–38. pmid:9216155
  22. 22. Miller CA, Abbas PJ, Rubinstein JT. An empirically based model of the electrically evoked compound action potential. Hear Res. 1999;135(1–2):1–18.
  23. 23. Alamri Y, Jennings SG. Computational modeling of the human compound action potential. J Acoust Soc Am. 2023;153(4):2376. pmid:37092943
  24. 24. van Gendt MJ, Briaire JJ, Frijns JHM. Effect of neural adaptation and degeneration on pulse-train ECAPs: a model study. Hear Res. 2019;377:167–78. pmid:30947041
  25. 25. Peña E, Pelot NA, Grill WM. Computational models of compound nerve action potentials: efficient filter-based methods to quantify effects of tissue conductivities, conduction distance, and nerve fiber parameters. PLoS Comput Biol. 2024;20(3):e1011833. pmid:38427699
  26. 26. Tharayil J, Farcito S, Lloyd B, Newton T, Zinno C, Agnesi F, et al. A computational model of porcine vagus nerve stimulation and compound action potential sensing for enhanced closed-loop cardiac control. 2024.
  27. 27. Strauss I, Agnesi F, Zinno C, Giannotti A, Dushpanova A, Casieri V, et al. Neural stimulation hardware for the selective intrafascicular modulation of the vagus nerve. IEEE Trans Neural Syst Rehabil Eng. 2023;31:4449–58. pmid:37917519
  28. 28. Flisikowska T, Egli J, Flisikowski K, Stumbaum M, Küng E, Ebeling M, et al. A humanized minipig model for the toxicological testing of therapeutic recombinant antibodies. Nat Biomed Eng. 2022;6(11):1248–56. pmid:36138193
  29. 29. Ikeda M, Oka Y. The relationship between nerve conduction velocity and fiber morphology during peripheral nerve regeneration. Brain Behav. 2012;2(4):382–90. pmid:22950042
  30. 30. Matsumoto G, Tasaki I. A study of conduction velocity in nonmyelinated nerve fibers. Biophys J. 1977;20(1):1–13. pmid:901899
  31. 31. Raspopovic S, Capogrosso M, Micera S. A computational model for the stimulation of rat sciatic nerve using a transverse intrafascicular multichannel electrode. IEEE Trans Neural Syst Rehabil Eng. 2011;19(4):333–44. pmid:21693427
  32. 32. Sundt D, Gamper N, Jaffe DB. Spike propagation through the dorsal root ganglia in an unmyelinated sensory neuron: a modeling study. J Neurophysiol. 2015;114(6):3140–53. pmid:26334005
  33. 33. Rattay F. Analysis of models for external stimulation of axons. IEEE Trans Biomed Eng. 1986;10:974–7.
  34. 34. Newton T, Ordonez J, Neufeld E, Kuster N. ID: 2210 13 optimizing spinal cord stimulation using a novel Green’s function-based generalized activating function. Neuromodulation: Technology at the Neural Interface. 2023;26(4):S44.
  35. 35. Chapman CAR, Aristovich K, Donega M, Fjordbakk CT, Stathopoulou T-R, Viscasillas J, et al. Electrode fabrication and interface optimization for imaging of evoked peripheral nervous system activity with electrical impedance tomography (EIT). J Neural Eng. 2019;16(1):016001. pmid:30444215
  36. 36. Gaines JL, Finn KE, Slopsema JP, Heyboer LA, Polasek KH. A model of motor and sensory axon activation in the median nerve using surface electrical stimulation. J Comput Neurosci. 2018;45(1):29–43. pmid:29946922
  37. 37. Spach MS, Barr RC, Serwer GA, Kootsey JM, Johnson EA. Extracellular potentials related to intracellular action potentials in the dog Purkinje system. Circ Res. 1972;30(5):505–19. pmid:5026754
  38. 38. Plonsey R, Barr RC. Bioelectricity: a quantitative approach. 3rd ed. New York: Springer; 2007.
  39. 39. Ferraro D, D’Alesio G, Camboni D, Zinno C, Costi L, Haberbusch M, et al. Implantable fiber bragg grating sensor for continuous heart activity monitoring: ex-vivo and in-vivo validation. IEEE Sensors J. 2021;21(13):14051–9.
  40. 40. Lionetti V, Romano SL, Bianchi G, Bernini F, Dushpanova A, Mascia G, et al. Impact of acute changes of left ventricular contractility on the transvalvular impedance: validation study by pressure-volume loop analysis in healthy pigs. PLoS One. 2013;8(11):e80591. pmid:24260431
  41. 41. Bossetti CA, Birdno MJ, Grill WM. Analysis of the quasi-static approximation for calculating potentials generated by neural stimulation. J Neural Eng. 2008;5(1):44–53. pmid:18310810
  42. 42. Grinberg Y, Schiefer MA, Tyler DJ, Gustafson KJ. Fascicular perineurium thickness, size, and position affect model predictions of neural excitation. IEEE Trans Neural Syst Rehabil Eng. 2008;16(6):572–81. pmid:19144589
  43. 43. Hasgall P, Di Gennaro F, Baumgartner C, Neufeld E, Lloyd B, Gosselin M, et al. IT’IS database for thermal and electromagnetic parameters of biological tissues..
  44. 44. Schwarz JR, Eikhof G. Na currents and action potentials in rat myelinated nerve fibres at 20 and 37 degrees C. Pflugers Arch. 1987;409(6):569–77. pmid:2442714
  45. 45. Hines ML, Carnevale NT. NEURON: a tool for neuroscientists. Neuroscientist. 2001;7(2):123–35. pmid:11496923
  46. 46. Matsumoto G, Tasaki I. A study of conduction velocity in nonmyelinated nerve fibers. Biophys J. 1977;20(1):1–13. pmid:901899
  47. 47. Waxman SG, Bennett MV. Relative conduction velocities of small myelinated and non-myelinated fibres in the central nervous system. Nat New Biol. 1972;238(85):217–9. pmid:4506206