bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.07.10.737529

golgi: an open-source graphical platform for image-to-recruitment modeling of peripheral nerve stimulation

Abstract

Computational models of peripheral nerve stimulation--coupling finite-element bioelectric fields to biophysical axon models--have become essential for designing electrodes and waveforms for neuromodulation therapies. Yet the established open tools are code-first and assume substantial modeling expertise, and several depend on commercial finite-element solvers, placing realistic nerve modeling out of reach for many experimentalists and clinicians. We present golgi, an open-source platform that takes a peripheral nerve from image to stimulated fiber population through a single graphical interface, with an equivalent scriptable Python API and command-line interface for batch studies. golgi integrates the full pipeline: image segmentation (or import of surfaces or masks), automated multi-region tetrahedral meshing, anisotropic finite-element solution of the extracellular field with explicit perineurium contact impedance, generation of realistic fiber populations and their three-dimensional trajectories (straight, or curved via a quasi-static streamline solver), and biophysical activation thresholds through interchangeable NEURON and a GPU-accelerated surrogate backend. We demonstrate golgi on extruded multifascicular swine and human cervical vagus nerves and on real three-dimensional, branching human and rabbit vagus nerves reconstructed from micro-computed tomography. It reproduces the physiological fiber-diameter recruitment order, quantifies fascicular selectivity and current steering with a multi-contact cuff electrode, and resolves anatomically defined nerve branches. Using this branch resolution, we find that selectively engaging a vagal cardiac branch from a proximal cuff depends on anatomy. In the rabbit, whose cardiac fibers are predominantly small and whose superior cardiac branch forms a discrete, spatially segregated tract, current steering isolates even its small cardiac (B-type) fibers; in the human cervical vagus only the large myelinated fibers are separable, because the high thresholds of the small cardiac fibers force stimulus currents that also recruit off-target fibers. Every study can be exported as an integrity-hashed, self-contained bundle whose finite-element-to-recruitment provenance is verifiable byte-for-byte with a single command--a reproducibility guarantee absent from existing tools. By combining non-specialist usability, anatomical realism, and verifiable reproducibility in one open package, golgi lowers the barrier to in-silico peripheral nerve stimulation modeling. golgi is freely available as open-source software. Author summaryElectrical stimulation of peripheral nerves treats a growing range of conditions, from epilepsy to inflammatory and cardiovascular disease. Deciding where to place an electrode and how to shape the stimulus increasingly relies on computer models that combine the electric field around the electrode with detailed models of how individual nerve fibers respond. We found that existing software for this is powerful but primarily designed for expert modelers: it generally requires programming, substantial modeling expertise, and sometimes expensive commercial software, which can limit its adoption by experimentalists and clinicians. We built golgi to remove that barrier. With golgi, a user can go from a nerve image all the way to predicted fiber recruitment through a single point-and-click interface, while advanced users keep full scripting control. golgi builds anatomically realistic nerve models, simulates how different fiber types and fascicles are recruited, and lets users compare electrode designs. Using golgi, we also found that whether a small but clinically important nerve branch--such as the cardiac branch of the vagus nerve--can be selectively stimulated depends on its anatomy. In a rabbit nerve, where this branch forms a discrete, spatially separated bundle and its fibers are mostly small, even its small fibers can be targeted from a cuff on the main trunk; in the human, only the large fibers can be reached selectively, because the small cardiac fibers are harder to excite and the stronger currents needed to reach them also activate off-target fibers. Critically, every result can be packaged so that anyone else can verify it reproduces exactly--making peripheral nerve stimulation models easier to build, share, and trust.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Lung, D., Jia, Y., Blumer, R., Reissig, L., Zopf, L. M., Heimel, P., Kraus, C., Moro, A., Fachino, M., Haberbusch, M.. 2026-07-13. golgi: an open-source graphical platform for image-to-recruitment modeling of peripheral nerve stimulation. https://doi.org/10.64898/2026.07.10.737529

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Wall stiffening is a primary contributor to motility loss in Crohn's disease: an electromechanical modeling study

Fibrotic strictures are among the most disabling complications of Crohn's disease, permanently narrowing the bowel and impairing motility, yet no approved therapy reverses them. Chronic inflammation alters pacemaker-network coupling, smooth-muscle excitability, and calcium-dependent contractility, while fibrosis thickens the bowel wall, narrows the lumen, and changes tissue mechanics. The relative contributions of these coupled electrical, contractile, and structural alterations to motility loss remain unclear. To address this gap, we develop an integrated electromechanical finite-element framework for fibrostenosing Crohn's disease that couples a fibrosis-driven growth model with a FitzHugh-Nagumo electromechanical model. A full-factorial 25 design of experiments is used to quantify the relative effects of electrical diffusivity, excitation threshold, peak active stress, wall stiffness, and hypertrophic remodeling on cyclic lumen-volume deformation. Motility is quantified by the standard deviation of lumen volume over one contraction cycle. Within the parameter ranges examined, increased wall stiffness emerged as the dominant contributor to motility loss, followed by impaired smooth-muscle contractility. Changes in excitation threshold, hypertrophic remodeling, and electrical diffusivity produced substantially smaller effects. Pairwise interactions were small relative to the dominant main effects, indicating that the mechanisms contributed largely through their individual effects. Our findings suggest that limiting wall stiffening while preserving smooth-muscle contractile function may provide a therapeutic strategy for maintaining intestinal motility in fibrostenosing Crohn's disease.

bioengineering↗

Lactate Receptor Activation Alleviates Senescence and Preserves Homeostasis of Aged Arteries

Arteries are among the first tissues to exhibit age-related dysfunction, yet the metabolic mechanisms driving vascular senescence remain poorly understood. Here, analysis of human aortic transcriptomic data identified HCAR1, encoding the lactate receptor GPR81, as one of the genes most significantly downregulated with age. We therefore investigated whether age-associated loss of GPR81 contributes to cellular senescence within the vessel wall. Senescent human endothelial cells and vascular smooth muscle cells accumulated neutral and oxidized lipids and exhibited increased labile iron and ferroptosis. Silencing GPR81 in early-passage cells recapitulated this metabolic phenotype together with multiple hallmarks of cellular senescence. Moreover, endothelial-specific deletion of GPR81 in young mice was sufficient to induce senescent cell accumulation, impaired lipid homeostasis, endothelial dysfunction, and elastin disorganization. Conversely, pharmacological activation of GPR81 with the agonist CHBA restored fatty acid metabolism, promoted glycolytic reprogramming, and attenuated ferroptotic stress and senescence-associated phenotypes. In lamin A knock-in (LAKI) progeroid mice, CHBA reduced arterial lipid accumulation and cellular senescence, shifted vascular cell composition toward a youthful state, improved endothelial integrity, and restored extracellular matrix homeostasis. Together, these findings identify age-associated loss of GPR81 as a driver of vascular metabolic dysfunction and cellular senescence and establish pharmacological GPR81 activation as a promising therapeutic strategy for preserving vascular homeostasis and mitigating age-associated cardiovascular disease.

bioengineering↗

Targeted and bilateral blood flow monitoring in middle cerebral artery using diffuse correlation spectroscopy

Objective: To develop and validate a dual-probe Diffuse Correlation Spectroscopy (DCS) system for non-invasive and simultaneous, monitoring of cerebral blood flow (CBF) in the bilateral Middle Cerebral Artery (MCA) territories, and expanding the utility of conventional DCS limited to cortical-volume-based CBF measurements to vessel-specific cerebral perfusion monitoring. Methods: A dual-probe DCS system was designed for non-invasive monitoring of MCA-specific perfusion. Probe placement and protocol optimization study has been performed using anatomical landmarks, motor and speech activation tasks in healthy volunteers. System stability and repeatability were further evaluated in a pilot cohort of 30 healthy (age, 25{+/-}7 years) participants using optimized probe position and protocol. A bilateral MCA ischemic Lacunar Infract stroke case report also validated the feasibility of the system in clinical settings. Results: Measurements demonstrated superior sensitivity towards MCA-territory perfusion at targeted probe locations compared to off-MCA positions. In pilot cohort, significant increase of 30.34 {+/-} 21.56% and 36.48 {+/-} 21.22% in rCBF corresponding to hand squeeze and speech task respectively showed reproducible physiological responsiveness of the system (p<0.001). Measurement done on a patient with bilateral MCA ischemic Lacunar Infract stroke showed a significant change of 30% during speech for both the MCAs but no significant change is observed for hand squeeze tasks. Conclusion: The custom built dual-probe DCS system enables non-invasive, operator-independent, targeted and continuous monitoring of rCBF within bilateral MCA territories. Significance: This approach enables the potential use of DCS system for bilateral and vessel-specific monitoring of cerebral perfusion in the MCA territories.

bioengineering↗