$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Over the past decade, targeted neuroplasticity strategies have emerged as a new approach for the rehabilitation of neurological impairments1,2. One such strategy is operant conditioning of an evoked potential. This entails repeatedly eliciting electrophysiological responses that can be measured non-invasively - for example, by electroencephalography (EEG) or surface electromyography (EMG) - and giving the person immediate feedback on the size of each response relative to a criterion level set by the therapist or investigator. Over time, this protocol trains the person to increase or decrease their response and can, consequently, target beneficial change to a central nervous system site that is important in a behavior such as locomotion or reach-and-grasp. The targeted change benefits performance and, in addition, enables better practice that leads to widespread beneficial change that improves the entire behavior. For example, in people with incomplete spinal cord injury (iSCI) in whom clonus impairs locomotion, operant conditioning that reduces the Hoffmann reflex in the soleus muscle of one leg improves locomotor muscle activity in both legs, thereby increasing walking speed and restoring right/left step symmetry1,3,4,5. Another example is that of paired-pulse stimulation, which can lastingly increase the size of the motor-evoked potential (MEP) to transcranial magnetic stimulation, thereby improving reach-and-grasp function in people with chronic hand and arm impairment following iSCI6.
Implementing such protocols demands special-purpose software that must perform multiple functions. Specifically, it must continuously acquire, process, and save electrophysiological signals; it must continuously monitor the state of the nervous system and trigger stimulation appropriately under tight real-time constraints; it must provide continuous moment-by-moment feedback, trial-by-trial feedback, and session-by-session feedback; it must provide a user interface to guide setup and tuning by the investigator or therapist; and, finally, it must store and organize signal data and meta-information in a standardized format.
The evoked potential operant conditioning system (EPOCS) is our answer to this outstanding need. Under the hood, the software is based on BCI2000, an open-source neurotechnology platform that is used in hundreds of laboratories around the world7,8. In EPOCS, BCI2000's usual user interface is hidden and replaced by a streamlined interface that is optimized for evoked potential operant conditioning protocols.
The current article and its accompanying video illustrate the use of EPOCS in one particular protocol: operant conditioning to reduce the size of the Hoffmann (H-) reflex in the soleus muscle. This response is the electrically elicited analog of the knee-jerk stretch reflex. H-reflex down-conditioning has been shown to reduce the impact of clonus on, and to thereby improve, locomotion in animals with iSCI9,10,11,12,13 and in humans with iSCI, multiple sclerosis, or stroke5,14,15. It can be applied without adverse side effects in animals and people with or without neurological injury16,17.
The operant conditioning protocol functions by performing multiple trials, each lasting several seconds. The sequence of events of one trial is shown schematically in Figure 1, with numbers denoting the following functions:
1. Continuous background EMG is recorded from bipolar surface electrodes over the target muscle (soleus) and its antagonist (tibialis anterior). The background level is evaluated as the mean rectified value of the high-pass-filtered signal in a sliding window.
2. Background EMG level in the target muscle is shown as the height of a bar, continuously updated on the participant's screen. This helps the participant to keep the activity within a specified range (hatched region).
3. The software judges the appropriate moment for electrical stimulation and triggers the stimulator accordingly. The principal criteria are that at least 5 s must have elapsed since the previous stimulation and that the background EMG level must have remained in the specified range continuously for 2 s.
4. A constant-current stimulator delivers an electrical pulse transcutaneously to the tibial nerve (typically monophasic, with 1 ms duration).
5. The resulting stimulus-locked response is recorded. The software computes the sizes of two components of particular interest: the earlier M-wave, which reflects muscle activation resulting from direct stimulation of the motor axon; and the later H-reflex, which reflects the signal relayed through a reflex arc in the spinal cord18,19,20,21,22. EPOCS refers to these as the reference response and target response, respectively.
6. H-reflex size for the current trial is displayed as the height of a second bar, relative to a desired criterion level that defines a successful or unsuccessful trial. For down-conditioning, the bar is dark green if the H-reflex size fell below the criterion, or bright red if it did not (vice versa for up-conditioning). Simultaneously, the numeric display of the cumulative success rate is updated accordingly. Together, these graphical display elements provide the immediate positive or negative reinforcement on which operant conditioning relies23.

Figure 1: Schematic illustration of EPOCS' core functionality during down-conditioning of the soleus H-reflex. The participant views a large monitor screen that shows the background EMG level, the most recent H-reflex size, the number of trials completed so far in the current run of 75, and the running proportion of successful trials for the run. The sequence of events in one trial is denoted by the numbers 1-6, as described in the Introduction. Please click here to view a larger version of this figure.
A human H-reflex conditioning protocol typically consists of 6 baseline sessions, followed by 24-30 conditioning sessions spread over 10 weeks at a rate of 3 sessions/week, and several follow-up sessions over the subsequent 3-6 months14,16. Each session lasts 60-90 min.
To support this protocol as well as other related protocols, EPOCS has five distinct modes of operation, each served by one of the tabs of its main window, entitled Stimulus Test, Voluntary Contraction, Recruitment Curve, Control Trials, and Training Trials.
In Stimulus Test mode, the software triggers a stimulus every few seconds, not necessarily contingent on the state of the target muscle. The response signals are shown on the screen after each stimulus. This allows the operator to verify the quality of the electrode connections and the EMG signal; to optimize the position of the stimulating and recording electrodes; and to establish the individual's response morphology.
In Voluntary Contraction mode, the software measures and shows the background EMG level while the participant is encouraged to contract the muscle as much as possible, in the absence of electrical stimulation. In some protocols, the EMG level at maximum voluntary contraction (MVC) is a useful reference for setting the background EMG criteria. In the protocol demonstrated here, this is not necessary, as a stable standing posture standardizes the activity of the soleus muscle sufficiently.
In Recruitment Curve mode, stimulation is contingent on the background EMG level (shown continuously on the screen) remaining in the correct range; response signals are shown on the screen after each stimulus; and the sequence of responses may be analyzed at the end of a run. This allows the operator to determine the start and end of the time intervals in which the responses of interest appear; to determine the relationship between stimulation intensity and response size, both before and after the conditioning runs; and to determine the stimulation intensity to be used for conditioning.
In Control Trials mode, stimulation is contingent on the background EMG level (shown continuously on screen), but no feedback is given about the target response size. The sequence and distribution of response sizes may be analyzed. This mode may be used to gather baseline measurements of response size, or as a control condition for comparison against operant conditioning in a crossover or between-subjects experimental design. It can serve as a basis for setting the performance criterion for operant conditioning at the beginning of each session.
Finally, in Training Trials mode, stimulation is contingent on the background EMG level (shown continuously on screen), and trial-by-trial reinforcement is also provided by showing the target response size, as described above and shown in Figure 1. This is the mode in which operant conditioning is performed.
The next section will guide the reader through the five modes by demonstrating the protocol for down-conditioning the soleus H-reflex in an adult participant without neurological injury.