1. Introduction
Advancements in neuroimaging and neural recording techniques have enabled the simultaneous acquisition of several neurophysiological signals, providing an integrated approach to a more comprehensive understanding of the whole-brain dynamics. One approach involves the concurrent measurement of local field potentials (LFPs) during deep brain stimulation (DBS) and neuromagnetic signals acquired through magnetoencephalography (MEG).
These two modalities provide complementary information. LFPs reflect the local extracellular electrical potentials recorded directly from subcortical structures [
1]. MEG non-invasively measures the magnetic fields generated primarily by intracellular postsynaptic currents in synchronously active cortical pyramidal neurons [
2]. While electroencephalography (EEG) is a widely used method for recording cortical activity, MEG offers distinct advantages in this context. Unlike the electrical potentials measured by EEG, which are attenuated by the variable conductivity of the skull and scalp, magnetic fields pass through these tissues with minimal distortion. This grants MEG superior spatial resolution and facilitates more precise localization of the signal sources compared to EEG, while maintaining the same temporal resolution [
3].
Intracranial recordings have been extensively characterized, particularly in the context of epilepsy and Parkinson’s disease (PD). In PD, for instance, LFP recordings from the subthalamic nucleus (STN) have been crucial in identifying beta-band oscillations as a biomarker of motor impairment [
4,
5]. The information derived from LFPs provides high-precision local source dynamics, offering insights into neural synchrony and is conceptually comparable to source localization techniques or dipole modeling. However, while the electrophysiological signatures of PD are well-documented, the LFP characteristics in dystonia—typically targeted at the globus pallidus internus (GPi)—are less extensively studied and exhibit distinct spectral features, such as enhanced low-frequency pallidal activity [
6,
7].
The combination of LFP and MEG enables the investigation of cortical-subcortical dynamics by revealing oscillatory coherent networks and their frequency and topography [
8,
9]. The most challenging aspect of LFP-MEG recordings lies in the difficulty of acquiring both signals simultaneously, as they are typically recorded using independent and unsynchronized equipment. Integrating these techniques requires overcoming several technical hurdles, including signal synchronization across different systems, the management of noise and artifacts intrinsic to each recording method, and aligning data at the temporal level. Among all the issues described, the most significant challenge is aligning the signals. This alignment is crucial because it is not possible to physically couple the recording devices, as one is implanted (the DBS) and the other is external (the MEG).
We report the technical considerations, synchronization strategies and preliminary results of simultaneous MEG-LFP acquisition from globus pallidus internus (GPi) in a cohort of dystonic patients. Our results demonstrated the potential for future studies to leverage this combined approach for a more accurate understanding of cortico-subcortical interactions in dystonia is essential for elucidating the pathophysiology of the disorder and may contribute to the optimization of DBS stimulation.
2. Materials and Methods
2.1. Patients
This study included all the 11 patients who underwent stereotactic placement of bilateral leads in the GPi for inherited or idiopathic generalized drug-resistant dystonia at Fondazione IRCCS Istituto Neurologico Besta between December 2023 and February 2025. Individual demographic and clinical features for each patient are reported in
Table 1. There were 8 patients with inherited generalized dystonia and 3 patients with idiopathic dystonia. All patients were implanted with two SenSight (Medtronic) DBS electrode (left and right GPi), which include eight platinum–iridium contacts of 1.5 mm each in a 1-3-3-1 configuration and a contact-to-contact separation of 0.5 mm. This lead was specifically designed for directional sensing to minimize signal interference and recently got the FDA and CE mark approval for clinical use [
10]. Before starting the LFP recordings, an impedance test is always performed automatically to exclude lead encapsulation-related problems. In case of potential short (<250 ohms) or open (>10 Kohms) circuits, the sense channels involved are excluded. Surgery was performed using the Vantage frame (Elekta, Stockholm, Sweden) under general anesthesia with immediate verification of lead location with intra-operative CT scan (O-Arm, Medtronic). One month after surgery, all patients underwent brain MRI to rule out surgical complications and to verify correct lead placement.
2.2. LFP/MEG Acquisition Protocol
The MEG/LFP acquisition protocol was conducted the day before DBS surgery (T0), 1 month (T1), and 3 months (T2) after implantation. At T0 MEG signal was recorded at the baseline without any implanted device and under resting conditions for 3 min with eyes closed and 3 min with eyes open. At T1 and T2 the protocol consisted of 2 MEG acquisitions, each conducted for 3 min with eyes closed and 3 min with eyes open: (1) resting state without LFP recording and (2) resting state with LFP recording. Chronic GPi stimulation was started after T1.
LFP signals were acquired through the DBS device with two different modalities: Indefinite Streaming (IS) and BrainSense (BS). The IS mode allows continuous acquisition and recording of LFPs from three electrode pairs per hemisphere, with a sampling rate of 250 Hz and an FFT resolution of 0.98 Hz. The signal is filtered by a low-pass filter at 100 Hz and a high-pass filter at 1 Hz, with an additional adjustable filter at either 1 or 10 Hz. This mode represents a significant advancement over prior DBS systems, which were limited to episodic or short-duration LFP recordings. The BS mode allows recording the LFP signal at the same sampling rate (250 Hz) and FFT resolution (0.98 Hz) as the IS mode, while also delivering stimulation concurrently.
A 306-channel whole head MEG system (Triux, MEGIN, Helsinki, Finland) was used to collect the MEG signals. Pairs of electrodes positioned bilaterally 2–3 cm apart over the belly of the right and left flexor and extensor of the wrist were used to simultaneously record surface EMG signals. Moreover, bipolar electro-oculographic (EOG) and electrocardiographic signals (ECG) were acquired. All signals were sampled at 1 kHz. A 3D digitizer (FASTRAK, Polhemus, Colchester, VT, USA) was used to digitally capture the locations of five coils on the participant’s scalp, three anatomical landmarks (the nasion, right and left preauriculars), and additional scalp points before the recording for the purpose to continuously monitor the participant’s head position inside the MEG helmet and to co-register MEG signal and MR images. To characterize instrument and environmental noise, 2 min of empty room recordings were collected just before the patients’ acquisition. To remove external interference and correct for head motions, the raw MEG data were first pre-processed off-line using the spatio-temporal signal-space separation approach [
11] implemented in the Maxfilter 2.2 (MEGIN, Helsinki, Finland). The data were then band-pass filtered at 0.1–100 Hz. Cardiac and ocular movement artifacts were removed using the ICA algorithm based on EEGLAB toolbox [
12] implemented in a custom-made MATLAB code (R2021a, Mathworks Inc., Natick, MA, USA), using ECG and EOG as reference. To assess potential degradation of signal quality, we evaluated the Signal-to-Noise Ratio (SNR) across the 1–30 frequency range as the ratio of the signal power of a 2 min MEG recording of the patient in a resting state with eyes closed to the signal power of the recording in the empty room. All the analyses were performed using Brainstorm software and custom-made Matlab-based scripts.
The two main challenges in simultaneous MEG-LFP acquisition are potential artifacts on MEG signals due to the presence of a stimulator and the difficulty of offline signal synchronization. For the first issue, proper positioning of DBS transmitter and receiver was adopted. The communicator was placed as far as possible from the MEG sensor array, while the recording tablet was placed outside the magnetically shielded room and connected to the communicator via a cable passing through a shielded hole.
To obtain synchronizable recordings, two methods were adopted. In the first one (Tapping method), the stimulator was set to IS mode. At the beginning and end of each acquisition, an operator physically tapped three times on the Implantable Pulse Generator (IPG) site (chest or abdomen), where an accelerometer had been positioned. The tapping sequence consisted of a one-second interval between the first and second taps, and a two-second interval between the second and third taps. The mechanical impulse is transmitted from the IPG along the entire length of the implanted hardware, creating mechanically introduced noise. This results in a distinct artifact on the LFP signal, which appears simultaneously on the accelerometer trace recorded by the MEG equipment (
Figure 1).
In the second method (Stimulation method) the stimulator was set to BS mode and, at the beginning and at the end of each acquisition, a sham stimulation (0.2 mA at 125 Hz for 90 μs) was delivered by the stimulator, reproducing an artifact on the MEG signal (
Figure 1).
To detect and mark artifacts from tapping and stimulation, a consensus-based approach was employed to minimize subjectivity. Two experienced MEG operators (EV and DD) and two experienced LFP operators (VL and LB) inspected the respective signals simultaneously. Instead of independent scoring, the operators worked together to reach full agreement on both the identification of the artifacts and their precise temporal landmarks (specifically, the offset of the first artifact and the onset of the second). Afterward, the signals were downsampled to the LFP sampling frequency; finally, MEG and LFP signals were aligned.
2.3. Data Analysis
We collected the following parameters for the subsequent analysis: number of patients with detectable artefacts, and the phase shift error for both the Tapping and the Stimulation method. Moreover, we compared the SNR between the post-implantation and pre-implantation conditions for both MEG gradiometers and magnetometers (Wilcox signed-rank test; p < 0.05 was considered significant).
4. Discussion
This study demonstrated the feasibility of achieving simultaneous MEG and LFP acquisition with excellent results in terms of cortical signal quality, enabling the evaluation of complex brain dynamics in a more comprehensive way. Our results are consistent with those previously reported by Oswal et al. [
9], Werner et al. [
13], and Berki et al. [
14] who emphasized the complementary nature of MEG and LFP in studying brain oscillations relevant to movement disorders.
The practical issues addressed in this study concerned both the possibility of obtaining high-quality signals from both methods and the possibility of aligning the two signals. Acquiring the LFP signal required only a few adjustments to the position of the transmitter so that the signal could be picked up outside the magnetically shielded room. The small effect sizes observed for the SNR comparison further support the conclusion that the implantation procedure does not substantially affect MEG signal quality. The minimal change in both gradiometers and magnetometers confirms the robustness of the acquisition protocol and the feasibility of simultaneous MEG–LFP recordings without relevant degradation of cortical signal. The more pronounced decrease in SNR for magnetometers compared to gradiometers is expected, as magnetometers are generally more sensitive to environmental noise and artifacts. The lack of significant variation across individual sensors indicates that the implantation had a uniform effect on signal quality across the entire MEG system, suggesting that the implantation process does not substantially interfere with the overall MEG recordings.
The simultaneous recording of MEG and LFP overcomes the intrinsic limitations of using either technique in isolation. As noted, MEG captures the magnetic correlates of cortical pyramidal activity with high temporal resolution and minimal distortion from skull conductivity (“magnetic transparency”). However, its sensitivity decreases with depth, making the precise resolution of deep subcortical sources challenging. Conversely, LFPs provide a direct, high-amplitude electrical readout of local neuronal populations within the GPi, but lack spatial coverage of the cortex. By combining these modalities, our setup effectively bridges the macroscopic and microscopic scales. This integration fits within a broader context of recent studies, such as those by Litvak et al. [
15] and Wehmeyer et al. [
16], which highlight how functional connectivity analyses of the cortico-basal ganglia-thalamo-cortical networks can advance our understanding of circuit topology. This is particularly relevant for dystonia, which is increasingly conceptualized not as a focal lesion, but as a network disorder involving dysfunctional oscillations within these loops.
Regarding the LFP acquisition, we assessed two methods for LFP recording: Intra-operative (IS) and BrainSense (BS). The BS method is limited to acquiring signals from a single pair of contacts per hemisphere but offers the distinct advantage of allowing stimulation during recording, which aids synchronization with MEG. On the other hand, IS method grants the possibility to access all available contacts on the implanted electrodes, but it does not permit simultaneous stimulation. The flexibility in LFP recording approaches we observed is similar to the findings of Hnazaee et al. [
8], who successfully combined MEG with telemetric intracranial recordings, highlighting the practical trade-offs between spatial resolution and stimulation compatibility. Globally, both methods can be used, with dedicated adjustments.
The alignment of the LFP and MEG signals was achieved with two methods, Tapping and Stimulation. Stimulation artifacts are highly detectable due to their consistent and repetitive nature. They can be easily identified in MEG recordings as unusually high frequency activity. This method offers precision, but the number of available LFP recordings is limited by the method itself. Moreover, attention should be paid to artifacts due to harmonics and composition with the physiological signal; therefore, it is recommended that periods close to stimulation should not be selected as the beginning and end of the epoch to be analyzed. Tapping on the DBS device provides flexibility but requires careful standardization of both execution and detection. Tapping artifacts are less consistent and may vary in detectability depending on the force and location of the tap. However, this method enables acquisition from all available LFP contacts and has a lower impact on signal characteristics. Acquiring signals in both modalities is advantageous for gathering more information, and it likely represents the best operative solution. The demonstrated synchronization methods with tolerable temporal error support reliable frequency domain analyses, echoing artifact management strategies recommended by Oswal et al. [
9] that emphasize careful epoch selection and visual inspection for artifact handling.
Synchronization accuracy and precision showed a clear improvement over the course of the study. This trend, evidenced by reduction in temporal variability and more consistent artifact identification in later sessions, likely reflects increased operator familiarity with the acquisition protocol and refinements in the technical setup. Both methods ultimately demonstrated the potential to synchronize recordings with acceptable temporal error for integrated analyses. Specifically, frequency-domain techniques such as power spectral density estimation, which rely on averaging over multiple epochs, can tolerate minor timing discrepancies. These methods are designed to capture consistent patterns across frequencies, making them robust to slight misalignments—a strategy echoing artifact management recommendations by Oswal et al. [
9].
This study presents some limitations. First, the sample size is relatively small, although patients with dystonia eligible for DBS are quite rare. Second, artifact identification relied on visual inspection by expert raters, which may introduce a degree of subjectivity. Third, the lack of a shared hardware trigger between MEG and DBS systems introduces non-negligible temporal variability, particularly in the Stimulation method. This delay arises from a combination of technical factors, including intrinsic jitter in the DBS switching mechanism and the difficulty of visually isolating the exact onset of stimulation artifacts when superimposed on ongoing physiological MEG activity. Consequently, while current synchronization accuracy is sufficient for frequency-domain analyses, it limits the feasibility of strict time-domain analyses requiring millisecond-level precision. To address this, future work will focus on implementing automated artifact detection algorithms and advanced signal processing techniques to minimize this temporal offset.
Despite these limitations, our results align with prior studies linking subcortical oscillatory biomarkers to motor symptoms and DBS efficacy in movement disorders (Neumann et al. [
4]; Lofredi et al. [
5]). This integration strengthens the clinical and mechanistic relevance of simultaneous MEG-LFP studies for advancing neuromodulation therapies (Asadi et al. [
17]; Horn & Fox [
18]). Our future studies will analyse the two signals asynchronously, to characterise temporal dynamics in LFP and cortical activity, and synchronously, to elucidate potential functional relationships between them. These results pave the way for integrated studies of the interactions between the cortical and subcortical structures involved in the extended circuitry underlying dystonia, allowing the verification of the plastic modifications of the structure over time due to GPi stimulation.
5. Conclusions
This study evaluates the technical feasibility and reliability of simultaneous whole-head MEG and intracranial LFP recordings in patients with dystonia treated with Deep Brain Stimulation. We demonstrated that the presence of the implanted DBS hardware does not significantly compromise the quality or topographical integrity of neuromagnetic recordings, preserving the ability to perform accurate cortical source reconstruction.
We validated two complementary synchronization strategies, identifying a clear operational trade-off: the Tapping method maximizes spatial coverage by enabling access to all electrode contacts, whereas the Stimulation method offers superior consistency despite limited channel availability. This adaptable methodological frame-work effectively bridges the gap between macroscopic cortical dynamics and microscopic subcortical activity, overcoming the intrinsic limitations of single-modality recordings.
By providing a comprehensive view of the cortico-basal ganglia-thalamo-cortical loop, this multimodal approach provides an innovative framework to investigate the complex network dysfunctions underlying dystonia.