Abstract
Neurons coordinate their activity to produce an astonishing variety of motor behaviors. Our present understanding of motor control has grown rapidly thanks to new methods for recording and analyzing populations of many individual neurons over time. In contrast, current methods for recording the nervous system’s actual motor output – the activation of muscle fibers by motor neurons – typically cannot detect the individual electrical events produced by muscle fibers during natural behaviors and scale poorly across species and muscle groups. Here we present a novel class of electrode devices (“Myomatrix arrays”) that record muscle activity at unprecedented resolution across muscles and behaviors. High-density, flexible electrode arrays allow for stable recordings from the muscle fibers activated by a single motor neuron, called a “motor unit”, during natural behaviors in many species, including mice, rats, primates, songbirds, frogs, and insects. This technology therefore allows the nervous system’s motor output to be monitored in unprecedented detail during complex behaviors across species and muscle morphologies. We anticipate that this technology will allow rapid advances in understanding the neural control of behavior and in identifying pathologies of the motor system.
Introduction
Recent decades have seen tremendous advances in our understanding of the physiological mechanisms by which the brain controls complex motor behaviors. Critical to these advances have been tools to record neural activity at scale4,5, which, when combined with novel algorithms for behavioral tracking 6–10, can reveal how neural activity shapes behavior 11,12. In contrast, current methods for observing the nervous system’s motor output lag far behind neural recording technologies. The nervous system’s control of skeletal motor output is ultimately mediated by “motor units”, each of which consists of a single motor neuron and the muscle fibers it activates, producing motor unit action potentials (Fig. 1a) that generate muscle force to produce movement 13. Because each action potential in a motor neuron reliably evokes a single spike in its target muscle fibers, action potentials recorded from muscle provide a high-resolution readout of motor neuron activity in the spinal cord and brainstem. However, our understanding of motor unit activity during natural behaviors is rudimentary due to the difficulty of recording spike trains from motor unit populations.
Traditional methods for recording muscle fiber activity via electromyography (EMG) include fine wires inserted into muscles and electrode arrays placed on the surface of the skin 14. These methods can resolve the activity of individual motor units in only a limited range of settings. First, to prevent measurement artifacts, traditional EMG methods require that a subject’s movements be highly restricted, typically in “isometric” force tasks where subjects contract their muscles without moving their bodies 15–18. Moreover, fine wire electrodes typically cannot detect single motor unit activity in small muscles, including the muscles of widely used model systems such as mice or songbirds 19–21, and surface electrode arrays are poorly tolerated by freely behaving animal subjects. These limitations have impeded our understanding of fundamental questions in motor control, including how the nervous system coordinates populations of motor units to produce skilled movements, how this coordination degrades in pathological states, and how motor unit activity is remapped when animals learn new tasks or adapt to changes in the environment.
Here, we present a novel approach (Fig. 1) to recording populations of individual motor units from many different muscle groups and species during natural behaviors. Flexible multielectrode (“Myomatrix”) arrays were developed to achieve the following goals:
Record muscle activity at motor unit resolution
Record motor units during active movements
Record from a wide range of muscle groups, species, and behaviors
Record stably over time and with minimal movement artifact
To achieve these goals, we developed a variety of array configurations for use across species and muscle groups. Voltage waveforms from individual motor units (Fig. 1b,c) can be readily extracted from the resulting data using a range of spike-sorting algorithms, including methods developed to identify the waveforms of individual neurons in high-density arrays 2,22. Below, we show how Myomatrix arrays provide high-resolution measures of motor unit activation in a variety of species and muscle groups including forelimb, hindlimb, orofacial, pelvic, vocal, and respiratory muscles.
Results
We developed methods to fabricate flexible, high-density EMG (“Myomatrix”) arrays, as detailed in the Methods and schematized in Supplemental Figure 1. We selected polyimide as a substrate material due to its strength and flexibility and the ease with which we could define electrode contacts, suture holes, and other sub-millimeter features that facilitate ease of implantation and recording stability (Supplemental Fig. 1a-e). Moreover, simple modifications to the fabrication pipeline allowed us to rapidly design, test, and refine different array morphologies targeting a range of muscle sizes, shapes, and anatomical locations (Supplemental Fig. 1c, f, g).
Myomatrix arrays record muscle activity at motor unit resolution
Myomatrix arrays robustly record the activity of individual motor units in freely behaving mice. Arrays specialized for mouse forelimb muscles include four thin “threads” (8 electrodes per thread, 32 electrodes total) equipped with suture holes, flexible “barbs,” and other features to secure the device within or onto a muscle (Fig. 1a, Supplemental Fig. 1c, d, e, h). These devices yielded well-isolated waveforms from individual motor units (Fig. 1b, top), which were identified using open-source spike sorting tools 2,22. As detailed in Supplemental Figure 2a-d, in some cases the spike times of individual motor units (cyan dots, Fig. 1b) can be isolated from an individual electrode channel with simple spike sorting approaches including single-channel waveform clustering 22. In other cases, waveforms from individual motor units appeared on multiple electrode channels (Fig. 1c), allowing – and in many cases necessitating – more advanced spike-sorting approaches that leverage information from multiple channels to identify larger numbers of units and resolve overlapping spike waveforms 2, as detailed in Supplemental Figure 2e-h. These methods allow the user to record simultaneously from ensembles of single motor units (Fig. 1c,d) in freely behaving animals, even from small muscles including the lateral head of the triceps muscle in mice (approximately 9 mm in length with a mass of 0.02 g 23). Myomatrix recordings isolated single motor units for extended periods (greater than two months, Supplemental Fig. 3e), although highest unit yield was typically observed in the first 1-2 weeks after chronic implantation. Because recording sessions from individual animals were often separated by several days during which animals were disconnected from data collection equipment, we are unable to assess based on the present data whether the same motor units can be recorded over multiple days.
Myomatrix arrays record motor units during active movements
Myomatrix arrays outperform traditional fine-wire electrodes in mice by reliably recording isolated single units in behaving animals. First, Myomatrix arrays isolate the activity of multiple individual motor units during freely moving behavior (Fig. 1c-d). In contrast, wire electrodes typically cannot resolve individual motor units during muscle lengthening and shorting, as occurs in naturalistic movements such as locomotion 1,24. Figure 1b illustrates a comparison between Myomatrix (top) and fine-wire (bottom) data recorded during locomotion in the mouse triceps. Spike-sorting identified well-isolated motor unit spikes in the Myomatrix data (cyan dots in Fig. 1b, top) but failed to extract any isolated motor units in the fine wire data (Supplemental Fig. 2a,b). Similarly, while Myomatrix recordings robustly isolated motor units from a songbird vocal muscle, fine wire EMG electrodes applied to the same muscle did not yield isolatable units (Supplemental Fig. 2c,d). This lack of resolution, which is typical of fine wire EMG, severely limits access to motor unit activity during active behavior, although wire electrodes injected through the skin can provide excellent motor unit isolation during quiet stance in mice 25. Second, because wire-based EMG requires inserting an additional wire for each additional electrode contact, only a single pair of wires (providing a single bipolar recording channel, Fig. 1b, bottom) can be inserted into an individual mouse muscle in most cases 1,24,26. In contrast, at least four Myomatrix “threads” (Fig 1a), bearing a total of 32 electrodes, can be inserted into one muscle (Fig. 1c shows five of 32 channels recorded simultaneously from mouse triceps), greatly expanding the number of recording channels within a single muscle. Single motor units were routinely isolated during mouse locomotion in our Myomatrix recordings (Fig. 1), but never in the fine-wire datasets from 1 we re-analyzed or, to our knowledge, in any prior study. Moreover, in multiunit recordings, Myomatrix arrays have significantly higher signal-to-noise ratios than fine-wire EMG arrays (Supplemental Fig. 3). Myomatrix arrays therefore far exceed the performance of wire electrodes in mice in terms of both the quality of recordings and the number of channels that can be recorded simultaneously from one muscle.
Myomatrix arrays record from a wide range of muscle groups, species, and behaviors
Myomatrix arrays provide high-resolution EMG recordings across muscle targets and experimental preparations (Fig. 2). Beyond the locomotor and postural signals shown in Figure 1, Myomatrix recordings from mouse triceps also provided single-unit EMG data during a head-fixed reaching task (Fig. 2a). In addition to recording single motor units during these voluntary behaviors, Myomatrix arrays also allow high-resolution recordings from other muscle groups during reflex-evoked muscle activity. Figure 2b shows single motor unit EMG data recorded from the superficial masseter (jaw) muscle when reflexive muscle contraction was obtained by passively displacing the jaw of an anesthetized mouse. To extend these methods across species, we collected Myomatrix recordings from muscles of the rat forelimb, obtaining isolated motor units from the triceps during locomotion (Fig. 2c) and a digit-flexing muscle in the lower forearm during head-free reaching (Fig. 2d). Myomatrix arrays can furthermore isolate motor unit waveforms evoked by direct optogenetic stimulation of spinal motor neurons. Figure 2e shows recordings of light evoked spikes in the mouse bulbospongiosus muscle (a pelvic muscle that wraps around the base of the penis in male mice), demonstrating that optogenetic stimulation of the spinal cord evokes spiking in single motor units with millisecond-scale timing jitter (Fig. 2e, center) and with latencies (Fig. 2e, right) consistent with the latencies of recordings obtained with fine-wire electrodes 3. Beyond rodents, simple modifications of the basic electrode array design (Supplemental Fig. 1f) allowed us to obtain high-resolution recordings from hindlimb muscles in cats (Fig. 2f), vocal and respiratory muscles in songbirds (Fig. 2g,h, see also 27), body wall muscles in moth larvae (Fig. 2i), and leg muscles in frogs (Fig. 2j).
In addition to isolating individual motor units, Myomatrix arrays provide stable multi-unit recordings of comparable or superior quality to conventional fine wire EMG. Although single-unit recordings are essential to identify individual motor neurons’ contributions to muscle activity 28,29, for other lines of inquiry a multi-unit signal is preferred as it reflects the combined activity of many motor units within a single muscle. Although individual Myomatrix channels are often dominated by spike waveforms from one or a small number of motor units (Fig 1b), other channels reflect the combined activity of multiple motor units as typically observed in fine-wire EMG recordings 30. As shown in Supplemental Figure 3a and b, these multi-unit Myomatrix signals are stable over multiple weeks of recordings, similar to the maximum recording longevity reported for wire-based systems in mice and exceeding the 1-2 weeks of recording more typically obtained with wire electrodes in mice 1,24,26, and with significantly greater recording quality than that obtained from wire electrodes at comparable post-implantation timepoints (Supplemental Fig. 3d).
To record from larger muscles than those described above, we also created designs targeting the forelimb and shoulder muscles of rhesus macaques (Fig. 3). Although fine wire electrodes have been used to isolate individual motor units in both humans and monkeys 14,31, and skin-surface electrode arrays robustly record motor unit populations in human subjects 15,32, this resolution is limited to isometric tasks – that is, muscle contraction without movement – due to the sensitivity of both fine-wire and surface array electrodes to electrical artifacts caused by body movement. For ease of insertion into larger muscles, we modified the “thread” design used in our mouse arrays so that each Myomatrix array could be loaded into a standard hypodermic syringe and injected into the muscle (Supplemental Fig. 1g,i), inspired by earlier work highlighting the performance of injectable arrays in primates 14,33,34. As shown in Figure 3a-d, injectable Myomatrix arrays yielded motor unit recordings during arm movements. Tick marks in Figure 3d show the activity of 13 motor units recorded simultaneously during a single trial in which a monkey was cued (by a force perturbation which causes an extension of the elbow joint) to reach to a target. In contrast to the ensemble of spike times obtained with a Myomatrix probe, conventional fine-wire EMGs inserted into the same muscle (in a separate recording session) yielded only a single trace reflecting the activity of an unknown number of motor units (Fig 3e, middle). Moreover, although fine-wire EMG signals varied across trials (Fig. 3e, bottom), the lack of motor unit resolution makes it impossible to assess how individual motor units vary (and co-vary) across trials. In contrast, Myomatrix recordings provide spiking resolution of multiple individual motor units across many trials, as illustrated in Figure 3f.
Myomatrix arrays record stably over time and with minimal movement artifact
Myomatrix arrays provide EMG recordings that are resistant to movement artifacts and stable over time. In recordings from rodents during locomotion (Fig. 1b, Fig. 2c), we did not observe voltage artifacts at any point in the stride cycle (e.g. when the paw of the recorded limb first touches the ground in each stride cycle; Fig. 2c, black arrowhead). Movement artifacts were similarly absent during active arm movements in monkeys (peak fingertip speeds ∼15 cm/sec; peak elbow angle velocity ∼40 deg/sec, Fig 3b,e), during passive jaw displacement in anesthetized mice (Fig. 2b), or in the other anesthetized preparations shown in Figure 2. Individual motor units could typically be isolated for the entire duration of an acute or chronic recording session. In triceps recordings during locomotion in rodents (Fig. 1, Fig. 2c), isolated motor units were recorded for up to 4,791 stride cycles (mice) or 491 stride cycles (rats) during continuous recording sessions lasting 10-60 minutes. Myomatrix recordings in behaving nonhuman primates were similarly long-lived, as in the dataset shown in Figure 3, where single-unit isolation was maintained across 1,292 reaching trials collected over 97 minutes. In each of these datasets, the duration of single-unit EMG recording was limited by the willingness of the animal to continue performing the behavior, rather than a loss of signal isolation. Recordings in acute preparations were similarly stable. For example, the songbird dataset shown in Figure 2g includes single-unit data from 8,101 respiratory cycles collected over 74 minutes, and, like the other acute recordings shown in Figure 2, recordings were ended by the experimenter rather than because of a loss of signal from individual motor units.
The diversity of applications presented here demonstrates that Myomatrix arrays can obtain high-resolution EMG recordings across muscle groups, species, and experimental conditions including spontaneous behavior, reflexive movements, and stimulation-evoked muscle contractions. Although this resolution has previously been achieved in moving subjects by directly recording from motor neuron cell bodies in vertebrates 35–37 and by using fine-wire electrodes in moving insects 38,39, both methods are extremely challenging and can only target a small subset of species and motor unit populations. Exploring additional muscle groups and model systems with Myomatrix arrays will allow new lines of investigation into how the nervous system executes skilled behaviors and coordinates the populations of motor units both within and across individual muscles. These approaches will be particularly valuable in muscles in which each motor neuron controls a very small number of muscle fibers, allowing fine control of oculomotor muscles in mammals as well as vocal muscles in songbirds (Fig. 2g), in which most individual motor neurons innervate only 1-3 muscle fibers 40. Of further interest will be combining high-resolution EMG with precise measurement of muscle length and force output to untangle the complex relationship between neural control, body kinematics, and muscle force that characterizes dynamic motor behavior. Similarly, combining Myomatrix recordings with high-density brain recordings or targeted manipulations of neural activity can reveal how central circuits shape and reshape motor activity and – in contrast to the multi-unit signals typically obtained from traditional EMG in animals – reveal how neural dynamics in cortical, subcortical, and spinal circuits shape the spiking patterns of individual motor neurons.
Applying Myomatrix technology to human motor unit recordings, particularly by using the minimally invasive injectable designs shown in Figure 3 and Supplemental Figure 1g,i, will create novel opportunities to diagnose motor pathologies and quantify the effects of therapeutic interventions in restoring motor function. Moreover, because Myomatrix arrays are far more flexible than the rigid needles commonly used to record clinical EMG, our technology might significantly reduce the risk and discomfort of such procedures while also greatly increasing the accuracy with which human motor function can be quantified. This expansion of access to high-resolution EMG signals – across muscle groups, species, and behaviors – is the chief impact of the Myomatrix project.
Methods
Myomatrix array fabrication
The microfabrication process (schematized in Supplemental Fig. 1a) consists of depositing and patterning a series of polymer (polyimide) and metal (gold) layers, using a combination of spin coating, photolithography, etching, and evaporation processes, as described previously 27,41,42. These methods allow very fine pitch escape routing (<10 µm spacing between the thin “escape” traces connecting electrode contacts to the connector), spatial alignment between the multiple layers of polyimide and gold that constitute each device, and precise definition of “via” pathways that connect different layers of the device. Once all the metal and polyimide layers have been deposited and patterned on carrier wafers, the gold EMG recording electrode sites are formed by removing the top polyimide layer over each electrode site using reactive ion etching process (O2 and SF6 plasma, 5:1 ratio). Electrode sites are then coated with a conductive polymer, PEDOT:PSS (Poly(3,4-ethylenedioxythiophene)-poly(styrene-sulfonate)), 43–45 to reduce the electrode impedance 46. PEDOT:PSS was deposited on the electrode contacts to a thickness of 100 nm using spin coating, resulting in final electrode impedances of 5 kOhms or less (100 x 200 um electrode sites). Once all layers have been deposited on the carrier wafer, the wafer is transferred to an Optec Femtosecond laser system, which is used to cut the electrode arrays into the shape/pattern needed based on the target muscle group and animal species. The final device thickness was ∼40 µm for the injectable (primate forelimb) design and ∼20 µm for all other design variants. The final fabrication step is bonding a high-density connector (Omnetics, Inc.) to the surface of the electrode array using a Lambda flip-chip bonder (Finetech, Inc.). This fabrication pipeline allows the rapid development and refinement of multiple array designs (Supplemental Fig. 1c-g).
Myomatrix array implantation
For chronic EMG recording in mice and rats (Fig. 1, Fig. 2a, c, d), arrays such as those shown in Supplemental Figure 1c-f were implanted by first making a midline incision (approximately 10 mm length) in the scalp of an anesthetized animal. The array’s connector was then secured to the skull using dental cement (in some cases along with a headplate for later head-fixed chronic recordings), and the electrode array threads were routed subcutaneously to a location near the target muscle or muscles (Supplemental Fig. 1h). In some electrode array designs, subcutaneous routing is facilitated with “pull-through tabs” that can be grasped with a forceps to pull multiple threads into position simultaneously. For some anatomical targets a small additional incision was made to allow surgical access to individual muscles (e.g. a 2-5 mm incision near the elbow to facilitate implantation into the biceps and/or triceps muscles). Once each thread has been routed subcutaneously and positioned near its target, any pull-through tabs are cut off with surgical scissors and discarded. Each thread can then either be sutured to the surface of the thin sheet of elastic tissue that surrounds muscles (“epimysial attachment”) or inserted into the muscle using a suture needle (“intramuscular implantation”). For epimysial attachment, each electrode thread is simply sutured to the surface of each muscle (suture sizes ranging from 6-0 to 11-0) in one of the proximal suture holes (located on the depth-restrictor tabs) and one of the distal suture holes. For intramuscular implantation (Supplemental Fig. 1h), a suture (size 6-0 to 11-0 depending on anatomical target) is tied to the distal-most suture hole. The needle is then passed through the target muscle and used to pull the attached array thread into the muscle. In some designs, a “depth-restrictor tab” (Supplemental Fig. 1d) prevents the thread from being pulled any further into the muscle, thereby limiting the depth at which the electrodes are positioned within the target muscle. The array is then secured within the muscle by the passive action of the flexible polyimide “barbs” lining each thread and/or by adding additional sutures to the proximal and distal suture holes.
Acute recording in small animals (including rodents, songbirds, cats, frogs, and caterpillars; Fig. 2b,e-j) used the same arrays as chronic recordings. However, for both epimysial and intramuscular acute recordings, the Myomatrix array traces were simply placed on or within the target muscle after the muscle was exposed via an incision in the overlying skin of the anesthetized animal (rather than routed subcutaneously from the skull as in chronic applications).
For acute recordings in nonhuman primates, prior to recording, the “tail” of the injectable array (Supplemental Fig. 1g) was loaded into a sterile 23-gauge cannula (1” long) until fully seated. The upper half of the cannula bevel, where contact is made with the electrode, was laser-blunted to prevent breakage of the tail 34. During insertion (Supplemental Fig. 1i), the tail was bent over the top of the cannula and held tightly, and the electrode was inserted parallel to bicep brachii long head muscle fibers at an angle of ∼45 degrees to the skin. Once the cannula was fully inserted, the tail was released, and the cannula slowly removed. After recording, the electrode and tail were slowly pulled out of the muscle together. Insertion and removal of injectable Myomatrix devices appeared to be comparable or superior to traditional fine-wire EMG electrodes (in which a “hook” is formed by bending back the uninsulated tip of the recording wire) in terms of both ease of injection, ease of removal of both the cannula and the array itself, and animal comfort. Moreover, in over 100 Myomatrix injections performed in rhesus macaques, there were zero cases in which Myomatrix arrays broke such that electrode material was left behind in the recorded muscle, representing a substantial improvement over traditional fine-wire approaches, in which breakage of the bent wire tip regularly occurs.14.
For all Myomatrix array designs, a digitizing, multiplexing headstage (Intan, Inc.) was plugged into the connector, which was cemented onto the skull for chronic applications and attached to data collection devices via a flexible tether, allowing EMG signals to be collected during behavior. By switching out different headstages, data from the same 32 electrode channels on each Myomatrix array could be recorded either as 32 unipolar channels or as 16 bipolar channels, where each bipolar signal is computed by subtracting the signals from physically adjacent electrode contacts.
Data analysis: spike sorting
Motor unit action potential waveforms from individual motor units were identified with analysis methods previously used to sort spikes from neural data. In all cases, Myomatrix signals (sampling rate 30 or 40 kHz) were first band-passed between 350-7,000 Hz. When the voltage trace from a single Myomatrix channel is dominated by a single high-amplitude action potential waveform (as in Fig. 1b), single units can be isolated using principal components analysis (PCA) to detect clusters of similar waveforms, as described previously 22. As detailed in Supplemental Figure 2a-d, this method provides a simple quantitative measure of motor unit isolation by quantifying the overlap between clusters of spike waveforms in the space of the first two principal components.
In other cases (as in Fig. 1c), the spikes of individual motor units appear on multiple channels and/or overlap with each other in time, requiring a more sophisticated spike sorting approach to identifying the firing times of individual motor units. We therefore adapted Kilosort version 2.5 2,47 and wrote custom MATLAB and Python code to sort waveforms into clusters arising from individual motor units (Supplemental Fig. 2e-h). Our modifications to Kilosort reflect the different challenges inherent in sorting signals from neurons recorded with Neuropixels probes and motor units recorded with Myomatrix arrays 14. These modifications include the following:
Modification of spatial masking: Individual motor units contain multiple muscle fibers (each of which is typically larger than a neuron’s soma), and motor unit waveforms can often be recorded across spatially distant electrode contacts as the waveforms propagate along muscle fibers. In contrast, Kilosort – optimized for the much more local signals recorded from neurons – uses spatial masking to penalize templates that are spread widely across the electrode array. Our modifications to Kilosort therefore include ensuring that Kilosort search for motor unit templates across all (and only) the electrode channels inserted into a given muscle. In the Github repository linked above, this is accomplished by setting parameter nops.sigmaMask to infinity, which effectively eliminates spatial masking in the analysis of the 32 unipolar channels recorded from the injectable Myomatrix array schematized in Supplemental Figure 1g. In cases including chronic recording from mice where only a single 8-contact thread is inserted into each muscle, a similar modification can be achieved with a finite value of nops.sigmaMask by setting parameter NchanNear, which represents the number of nearby EMG channels to be included in each cluster, to equal the number of unipolar or bipolar data channels recorded from each thread. Finally, note that in all cases Kilosort parameter NchanNearUp (which defines the maximum number of channels across which spike templates can appear) must be reset to be equal to or less than the total number of Myomatrix data channels.
Allowing more complex spike waveforms: We also modified Kilosort to account for the greater duration and complexity (relative to neural spikes) of many motor unit waveforms. In the code repository linked above, Kilosort 2.5 was modified to allow longer spike templates (151 samples instead of 61), more spatiotemporal PCs for spikes (12 instead of 6), and more left/right eigenvector pairs for spike template construction (6 pairs instead of 3) to account for the greater complexity and longer duration of motor unit action potentials 14 compared to the neural action potentials for which Kilosort was initially created. These modifications were crucial for improving sorting performance in the nonhuman primate dataset shown in Figure 3, and in a subset of the rodent datasets (although they were not used in the analysis of mouse data shown in Fig. 1 and Supplemental Fig. 2a-f).
We therefore used Kilosort version 2.5 2,47 and custom MATLAB and Python code to sort waveforms into clusters arising from individual motor units (Supplemental Fig. 2e-h). Kilosort 2.5 was modified to allow longer spike templates (151 samples instead of 61), more spatiotemporal PCs for spikes (12 instead of 6), and more left/right eigenvector pairs for spike template construction (6 pairs instead of 3) to account for the greater complexity and longer duration of motor unit action potentials 14 compared to the neural action potentials for which Kilosort was initially created.
Individual motor units were identified from “candidate” units by assessing motor unit waveform consistency, SNR, and spike count, by inspecting auto-correlograms to ensure that each identified units displayed an absolute refractory period of less than 1 msec, and by examining cross-correlograms with other sorted units to ensure that each motor unit’s waveforms were being captured by only one candidate unit. Candidate units with inconsistent waveforms or >1% of inter-spike intervals above 1 msec were discarded. Candidate units with highly similar waveform shapes and cross-correlation peaks at lag zero were merged, resulting in sorted units with well-differentiated waveform shapes and firing patterns (Supplemental Fig. 2e,f). Our spike sorting code, which includes the above-mentioned modifications to Kilosort, is available at https://github.com/JonathanAMichaels/PixelProcessingPipeline.
Our approach to spike sorting shares the same ultimate goal as prior work using skin-surface electrode arrays to isolate signals from individual motor units but pursues this goal using different hardware and analysis approaches. A number of groups have developed algorithms for reconstructing the spatial location and spike times of active motor units 18,48 based on skin-surface recordings, in many cases drawing inspiration from earlier efforts to localize cortical activity using EEG recordings from the scalp 49. Our approach differs substantially. In Myomatrix arrays, the close electrode spacing and very close proximity of the contacts to muscle fibers ensure that each Myomatrix channel records from a much smaller volume of tissue than skin-surface arrays. This difference in recording volume in turn creates different challenges for motor unit isolation: compared to skin-surface recordings, Myomatrix recordings include a smaller number of motor units represented on each recording channel, with individual motor units appearing on a smaller fraction of the sensors than typical in a skin-surface recording. Because of this sensor-dependent difference in motor unit source mixing, different analysis approaches are required for each type of dataset. Specifically, skin-surface EMG analysis methods typically use source-separation approaches that assume that each sensor receives input from most or all of the individual sources within the muscle as is presumably the case in the data. In contrast, the much sparser recordings from Myomatrix are better decomposed using methods like Kilosort, which are designed to extract waveforms that appear only on a small, spatially restricted subset of recording channels.
Additional recording methods – mouse forelimb muscle
All procedures described below were approved by the Institutional Animal Care and Use Committee at Emory University (data in Fig. 1c, Supplemental Fig 3) or were approved by European Committee Council Directive, the Animal Care and Users Committee of the Champalimaud Neuroscience Program, and the Portuguese National Authority for Animal Health (data in Fig. 1b, Supplemental Fig. 2e). Individual Myomatrix threads were implanted in the triceps muscle using the “intramuscular” method described above under isoflurane anesthesia (1-4% at flow rate 1 L/min). EMG data were then recorded either during home cage exploration or while animals walked on a custom-built linear treadmill 50 at speeds ranging from 15-25 cm/sec. A 45° angled mirror below the treadmill allowed simultaneous side and bottom views of the mouse 6 using a single monochrome usb3 camera (Grasshopper3, Teledyne FLIR) to collect images 330 frames per second. We used DeepLabCut 51 to track paw, limb, and body positions. These tracked points were used to identify the stride cycles of each limb, defining stance onset as the time at which each paw contacts the ground and swing onset as the time when each paw leaves the ground.
Additional recording methods – mouse orofacial muscle
All procedures described below were approved by The Institutional Animal Care and Use Committee at Johns Hopkins University. Individual Myomatrix threads were implanted on the masseter muscle using the “epimysial” method described above. A ground pin was placed over the right visual cortex. As described previously 52, EMG signals and high-speed video of the orofacial area were recorded simultaneously in head-fixed animals under isoflurane anesthesia (0.9-1.5% at flow rate 1L/min). During data collection, the experimenter used a thin wooden dowel to gently displace the mandible to measure both jaw displacement and muscle activity from the jaw jerk reflex. Jaw kinematics were quantified using a high-speed camera (PhotonFocus DR1-D1312-200-G2-8) at 400 frames per second using an angled mirror to collect side and bottom views simultaneously. Jaw displacement was quantified by tracking eleven keypoints along the jaw using DeepLabCut 51.
Additional recording methods – rat forelimb muscle
All procedures described below were approved by The Institutional Animal Care and Use Committee at Emory University. Anesthesia was induced with an initial dose of 4% isoflurane in oxygen provided in an induction chamber with 2 L/minute rate and maintained with 3% isoflurane at 1 L/minute. Following this, rats received a subcutaneous injection of 1mg/kg Meloxicam, a subcutaneous injection of 1% Lidocaine and topical application of lidocaine ointment (5%) at each incision site. Myomatrix threads were implanted in the triceps muscle using the “intramuscular” method. EMG data were then recorded while animals walked on a treadmill at speeds ranging from 8-25 cm/sec. Kinematics were quantified using a circular arrangement of four high-speed FLIR Black Fly S USB3 cameras (BFS-U3-16S2M-CS, Mono), each running at 125 FPS. We used DeepLabCut to label pixel locations of each of ten anatomical landmarks on the limbs and body, which we then transformed into 3D cartesian coordinates using Anipose 51,53. We then defined the onset of each swing/stance cycle by using local minima in the rat’s forelimb endpoint position along the direction of locomotion.
Additional recording methods – rat forelimb muscle
All procedures described below were approved by The Institutional Animal Care and Use Committee at Johns Hopkins University. Prior to electrode implantation, rodents were trained for 4-6 weeks to perform a single pellet reach task 54. Rodents were food restricted for 17-18 hours prior to training. During the task, rats used the right arm to reach for sucrose pellets through a vertical slit (width = 1 cm) in a custom-built acrylic chamber. Individual MyoMatrix threads were implanted on the right flexor digitorum profundus (FDP) muscle using the “epimysial” method described above under 2.0-3.0% isoflurane anesthesia in oxygen gas. The arrays were then connected to data collection hardware via a flexible tether and EMG data were recorded while unrestrained animals performed the reaching task. Kinematics were quantified using a smartphone camera running at 60 fps. Two raters then manually labelled the frames of grasp onset. Grasp initiation was defined when a frame of full digit extension was immediately followed by a frame of digit flexion.
Additional recording methods – mouse pelvic muscle
All experimental procedures were carried out in accordance with the guidelines of the European Committee Council Directive and were approved by the Animal Care and Users Committee of the Champalimaud Neuroscience Program, the Portuguese National Authority for Animal Health. As described in detail elsewhere 3, spinal optogenetic stimulation of the motor neurons innervating the bulbospongiousus muscle (BSM) was performed on 2-3 month old male BL6 mice that had received an injection of a rAAVCAG-ChR2 into the BSM on postnatal day 3-6. Individual Myomatrix threads were implanted in the BSM using the “intramuscular” method described above. During EMG recording an optrode was moved on top of the spinal cord along the rostral-caudal axis while applying optical stimulation pulses (10 msec duration, power 1-15 mW).
Additional recording methods – songbird vocal and respiratory muscles
All procedures described below were approved by The Institutional Animal Care and Use Committee at Emory University. As described previously 20,27,42, adult male Bengalese finches (>90 d old) were anesthetized using intramuscular injections of 40 mg/kg ketamine and 3 mg/kg midazolam injected and anesthesia was maintained using 1-5% isoflurane in oxygen gas. To record from the expiratory (respiratory) muscles, an incision was made dorsal to the leg attachment and rostral to the pubic bone and the electrode array was placed on the muscle surface using the “epimysial” approach described above. To record from syringeal (vocal) muscles, the vocal organ was accessed for electrode implantation via a midline incision into the intraclavicular air sac as described previously 20 to provide access to the ventral syringeal (VS) muscle located on the ventral portion of the syrinx near the midline.
Additional recording methods – cat soleus muscle
All procedures described below were approved by The Institutional Animal Care and Use Committee at Temple University. As described previously 55, an adult female cat was provided atropine (0.05 mg/kg IM) and anesthetized with isoflurane (1.5–3.5% in oxygen), during which a series of surgical procedures were performed including L3 laminectomy, implantation of nerve cuffs on the tibial and sural nerve, and isolation of hindlimb muscles. Individual Myomatrix threads were implanted in hindlimb muscles using the “intramuscular” method described above. Following these procedures, a precollicular decerebration was performed and isoflurane was discontinued. Following a recovery period, the activity of hindlimb motor units were recorded in response to electrical stimulation of either the contralateral tibial nerve or the ipsilateral sural nerve.
Additional recording methods – hawkmoth larva (caterpillar) body wall muscle
EMG recordings were obtained from 5th instar larvae of the tobacco hornworm Manduca sexta using a semi-intact preparation called the “flaterpillar” as described previously (Metallo, White, and Trimmer 2011). Briefly, after chilling animals on ice for 30 minutes, an incision was made along the cuticle, allowing the nerve cord and musculature to be exposed and pinned down in a Sylgard dish under cold saline solution. This preparation yields spontaneous muscle activity (fictive locomotion) which was recorded from the dorsal intermediate medial (DIM) muscle using the “epimysial” method described above, with the modification that sutures were not used to hold the muscle in place.
Additional recording methods – frog hindlimb muscles
Spinal bullfrogs were prepared under anesthesia in accordance with USDA and PHS guidelines and regulations following approval from the Institutional Animal Care and Use Committee at Drexel University as described previously56. Bull frogs were anesthetized with 5% tricaine (MS-222, Sigma), spinalized, and decerebrated. The frog was placed on a support and Myomatrix arrays were implanted into the semimembranosus (SM) hindlimb muscle using the “intramuscular” method described above. Epidermal electrical stimulation at the heel dorsum (500 msec train of 1 msec, 5V biphasic pulses delivered at 40 Hz) or foot pinch was used to evoke reflexive motor activity.
Additional recording methods – rhesus macaque forelimb muscle
All procedures described below were approved by The Institutional Animal Care and Use Committee at Western University. One male rhesus monkey (Monkey M, Macaca mulatta, 10 kg) was trained to perform a range of reaching tasks while seated in a robotic exoskeleton (NHP KINARM, Kingston, Ontario). As described previously 57,58, this robotic device allows movements of the shoulder and elbow joints in the horizontal plane and can independently apply torque at both joints. Visual cues and hand feedback were projected from an LCD monitor onto a semi-silvered mirror in the horizontal plane of the task and direct vision of the arm was blocked with a physical barrier.
An injectable Myomatrix array (Supplemental Fig. 1g) was inserted percutaneously as shown in Supplemental Figure 1i. Then, using his right arm, Monkey M performed a reaching task similar to previous work 57. On each trial the monkey waited in a central target (located under the fingertip when the shoulder and elbow angles were 32° and 72°, respectively; size = 0.6 cm diameter) while countering a constant elbow load (-0.05 Nm). The monkey was presented with one of two peripheral goal targets (30/84° and 34/60° shoulder/elbow, 8cm diameter), and after a variable delay (1.2-2s) received one of two unpredictable elbow perturbations (±0.15Nm step-torque) which served as a go cue to reach to the goal target. At the time of perturbation onset, all visual feedback was frozen until the hand remained in the goal target for 800ms, after which a juice reward was given. On 10% of trials no perturbation was applied, and the monkey had to maintain the hand in the central target. In addition to Myomatrix injectables, we acquired bipolar electromyographic activity from nonhuman primates using intramuscular fine-wire electrodes in the biceps brachii long head as described previously 59, recording in this instance from the same biceps muscle in the same animal from which we also collected Myomatrix data, although in a separate recording session. Fine-wire electrodes were spaced ∼8 mm apart and aligned to the muscle fibers, and a reference electrode was inserted subcutaneously in the animal’s back. Muscle activity was recorded at 2,000 Hz, zero-phase bandpass filtered (25–500 Hz, fourth order Butterworth) and full-wave rectified.
Data and code availability
A data archive including two EMG datasets recorded with Myomatrix arrays from behaving animals is available at doi.org/10.5061/dryad.66t1g1k70. This archive includes the mouse triceps data shown in Figure1 (b,d) and Supplemental Figure 2(a,b,e,f), the rhesus macaque biceps data shown in Figure 3 and Supplemental Figure 2g, and associated metadata.
Acknowledgements
The participants of the Emory-SKAN Remote Workshop for Advanced EMG Methods, which brought together over 100 researchers from around the world, for their critical feedback on how to improve and refine the electrode technology described here.
Dr. Andrew Miri for helpful discussions and for sharing locomotor EMG data from Miri et al. (2017). Dr. Cinzia Metallo for the initial Manduca studies using flexible electrode arrays.
Drs. Gabriela J. Martins and Mariana Correia for project and colony coordination. Dr. Ana Gonçalves for technical assistance in mouse locomotion experiments.
Mattia Rigotti, Margo Shen, Nevin Aresh, and Manikandan Venkatesh for assistance in collecting rat forelimb data. Components of all figures were created using BioRender.com.
Funding sources
References
- 1.Behaviorally Selective Engagement of Short-Latency Effector Pathways by Motor CortexNeuron 95:683–696https://doi.org/10.1016/j.neuron.2017.06.042
- 2Solving the spike sorting problem with KilosortbioRxiv https://doi.org/10.1101/2023.01.07.523036
- 3A galanin-positive population of lumbar spinal cord neurons modulates sexual behavior and arousalbioRxiv https://doi.org/10.1101/2022.10.04.510783
- 4Challenges and opportunities for large-scale electrophysiology with Neuropixels probesCurr Opin Neurobiol 50:92–100https://doi.org/10.1016/j.conb.2018.01.009
- 5Large-scale neural recordings call for new insights to link brain and behaviorNat Neurosci 25:11–19https://doi.org/10.1038/s41593-021-00980-9
- 6A quantitative framework for whole-body coordination reveals specific deficits in freely walking ataxic miceElife 4https://doi.org/10.7554/eLife.07892
- 7Mapping the stereotyped behaviour of freely moving fruit fliesJ R Soc Interface 11https://doi.org/10.1098/rsif.2014.0672
- 8Fast animal pose estimation using deep neural networksNat Methods 16:117–125https://doi.org/10.1038/s41592-018-0234-5
- 9A Primer on Motion Capture with Deep Learning: Principles, Pitfalls, and PerspectivesNeuron 108:44–65https://doi.org/10.1016/j.neuron.2020.09.017
- 10Revealing the structure of pharmacobehavioral space through motion sequencingNat Neurosci 23:1433–1443https://doi.org/10.1038/s41593-020-00706-3
- 11Unsupervised Bayesian Ising Approximation for decoding neural activity and other biological dictionariesElife 11https://doi.org/10.7554/eLife.68192
- 12Computation Through Neural Population DynamicsAnnu Rev Neurosci 43:249–275https://doi.org/10.1146/annurev-neuro-092619-094115
- 13.Scaling of Motor Output, From Mouse to HumansPhysiology (Bethesda) 34:5–13https://doi.org/10.1152/physiol.00021.2018
- 14.Electromyography for ExperimentalistsThe University of Chicago Press
- 15The control and training of single motor units in isometric tasks are constrained by a common input signalElife 11https://doi.org/10.7554/eLife.72871
- 16Characterization of Human Motor Units From Surface EMG DecompositionIEEE Proceedings 104:353–373
- 17Flexible neural control of motor unitsNat Neurosci 25:1492–1504https://doi.org/10.1038/s41593-022-01165-8
- 18Multi-channel intramuscular and surface EMG decomposition by convolutive blind source separationJ Neural Eng 13https://doi.org/10.1088/1741-2560/13/2/026027
- 19A new electrode configuration for recording electromyographic activity in behaving miceJ Neurosci Methods 148:36–42https://doi.org/10.1016/j.jneumeth.2005.04.006
- 20Multifunctional and Context-Dependent Control of Vocal Acoustics by Individual MusclesJ Neurosci 35:14183–14194https://doi.org/10.1523/JNEUROSCI.3610-14.2015
- 21A flexible carbon nanotube electrode array for acute in vivo EMG recordingsJ Neurophysiol https://doi.org/10.1152/jn.00262.2022
- 22Central contributions to acoustic variation in birdsongJ Neurosci 28:10370–10379https://doi.org/10.1523/JNEUROSCI.2448-08.2008
- 23Anatomical, architectural, and biochemical diversity of the murine forelimb musclesJ Anat 221:443–451https://doi.org/10.1111/j.1469-7580.2012.01559.x
- 24Design and evaluation of a chronic EMG multichannel detection system for long-term recordings of hindlimb muscles in behaving miceJ Electromyogr Kinesiol 23:531–539https://doi.org/10.1016/j.jelekin.2012.11.014
- 25Characterization of motor units in behaving adult mice shows a wide primary rangeJ Neurophysiol 112:543–551https://doi.org/10.1152/jn.00108.2014
- 26Constitutive activity of 5-HT2C receptors is present after incomplete spinal cord injury but is not modified after chronic SSRI or baclofen treatmentJ Neurophysiol 118:2944–2952https://doi.org/10.1152/jn.00190.2017
- 27.Flexible Multielectrode Arrays With 2-D and 3-D Contacts for In Vivo Electromyography RecordingIEEE Trans Compon Packaging Manuf Technol 10:197–202https://doi.org/10.1109/tcpmt.2019.2963556
- 28.Millisecond Spike Timing Codes for Motor ControlTrends Neurosci 41:644–648https://doi.org/10.1016/j.tins.2018.08.010
- 29Motor control by precisely timed spike patternsProc Natl Acad Sci U S A 114:1171–1176https://doi.org/10.1073/pnas.1611734114
- 30Chronic electromyograms in treadmill running SOD1 mice reveal early changes in muscle activationJ Physiol 595:5387–5400https://doi.org/10.1113/JP274170
- 31Flexible neural control of motor unitsbioRxiv https://doi.org/10.1101/2021.05.05.442653
- 32Comparison of algorithms for estimation of EMG variables during voluntary isometric contractionsJ Electromyogr Kinesiol 10:337–349https://doi.org/10.1016/s1050-6411(00)00025-0
- 33Multichannel thin-film electrode for intramuscular electromyographic recordingsJ Appl Physiol 104:821–827https://doi.org/10.1152/japplphysiol.00788.2007
- 34Accurate and representative decoding of the neural drive to muscles in humans with multi-channel intramuscular thin-film electrodesJ Physiol 593:3789–3804https://doi.org/10.1113/JP270902
- 35Discharge patterns of hindlimb motoneurons during normal cat locomotionScience 213:466–467https://doi.org/10.1126/science.7244644
- 36Oculomotor unit behavior in the monkeyJ Neurophysiol 33:393–403https://doi.org/10.1152/jn.1970.33.3.393
- 37Intrinsic electrical properties of spinal motoneurons vary with joint angleNat Neurosci 10:363–369https://doi.org/10.1038/nn1852
- 38Locusts use the same basic motor pattern in swimming as in jumping and kickingJournal of experimental biology 75:81–93
- 39An information theoretic method to resolve millisecond-scale spike timing precision in a comprehensive motor programPLOS Computational Biology 19
- 40One-to-one innervation of vocal muscles allows precise control of birdsongCurr Biol 31:3115–3124https://doi.org/10.1016/j.cub.2021.05.008
- 41High-performance Flexible Microelectrode Array with PEDOT:PSS Coated 3D Micro-cones for Electromyographic RecordingAnnu Int Conf IEEE Eng Med Biol Soc 2022 :5111–5114https://doi.org/10.1109/EMBC48229.2022.9871052
- 42Fabrication and Characterization of 3D Multi-Electrode Array on Flexible Substrate for In Vivo EMG Recording from Expiratory Muscle of SongbirdTech Dig Int Electron Devices Meet 2018 29:21–29https://doi.org/10.1109/IEDM.2018.8614503
- 43Electrochemical deposition and characterization of poly(3,4-ethylenedioxythiophene) on neural microelectrode arraysSensor Actuat B-Chem 89:92–102https://doi.org/10.1016/S0925-4005(02)00448-3
- 44Stability of PEDOT:PSS-Coated Gold Electrodes in Cell Culture ConditionsAdv Mater Technol-Us 5https://doi.org/10.1002/admt.201900662
- 45Poly(3,4-ethylenedioxythiophene) (PEDOT) Coatings for High-Quality Electromyography RecordingAcs Appl Bio Mater 2:5154–5163https://doi.org/10.1021/acsabm.9b00809
- 46Poly(3,4-ethylenedioxythiophene) (PEDOT) polymer coatings facilitate smaller neural recording electrodesJ Neural Eng 8https://doi.org/10.1088/1741-2560/8/1/014001
- 47Neuropixels 2.0: A miniaturized high-density probe for stable, long-term brain recordingsScience 372https://doi.org/10.1126/science.abf4588
- 48Computed myography: three-dimensional reconstruction of motor functions from surface EMG dataInverse Problems 24
- 49EEG source imagingClin Neurophysiol 115:2195–2222https://doi.org/10.1016/j.clinph.2004.06.001
- 50Spatial and Temporal Locomotor Learning in Mouse CerebellumNeuron 102:217–231https://doi.org/10.1016/j.neuron.2019.01.038
- 51DeepLabCut: markerless pose estimation of user-defined body parts with deep learningNat Neurosci 21:1281–1289https://doi.org/10.1038/s41593-018-0209-y
- 52Active Touch and Self-Motion Encoding by Merkel Cell-Associated AfferentsNeuron 94:666–676https://doi.org/10.1016/j.neuron.2017.03.045
- 53Anipose: A toolkit for robust markerless 3D pose estimationCell Rep 36https://doi.org/10.1016/j.celrep.2021.109730
- 54Proximal and distal impairments in rat forelimb use in reaching follow unilateral pyramidal tract lesionsBehav Brain Res 56:59–76https://doi.org/10.1016/0166-4328(93)90022-i
- 55Toward Assessing the Functional Connectivity of Spinal NeuronsFront Neural Circuits 16https://doi.org/10.3389/fncir.2022.839521
- 56Highly Flexible Precisely Braided Multielectrode Probes and Combinatorics for Future NeuroprosthesesFront Neurosci 13https://doi.org/10.3389/fnins.2019.00613
- 57Goal-dependent modulation of fast feedback responses in primary motor cortexJ Neurosci 34:4608–4617https://doi.org/10.1523/JNEUROSCI.4520-13.2014
- 58Apparatus for measuring and perturbing shoulder and elbow joint positions and torques during reachingJ Neurosci Methods 89:119–127https://doi.org/10.1016/s0165-0270(99)00053-9
- 59Shared internal models for feedforward and feedback control of arm dynamics in non-human primatesEur J Neurosci 53:1605–1620https://doi.org/10.1111/ejn.15056
Article and author information
Author information
Version history
- Preprint posted:
- Sent for peer review:
- Reviewed Preprint version 1:
- Reviewed Preprint version 2:
- Version of Record published:
Copyright
© 2023, Chung et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
- views
- 3,751
- downloads
- 336
- citations
- 17
Views, downloads and citations are aggregated across all versions of this paper published by eLife.