Skip to main content
Advertisement
  • Loading metrics

Automating population construction and parallel simulation of biophysical models for neuromuscular cells: An inverse approach

  • Hojeong Kim

    Roles Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Resources, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    hojeong.kim03@gmail.com

    Affiliations Division of Biomedical Technology, DGIST, Daegu, Republic of Korea, Department of Interdisciplinary Studies, DGIST, Daegu, Republic of Korea

Abstract

Biophysical modeling and simulation help to promote a comprehensive understanding of the neuromuscular mechanisms underlying muscle force generation and control in normal and pathological states. However, this process is labor intensive and limited to special conditions due to the heterogeneity of neuromuscular cells and the variability in their organization across body parts and ages. We present a methodology to resolve this issue. First, we formulate a building-block approach with an inverse modeling framework for automated population construction and tractable hierarchical analysis under various physiological conditions. Second, we devise a network folder-based approach with a virtual environment technique for efficient parallel simulation that can operate on a multicore computer, a supercomputing system, or a computer network through the internet. Third, we implement the methodology by developing open-source command-line software called pNMS. Finally, we demonstrate that pNMS can replicate experimental and simulation results from different environments and predict the population behaviors of neuromuscular cells depending on their organization and muscle length. With an intuitive, flexible application programming interface, this software tool may offer a solution for promoting efficient investigation and an in-depth understanding of neuromuscular function at cellular resolution under realistic scenarios.

Author summary

Determining model parameters is challenging in biophysical modeling and simulation of neuromuscular systems at cellular resolution. Optimization of model parameters is typically performed to replicate input-output data observed in target neuromuscular cells. Yet, this forward approach becomes labor-intensive and nearly impractical as the number of neuromuscular cells increases, and their properties vary according to body parts, activity, aging, and disease. This study proposes a methodology based on an inverse modeling framework and a network folder technique for automating cell population construction and parallel simulation under various computer systems. The methodology is implemented as an open-source command-line software tool called pNMS to promote easy use with fewer codes. We predict the population behaviors of neuromuscular cells under various their organization and muscle length. This study offers a solution for accelerating basic research on neuromuscular function, classroom education, and engineering for motor rehabilitation.

Introduction

Motoneurons in the brainstem and spinal cord, along with their innervating muscle fibers, are the primary cells of the neuromuscular system that determine the muscle force required to generate proper movement of body part [1]. In this neuromuscular system, a few to hundreds of motoneurons directly connect to a single muscle comprising tens to thousands of muscle fibers [2]. The smallest functional structure underlying muscle force control is the motor unit, a single motoneuron and the muscle fibers it innervates [3]. Therefore, to fully understand the functioning of the neuromuscular system, both the neural and muscular mechanisms need to be investigated at the cellular level in an integrative framework.

The neural and muscular systems are typically studied separately. For motoneurons, morphological and electrophysiological experiments have revealed cell-specific properties in both passive and active mechanisms underlying firing behavior [4], as well as their systematic variations across the motoneuron population [5,6]. Similarly, for muscles, cellular and whole muscle studies have reported a range of cell-specific properties for both passive and active mechanisms mediating force generation [79], as well as their systematic variations across the muscle fiber population [6,10]. These studies highlighted the nonlinear behavior and heterogeneous properties of motoneurons and muscle fibers in the neuromuscular system. Furthermore, the organization of these primary cells has been shown to vary widely depending on multiple factors, such as body region [11], activity [12], aging [13], and disease [14]. However, experimentally unraveling whether and how these cellular properties contribute to behaviors at different levels of the neuromuscular system remains challenging.

Computer modeling and simulation have been employed to address this fundamental issue. Biophysically informed computational models for motoneurons can fall into two categories—full [15] and reduced [16] modeling approaches—depending on the inclusion of anatomical dendritic structures. Both modeling approaches have faithfully replicated the nonlinear firing behavior of motoneurons, incorporating cell-specific properties characterized under various experimental conditions. Moreover, reduced modeling approaches have shown greater computational efficiency and analytical analysis by applying mathematical tools such as nonlinear dynamical systems theory [16].

For muscles, mathematical modeling approaches have been used to model and simulate muscle force production at the cellular [1719] and whole muscle [7,20,21] levels. Cellular models based on chemical reactions have been developed for microscopic relationships between calcium dynamics, actin‒myosin interactions, and force production during isometric contractions. In contrast, whole muscle models based on Hill mechanics have focused on macroscopic relationships among force, stimulation frequency, and muscle length. A modular framework unifying these muscle models has demonstrated the full spectrum of muscle fiber behaviors under physiological conditions [22,23].

Population models are typically constructed with three types of neuromuscular cells: slow (S), fast but fatigue resistive (FR), and fast but fatigable (FF) [2]. However, the intrinsic properties of motoneurons and muscle fibers have been shown to vary continuously across the neuromuscular system [3]. Furthermore, most motor unit population models have included a simple mathematical muscle model that is not appropriate for incorporating changes in the cellular properties and muscle length [24]. Hence, previous population modeling approaches should be extended to reflect the continuum variation in intrinsic cell properties observed in the neuromuscular system.

One challenge in empirically based simulations is determining model parameters that replicate various experimental observations under different experimental conditions. This issue has been addressed by numerically optimizing multiple model parameters to reproduce a set of target cell outputs in response to representative stimulation protocols [25]. However, this forward approach has raised practical issues as the number of target parameters and the amount of data increase, including significant reductions in convergence efficiency, model stability, parameter uniqueness, and simulation accuracy.

As an alternative, an inverse modeling framework has been proposed to overcome these issues by inferring and constraining effective model parameters directly from essential cell properties measured under various experimental conditions rather than cell outputs [26,27]. This inverse approach has proven useful in constructing biophysically plausible neuronal models that capture the systematic variation in cell-specific properties across the pool of spinal motoneurons [28,29]. However, population models for motoneurons remain manually constructed for a typical case and are simulated via specific software, which often requires additional programming for parallel simulation. As a result, the utility of computer modeling and simulation is limited by the current labor-intensive, time-consuming process, especially in terms of customization and analysis for various normal and abnormal situations in the neuromuscular system across body parts and ages.

To address this current issue, we propose a methodology that facilitates the development and simulation of motor behavior models of the neuromuscular system at single-cell resolution. We develop the methodology through the following steps:

  1. 1) A building-block approach combined with an inverse modeling framework is formulated to automatically construct population models and perform tractable hierarchical analyses from subcellular activities to population behaviors.
  2. 2) A network folder-based approach combined with a virtual environment technique is developed for efficient simulation in various parallel computing systems, such as a multicore computer and a high-performance computing cluster.
  3. 3) An open-source command-line software tool called pNMS is developed to verify our methodology by replicating the experimental and simulation results obtained in different environments.
  4. 4) Using pNMS, the methodology is validated by predicting the input‒output functions experimentally characterized in skeletal muscles at various muscle lengths.

Finally, we discuss potential applications, limitations, and future directions for the current version of pNMS presented in this study.

Methods

Inverse modeling framework

Biophysical cell models were used as building blocks to model a neuromuscular system at cellular resolution (Fig 1). This building-block approach allows hierarchical construction and tractable analysis of population models for neuromuscular cells, including motoneurons (MNs), muscle–tendon fibers (MTs), and motor units (MUs).

thumbnail
Fig 1. Model description.

A. Schematic diagram of a typical experimental setting for primary neuromuscular cells. The upper panel shows a spinal cord cross-section with an intracellular microelectrode and an axonal electrostimulator. The lower panel shows a longitudinal section of the muscle‒tendon complex connected with a force transducer (FT) for force (F) measurement and an electric motor (EM) for length (Xm) control in series and an intramuscular electrode. The empty spheres and solid lines in the spinal cord indicate the motoneurons and their axons. The solid thin and thick lines in the muscle‒tendon complex represent muscle fibers and tendons. The connections between a single motoneuron and muscle fibers (i.e., muscle unit) forming a motor unit are represented as filled circles in the muscle‒tendon complex. The blue, green, and red colors indicate the S-, FR-, and FF-type motor units, respectively. B. Canonical model of a single motor unit. The upper and lower panels show the two-compartment model of the motoneuron and the three-modular model of the muscle‒tendon unit. Two empty spheres represent the soma and dendrites in the motoneuron model. The solid black line between the motoneuron model and the muscle‒tendon unit model indicates the axon of the motoneuron. The inset of the dotted circle area represents the transformation of the neural signals into the muscle activation level through two processes of calcium dynamics (Module 1) and crossbridge formation (Module 2). The muscle force (F) and length (XCE) were calculated via Hill mechanics, which consists of a contractile element (CE) and a serial elastic element (SE) (Module 3). The muscle unit action potentials (MUAPs) were produced using a typical MUAP shape that is experimentally measurable with an intramuscular electrode. The model parameters and system equations are fully presented in Appendix A in S3 Text.

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

We developed an inverse modeling framework to automatically determine the model parameters directly from the cell-specific properties (CPs) underlying essential features of cell behaviors that are experimentally observable. This study focused on the electrical properties of the MN membrane and the mechanical properties of the MT fiber. The model parameters were first classified into two groups. One group represents the range model parameters (RMPs) that effectively mediate the CPs and systematically vary across the population. In contrast, the other group represents constant model parameters (CMPs) that are consistent across the population. In this study, all RMPs and CMPs were biophysically relevant and categorized for modeling purposes. Then, we derived the inverse functions (f-1) for the RMPs given the CPs pseudoanalytically. At the cellular level, this modeling framework can be formulated as the following equation:

At the population level, cell organization is defined by the distribution of cell indicators (CIs) across the population of single cells (i). The CI represents a cell property measured as a cell classifier, associated with a cell type. In this study, somatic input resistance and maximal isometric force were selected as cell indicators for MNs and MTs, as experimentally suggested. The systematic variation in the RMP vector across the population was determined as a function of CI based on the correlations (g) between the CP vector and CI that are identifiable in the experiments. This population modeling process can be formulated as the following equation:

Motoneuron modeling

MN functions are determined by both membrane mechanisms and their distributions across the dendritic structure. This feature was reflected in a recently developed conductance-based two-compartment modeling framework consisting of the somatic and dendritic compartments coupled by a single conductance [26] (see Appendix A for system equations and parameters in S3 Text). The RMPs for the MNs were selected as the effective parameters and uniquely determined for the CPs measured under different experimental conditions. Table 1 shows the relationships between the RMPs and CPs identified for MN modeling in this study. The RMPs were inversely determined at three stages. First, the five passive RMPs (Gm,S, Cm,S, Gm,D, Cm,D, and GC) were analytically determined from the five passive CPs (RN, τm, VASDDC, VADSDC, and VASDAC) under fully anesthetized states without active mechanisms. The dendritic input resistance (RN,D) was represented by the product of RN and the asymmetry ratio (VASDDC/VADSDC) of dendritic signal propagation [27,28]. Second, the two active RMPs (GNaf,S and fS) related to linear firing behavior were adjusted to match two action potential properties (Irheo and tAHP1/2) at the soma without the involvement of active dendritic mechanisms [30,31]. Finally, the three active RMPs (GCal,D, GK(Ca),D, and Snm) underlying nonlinear firing behavior (i.e., bistable firing) were specified to reflect three plateau potential properties (PICmag, PICdecay, and PICamp) during voltage clamping at the soma in the presence of monoamines [32,33].

thumbnail
Table 1. CPs and RMPs for motoneuron modeling.

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

Muscle-tendon fiber modeling

MT functions are determined by complex interactions among the intracellular calcium dynamics, crossbridge formation between thin and thick filaments, and force production through the tendon anchoring the muscle to the bone. To reflect this feature, a recently developed modular modeling framework was selected because it can analytically constrain the model parameters with experimental data obtained under a full physiological range of stimulation frequency and muscle length [23] (see Appendix A for system equations and parameters in S3 Text). The RMPs for the MTs were selected as the effective parameters and uniquely determined for the CPs measured under different experimental conditions. Table 2 shows the relationships between the RMPs and CPs identified for MT modeling in this study. The RMPs were determined at individual modules. In module 1 for calcium dynamics, two RMPs (τ1 and τ2) were initially adjusted to match the twitch dynamics. Then, two RMPs (φ1 and φ3) were determined to reflect the length-dependent changes in the twitch amplitude. In module 2 for crossbridge formation dynamics, six RMPs (C1i, C1n1, C1n4, C2i, C2n1, C2n4, and αi) were first adjusted to match the dynamic calcium‒force relationship. Then, two RMPs (β and γ) were specified to reflect the movement-induced force degradation. In module 3 for Hill mechanics, one RMP (P0.5) was first determined to reflect the peak force produced during isometric contraction at the intermediate MT length. Two RMPs (g1 and g2) were then determined to match the length‒force properties under full excitation. Four RMPs (a0, b0, c0, and d0) were specified to reflect the velocity‒force properties under full excitation. Finally, one passive RMP (KSE) was determined to match the serial elastic stiffness. Additionally, two RMPs (AMUAP and LMUAP) were determined to reflect the muscle unit action potential (MUAP) response.

thumbnail
Table 2. CPs and RMPs for muscle-tendon fiber modeling.

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

Motor unit modeling

The MU, a single MN and innervated MTs, shows one-to-one excitation and contraction, neural signal transduction delay, and spike-twitch speed matching [39]. This feature was reflected by coupling the MN to the MT model with an axonal nerve model that perfectly transmits the action potentials to the muscle fibers with a time delay [40,41]. All the RMPs were determined using the same method applied to the MN and MT models. Additionally, one RMP (CV) for the conduction velocity of the MN axon nerve was determined to reflect the transduction delay from the motoneuron to the muscle unit [42]. Three RMPs (fS for MN and τ1 and τ2 for MT) were also considered for spike-twitch speed matching between the motoneuron afterhyperpolarization duration and the muscle twitch dynamics.

Population modeling

The RN was selected as a CI for the MN population because of its systematic correlations with MN CPs under passive [5] and active [43] dendritic conditions. The path length (i.e., Dpath) from the soma to the location of the persistent inward current channel over the dendrites varied as a function of RN on the basis of previous studies [28]. Notably, the combination of RN, Irheo, tm, and tAHP1/2 has been proposed as a reliable predictor (i.e., 97%) of conventional cell types (i.e., S, FR, and FF) [5]. The cell organization of the MN population model was specified by the relationship between the MN number and RN. The RMPs of individual MN models were then automatically constrained inversely based on the correlations of RN to individual MN CPs (see Appendix B in S3 Text).

For the MT population, P0.5 was chosen as a CI because of its systematic correlations with MT CPs in cat MTs. Notably, muscle fibers can be grouped into three conventional types (i.e., S, FR, and FF) according to the twitch speed and peak force [2]. The cell organization of the MT population model was specified by the relationship between the MT number and P0.5. The RMPs of individual MT models were then automatically determined to reflect the correlations of P0.5 and individual MT CPs [44] (see Appendix B in S3 Text).

The MU population was constructed under the assumption that the motoneuron is coupled with the same type of muscle fibers (i.e., muscle unit) [45]. On the basis of this assumption, P0.5 for the MT model was determined at the muscle unit level as a function of RN. As a result, the cell organization of the MU population model was specified by the relationship between the MU number and RN. A population model for motor units can be automatically constructed so that the RMPs for individual motor unit models systematically vary as a function of RN, reflecting the correlations between RN and individual MU CPs.

Efficient parallel simulation

To reduce the simulation time, we devised a parallel computing environment that operates under various computer systems, including a single computer with multiple cores, high-performance clusters, and a computer network via the internet. Particularly for high-performance clusters connected via a network, the parallel environment was designed and implemented to be controlled at the management node without manually installing all required software libraries and packages at individual computational nodes. This feature was achieved via the virtual environment technique. This technique enables all the required libraries and packages to be installed in a virtual folder and shared across the computational nodes through the network file system during simulations. The architecture of the parallel environment developed in this study is presented in Fig 2

thumbnail
Fig 2. Parallel environment.

A. Schematic diagram of the network architecture. Management and all computation nodes share the virtual Python environment that is installed within the shared network folder. The solid black lines indicate a typical network line connecting the management node, computation nodes, and network folder. B. Software components built in the management and computation nodes. The management and computation nodes function as network folder system (NFS) server and client sharing the same software components, such as the operation system, system Python, and virtual Python environment, where the parallel Python module and Python software and libraries are installed. The management node includes the main program, which distributes jobs to individual computation nodes via the network.

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

Command-line software tool

To test our methodology, we developed an open-source Python package called pNMS along with an application programming interface (API) for easy use by others. The methodology is well suited for object-oriented programming, which is known to be appropriate for software maintenance and expansion. Fig 3 shows the overall architecture for the simulations under the pNMS software environment. This diagram shows the types of cells, populations, and signals that flow at the cellular and system levels. Input signals were assigned to individual cell models. Similarly, the output signals were generated from individual cell models and transferred to their connected cell models. Force and MUAP signals from individual MTs were linearly combined to calculate the total force [46] and the intramuscular electromyography signal (i.e., iEMG) measurable from within the muscle [47].

thumbnail
Fig 3. Simulation architecture.

The white boxes indicate individual motoneurons and muscle–tendon fibers. The colored boxes indicate the pools of MNs, MTs, and MUs. Inputs (blue lines) to individual MNs include intracellular current injection at the soma (Isoma) and excitatory (Iesyn) and inhibitory (Iisyn) synaptic inputs and neuromodulatory inputs (NM) at the soma and dendrites. Inputs (green lines) to individual MTs include current impulse stimulation (Iaxon) over the motoneuronal axon and MT length (Xm). Outputs (black lines) from individual MNs include the action potential at the soma. Outputs (red lines) from individual MTs include the force (MUF) and action potential (MUAP) produced by each MU. The total force production and intramuscular electromyogram (iEMG) produced by the MU pool are estimated by summing the outputs of individual MTs.

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

In pNMS, the user first defines the cell type (i.e., MN, MT, or MU) and number (i.e., 1 ~ N), resulting in the automatic construction of a homogeneous cell population with the same parameter values. The cell organization is then specified as the distribution of CIs over the range of cell numbers. By default, the CPs are determined by their correlations with the CI experimentally identified from healthy adult cats under normal conditions (see Appendix B in S3 Text). The RMPs are inversely determined via inverse equations and lookup tables based on the CPs (see Appendix B in S3 Text). The CMPs are initialized with the parameter files, including the values identified in previous cat experiments (S1 Data). Optionally, the user can forwardly update individual correlations between the CP and CI to reflect different or abnormal conditions (see Appendix B in S3 Text). The population behaviors under diverse input conditions are efficiently simulated at the single-cell level in a parallel computing environment (i.e., a multicore computer and a computer cluster). Optionally, the simulation results can be displayed online in multiple modes and saved in separate files for further analysis. We present this overall process in a sequential diagram (Fig 4) and the command-line functions (Table 3) that can be easily incorporated into any application program (see S2 Text for further details). Considerations for software development and instructions for parallel simulation are fully addressed in Appendices C and D in S3 Text.

thumbnail
Table 3. Application programming interface (API).

https://doi.org/10.1371/journal.pcbi.1014184.t003

thumbnail
Fig 4. User interface.

The solid and dotted boxes represent the necessary and optional operations the user can define in the pNMS environment. RN and P0.5 indicate the input resistance measured at the soma of the motoneuron and the peak force measured from the muscle‒tendon fiber during isometric contraction at the intermediate physiological muscle length, respectively. RMPX and CPX indicate the range model parameter and cell-specific property for cell type X, respectively. Isoma and Isyn indicate intracellular current injection at the soma and synaptic inputs in the motoneuron, respectively. Iaxon and Xm indicate current impulse input over the axon and muscle-tendon length, respectively.

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

Results

Cell population behavior

This section shows the feasibility of our methodology for reproducing the behavioral features of neuromuscular cells experimentally observed in healthy adult cats. The reliability and accuracy of the software were also verified by comparing the simulation results to previously published simulation results obtained via different software. The API functions used for this section are provided in parentheses in italics.

Motoneuron population

We first constructed a homogeneous population model consisting of 10 fatigue-resistant (FR) motoneurons (MNs) with the same properties (createPool). Five active channels (i.e., INaf, IKdr, IK(Ca), INap, and ICan, along with dynamic variation in calcium reversal potential) were included in the soma to produce repetitive action potentials (MN_Parameters_3.0_FR.csv in S1 Data). In contrast, one active channel (i.e., ICal and constant calcium reversal potential) was involved in the dendrite to generate a plateau potential. The values of the model parameters (setParameters), simulation time (setSimulTimes), and initial values for the state variables of the model equations (setInitialValues) were set to the same values used in a previous study [26]. Two types of input protocols were applied to show the bistable firing behavior of the motoneurons. A long-lasting step input with a brief (i.e., 50 ms) excitatory pulse followed by an inhibitory pulse with some delay (i.e., 10 sec) was applied to show the steady-state transition between two stable states, such as quiescent and regular firing or regular firing at different frequencies. Gradually rising and falling triangular input was used to show counterclockwise firing hysteresis, which is characterized by firing acceleration, firing saturation, and self-sustained firing behavior. These two input protocols were applied either to the somata (genNeuronInputSignals and setNeuronInputSignals) or to the dendrites (genSynConSignals and setSynConSignals). The peak of the triangular input corresponds to the synaptic excitation of 450% of full Ia afferent inputs over the dendrites in a realistically constructed FR-type motoneuron [48].

Parallel simulations were conducted on a multicore computer (setComputNode and runSimulation). The simulation results of the homogeneous MN population are shown in Figs A and B in S1 Text for current injection at the soma and excitatory synaptic input over the dendrites (plotSimulResult and saveSimulationResults). All the models could replicate the bistable firing behaviors that were experimentally shown under step and ramp input conditions. These simulation results were consistent with those simulated under different software environments (i.e., XPPAUTO) [26]. Minor differences were observed and were likely caused by differences in the operating and hardware systems used.

Next, we systematically varied the RN and Dpath for the dendritic locations of the persistent inward current (PIC) channels across the MN population model using the built-in function (setParameters), as performed in a previous study [28]. The distribution of Dpath over the MU population was selected to match experimental observations from cats, such as voltage thresholds for PIC activation, their hysteresis, and input-output gains before full PIC activation. Fig 5 shows the RMPs (plot_params) automatically determined as a function of RN and Dpath based on the RN–CP correlations characterized from adult cat MNs (see Appendix B in S3 Text). Notably, the RMP values do not necessarily reflect the values determined from the fully reconstructed MN models. The abrupt drop in fS (Fig 5D1) indicates the difference in half AHP duration (tAHP1/2) between the slow- and fast-type motoneurons in adult cats [5]. The bell shape of RN-GNaf,S curve (Fig 5D2) reflects the parabolic relation of RN and Irheo for cats [5], where motoneurons with low RN and low Irheo require more depolarizing inward current (i.e., GNaf,S) to raise the membrane potential toward the threshold for an action potential. The remaining RMPs (i.e., GK(Ca),D and Snm) were set to their default values (i.e., 0 and 1) across the population.

thumbnail
Fig 5. RMP distribution for a heterogeneous motoneuron population.

A. Distribution of cell indicator. B. Distribution of dendritic PIC channels. C1–C5. Passive RMPs for electrotonic properties. D1–D2. Active RMPs for action potential properties. E. Active RMP for PIC amplitude.

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

Fig 6 shows the systematic variation in the firing behavior of the MN models in response to slowly increasing and decreasing current stimulation at the soma (Fig 6A) and excitatory synaptic conductance over the dendrites (Fig 6B) across the population (plotSimulResult and saveSimulationResults). For both stimulation conditions, MNs with a lower threshold tended to show stronger nonlinearity in the firing response (i.e., firing acceleration and sustained firing below the threshold input) than those with a higher threshold. The population model could reproduce the simulated behaviors that were previously observed in different software environments (i.e., XPPAUTO) [28]. These results indicated that heterogeneity in cellular properties could considerably affect the output of the MN population.

thumbnail
Fig 6. Heterogeneous motoneuron population behavior.

A heterogeneous population model consisting of 10 MNs with different CPs, as specified in Fig 5, was constructed and simulated in a parallel environment. A1–A3. Instantaneous firing rates (A1) and voltage responses (A2) of the individual motoneurons in response to the triangular current (A3) intracellularly injected at the somata. B1–B3. Instantaneous firing rates (B1) and voltage responses (B2) of individual motoneurons in response to excitatory synaptic inputs (A3) over the dendrites.

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

All instructions and codes for these simulations are presented in S2 Data for the homogeneous and heterogeneous MN populations.

Muscle-tendon fiber population

We first constructed two homogeneous population models comprising 10 muscle-tendon fibers (MTs), one for slow-type MTs and the other for fast-type MTs (createPool). The values of the model parameters (MF_Parameters_3.0_SOL.csv and MF_Parameters_3.0_MG.csv in S1 Data, setParameters), simulation time (setSimulTimes), and initial values of the state variables (setInitialValues) were set to the same values for each population model as reported in previous studies [22,23]. Force was produced in response to the variations in the stimulation frequency (1 ~ 100 Hz) (genSpikeSignals and setSpikeSignals) and the MT length (isometric, isokinetic, and dynamic) (genMuscleLengthSignals and setMuscleLengthSignals), as applied experimentally and computationally. In this simulation, impulse current stimulation was applied to the muscle belly, and the conduction velocities were set to be the same for all the axonal nerves. The dynamic variation in MT length was generated to mimic the locomotor-like movement of adult cats (i.e., ~ 5 Hz).

Parallel simulations were conducted on a multicore computer (setComputNode and runSimulation). The simulation results for the homogeneous population model of slow and fast MTs are presented in Figs C and D in S1 Text (plotSimulResult and saveSimulationResults). Each MT population model could replicate the force production that was previously experimentally shown for the variations in the stimulation frequency and MT length [22,23]. Twitch, unfused, and fused contractions under isometric conditions showed a nonlinear relationship between stimulation frequency and muscle force (Figs Ca–Cd and Da–Dd in S1 Text for slow and fast MTs, respectively). Unfused contractions under isokinetic conditions demonstrated length- and velocity-tension properties (Figs Ce–Ch and De–Dh in S1 Text for slow and fast MTs, respectively). Unfused contractions under dynamic conditions indicated the dependence of force production on dynamic length variation (Figs Ci–Cj and Di–Dj in S1 Text for slow and fast MTs, respectively). These simulation results were consistent with those simulated under different software environments (i.e., NEURON) [22,23]. Minor differences were observed and were likely caused by differences in the operating and hardware systems used.

Next, we systematically varied P0.5 using the built-in function (setParameters). Fig 7 shows the RMPs (plot_params) automatically determined from the linear correlations of P0.5 with the CPs observed in adult cat muscle units (see Appendix B in S3 Text). Fig 8 shows the systematic variation in the force production of the heterogeneous MT models during twitch, unfused, and fused isometric contractions (Fig 8A8D), fused isokinetic contractions (Fig 8E8H), and unfused dynamic contractions (Fig 8I8J) across the population (plotSimulResult and saveSimulationResults). Compared with those with lower P0.5 values, the MT models with higher P0.5 values presented greater force production and faster force development and cessation. The heterogeneous population model can predict the contributions of individual MT models to whole-muscle force production. Interestingly, in this population model, fast-type MTs showing sag behavior did not influence the overall shape of force production under partial excitation (i.e., 20 ~ 40 Hz) during isometric and dynamic contractions (see Fig 8C, 8D, and 8J). Notably, the rise in force before stimulation and the sustained force production after stimulation (i.e., MT10 in Fig 8A8D) reflect the difference in calcium-activation relationship (i.e., Module 2 in Fig 1B) between the slow- and fast-type muscle fibers experimentally characterized in adult cats [22]. In addition, the distribution of axonal conduction velocity (Fig 7C) across the MT population model resulted in an orderly delayed onset and offset of force production. These results highlighted the impact of heterogeneity in the cellular properties on the output of the MT population.

thumbnail
Fig 7. RMP distribution for a heterogeneous muscle-tendon fiber population.

A. Distribution of cell indicator. B. RMP for the serial elastic stiffness. C. RMP for axonal nerve conduction. D1–D2. RMPs for the MUAP. E1–E2. RMPs for twitch dynamics. F1–F2. RMPs for the length-dependent twitch amplitude. G1–G7. RMPs for the calcium‒force relationship. H1–H2. RMPs for movement-induced force degradation. I1–I2. RMPs for the length‒force property under full excitation. J1–J4. RMPs for the velocity‒force property under full excitation.

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

thumbnail
Fig 8. Heterogeneous muscle-tendon fiber population behavior.

A heterogeneous population model consisting of 10 MTs with different CPs, as specified in Fig 7, was constructed and simulated in a parallel environment. A–D. Unfused tetani of individual MTs (left), total force production (middle), and total electromyography measured at the center of the muscle unit territory (right) at constant stimulation frequencies (1, 10, 20, and 40 Hz for A–D, respectively) under isometric conditions at the intermediate length (Xm,0.5 = -8 mm). E–H. Fused tetani of individual MTs (left), total force production (middle), and total electromyography measured at the center of the muscle unit territory (right) under full excitation (100 Hz) during muscle shortening (E), lengthening (F), isometric contraction (G), and step shortening (H). I–J. Unfused tetani of individual MTs (left), total force production (middle), and total electromyography measured at the center of the muscle unit territory (right) during locomotor-like movement at constant stimulation frequencies (10 and 30 Hz for I and J, respectively). The time courses of current pulse stimulations and MT lengths applied for this figure are fully presented in Fig C in S1 Text. K. Muscle length variation applied to I and J.

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

All instructions and codes for these simulations are presented in S2 Data for the homogeneous and heterogeneous MT populations.

Motor unit population

We first constructed a homogeneous population model comprising 10 slow-type motor units (MUs) (createPool). The same MN and slow MT models used in the previous sections were applied. The values of the model parameters (MN_Parameters_3.0_FR.csv and MF_Parameters_3.0_SOL.csv in S1 Data, setParameters), simulation time (setSimulTimes), and initial values of the state variables (setInitialValues) were set to the same values used in a previous study [49]. Two types of input protocols used in the previous section (Motoneuron population) were applied to show the input‒output function of the slow-type MU population at the intermediate MT length (Xm,0.5). To evaluate the influence of the nonlinear firing behaviors (i.e., bistability and counterclockwise hysteresis with self-sustained firing) of MNs on force production by MTs during isometric contractions (genMuscleLengthSignals and setMuscleLengthSignals), step and triangular input protocols were applied to the MN soma (genNeuronInputSignals and setNeuronInputSignals) or dendrites (genSynConSignals and setSynConSignals), as reported in a previous study [49].

Parallel simulations were conducted on a multicore computer (setComputNode and runSimulation). The simulation results for the homogeneous population model of the slow MUs are shown in Figs E and F in S1 Text for current injection into the MN soma and excitatory synaptic input over the MN dendrites (plotSimulResult and saveSimulationResults). All the MU models demonstrated the nonlinear firing behaviors of the motoneurons and their consequences for the force production of the muscle units they innervate. These simulation results were consistent with those simulated under different software environments (i.e., PyMUS) [49]. Minor differences were observed and were likely caused by differences in the operating and hardware systems used.

Next, we systematically varied the RN across the MU population model, as performed in a previous study [29], where Dpath was set to a constant (i.e., 0.6 mm) (setParameters). An inverse relationship between RN and P0.5 was further applied to couple the MNs and MTs. Additionally, a calcium-dependent potassium current (IK(Ca),D) was added to the MN dendrites to reflect the PIC decay over time [43]. In this case, the default setting of GK(Ca),D to zero was redefined as a constant value (i.e., GK(Ca),D = 0.15 mS/cm2) across the MU population to incorporate the CP of PIC decay. Resultantly, three RMPs (i.e., fS, GNaf,S, and Snm) for the motoneuron remained unchanged when compared to the MN population in the previous section (Fig 5). Fig 9 shows the distributions of individual RMPs (plot_params) automatically set over the MU population.

thumbnail
Fig 9. RMP distribution for a heterogeneous motor unit population.

A. Cell organization of MNs. B. Distribution of dendritic PIC channels. C1–C5. Passive RMPs for electrotonic properties. D1–D2. Active RMPs for action potential properties. E1–E3. Active RMPs for plateau potential properties. F. Cell organization of MTs. G. RMP for the serial elastic stiffness. H. RMP for axonal nerve conduction. I1–I2. RMPs for the MUAP. J1–J2. RMPs for twitch dynamics. K1–K2. RMPs for the length-dependent twitch amplitude. L1–L7. RMPs for the calcium‒force relationship. M1–M2. RMPs for movement-induced force degradation. N1–N2. RMPs for the length‒force property under full excitation. O1–O4. RMPs for the velocity‒force property under full excitation.

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

Three schemes of synaptic conductance inputs were applied over the MN dendrites, considering three types of inhibitory inputs: background, recurrent, and reciprocal inhibition [29]. The resulting force outputs and intramuscular electromyography signals were estimated at the cellular and system levels. Fig 10 shows the systematic variation in the MN firing and MT force of the individual MUs during isometric muscle contractions at Xm,0.5 (i.e., -8 mm) (genMuscleLengthSignals and setMuscleLengthSignals) in response to the following input conditions: triangular current injection at the MN somata without a noisy background (Fig 10A6) (genNeuronInputSignals and setNeuronInputSignals); triangular excitatory synaptic input combined with constant inhibitory synaptic input over the MN dendrites under a noisy background (Fig 10B6) (genSynConSignals and setSynConSignals); balanced excitatory and inhibitory synaptic input over the MN dendrites under a noisy background (Fig 10C6) (genSynConSignals and setSynConSignals); and push‒pull excitatory and inhibitory synaptic input over the MN dendrites under a noisy background (Fig 10D6) (genSynConSignals and setSynConSignals) across the population. The push‒pull organization describes a decrease in inhibition with increasing excitation or vice versa via reciprocal inhibition [50]. Notably, the peak conductance of excitatory synaptic input was increased by almost three times to ensure all MUs were recruited during the ascending stimulation phase.

thumbnail
Fig 10. Heterogeneous motor unit population behavior.

A heterogeneous pool model consisting of 10 MUs with different CPs, as specified in Fig 9, was constructed and simulated in a parallel environment. A1–A6. Instantaneous firing rates (A1), MUAPs (A2) and forces (A3) produced by the individual MUs, and the total intramuscular EMG (iEMG) (A4) and force (A5) produced by the MU population in response to triangular current injection (A6) to the somata of the MNs during isometric contractions at the intermediate MT length (-8 mm). B1–B6. Filtered instantaneous firing rates (B1), MUAPs (B2) and forces (B3) produced by the individual MUs, and the total iEMG (B4) and force (B5) produced by the MU population in response to excitatory synaptic inputs (red) with background inhibitory inputs (blue) (B6) over the dendrites of the MNs during isometric contractions at the intermediate MT length (-8 mm). C1–C6. Filtered instantaneous firing rates (C1), MUAPs (C2) and forces (C3) produced by individual MUs, and the total iEMG (C4) and force (C5) produced by the MU population in response to a balanced pattern of excitatory (red) and inhibitory (blue) inputs (C6) over the dendrites of the MNs during isometric contractions at the intermediate MT length (-8 mm). D1–D6. Filtered instantaneous firing rates (D1), MUAPs (D2) and forces (D3) produced by the individual MUs, and the total iEMG (D4) and force (D5) produced by the MU population in response to the push‒pull pattern of excitatory (red) and inhibitory (blue) inputs (D6) over the dendrites of the MNs during isometric contractions at the intermediate MT length (-8 mm). The raw data for B1, C1, and D1 were smoothed with a Hanning filter and are presented in Fig G in S1 Text.

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

The simulation results (plotSimulResult and saveSimulationResults) obtained from the heterogeneous MU population model revealed the coexistence of onion skin and reverse firing patterns in the MN firing outputs (Fig 10A1– 10D1). In this study, the onion skin pattern indicates that the firing rate of low-threshold motoneurons is higher than that of high-threshold motoneurons. In contrast, the reverse pattern represents the opposite of the onion skin pattern, in which the firing rate of low-threshold motoneurons is lower than that of high-threshold motoneurons after firing acceleration on the ascending phase. This population model also demonstrated the modulation of the firing pattern and input‒output gain of the MN population through the variation in the inhibitory synaptic input pattern. Accordingly, individual MTs can produce sequences of electromyographic signals (Fig 10A2–10D2) and forces (Fig 10A3–10D3). Interestingly, the FR-type MTs tended to produce the maximum force output. Furthermore, the shape of the positive outline of the total intramuscular electromyography signals (Fig 10A4–10D4) was closely related to that of the total muscle force (Fig 10A5–10D5). Overall, the MU population model could capture the nonlinear input‒output characteristics that were evaluated using a realistic MU population model in a previous study [29].

All instructions and codes for these simulations are presented in S2 Data for the homogeneous and heterogeneous MU populations.

Cell heterogeneity effects

This section predicted the effects of cell heterogeneity on population behavior by varying the cell organization at the MU level. A population model comprising 100 MUs was automatically constructed with the same parameter files applied for the previous MU population model. However, the linear τ1–P0.5 relationship was updated to an exponentially decaying relationship derived from cat and human experiments (Fig 11A) [2,51]. The cell organization of the MU population model was modulated by changing the shape of the RN–MU number relationship (Fig 11B). All the RMPs were inversely determined from the correlations between RN and CPs, as described in the previous section. The average firing pattern, total force production, and intramuscular electromyogram (iEMG) for individual MU population models were simulated under the same push‒pull synaptic inputs for MNs and isometric conditions for MTs as in Fig 10D. We chose the push‒pull scheme based on a computational study suggesting that it better fits the human data compared to the constant and balanced inhibition schemes [52]. This analysis was conducted in a parallel environment on a high-performance computing cluster with 80 cores (see Appendix D in S3 Text).

thumbnail
Fig 11. Cell organization-dependent motor unit population behavior.

Five population models consisting of 100 MUs were constructed and simulated under the same input conditions used in Fig 10D. A. Contraction time‒force production relationship applied to the MU population models. B. Cell organization patterns specified by the RN–MU number relationships. C. Time courses of average firing rates of different MU populations. D. Time course of iEMG envelopes produced by different MU populations. E. Time course of total forces produced by different MU populations. The black arrowhead in the inset indicates the delay time in force production considered for the EMG–force relationship. F. iEMG‒force relationships of different MU populations.

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

Fig 11 shows the simulation results for the dependence of population behaviors, such as the average firing rate, total muscle force, and root-mean-square iEMG envelope, on cell organization. The average firing rate decreased as the proportion of low-RN MUs (presumably F-type) increased (Fig 11C). In contrast, the magnitude of the total muscle force and iEMG envelope amplitude increased (Fig 11D and 11E). The relationship between the normalized iEMG and force tended to be linear in all MU population models (Fig 11F). Interestingly, the linearity of iEMG–force relation was more apparent for the linear RN–MU number relationship representing a mix of low and high threshold motor units (yellow line in Fig 11F). The iEMG–force relationship became superlinear for the population models comprising more MUs with low RN (presumably F-type) and sublinear for those containing more MUs with high RN (presumably S-type). These results reflect that high threshold (low RN) MUs need higher stimulation frequencies than low threshold (high RN) MUs to produce the same level of muscle force because of the shorter contraction time of high threshold MUs. Notably, the iEMG–force relations were obtained after the delay in force development at the initial phase of synaptic inputs to the motoneurons (see the inset of Fig 11E). These results suggest that cell heterogeneity can play a crucial role in shaping the input‒output functions of the motor unit population in the neuromuscular system.

We further investigated the dependence of the iEMG–force relationship on the muscle‒tendon length. The population model involving the largest proportion of high-RN MUs (purple line in Fig 11B) was simulated under four isometric conditions at physiologically maximal (0 mm), intermediate (-8 mm), minimal (-16 mm), and further shortened (-24 mm) MT lengths. We injected a triangular current input (i.e., a peak of 40 nA at 5 sec over 10 sec) intracellularly at the somata of motoneurons with passive dendrites for muscle contractions under full anesthesia without afferent feedback inputs. The peak of the current stimulation was chosen to ensure the recruitment of all motor units during the ascending phase of the triangular current injection. As a result, the time courses of the firing rate and EMG signal did not differ across muscle lengths (Fig 12A and 12B). However, the time course of force production depended on muscle length, reflecting the length-tension properties (Fig 12C). Consequently, the EMG–force relationship tended to be linear at the shortened length, but it became sublinear as the muscle length increased (Fig 12D). Notably, the iEMG–force relations were obtained by accounting for the delay (i.e., 0.5 sec) in force development at the initial phase of current injection to the motoneurons. These results support the hypothesis that the muscle length may alter the EMG–force relationship.

thumbnail
Fig 12. Length-dependent EMG–force relationship.

The MU population model (purple line in Fig 11B) was simulated with passive MN dendrites in the absence of muscle afferent inputs under physiologically maximal (i.e., 0 mm), intermediate (i.e., -8 mm), and minimal (i.e., -16 mm) and further shortened (i.e., -24 mm) MT lengths. A. Time course of average firing rates at different MT lengths. B. Time course of iEMG envelopes at different MT lengths. C. Time course of total forces at different MT lengths. D. iEMG–force relationships at different MT lengths.

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

Discussion

We proposed a methodology to automatically construct biophysically plausible and physiologically realistic population models of the primary cells comprising the neuromuscular system and to efficiently simulate and analyze them in parallel computing environments, including personal and networked computers. We implemented this methodology as a platform-independent Python package called pNMS, which includes user-friendly application programming interface functions to broaden its utility in the scientific community. Using pNMS, we demonstrated the contributions of cell heterogeneity to the input‒output function of the motor unit population.

Methodology for automatic modeling and efficient simulation

A forward modeling approach is typically applied where model parameters are numerically optimized to match the time courses of cell responses under different input conditions [53]. This approach, however, has shown a need for manual treatment for practical issues such as parameter redundancy, model instability, and simulation inaccuracy. A previous study further suggested that matching key cellular properties instead of cell outputs could reflect cell type-specific behaviors more effectively. Alternatively, we formulated an inverse modeling framework in this study. Under this framework, model parameters were uniquely determined directly from the cell-specific properties experimentally identified as key determinants underlying cell outputs under different input conditions. The cell organization was quantitatively modulated as a function of a cell indicator that is correlated with individual cell-specific properties. Combined with a building-block approach, this modeling framework enabled the automatic construction and tractable analysis of population models with various organizations of neuromuscular cells.

A parallel strategy is often employed to reduce the simulation time in large-scale simulations. However, a parallel computing environment is typically prepared by manually installing and updating software libraries necessary for simulations at individual computational nodes comprising a distributed computer system. This study resolved this issue by developing a parallel environment architecture based on a virtual environment and the network folder technique. All necessary libraries were installed and maintained in a virtual environment folder within a network folder shared among computational nodes. This architecture enabled the installation and deletion of required simulation libraries on all available computational nodes before and after simulation, controlled from the local management node.

Our methodology supported object-oriented programming applied to large-scale software to improve maintenance, reusability, and extensibility [54]. Furthermore, the software tool (pNMS) implementing our methodology in this study provides command-line functions that can support step-by-step execution of the methodology and flexible incorporation into any application.

Validation, reliability, and flexibility

Directly comparing pNMS to other software is difficult, mainly because of the discrepancy in the computational models and strategies that are employed. In this study, therefore, we verified the accuracy and stability of pNMS by reproducing the simulation results produced in different software environments used in previous studies. For example, the nonlinear responses of spinal motoneurons were simulated by pNMS and compared with those simulated by XPPAUTO software in a previous study [26,28]. The force production of the soleus and medial gastrocnemius muscles was simulated by pNMS and compared with that simulated by NEURON software in previous studies [22,23]. With respect to the motor unit, the input‒output relationships of a single motor unit were simulated using pNMS and compared with those simulated via PyMUS software in a previous study [49]. The performance of pNMS was also assessed by measuring the real-time performance during the simulation of a neuromuscular system consisting of 10 motor units with different cellular properties under noisy synaptic inputs over the motoneuron dendrites (Fig 10B). The real time needed for the simulation was much longer without parallel computing than with it on a multicore computer (e.g., 123 min vs. 38 min using a single core and eight logical cores, respectively, of an Intel Core i7-4790 CPU 3.6 GHz, for a 20-s simulation with 0.1 ms temporal resolution).

The implementation of user-defined custom models is currently limited in the pNMS environment. This limitation is partly due to the use of an inverse modeling approach that requires the analytical determination of model parameter values directly from target cell properties to automate population model construction. However, the current pNMS version provides flexibility in modifying the distribution of cell properties and relevant model parameters across the population model (Tables 1 and 2). For homogeneous population models, the user can change model parameter values in the Excel spreadsheet (i.e., model parameter files in S1 Data). For heterogeneous population models, the distribution of cell properties can be defined by users using built-in functions or importing user-defined data files (see Appendix B in S3 Text). Likewise, the user can also update the distribution of individual range model parameters using built-in functions or importing user-defined data files (see Appendix B in S3 Text). Furthermore, users can specify initial values for model equations, simulation time and resolution, parallel environment configuration, model inputs, and simulation outputs to plot online using built-in functions or user-defined data files. All these modeling and simulation settings can be performed via a command-line application programming interface (API) (Table 3 for API functions).

Comparison to existing tools

Biophysical models for motoneurons have been simulated mostly using general-purpose software such as NEURON [25] and XPPAUTO [55]. In contrast, special-purpose software has been developed for muscle fibers [56] and motor units [44,57]. Typically, general-purpose software tools offer great flexibility in developing user-customized models, whereas special-purpose tools are limited to the canonical models embedded in their software. The current version of pNMS uses the canonical models for motoneurons and muscle fibers. However, unlike prior software tools, the canonical models are constrained directly by empirically measurable cell-specific properties. Furthermore, those models were designed and implemented as classes following the object-oriented programming principle, making maintenance and code extension easy and efficient.

To our knowledge, all existing software tools use a forward modeling scheme in which model parameters are treated as free parameters. Thus, users must optimize the model parameters to reflect the experimental data. However, the current version of pNMS offers both forward and inverse modeling modes, allowing the user to choose whether model parameters are analytically determined directly from experimental data or numerically optimized.

General-purpose tools have provided both graphical user interfaces and command-line interfaces (or application programming interfaces). In contrast, the special-purpose tools have provided only graphical user interfaces for setting the model and simulation conditions. The current pNMS version offers only a command-line interface, which is known to be efficient for simulation management and flexible for integration in broader applications. Future studies would be needed to design and develop a graphical user interface for pNMS, improving user accessibility and software usability.

Some software tools enable parallel simulation through a high-performance computing system or a web-based environment. The current pNMS version offers a flexible parallel simulation configuration, allowing users to run simulations on a single multicore processor, a high-performance computer cluster, or a web-based environment. Furthermore, the pNMS provides automated construction of a parallel environment without additional programming or library installation on computation nodes.

Comparisons with previous studies

The fundamental elements of the neuromuscular system are the motoneurons and the muscle fibers they innervate. Multiple efforts have been made to construct computational models for populations of motoneurons, muscle fibers, and motor units under various conditions. Under fully anesthetized conditions without neuromodulatory inputs from the brainstem, steady-state models for the motoneuron population were first developed mathematically to capture the recruitment current threshold, and the firing rate increased as the effective current level increased at the cell body [24,58]. The motoneuron dendrites were then explicitly modeled in a stick form, with one end attached to a ball representing the motoneuron soma exhibiting passive dendritic properties, to investigate the factors determining the response of human motoneurons to a composite excitatory input [59]. All these results could be replicated by setting the peak conductance of all ion currents to zero in the dendrites of the motoneuron model, as specified in the model parameter file within the pNMS environment.

To account for the neuromodulatory influence from the brainstem, persistent inward currents that mediate nonlinear firing behavior were incorporated into the dendrites of the motoneuron models while considering realistic morphology or a reduced single compartment. The reduced single-compartment modeling approach for active dendrites was applied in two-compartment motoneuron models [60,61]. pNMS could also capture the firing patterns of these motoneuron models by adjusting the parameters related to dendritic excitability under excitatory synaptic input over the dendrites (Figs A and B in S1 Text). Furthermore, one somatic compartment and four dendritic compartment models have been proposed to investigate the synaptic control of motoneuron firing patterns under a combination of excitatory and inhibitory synaptic inputs over the dendrites [29]. These results could also be captured by pNMS in response to the combination of excitatory and inhibitory synaptic inputs over the dendrites (Fig 10). Recently, the population of motoneuron models with fully dendritic structures revealed the coexistence of onion-skin and reverse onion-skin firing patterns [62]. pNMS can demonstrate this phenomenon in simulations of a heterogeneous population of motoneurons during triangular excitatory synaptic input over the dendrites (Fig 6).

To the best of our knowledge, there has been little empirical data on the relations of firing output and synaptic input across the motoneuron pool. Thus, this study used computational data from an anatomically reconstructed FR-type motoneuron model with a realistic distribution of synaptic inputs [48]. Previous research suggested that synaptic excitation of 450% of full Ia afferent inputs leads to the firing of FR-type motoneurons with active dendrites at up to 70 Hz. Our corresponding FR-type motoneuron model fired at a peak rate of 65 Hz with the same current injection at the soma, and at 48 Hz with the same synaptic input level to the dendrite (Figs A and B in S1 Text). Additionally, our motoneuron population matched the systematic variation in voltage threshold for PIC onset and two firing output-input intensity (F-I) gains before full PIC activation (i.e., F-IN for synaptic input and F-IS for current injection) across the motoneuron pool for cat hindlimb muscles, as shown in our previous study [28]. Furthermore, the low firing rate (< 40 Hz) observed during cat walking [63] is likely due to the combinatory effects of excitatory, inhibitory, and neuromodulatory inputs from various sources [64]. In this context, the pNMS may offer a flexible framework for systematically examining the impact of various intrinsic and extrinsic factors on the firing patterns of the motoneuron pool during locomotion.

For muscle modeling, a mathematical modeling approach was applied to simulate force production by the population of muscle fibers. Under isometric conditions, the muscle force was represented as a linear summation of twitch responses produced by individual muscle units at the cellular level [24]. To account for the dependence of force production on stimulation frequency and muscle length, a whole muscle model was developed to capture the experimental data obtained under various stimulation frequencies during isometric and isokinetic contractions [56]. All these results could be demonstrated using pNMS at both the cellular and whole-muscle levels under various conditions, including irregular stimulation frequency and dynamic muscle‒tendon length variation (Fig 8).

Population models for the motor units were built by linking the mathematical model of the motoneuron pool developed under fully anesthetized conditions with the mathematical model of the muscle unit pool developed under isometric conditions [24,58]. To account for the neuromodulation effects from the brainstem, the two-compartment modeling approach was applied for motoneurons, along with the mathematical model of the muscle unit pool limited to the isometric condition in previous studies [60,61]. As a result of motor unit pool simulation, surface EMG signals were also produced in response to the firing patterns of motoneurons in previous studies [24,44]. Surface EMG signals measured from the skin electrodes could be simulated through spatiotemporal filtering of the MUAP signals produced in the center of the muscle unit territory in our software environment [44]. All these results could be reproduced in the pNMS software environment by adjusting the model parameters properly (Fig 10).

Motor unit population models have been validated by matching the linear EMG–force relationship characterized during human experiments under isometric conditions [24]. Notably, previous motoneuron models have been limited to the fully anaesthetized state, in which their dendrites were assumed to be passive. In this study, the variability of the EMG–force relationship across different human muscles [65] was reproduced using motoneuron models with active dendrites under brainstem control via the pMNS software. The MU population models comprising a mix of low and high threshold motoneurons tended to exhibit the linear relationship between EMG and force signal (yellow line in Fig 11). In contrast, the MU population models comprising mostly low (purple line in Fig 11) or high (blue line in Fig 11) threshold motoneurons tended to exhibit the nonlinear EMG‒force relationship. Further work is needed to systematically investigate how the synaptic input profile and biophysical properties of motor units influence the EMG–force relations. Furthermore, the length dependence of the EMG‒force relationship found in cat soleus muscles [66] could also be reproduced by MU population models, which are composed mainly of low-threshold motoneurons in the pNMS environment (Fig 12).

Parallel simulation strategies have been proposed to realistically simulate the neuronal network system for the brain and spinal cord [44,67]. These parallel computations have been developed to target supercomputers or local computers connected through the internet. However, recent advances in multicore CPU technology have allowed parallel simulations on a single computer with multiple cores [68]. To facilitate the use of parallel computing, we developed the pNMS software to provide various options for parallel computing, including a single computer with multiple cores, a cluster system comprising a network of computers, and distributed computers over the internet.

Previous models of the neuromuscular system have been used in various research fields, including neurophysiology, biomechanics, and biomedical engineering. However, physiologically plausible and computationally efficient software toolkits publicly available for modeling and simulation of the neuromuscular system are highly desirable. The pNMS software developed in this study could further advance these fields by providing an open-source package that enables automatic construction and parallel simulation of biophysical models of the neuromuscular system across multiple levels and a wide range of experimental and physiological conditions [69].

Limitations

All muscle fibers in a single MU were assumed to activate synchronously in the present study. However, the fibers within an MU can be activated asynchronously under abnormal conditions, such as fatigue, sarcopenia, or neuromuscular junction dysfunction. One way to simulate the asynchronous activation of muscle fibers in an MU in the current pNMS is to construct an MU population comprising identical MNs (i.e., same RN) and MTs (i.e., same P0.5) except for nerve conduction velocity (i.e., varying CV). Assigning different CV values by importing P0.5–CV correlation data (Appendix B in S3 Text) can result in different time delays in the MUAP and force responses of individual MTs to the motoneuron spike in the pNMS. An example simulation and script were presented in Fig H in S1 Text and S2 Data.

This study also assumed that the same type of muscle fibers comprise an MU. However, individual muscle fibers within an MU may exhibit different mechanical properties. This scenario can be simulated by constructing an MU population comprising identical MNs (i.e., same RN) but heterogeneous MTs (i.e., varying P0.5). The RN–P0.5 correlation can be updated by importing user-specified data (Appendix B in S3 Text). An example simulation and script were presented in Fig I in S1 Text and S2 Data. Ultimately, the current MU model, which lumps all MTs into a single MT model, needs to be expanded to more realistically and precisely account for MT heterogeneity within an MU.

The inverse approach proposed in this study has been tested primarily for anesthetized, nonvoluntary cats. The reason was the lack of available data obtained during voluntary contractions. Thus, the current version of pNMS has an inherent limitation in predicting voluntary behaviors. However, the current pNMS software may serve as an efficient tool for systematically investigating the input-output properties of the neuromuscular system at single-cell resolution. Moreover, future studies will validate the current pNMS software using empirical data obtained during voluntary control.

In addition, current experimental techniques are insufficient to measure the neuromuscular system’s input-output behavior at single-cell resolution. Due to this limitation, this study evaluated whether the pNMS can capture the key properties of the neuromuscular system that have been experimentally characterized at the system level, such as EMG–force relations (Figs 11 and 12). Further experimental studies remain necessary to test the pNMS software against cellular-level input-output datasets for the neuromuscular system during voluntary contractions.

Future directions

The current version of pNMS was developed in this study to model the neuromuscular system’s foundational elements (motoneurons, muscle–tendon fibers, and motor units). Thus, pNMS must evolve to ensure the integrity of other biological elements contributing to the functioning of the neuromuscular system. For instance, the current version of the software package is limited to feed-forward modeling and simulation of the neuromuscular system. Thus, future studies need to extend the current feed-forward simulation to incorporate feedback signals. A variety of feedback signals have been observed in the neuromuscular system. Recurrent inhibitory feedback to motoneurons via Renshaw cells [70,71], excitatory interactions between motoneurons [72], and afferent sensory signals from the muscle-tendon complex [73] have been reported in the central nervous system and need to be included in future studies. With respect to motoneurons, variation in cell-specific properties, such as rheobase values at a given input resistance, should be considered for more physiologically accurate simulations. In muscles, fatigue [74,75], residual force enhancement [76], residual force depression [77], and activity-dependent potentiation [78] need to be considered when extending the muscle model. Furthermore, graphical user interfaces could be used to improve the user experience of the software. The current version of pNMS, which is based on an object-oriented programming paradigm and a unified modeling language, can also provide a basis for future extension by others, including chemical reactions observed in motoneurons and muscle fibers.

Concluding remarks

This study presents a methodology and platform-independent open-source software tool (pNMS) to enable automatic population modeling and efficient parallel simulation of primary cells comprising the neuromuscular system under various situations. The traceability between the different levels of the neuromuscular system under the pNMS environment demonstrates the importance of cell heterogeneity in determining the population behaviors of the motoneuron, muscle–tendon fiber, and motor unit. The ability of pNMS to incorporate experimentally measurable cell properties may provide a practical computational solution applicable to various fields, from basic research on neuromuscular physiology to biomedical engineering for prosthetic technologies. pNMS is based on an object-oriented programming paradigm and a unified modeling language and can likely be used to develop an extensible platform suitable for community-based software development.

Supporting information

S1 Text. Supplementary figures and tables.

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

(PDF)

S2 Text. Application programming interface functions for pNMS.

https://doi.org/10.1371/journal.pcbi.1014184.s002

(PDF)

S2 Data. Python scripts for figures in the text and supporting information.

https://doi.org/10.1371/journal.pcbi.1014184.s004

(TAR)

S3 Text. Appendices for model equations and parameters, inverse equations and lookup tables for the RMPs, considerations for software implementation, and instructions for parallel simulation.

https://doi.org/10.1371/journal.pcbi.1014184.s005

(PDF)

Acknowledgments

The author truly thanks Jeonghwan Gwak, Yeongjae Kim, and Minjung Kim for their efforts in developing the early versions of the software. The author also thanks the reviewers for their valuable and constructive comments on the manuscript.

References

  1. 1. Sherrington CS. The integrative action of the nervous system. 2 ed. New Haven: Yale Univ. Press. 1947.
  2. 2. Burke RE. Motor Units: Anatomy, Physiology, and Functional Organization. John Wiley & Sons, Inc. 2011.
  3. 3. Heckman CJ, Enoka RM. Motor unit. Compr Physiol. 2012;2(4):2629–82. pmid:23720261
  4. 4. Hornby TG, McDonagh JC, Reinking RM, Stuart DG. Motoneurons: A preferred firing range across vertebrate species?. Muscle Nerve. 2002;25(5):632–48. pmid:11994957
  5. 5. Zengel JE, Reid SA, Sypert GW, Munson JB. Membrane electrical properties and prediction of motor-unit type of medial gastrocnemius motoneurons in the cat. J Neurophysiol. 1985;53(5):1323–44. pmid:3839011
  6. 6. Zajac FE, Faden JS. Relationship among recruitment order, axonal conduction velocity, and muscle-unit properties of type-identified motor units in cat plantaris muscle. J Neurophysiol. 1985;53(5):1303–22. pmid:2987433
  7. 7. Hill AV. The heat of shortening and the dynamic constants of muscle. Proceedings of the Royal Society of London Series B - Biological Sciences. 1938;126(843):136–95.
  8. 8. Huxley HE. The crossbridge mechanism of muscular contraction and its implications. J Exp Biol. 1985;115:17–30. pmid:3897443
  9. 9. Zajac FE. Muscle and tendon: properties, models, scaling, and application to biomechanics and motor control. Crit Rev Biomed Eng. 1989;17(4):359–411. pmid:2676342
  10. 10. Brown IE, Loeb GE. Measured and modeled properties of mammalian skeletal muscle. I. The effects of post-activation potentiation on the time course and velocity dependencies of force production. J Muscle Res Cell Motil. 1999;20(5–6):443–56. pmid:10555063
  11. 11. Duchateau J, Enoka RM. Distribution of motor unit properties across human muscles. J Appl Physiol (1985). 2022;132(1):1–13. pmid:34709066
  12. 12. Edström L, Grimby L. Effect of exercise on the motor unit. Muscle Nerve. 1986;9(2):104–26. pmid:2936955
  13. 13. Piasecki M, Ireland A, Jones DA, McPhee JS. Age-dependent motor unit remodelling in human limb muscles. Biogerontology. 2016;17(3):485–96. pmid:26667009
  14. 14. Ovsepian SV, O’Leary VB, Martinez S. Selective vulnerability of motor neuron types and functional groups to degeneration in amyotrophic lateral sclerosis: review of the neurobiological mechanisms and functional correlates. Brain Struct Funct. 2024;229(1):1–14. pmid:37999738
  15. 15. Carlin KP, Jones KE, Jiang Z, Jordan LM, Brownstone RM. Dendritic L-type calcium currents in mouse spinal motoneurons: implications for bistability. Eur J Neurosci. 2000;12(5):1635–46. pmid:10792441
  16. 16. Booth V, Rinzel J. A minimal, compartmental model for a dendritic origin of bistability of motoneuron firing patterns. J Comput Neurosci. 1995;2(4):299–312. pmid:8746404
  17. 17. Westerblad H, Allen DG. The role of sarcoplasmic reticulum in relaxation of mouse muscle; effects of 2,5-di(tert-butyl)-1,4-benzohydroquinone. J Physiol. 1994;474(2):291–301. pmid:8006816
  18. 18. Donovan GM. Generalized distribution-moment approximation for kinetic theories of muscular contraction. Math Biosci. 2020;329:108455. pmid:32835693
  19. 19. Huxley AF. Muscle structure and theories of contraction. Prog Biophys Biophys Chem. 1957;7:255–318. pmid:13485191
  20. 20. Brown IE, Scott SH, Loeb GE. Mechanics of feline soleus: II. Design and validation of a mathematical model. J Muscle Res Cell Motil. 1996;17(2):221–33. pmid:8793724
  21. 21. Hill AV. The series elastic component of muscle. Proc R Soc Lond B Biol Sci. 1950;137(887):273–80. pmid:15430325
  22. 22. Kim H, Heckman CJ. A dynamic calcium-force relationship model for sag behavior in fast skeletal muscle. PLoS Comput Biol. 2023;19(6):e1011178. pmid:37289805
  23. 23. Kim H, Sandercock TG, Heckman CJ. An action potential-driven model of soleus muscle activation dynamics for locomotor-like movements. J Neural Eng. 2015;12(4):046025. pmid:26087477
  24. 24. Fuglevand AJ, Winter DA, Patla AE. Models of recruitment and rate coding organization in motor-unit pools. J Neurophysiol. 1993;70(6):2470–88. pmid:8120594
  25. 25. Carnevale NT, Hines ML. The NEURON book. Cambridge, New York: Cambridge University Press. 2005.
  26. 26. Kim H, Jones KE, Heckman CJ. Asymmetry in signal propagation between the soma and dendrites plays a key role in determining dendritic excitability in motoneurons. PLoS One. 2014;9(8):e95454. pmid:25083794
  27. 27. Kim H, Major LA, Jones KE. Derivation of cable parameters for a reduced model that retains asymmetric voltage attenuation of reconstructed spinal motor neuron dendrites. J Comput Neurosci. 2009;27(3):321–36. pmid:19387812
  28. 28. Kim H. Impact of the localization of dendritic calcium persistent inward current on the input-output properties of spinal motoneuron pool: a computational study. J Appl Physiol (1985). 2017;123(5):1166–87. pmid:28684585
  29. 29. Powers RK, Heckman CJ. Synaptic control of the shape of the motoneuron pool input-output function. J Neurophysiol. 2017;117(3):1171–84. pmid:28053245
  30. 30. Hochman S, McCrea DA. Effects of chronic spinalization on ankle extensor motoneurons. II. Motoneuron electrical properties. J Neurophysiol. 1994;71(4):1468–79. pmid:8035228
  31. 31. Hochman S, McCrea DA. Effects of chronic spinalization on ankle extensor motoneurons. III. Composite Ia EPSPs in motoneurons separated into motor unit types. J Neurophysiol. 1994;71(4):1480–90.
  32. 32. Lee RH, Heckman CJ. Bistability in spinal motoneurons in vivo: systematic variations in persistent inward currents. J Neurophysiol. 1998;80(2):583–93. pmid:9705452
  33. 33. Lee RH, Kuo JJ, Jiang MC, Heckman CJ. Influence of active dendritic currents on input-output processing in spinal motoneurons in vivo. J Neurophysiol. 2003;89(1):27–39. pmid:12522157
  34. 34. Fleshman JW, Segev I, Burke RB. Electrotonic architecture of type-identified alpha-motoneurons in the cat spinal cord. J Neurophysiol. 1988;60(1):60–85. pmid:3404225
  35. 35. Lee RH, Heckman CJ. Adjustable amplification of synaptic input in the dendrites of spinal motoneurons in vivo. J Neurosci. 2000;20(17):6734–40. pmid:10964980
  36. 36. Gordon AM, Homsher E, Regnier M. Regulation of contraction in striated muscle. Physiol Rev. 2000;80(2):853–924. pmid:10747208
  37. 37. Brown IE, Cheng EJ, Loeb GE. Measured and modeled properties of mammalian skeletal muscle. II. The effects of stimulus frequency on force-length and force-velocity relationships. J Muscle Res Cell Motil. 1999;20(7):627–43. pmid:10672511
  38. 38. Merletti R, Farina D. Analysis of intramuscular electromyogram signals. Philos Trans A Math Phys Eng Sci. 2009;367(1887):357–68. pmid:19008187
  39. 39. Burke RE. Motor units - physiological-histochemical profiles, neural connectivity and functional specializations. Am Zool. 1978;18(1):127–34.
  40. 40. Rack PM, Westbury DR. The effects of length and stimulus rate on tension in the isometric cat soleus muscle. J Physiol. 1969;204(2):443–60. pmid:5824646
  41. 41. Guimaraes AC, Herzog W, Hulliger M, Zhang YT, Day S. Effects of muscle length on the EMG-force relationship of the cat soleus muscle studied using non-periodic stimulation of ventral root filaments. J Exp Biol. 1994;193:49–64. pmid:7964399
  42. 42. Hoffer JA, Loeb GE, Marks WB, O’Donovan MJ, Pratt CA, Sugano N. Cat hindlimb motoneurons during locomotion. I. Destination, axonal conduction velocity, and recruitment threshold. J Neurophysiol. 1987;57(2):510–29. pmid:3559690
  43. 43. Lee RH, Heckman CJ. Paradoxical effect of QX-314 on persistent inward currents and bistable behavior in spinal motoneurons in vivo. J Neurophysiol. 1999;82(5):2518–27. pmid:10561423
  44. 44. Cisi RRL, Kohn AF. Simulation system of spinal cord motor nuclei and associated nerves and muscles, in a Web-based architecture. J Comput Neurosci. 2008;25(3):520–42. pmid:18506610
  45. 45. Cech D, Martin S. Functional movement development across the life span. St. Louis: Saunders. 2012.
  46. 46. Perreault EJ, Day SJ, Hulliger M, Heckman CJ, Sandercock TG. Summation of forces from multiple motor units in the cat soleus muscle. J Neurophysiol. 2003;89(2):738–44. pmid:12574451
  47. 47. Day SJ, Hulliger M. Experimental simulation of cat electromyogram: evidence for algebraic summation of motor-unit action-potential trains. J Neurophysiol. 2001;86(5):2144–58. pmid:11698507
  48. 48. Elbasiouny SM, Bennett DJ, Mushahwar VK. Simulation of Ca2+ persistent inward currents in spinal motoneurones: mode of activation and integration of synaptic inputs. J Physiol. 2006;570(Pt 2):355–74. pmid:16308349
  49. 49. Kim H, Kim M. PyMUS: Python-Based Simulation Software for Virtual Experiments on Motor Unit System. Front Neuroinform. 2018;12:15. pmid:29695959
  50. 50. Johnson MD, Hyngstrom AS, Manuel M, Heckman CJ. Push-pull control of motor output. J Neurosci. 2012;32(13):4592–9. pmid:22457505
  51. 51. Elek JM, Dengler R. Human motor units studied by intramuscular microstimulation. Adv Exp Med Biol. 1995;384:161–71. pmid:8585448
  52. 52. Chardon MK, Wang YC, Garcia M, Besler E, Beauchamp JA, D’Mello M, et al. Supercomputer framework for reverse engineering firing patterns of neuron populations to identify their synaptic inputs. Elife. 2024;12:RP90624. pmid:39412386
  53. 53. Gouwens NW, Berg J, Feng D, Sorensen SA, Zeng H, Hawrylycz MJ, et al. Systematic generation of biophysically detailed models for diverse cortical neuron types. Nat Commun. 2018;9(1):710. pmid:29459718
  54. 54. Bal H, Grune D. Programming language essentials. Addison-Wesley Longman Publishing Co., Inc. 1994.
  55. 55. Ermentrout B. Simulating, analyzing, and animating dynamical systems: a guide to XPPAUT for researchers and students. Philadelphia, Pa.: Society for Industrial & Applied Mathematics. 2002.
  56. 56. Cheng EJ, Brown IE, Loeb GE. Virtual muscle: a computational approach to understanding the effects of muscle properties on motor control. J Neurosci Methods. 2000;101(2):117–30. pmid:10996372
  57. 57. Iyengar RS, Pithapuram MV, Singh AK, Raghavan M. Curated Model Development Using NEUROiD: A Web-Based NEUROmotor Integration and Design Platform. Front Neuroinform. 2019;13:56.
  58. 58. Heckman CJ, Binder MD. Computer simulation of the steady-state input-output function of the cat medial gastrocnemius motoneuron pool. J Neurophysiol. 1991;65(4):952–67. pmid:2051212
  59. 59. Jones KE, Bawa P. Computer simulation of the responses of human motoneurons to composite 1A EPSPS: effects of background firing rate. J Neurophysiol. 1997;77(1):405–20. pmid:9120581
  60. 60. Williams ER, Baker SN. Circuits generating corticomuscular coherence investigated using a biophysically based computational model. I. Descending systems. J Neurophysiol. 2009;101(1):31–41. pmid:19019981
  61. 61. Elias LA, Chaud VM, Kohn AF. Models of passive and active dendrite motoneuron pools and their differences in muscle force control. J Comput Neurosci. 2012;33(3):515–31. pmid:22562305
  62. 62. Mousa MH, Wages NP, Elbasiouny SM. Onion skin is not a universal firing pattern for spinal motoneurons: simulation study. J Neurophysiol. 2024;132(1):240–58. pmid:38865217
  63. 63. Hoffer JA, Sugano N, Loeb GE, Marks WB, O’Donovan MJ, Pratt CA. Cat hindlimb motoneurons during locomotion. II. Normal activity patterns. J Neurophysiol. 1987;57(2):530–53. pmid:3559691
  64. 64. Rekling JC, Funk GD, Bayliss DA, Dong XW, Feldman JL. Synaptic control of motoneuronal excitability. Physiol Rev. 2000;80(2):767–852. pmid:10747207
  65. 65. Lawrence JH, De Luca CJ. Myoelectric signal versus force relationship in different human muscles. J Appl Physiol Respir Environ Exerc Physiol. 1983;54(6):1653–9. pmid:6874489
  66. 66. Solomonow M, Baratta RV, D’Ambrosia R. EMG-force relations of a single skeletal muscle acting across a joint: Dependence on joint angle. J Electromyogr Kinesiol. 1991;1(1):58–67. pmid:20719596
  67. 67. Migliore M, Cannia C, Lytton WW, Markram H, Hines ML. Parallel network simulations with NEURON. J Comput Neurosci. 2006;21(2):119–29. pmid:16732488
  68. 68. Venu B. Multi-core processors-an overview. arXiv preprint. 2011.
  69. 69. Gerstner W, Sprekeler H, Deco G. Theory and simulation in neuroscience. Science. 2012;338(6103):60–5. pmid:23042882
  70. 70. Renshaw B. Observations on interaction of nerve impulses in the gray matter and on the nature of central inhibition. Am J Physiol. 1946;146:443–8. pmid:20989256
  71. 71. Eccles JC, Fatt P, Koketsu K. Cholinergic and inhibitory synapses in a pathway from motor-axon collaterals to motoneurones. J Physiol. 1954;126(3):524–62. pmid:13222354
  72. 72. Bhumbra GS, Beato M. Recurrent excitation between motoneurones propagates across segments and is purely glutamatergic. PLoS Biol. 2018;16(3):e2003586. pmid:29538375
  73. 73. Burke RE. Group Ia synaptic input to fast and slow twitch motor units of cat triceps surae. J Physiol. 1968;196(3):605–30. pmid:5664234
  74. 74. Allen DG, Lamb GD, Westerblad H. Skeletal muscle fatigue: cellular mechanisms. Physiol Rev. 2008;88(1):287–332. pmid:18195089
  75. 75. Enoka RM, Duchateau J. Muscle fatigue: what, why and how it influences muscle function. J Physiol. 2008;586(1):11–23. pmid:17702815
  76. 76. Herzog W, Lee EJ, Rassier DE. Residual force enhancement in skeletal muscle. J Physiol. 2006;574(Pt 3):635–42. pmid:16709641
  77. 77. Pinnell RAM, Mashouri P, Mazara N, Weersink E, Brown SHM, Power GA. Residual force enhancement and force depression in human single muscle fibres. J Biomech. 2019;91:164–9. pmid:31155213
  78. 78. MacIntosh BR. Cellular and whole muscle studies of activity dependent potentiation. Adv Exp Med Biol. 2010;682:315–42. pmid:20824534