Introduction

The brain is a highly organized structure consisting of many different types of neurons, which transmit information through their electrical activity, termed “spikes” or “action potentials”. Therefore, studies of such electrical signals at single-cell resolution can provide valuable insights into brain functions1,2. However, because extracellularly detected electrical signals of individual neurons are very faint, precise isolation of single neuronal activity from background noise and other neuronal activity becomes a key technical challenge, especially in studies using freely behaving animals. To overcome this difficulty, various electrophysiological methods have been reported3,4,5,6. Although the configurations of electrodes and recording devices vary depending on the target brain areas or behaviors, technical efforts for measuring single neuronal activity can be lumped into two major approaches: electrode positioning and spike sorting7,8,9,10. The former approach emphasizes careful manipulation of recording electrodes to position them close to target cells. The latter approach is primarily based on the presumed consistency of the spike shape and amplitude for a given neuron and enables recorded spikes to be sorted and classified into spike clusters of different putative neurons.

For measuring neuronal activity in relatively small brain areas such as the vocal-related nuclei in songbirds and the accessory olfactory bulb in rodents, compact and lightweight motorized microdrive devices have been developed8,11,12,13. These miniature microdrives are equipped with small brushless DC motors (BLDCs) for the electrode positioning and are connected through cables with an electrophysiological amplifier and a motor driver for the BLDCs8,11,12,13. Because the position of the electrodes can be remotely controlled without interfering with animal behaviors8, neuronal activity related to naturally occurring behaviors can be efficiently explored and can often successfully be isolated at single cell resolution8. Furthermore, by applying spike sorting to the recorded data, more precise analyses of single neuronal activity can be achieved. Indeed, this technology has greatly contributed to the understanding of neural mechanisms underlying vocal communication in songbirds11,13,14,15 and pheromonal communication in rodents12. With further modifications of such motorized microdrive systems, precise electrophysiological analyses at the single-cell level could be applied to other behavioral studies.

To meet the strong demands for the understanding of brain circuit operations in freely behaving animals in larger spaces or natural environments, different types of wireless recording devices have been developed16,17,18,19,20,21,22,23 and are expanding the range of behaviors that can be studied. Similarly, if neural recording using precision motorized microdrives could be performed without cables, the motorized microdrive system would also be useful to investigate single neuronal activity from freely behaving animals in broader spaces, in either indoor or outdoor settings. The main challenge in developing such a wireless recording system with a motorized microdrive is that all of the component devices, including the motor driver and an electrophysiological amplifier, must be built into a compact and lightweight package that a subject animal can carry with minimal discomfort or hindrance.

In this study, we report a novel wireless recording system with a motorized microdrive. For this, we have developed a compact wireless interface (WIF) and improved the “wired” recording system into a compact and handy “wireless” one. The WIF includes a motor driver for BLDCs and an electrophysiological amplifier in addition to a Bluetooth wireless transceiver. Thus, the electrode position can be wirelessly controlled to isolate single neuronal activity in naturally behaving animals without interfering with their behaviors. Because the WIF is equipped with a newly developed data-encoding program optimized for neural signals, the brain activity can be continuously observed in real time and further analyzed using online or offline spike-sorting programs. To assess the utility of the wireless recording system with motorized microdrive, we performed single unit recording in the thalamic parafascicular nucleus (PF)24,25,26 in a naturally behaving rat and observed that a PF neuron increased its firing rate at the moment of encounter with a conspecific and the neuron maintained the firing rate during the social interaction. Our wireless recording using a precision motorized microdrive will become a useful tool with broad applicability for exploring brain mechanisms underlying natural or social behaviors.

Results

A motor driver and a wireless interface construct

We first designed a miniature motor driver to operate a motorized microdrive (Fig. 1a, Supplementary Fig. S1). As previously described13, the microdrive includes three planetary-geared BLDCs to move three recording electrodes forward and backward along the motor axis. Each BLDC has three terminals, which are internally connected with different electro-magnetic windings (Fig. 1b, left). To precisely control the position of the three electrodes in an independent manner, the motor driver must supply appropriate sets of command signals to all these nine BLDC terminals.

Figure 1
figure 1

A wireless interface (WIF) for the motorized microdrive.

(a) A motorized microdrive with three recording electrodes. Electrodes and BLDCs are connected to the WIF through a small 10-pin connector (arrow head). (b) A wiring schematic between the BLDCs and the motor driver (left). An example set of the motor driver command for driving motor 1 (right). (c) A circuit diagram of the motor driver. Square voltage waves are synthesized by operation of three analog switches through the programmable input/output ports (GPIOs) in the microcontroller (MCU). (d) Precision control of the electrode movements by square voltage pulses. The average displacement of an electrode linearly increases as a function of the number of pulses when 5 or more square pulses are applied as the command signal. Error bars indicate ± s.e.m. (n = 10). (e) System overview. An electrophysiological amplifier, consisting of amplifier and filter circuits, is connected with the analog-to-digital converter (ADC) of the MCU, which converts analog recorded signals into digital data; a Bluetooth wireless transceiver is connected with the universal asynchronous receiver transmitter (UART) port of the MCU. (f) A circuit board of the WIF (both sides). An arrowhead, a closed circle and an asterisk indicate a connector for the motorized microdrive, a connector for the Bluetooth transceiver and the terminals for updating the firmware of the MCU, respectively. (g) A rat carrying a microdrive and WIF on the head and a battery on the back.

To make the motor driver compact, we reduced the total number of the command signals for motor control and, as previously reported8, adopted combinations of only five voltage patterns to control all the BLDCs. As illustrated in the left panel of Figure 1b, each BLDC was connected to receive a unique command voltage signal (Va1, Va2, or Va3) in addition to common ones (Vb and Vc). When the motor driver generates a square voltage wave in Va1 with a 90° phase difference to the common square wave in Vb and simultaneously supplies constant voltages to Va2 and Va3, the electromagnetic force for motor rotation is only produced in motor 1 and not in motor 2 or 3 (Fig. 1b right). The travel distance of the electrode is controlled by changing the number of square pulses (N in Fig. 1b). The direction of the electrode movement can be reversed by opposing the phase difference between these two square waves. In this way, we can discretely control the three BLDCs. Such motor control using square voltage waves is advantageous in developing a small and lightweight motor driver; desired square voltage waveforms with sufficient currents to drive the BLDCs (approximately 100 mA) can be easily synthesized, simply by operating analogue switches through the programmable input/output ports (GPIOs) of a microcontroller (MCU) (Fig. 1c).

For the isolation of single neuronal activity, micrometer-scale control of electrode position often becomes essential. Because the motor control is open-loop, the initial positional relationship between the stator windings and the magnet rotor in the BLDCs cannot be controlled. This may affect the motor movement especially when applying a small number of square voltage pulses. To test whether our motor driver can actually adjust the electrode position with micrometer resolution, we estimated the minimal step distance of the electrode movement. The motor driver was connected to a microdrive and command voltage signals consisting of 1 to 24 square pulses were generated. When command signals of less than 5 square pulses were applied, the BLDC movement became unstable. In contrast, when 5 or more square pulses were applied as the command signal, the average displacement of the electrode tip linearly increased as a function of the pulse number (displacement (μm) = 0.34N – 0.54 with R2 = 0.997, where N (≥ 5) is the number of square pulses) (Fig. 1d). Thus the practical minimal step distance can be given by a command signal of 5 square pulses, which results in approximately 1.2 µm of electrode movement. This indicates that our motor driver, simply consisting of a MCU and analogue switches, can achieve precision control of electrode position with micrometer resolution.

Next we constructed an all-in-one wireless interface (WIF) that includes all of the functions required for wireless recording in addition to a motor driver (Fig. 1e). Because the MCU, used for operation of our motor driver, also contains useful functions for communication with and operation of other devices, we utilized these MCU-embedded functions (see Methods) and also integrated an electrophysiological amplifier and a Bluetooth wireless transceiver into a compact circuit board (Fig. 1e and f). As a result, we could make the WIF compact enough (16 (w) × 20 (h) ×7 (d) mm, 3.1 g) to be mountable on the animal head along with the motorized microdrive (Fig. 1g). Within one week after implantation of the wireless recording system, the animals carrying the whole system, including a harness with a 16 g battery pack, could perform a complex operant task at the same level as before surgery (Supplementary Fig. S2). Thus our wireless recording system is sufficiently small and lightweight to study complex animal behavior and it enables the precise control of electrode movement without affecting animal behaviors.

Data compression for stable wireless transmission

For precise single unit analysis, the neuronal signals must be continuously monitored in real time to control electrode placement or to perform spike-sorting analysis. In our system, recorded neuronal signals are converted to digital data with a sampling frequency of 20 kHz and a 10-bit resolution by an analog-to-digital converter (ADC) (Fig. 2a upper). If the digitized data are encoded to a 10-bit length as they are, the wireless transceiver must continuously transmit the data at 200 kilobits per second (kbps) or faster. To address whether and how far, our wireless recording system can stably transmit at the required bit rate, we examined the actual data transfer rate in our laboratory space. The average transfer rate gradually decreased with increasing distance and was reduced to less than 200 kbps approximately 5 m from the WIF (Fig. 2b). Furthermore, the movement of the WIF greatly affected its transfer rate and the wireless transmission became unstable.

Figure 2
figure 2

Data compression for stable wireless transmission.

(a) Schematics for signal processing of the recorded neuronal signals in the MCU. ADC, analog-to-digital converter; FIFO Buffer, first-in first-out ring buffer; Data Encoder, variable-length encoding process; First-order Difference, first-order difference operation. (b) The relationship between the data transfer rate and the distance. Thick horizontal black, blue and red lines indicate the transfer rates required for real-time data transmission of neural signals with a fixed-length format (I), variable-length encoding process only (II) and first-order difference operation and variable-encoding process (III), respectively. Pale blue and red bands indicate s.d. in (II) and (III), respectively. (c) Data format before and after the variable-length encoding process. (d) Comparison of compression efficiency. Data size of the neuronal activity with a high firing rate (asterisk) became larger after the variable-length encoding process than the original. Note that the data could be compressed almost to the theoretical minimum size calculated by Shannon entropy.

To expand the range of stable wireless communication, we developed a data-encoding program that converts sampled values into variable bit-length codes to reduce the data size. In extracellular recording of neuronal signals, although “spike” events display large deviation from the basal resting potential, a considerable proportion of data points are concentrated around the basal level because spikes are brief events (Supplementary Fig. S3), meaning that values of higher bits tend to be zero and non-informative. Therefore, to reduce bit lengths, after analog-to-digital conversion, we added an encoding process (Fig. 2a middle) that removes consecutive zeros from the binary strings and instead adds strings indicating the bit length of the informative part. As shown in Figure 2c, each sampled value (u) can be expressed with a sign bit (S), consecutive zeros and informative n-bit string (n is defined as an integer satisfying 2n > |u|). On the other hand, after the variable-length encoding process, each data point is expressed as a variable-length string consisting of unary representation for the informative bit length (n-k+1; k is a compression-parameter integer satisfying 0 ≤ k ≤ n and can be remotely controlled) and binary representation for the sign and informative value (Fig. 2c).

To evaluate the compression efficiency, the data size of neural recordings in the cortex, hippocampus, or thalamus (n = 6 each) was compared before and after the variable-length encoding process. In most cases, the encoding process effectively reduced the sampled data (Fig. 2d, compression efficiency: cortex 59.6 ± 12.2%; hippocampus 68.3 ± 10.2%; and thalamus 71.4 ± 15.5% (mean ± s.d., n = 6 each)). Thus the variable-length encoding process reduced the minimal transfer rate required for real-time data transmission to 132.8 ± 26.2 kbps (blue line in Fig. 2b). However, when the sampled neuronal signal frequently reached a high value, for example when spikes were generated with high frequency (asterisk in Fig. 2d), the total data size after the variable-length encoding process became rather larger than that of the original data encoded with a fixed-length binary coding. To compensate for this, we added the first-order difference operation before the variable-length encoding process (Fig. 2a bottom), because the first-order difference operation can effectively cancel out a large deviation from zero and reduce the sampled value even when generating action potentials (Supplementary Fig. S3). As a result, the variable-length encoding process with the first-order difference operation consistently rendered the data size smaller not only in comparison with the original but also in comparison with the encoding process only (Supplementary Fig. S4, Fig. 2d). Remarkably, through optimizing the variable-length encoder by adjusting the value of compression-parameter k after the first-order difference operation, the individual data sizes were reduced nearly to their theoretical limit for lossless compression, which could be calculated as Shannon entropy27 (Fig. 2d). Thus, our data-encoding program effectively reduces the minimal transfer rate required for real-time data transmission to 95.3 ± 9.9 kbps (red line in Fig. 2b) and successfully expands the wireless communication range, where neural activity can be stably monitored in real time.

Signal quality of the wireless recording system

To evaluate the signal quality of the wireless system, we compared the recorded data of our WIF with those of a conventional wired recording system. To make a direct comparison between wireless and wired recording systems, the same recording electrodes were connected to both the WIF and the conventional electrophysiological amplifier in a parallel manner and we simultaneously performed wireless and wired recordings in the cortex, hippocampus, or thalamus of head-fixed rats.

The signal amplitude and the level of background noise were almost equivalent between these two systems (Fig. 3a). Similar to the spikes obtained using the wired system, the wirelessly-recorded spikes, detected by amplitude thresholding and isolated by spike shapes, were clearly distinguished from the background noise (Fig. 3b). The signal-to-noise ratio (SNR) (average SNR in the wireless and wired system: 21.85 dB and 22.13 dB, respectively) was closely similar between these two systems (Fig. 3c) (Pearson's correlation coefficient = 0.9925, n = 11). Furthermore, the patterns of spike clusters were almost the same (Fig. 3b and Supplementary Fig. S5) and the numbers of detected spike events in each recording session were completely identical between these two different recording configurations. Thus, the direct comparison between wireless and wired recording systems demonstrated that wireless electrophysiological recording using our WIF can provide recording quality of neural signals comparable to the conventional wired electrophysiological amplifier.

Figure 3
figure 3

Direct comparison of signal quality between wired and wireless systems.

(a) Neural data from the same electrode obtained simultaneously using wired and wireless systems. The example trace included spikes with two different amplitudes (red and blue), suggesting that activities of two different neurons were detected. (b) Scatter plot of spike width (WH) and spike peak amplitude (VPP) was generated for the same data presented in (a). All deflections with negative peaks below -6 µV, including background noise (grey), were used. (c) Comparison of signal-to-noise ratio (SNR, mean ± s.d.) in each single unit activity between the wired and wireless systems. The SNR was closely similar between the wired and wireless systems (n = 11; Pearson's correlation coefficient = 0.9925).

Wireless recording in freely behaving animals using the motorized microdrive system

Encounters with and recognition of familiar conspecifics induce characteristic behaviors. However, neural processing of such social-cognitive interactions is largely undefined. We conducted a trial of our wireless recording system to explore neuronal activity relevant to social contact. The motorized microdrive was implanted so as to target the thalamic parafascicular nucleus (PF) (Fig. 4a), which is known to be a part of the ascending reticular activating system28 and the WIF was mounted on the rat's head along with the microdrive. After the subject equipped with the wireless recording system was released in an 80 cm × 80 cm square space, we wirelessly observed the neural activity in real time to adjust the electrode placement. When faint signals of spike discharges were detected (Fig. 4b left), by carefully advancing the recording electrode, the peak-to-peak amplitudes of spike events (VPP) became larger, presumably reflecting the approach of the electrode tip to the cell body of the PF neuron (Fig. 4b middle and right). Thus we could efficiently isolate spikes of the PF neurons from the background noise by wirelessly adjusting the electrode position, indicating that, similar to the tethered motorized microdrive, our wireless system allows high-quality recording and analysis of single neuronal activity in behaving animals.

Figure 4
figure 4

Wireless isolation and recording of single unit activity in the parafascicular nucleus from a freely behaving rat.

(a) A coronal section confirming the recording site (asterisk) in the parafascicular nucleus (PF). The sample was counter-immunostained with anti-NeuN antibody. Scale bar indicates 2 mm. f, fasciculus retroflexus. (b) Neural data recorded by the same electrode in the PF at a depth of 5.592 mm, 5.600 mm and 5.606 mm are presented. For the scatter plot of spike width (WH) and spike peak amplitude (VPP), all deflections with a negative peak below -20 µV from the same data presented above were used. Overlaid waveforms of all the detected deflections including background noise are shown in the insets. Vertical and horizontal scale bars indicate 100 µV and 0.5 ms, respectively. Black and red indicate deflections with a VPP value < 0.1 mV and ≥ 0.1 mV, respectively. (c) Another rat was introduced to the field. (d) Activity of a putative PF neuron in response to the introduction of another rat.

Previous studies demonstrated that the PF neurons, which extensively project to the cortex and the basal ganglia, display activity in response to salient stimuli, suggesting that they may play an important role in selecting or supporting complex forms of cognition and voluntary behavior depending on the situations24,29,30. To test whether the PF neurons alter their activity depending on the social situations, we introduced another rat, which was familiar to the subject, in the same field (Fig. 4c). As shown in Figure 4d, the PF neuron increased its firing rate in response to the encounter with the conspecific animal. Interestingly, the neuron maintained the increased firing rate while the second animal was present in the same space, possibly affecting the behavioral bias during the social contact.

Finally, to estimate the practical transmission range of the WIF implanted on a behaving subject, we performed wireless recording in an indoor open space (Fig. 5). Because the space was not equipped with an electric power socket, a battery-operated laptop computer with a compact Bluetooth transceiver was used for all the recording tasks: controlling the electrode placement, decoding the compressed recorded data and monitoring single neuronal activity in real time. When the animal was placed more than 8 m from the computer, the wireless transmission was frequently interrupted by a slight movement of the subject. However, at a distance less than 5 m from the computer, the neuronal signals could be stably observed during various behaviors. Importantly, although the space was not electromagnetically shielded, the noise level of the recorded data was comparable to that in the shielded space, indicating that our wireless recording system could be useful not only in indoor but also in outdoor experiments.

Figure 5
figure 5

Wireless recording in an indoor open space.

Wireless recording of single neuronal activity in the thalamus was performed using a battery-operated laptop computer with a USB Bluetooth transceiver placed 1 m (left) or 5 m (right) from the animal. The space was not electromagnetically shielded.

Discussion

Cables between animals and recording devices are sometimes troublesome for studying behaviors, such as vocal communication in common marmosets16,31, perception of three-dimensional space in flying bats32 and burrowing behavior in rodents18. To overcome the difficulties, different types of wireless chronic recording systems have been developed16,18,31,32. Most of these wireless devices are designed to be used in combination with multi-channel recording electrodes such as multi-electrode arrays, silicon probes, or tetrodes. However, these multi-channel recording approaches for studying single neuronal activity may not be suitable in some situations, such as when small brain areas are targeted, for example, or when a specific type of neuron, particularly with a small cell body or with a high firing rate, is studied4,8,12. To complement these approaches, we established a wireless recording method with a motorized microdrive. Using our system, the position of electrodes can be wirelessly adjusted with the micrometer precision (Fig. 1) so that activity of single neurons can be efficiently explored without affecting animal behavior (Fig. 4). Because the recorded data were transmitted using digital technology, our wireless system is robust to noise and allows high-quality recording comparable to the tethered recording system (Fig. 3). In addition, because the signals detected by the electrodes can be continuously monitored in real time, further strict analyses of single neuronal activity can be achieved by online or offline spike sorting.

When using such a wireless recording system with motorized positioners for electrodes, in exchange for being released from the restraints of cables, the subject must instead be loaded with all of the devices: a motor driver, an electrophysiological amplifier and a wireless transceiver. We therefore developed a compact and lightweight WIF that integrates all of these devices (Fig. 1). One of the difficulties in constructing such a WIF is that it handles quite different types of electrical signals. The motor driver must synthesize voltage pulses with amplitude of 6 V generating currents of approximately 100 mA. In contrast, the electrophysiological amplifier must magnify faint neuronal signals under 100 microvolts. And the wireless transceiver not only continuously relays the recorded data from the amplifier to a remote computer but also intermittently relays the control commands from the computer to the motor driver. To implement these different functions through a compact WIF package, we utilized the MCU-based digital operation and a wireless technology termed Bluetooth. As a result, the WIF became small and light enough to be mountable on a rat's head, along with the motorized microdrive (Fig. 1g).

In addition to remote fine control of electrode positioning, the development of a compact wireless recording system for single-unit recording must address the problem of secure and high-speed transmission of the whole data. Although spike sorting is useful and widely used in various in vivo electrophysiological studies, the sorting analysis requires several processes and subtle changes in each process dramatically affect the results9,10,33,34,35. Therefore, to determine the best spike-sorting algorithms suitable for each recording session, the whole recorded data should be transferred and stored in advance. Moreover, as shown in Figure 4b, a fine movement of a recording electrode greatly affects the intensity of neuronal signals and the isolation of single units from others or background noise. A rapid movement of the subject may cause the displacement of electrodes, resulting in an alteration of the signal condition. Therefore, ideally, the neuronal signal should be transmitted without interruption and observed in real time. As demonstrated in Figure 2b, the transfer rate of Bluetooth decreases with increasing distance. Therefore, for secure wireless transmission and real-time inspection of the data, one solution is to reduce the data size without losing the data quality before wireless transmission and to restore the compressed data after receiving it. Thus, we created a simple and practical encoding program for reversible data compression. We optimized the encoding program based upon the characteristics of extracellularly recorded neuronal signals in different brain areas, which were digitized with a sampling frequency of 20 kHz and a 10-bit resolution; we added the first-order difference operation before the variable-length encoding process and determined the compression parameter from a remote host computer. As a result, we successfully reduced the data size nearly to the theoretical boundary of lossless compression, which can be calculated as Shannon entropy27. The optimization of the variable-length encoding process may depend on various factors, such as the gain and the filter properties of electrophysiological amplifiers and the sampling rate and the resolution of the analog-to-digital conversion process. For example, with a higher sampling rate, a second- or third-order difference operation could more efficiently reduce the data size. Hence, to apply our encoding strategy to different brain areas or different recording setups, it is important to systematically examine the order of the difference operation and the compression parameter (Supplementary Fig. S3 and S4).

We demonstrated that single neuronal activity in a freely behaving rat could be wirelessly isolated and the recording system is less likely to interfere with its social interaction or communication than a wired device (Fig. 4). Such single-unit recordings during interactive behavior between two animals can also be performed using a tethered recording system12. However, our wireless system would allow electrophysiological study of behavior among a large number of animals. Furthermore, because the individual Bluetooth devices are designed to avoid interfering with each other by continuously changing the frequency for wireless communication using a radio technology called frequency-hopping spread spectrum, we can perform neural recording simultaneously from several different animals in the same place. Thus our wireless recording system with a motorized microdrive is useful for studying brain mechanisms involved in various social behaviors. Another advantage of our system is its portability and usability. Conventional tethered recording generally requires electrophysiological devices, power supplies for them and electro-magnetic shields. But, in some situations, it may be difficult to set up these apparatuses in large or outdoor spaces. In contrast, our wireless recording system works only with a battery-operated laptop computer equipped with a Bluetooth transceiver and does not require any other devices that are necessary for analog systems16,17,18,19,31,32. One of the concerns about our recording system is its relative narrow working area in comparison with a previously reported analogue wireless recording system18. The wireless transmission range can be improved by selecting a Bluetooth transceiver with a high-performance antenna and adjusting its placement. Importantly, digital wireless communication such as Bluetooth technology, which is broadly used in indoor or outdoor spaces, is highly resistant to noise and in general does not require any electro-magnetic shielding covering the space.

The wireless recording system reported here still has several limitations. For example, the wireless transmission rate of Bluetooth technology is lower than that necessary for simultaneous multichannel recording. The total weight of our system, especially a battery for the WIF, is still too heavy for behavioral studies of small animals such as mice and songbirds. However, our novel technologies for wireless recording, the wireless control system for electrode placement and the lossless data-encoding system suitable for continuous monitoring and spike sorting analysis, can be further refined for more advanced neural recording systems in the future. The recording system reported here, or further improved devices, with the capability for wireless measurement of single neuronal activity in freely behaving animals, will open new possibilities in neuroscience research.

Methods

Motorized microdrive and wireless interface (WIF)

A miniature motorized microdrive was constructed as previously reported13, with minor modifications. The microdrive was equipped with custom-made planetary-geared BLDCs (reduction ratio, 1:337; Namiki Precision Jewel) and recording electrodes were fixed on the electrode-holding shuttles that could travel along the threaded motor shafts (pitch, 125 µm). The electrodes and the BLDC-terminals of the microdrive were connected to the WIF using a 10-pin male connector (Omnetics) cable. To minimize the artifacts and electromagnetic noise, we modified the cable and added buffer amplifiers for impedance matching between the 10-pin male connector of the microdrive side and the cable.

The WIF consisting of a motor driver for three BLDCs, a 3-channel electrophysiological amplifier, a Bluetooth transceiver, a power-supply circuit and a MCU (LPC2368, NXP semiconductor) was assembled on a custom printed circuit board (Kansai Electronics). The core of the motor driver consists of CMOS analog-switch modules (MAX4602EAE, Maxim Integrated Products), each of which contains 4 normally-open type switches. The analog-switches are operated by the MCU through its GPIO ports. To estimate the minimal step distance of the electrode movement, the microdrive was placed on the stage of an inverted microscope (IX73, Olympus) and the electrode tip was imaged using a 20× objective and CCD camera (DP80, Olympus). After generating the same command voltage signals (1 to 24 square pulses) 10 times, the total displacement of the electrode tip was measured using imaging software (cellSens Standard, Olympus). The electrophysiological amplifier, with a fixed gain of 5000, consists of two-stage operational amplifiers and fixed bandpass filter circuits (0.1–3 kHz) and its outputs were connected to the MCU ports for analog-to-digital conversion (measurement range, 0 V to +3 V). The Bluetooth transceiver (ZEAL-C02, ADC technologies) communicates with the MCU through the universal asynchronous receiver/transmitter (UART) ports. Thus the MCU relays the amplified neural signals to the Bluetooth transceiver and operates the BLDCs according to the motor commands received by the Bluetooth transceiver. Firmware, including a data-encoding program, for the MCU was written in C language.

Animal preparation and implantation surgery

All procedures were in accordance with the National Institutes of Health Guide for the Care and Use of Laboratory Animals and were approved by the Institutional Animal Care and Use Committee of Kyoto University.

Male Long-Evans rats (Institute for Animal Reproduction) weighing 450–550 g were used for the wireless recording experiments in freely behaving states and the operant conditioning (Supplementary Fig. S2). For other experiments, male Wistar rats (SLC) were used. Animals were kept under a 12:12 hr light:dark cycle with food and water ad libitum, except for those used for the operant conditioning in which water was removed 16–18 hr before the sessions during the experimental days.

Animals were initially anesthetized with an intraperitoneal administration of ketamine (50 mg/kg) and xylazine (2 mg/kg). After a skin incision, 10 miniature anchor screws were attached to the skull. A small hole was made in the skull above the area of interest and the microdrive was positioned with the help of a stereotaxic apparatus. The stereotaxic coordinates from the bregma were as follows: anterior-posterior (AP) -4.0 mm, medial-lateral (ML) 1.0 mm (for recording in the PF) and AP -3.5– -4.0 mm, ML 2.3–2.5 mm (for recording in the cortex, thalamus and hippocampus). After penetration of electrodes across the dura was confirmed, the microdrive was fixed on the skull with acrylic resin. The brain surface was protected with gentamicin-containing ointment. The WIF, sealed with epoxy-based glue to prevent short circuits, was fixed on the head along with the microdrive.

To power the WIF, we used lithium-ion rechargeable batteries (3.7 V, 160 mAh, 4.0 g, 39 × 12 × 8 mm, Turnigy nano-tech). A single battery, or 4 batteries connected in parallel, was carried using a jacket harness (RJ02, BRC). For operant training, we used 4 batteries (total weight 16.0 g). We could conduct continuous recording for 3 hours using 4 batteries and for 1 hour using a single one. The electric power required for driving the BLDCs is approximately 400 mW, which is almost twice as much as that for wireless transmission. However, each operation of the BLDCs is instantaneous (20–100 ms) and control of the electrode position did not affect battery lifetime.

Histological analysis

After electrophysiological recordings, rats were deeply anesthetized with an overdose of sodium pentobarbital (100 mg/kg, i.p.). Marking lesions were made by passing DC currents (10 μA for 20 s) through recording electrodes as previously described13. Animals were perfused transcardially with 4% formaldehyde in 0.1 M phosphate buffer (PB), pH 7.3. Brain samples were cryoprotected with 30% sucrose in PBS overnight at 4°C and cryosectioned coronally into 40-μm-thick sections. After pre-incubation with PBS containing 10% normal goat serum and 0.1% Triton X-100, the sections were incubated with mouse anti-Neu-N antibody (1:1000; MAB377, Millipore) in PBS containing 10% normal goat serum and 0.1% Triton X-100 overnight at 4°C. After washes in PBS, the sections were incubated with goat anti-mouse immunoglobulin G conjugated with Alexa 488 (1:500; A11029, Invitrogen) for 1 hr at room temperature. All sections were imaged using a fluorescence microscope (BZ-9000, Keyence). Images were acquired with a 4× objective and tiled together using a BZ-II Analyzer to show the whole section images.

Wireless and wired recording and data acquisition

For all the recording sessions, tungsten electrodes with 1.2– 1.5 MΩ impedance at 1 kHz (MicroProbes) were used. For wireless recording through the WIF, a desktop or laptop computer running under Microsoft Windows 7 (64-bit) with a USB Bluetooth dongle (BT-MicroEDR2X, Planex Communications Inc.) was used. The data transmitted through the Bluetooth wireless transceiver on the subject were decoded by a custom program running as a dynamic link library under Windows OS. For tethered recording, recording electrodes were connected to the head stage (HZP, Grass Technologies) of an electrophysiological amplifier (P511, Grass Technologies). The data obtained by the tethered system were bandpass-filtered (0.1–3 kHz) and analog-to-digital converted with a sampling frequency of 20 kHz using a data acquisition card (PCI-6052E, National Instruments).

Data analysis

Offline spike sorting and all statistical analyses were conducted using MATLAB. Offline spike sorting was performed in a semi-automated manner. All negative peaks with amplitude above a manually defined peak threshold were extracted. Then, waveforms around the negative peaks were used to calculate peak-to-peak voltages (VPP) and widths of the half trough (WH). VPP was defined as the amplitude difference of the negative peak to the maximum value within 1 ms. WH was defined as the difference in time between the two sample points crossing the 50% mark of the negative peak amplitude. Then, the scatter plot of WH and VPP was generated and spike events were manually clustered.

Signal-to-noise ratio (SNR) was defined by the equation below, as previously described16:

where SDN indicates the standard deviation of the background noise (0.3–0.6 ms preceding all negative peaks).

Entropy of neural signals before and after the first-, second-, or third-order difference operation was calculated to assess the theoretical limit for reversible compression, because it is impossible to compress the data to less than the source entropy (information-theoretic content)27. Given a neural signal X with integers ranging from -1023 to 1023, the Shannon's information amount for value i, I(i) and entropy, H, were calculated as follows:

where P(i) is the fraction (or probability) of value i within X. With a base 2 logarithm as shown above, both information amount and entropy have “bit” as units.