Manel Vila-Vidal
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Manel Vila-Vidal has a total of 55 co-authors. Here are the top co-authors by number of shared publications:
- Adrià Tauste Campo
Computational Biology and Complex Systems Group, Department of Physics, Universitat Politècnica de Catalunya, Barcelona, Spain
7 shared publications - Gustavo Deco
Universitat Pompeu Fabra
7 shared publications Alessandro Principe
Hospital del Mar Medical Research Institute, 08003, Barcelona, Spain; Faculty of Health and Life Sciences, Universitat Pompeu Fabra, 08003, Barcelona, Spain; Epilepsy Monitoring Unit, Department of Neurology, Hospital del Mar, 08003, Barcelona, Spain
6 shared publicationsGustavo Deco
Center for Brain and Cognition, Department of Information and Communication Technologies, Universitat Pompeu Fabra, 08005, Barcelona, Spain; Institució Catalana de Recerca i Estudis Avançats, 08010, Barcelona, Spain
6 shared publications- Ludovica Mana
Center for Brain and Cognition, Computational Neuroscience Group, Department of Information and Communication Technologies, Universitat Pompeu Fabra, Barcelona, Spain
4 shared publications Rodrigo Rocamora
Hospital del Mar
4 shared publications
Latest Publications
- Open Access
- 1 August 2025
- Published by IOP Publishing in Journal of Neural Engineering
- Vol. 22 (4) , 046035
Preictal high-connectivity states in epilepsy: evidence of intracranial EEG, interplay with the seizure onset zone and network modeling
Objective. Epilepsy affects around 50 million people worldwide, and reliable pre-seizure biomarkers could significantly improve neuromodulation therapies for drug-resistant patients. Recent research using stereo-electroencephalography (sEEG) has revealed transient changes in network dynamics preceding seizures. In particular, our previous work showed that these alterations are driven by recurrent, short-lasting (0.6 s) high-connectivity network configurations—termed high-connectivity states (HCSs). Here, we aim to replicate and further characterize HCS as a biomarker in a multicentric patient cohort, assess its robustness across recording modalities and montages, explore its relationship with interpretable physiological variables, and examine its network-level association with seizure-onset zone (SOZ) dynamics. Approach. We analyzed long-term intracranial EEG recordings from 12 patients with sEEG and electrocorticography. In two patients with extensive clinical information, we examined the interplay between HCS and SOZ dynamics. We also developed a low-dimensional stochastic network model to investigate mechanistic rationales of HCS emergence. Additionally, we compared HCS dynamics with gamma-band activity and heart rate, and tested robustness across different montage configurations. Main Results. In most patients, HCS probability reliably increased hours before seizure onset. In the two deeply characterized patients, this increase was specifically linked to an increased network centrality within the SOZ. The network model revealed that changes in HCS probability stem primarily from topological reconfigurations rather than changes in mean connectivity, underscoring the importance of dynamic interactions between epileptogenic and non-epileptogenic regions. Significance. These results support HCS probability as a promising biomarker for early seizure prediction and offer mechanistic insights into pre-seizure brain network dynamics.
- 1 August 2025
- Published by IOP Publishing in Journal of Neural Engineering
- Vol. 22 (4) , 046035
Open AccessPreictal high-connectivity states in epilepsy: evidence of intracranial EEG, interplay with the seizure onset zone and network modeling
Objective. Epilepsy affects around 50 million people worldwide, and reliable pre-seizure biomarkers could significantly improve neuromodulation therapies for drug-resistant patients. Recent research using stereo-electroencephalography (sEEG) has revealed transient changes in network dynamics preceding seizures. In particular, our previous work showed that these alterations are driven by recurrent, short-lasting (0.6 s) high-connectivity network configurations—termed high-connectivity states (HCSs). Here, we aim to replicate and further characterize HCS as a biomarker in a multicentric patient cohort, assess its robustness across recording modalities and montages, explore its relationship with interpretable physiological variables, and examine its network-level association with seizure-onset zone (SOZ) dynamics. Approach. We analyzed long-term intracranial EEG recordings from 12 patients with sEEG and electrocorticography. In two patients with extensive clinical information, we examined the interplay between HCS and SOZ dynamics. We also developed a low-dimensional stochastic network model to investigate mechanistic rationales of HCS emergence. Additionally, we compared HCS dynamics with gamma-band activity and heart rate, and tested robustness across different montage configurations. Main Results. In most patients, HCS probability reliably increased hours before seizure onset. In the two deeply characterized patients, this increase was specifically linked to an increased network centrality within the SOZ. The network model revealed that changes in HCS probability stem primarily from topological reconfigurations rather than changes in mean connectivity, underscoring the importance of dynamic interactions between epileptogenic and non-epileptogenic regions. Significance. These results support HCS probability as a promising biomarker for early seizure prediction and offer mechanistic insights into pre-seizure brain network dynamics.
- 27 March 2025
- Published by Springer Nature in Nature Mental Health
- Vol. 3 (4) , 408-420
Subgroup-specific brain connectivity alterations in early stages of psychosis
- 27 March 2025
- Published by Springer Nature in Nature Mental Health
- Vol. 3 (4) , 408-420
Subgroup-specific brain connectivity alterations in early stages of psychosis
- Open Access
- 19 August 2024
- Published by Elsevier in Journal of Neuroscience Methods
- Vol. 411, 110238
A comparative study between a power and a connectivity sEEG biomarker for seizure-onset zone identification in temporal lobe epilepsy
- 19 August 2024
- Published by Elsevier in Journal of Neuroscience Methods
- Vol. 411, 110238
Open AccessA comparative study between a power and a connectivity sEEG biomarker for seizure-onset zone identification in temporal lobe epilepsy
- Open Access
Brain network connectivity underlying remission in early psychosis: a whole brain model approach
Background Alterations in brain connectivity occur early during psychosis and underlie the clinical manifestations of the illness as well as patient functioning and outcome. After a first episode of psychosis (FEP), different trajectories are possible and best described by the clinical-staging model that places the patient along a continuum of conditions: from non-remitting chronic symptoms to full-remission, often followed by relapses. However, little is known about the differences in brain connectivity that could underlie these differences in clinical outcome. Methods In this study, we included resting-state fMRI and DSI data from a cohort of 128 healthy controls (HC) and 88 patients with early psychosis (EP) stratified based on their ability to remit after the FEP. In particular we focused on differences between stage IIIb,c remitting-relapsing (EP3R) and stage IIIa non-remitting (EP3NR) patients. We investigated alterations in resting-state functional connectivity (FC), and combined information derived from fMRI and DSI into generative whole-brain models of each condition to explore the underlying mechanisms. Results Opposite alterations in FC could be found in patients as compared to HC, depending on their stage. In non-remitting patients (EP3NR), we observed a reduction of FC, aligned with the reduced structural connectivity found in previous studies, while remitting-relapsing patients (EP3R) showed increased FC, potentially indicating a relevant compensatory mechanism. By means of a whole-brain network model, we showed that in HC a subset of areas is characterized by increased stability to prevent an oversynchronisation of the network, while in EP3 patients such property is lost. This alteration was more relevant in the EP3R than in EP3NR patients, probably indicating a compensatory response to the reduced effective conductivity (global coupling) highlighted by the model in both EP3 conditions as compared to controls. Conclusions These findings highlight the significance of categorizing patients into subgroups based on the progression of their psychotic disorders, providing insights into the factors contributing to heterogeneity in functional alterations. They enhance our understanding of the interplay between structural and functional properties, shedding light on the mechanisms of psychosis emergence, remission and progression, with potential implications for future therapeutic advancements.
Open AccessBrain network connectivity underlying remission in early psychosis: a whole brain model approach
Background Alterations in brain connectivity occur early during psychosis and underlie the clinical manifestations of the illness as well as patient functioning and outcome. After a first episode of psychosis (FEP), different trajectories are possible and best described by the clinical-staging model that places the patient along a continuum of conditions: from non-remitting chronic symptoms to full-remission, often followed by relapses. However, little is known about the differences in brain connectivity that could underlie these differences in clinical outcome. Methods In this study, we included resting-state fMRI and DSI data from a cohort of 128 healthy controls (HC) and 88 patients with early psychosis (EP) stratified based on their ability to remit after the FEP. In particular we focused on differences between stage IIIb,c remitting-relapsing (EP3R) and stage IIIa non-remitting (EP3NR) patients. We investigated alterations in resting-state functional connectivity (FC), and combined information derived from fMRI and DSI into generative whole-brain models of each condition to explore the underlying mechanisms. Results Opposite alterations in FC could be found in patients as compared to HC, depending on their stage. In non-remitting patients (EP3NR), we observed a reduction of FC, aligned with the reduced structural connectivity found in previous studies, while remitting-relapsing patients (EP3R) showed increased FC, potentially indicating a relevant compensatory mechanism. By means of a whole-brain network model, we showed that in HC a subset of areas is characterized by increased stability to prevent an oversynchronisation of the network, while in EP3 patients such property is lost. This alteration was more relevant in the EP3R than in EP3NR patients, probably indicating a compensatory response to the reduced effective conductivity (global coupling) highlighted by the model in both EP3 conditions as compared to controls. Conclusions These findings highlight the significance of categorizing patients into subgroups based on the progression of their psychotic disorders, providing insights into the factors contributing to heterogeneity in functional alterations. They enhance our understanding of the interplay between structural and functional properties, shedding light on the mechanisms of psychosis emergence, remission and progression, with potential implications for future therapeutic advancements.
- Open Access
A comparative study between a power and a connectivity sEEG biomarker for seizure-onset zone identification in temporal lobe epilepsy
Background: Ictal stereo-encephalography (sEEG) biomarkers for seizure onset zone (SOZ) localization can be classified depending on whether they target abnormalities in signal power or functional connectivity between signals, and they may depend on the frequency band and time window at which they are estimated. New method: This work aimed to compare and optimize the performance of a power and a connectivity-based biomarkers to identify SOZ contacts from ictal sEEG recordings. To do so, we used a previously introduced power-based measure, the normalized mean activation (nMA), which quantifies the ictal average power activation. Similarly, we defined the normalized mean strength (nMS), to quantify the ictal mean functional connectivity of every contact with the rest. The optimal frequency bands and time windows were selected based on optimizing AUC and F2-score. Results: The analysis was performed on a dataset of 67 seizures from 10 patients with pharmacoresistant temporal lobe epilepsy. Our results suggest that the power-based biomarker generally performs better for the detection of SOZ than the connectivity-based one. However, an equivalent performance level can be achieved when both biomarkers are independently optimized. Optimal performance was achieved in the beta and lower-gamma range for the power biomarker and in the higher-gamma range for connectivity, both using a 30 s period after seizure onset. Conclusions: The results of this study highlight the importance of this optimization step over frequency and time windows when comparing different SOZ discrimination biomarkers. This information should be considered when training SOZ classifiers on retrospective patients’ data for clinical applications.
Open AccessA comparative study between a power and a connectivity sEEG biomarker for seizure-onset zone identification in temporal lobe epilepsy
Background: Ictal stereo-encephalography (sEEG) biomarkers for seizure onset zone (SOZ) localization can be classified depending on whether they target abnormalities in signal power or functional connectivity between signals, and they may depend on the frequency band and time window at which they are estimated. New method: This work aimed to compare and optimize the performance of a power and a connectivity-based biomarkers to identify SOZ contacts from ictal sEEG recordings. To do so, we used a previously introduced power-based measure, the normalized mean activation (nMA), which quantifies the ictal average power activation. Similarly, we defined the normalized mean strength (nMS), to quantify the ictal mean functional connectivity of every contact with the rest. The optimal frequency bands and time windows were selected based on optimizing AUC and F2-score. Results: The analysis was performed on a dataset of 67 seizures from 10 patients with pharmacoresistant temporal lobe epilepsy. Our results suggest that the power-based biomarker generally performs better for the detection of SOZ than the connectivity-based one. However, an equivalent performance level can be achieved when both biomarkers are independently optimized. Optimal performance was achieved in the beta and lower-gamma range for the power biomarker and in the higher-gamma range for connectivity, both using a 30 s period after seizure onset. Conclusions: The results of this study highlight the importance of this optimization step over frequency and time windows when comparing different SOZ discrimination biomarkers. This information should be considered when training SOZ classifiers on retrospective patients’ data for clinical applications.
- Open Access
- 5 November 2023
- Published by Elsevier in IBRO Neuroscience Reports
- Vol. 15, S802
ASSESSING THE COUPLING BETWEEN LOCAL NEURAL ACTIVITY AND GLOBAL CONNECTIVITY FLUCTUATIONS IN HUMAN INTRACRANIAL ELECTROENCEPHALOGRAPHY DURING A COGNITIVE TASK
- 5 November 2023
- Published by Elsevier in IBRO Neuroscience Reports
- Vol. 15, S802
Open AccessASSESSING THE COUPLING BETWEEN LOCAL NEURAL ACTIVITY AND GLOBAL CONNECTIVITY FLUCTUATIONS IN HUMAN INTRACRANIAL ELECTROENCEPHALOGRAPHY DURING A COGNITIVE TASK
- 16 March 2023
- Published by Oxford University Press (OUP) in Cerebral Cortex
- Vol. 33 (12) , 7642-7658
Using in silico perturbational approach to identify critical areas in schizophrenia
Schizophrenia is a debilitating neuropsychiatric disorder whose underlying correlates remain unclear despite decades of neuroimaging investigation. One contentious topic concerns the role of global signal (GS) fluctuations and how they affect more focal functional changes. Moreover, it has been difficult to pinpoint causal mechanisms of circuit disruption. Here, we analyzed resting-state fMRI data from 47 schizophrenia patients and 118 age-matched healthy controls and used dynamical analyses to investigate how global fluctuations and other functional metastable states are affected by this disorder. We found that brain dynamics in the schizophrenia group were characterized by an increased probability of globally coherent states and reduced recurrence of a substate dominated by coupled activity in the default mode and limbic networks. We then used the in silico perturbation of a whole-brain model to identify critical areas involved in the disease. Perturbing a set of temporo-parietal sensory and associative areas in a model of the healthy brain reproduced global pathological dynamics. Healthy brain dynamics were instead restored by perturbing a set of medial fronto-temporal and cingulate regions in the model of pathology. These results highlight the relevance of GS alterations in schizophrenia and identify a set of vulnerable areas involved in determining a shift in brain state.
- 16 March 2023
- Published by Oxford University Press (OUP) in Cerebral Cortex
- Vol. 33 (12) , 7642-7658
Using in silico perturbational approach to identify critical areas in schizophrenia
Schizophrenia is a debilitating neuropsychiatric disorder whose underlying correlates remain unclear despite decades of neuroimaging investigation. One contentious topic concerns the role of global signal (GS) fluctuations and how they affect more focal functional changes. Moreover, it has been difficult to pinpoint causal mechanisms of circuit disruption. Here, we analyzed resting-state fMRI data from 47 schizophrenia patients and 118 age-matched healthy controls and used dynamical analyses to investigate how global fluctuations and other functional metastable states are affected by this disorder. We found that brain dynamics in the schizophrenia group were characterized by an increased probability of globally coherent states and reduced recurrence of a substate dominated by coupled activity in the default mode and limbic networks. We then used the in silico perturbation of a whole-brain model to identify critical areas involved in the disease. Perturbing a set of temporo-parietal sensory and associative areas in a model of the healthy brain reproduced global pathological dynamics. Healthy brain dynamics were instead restored by perturbing a set of medial fronto-temporal and cingulate regions in the model of pathology. These results highlight the relevance of GS alterations in schizophrenia and identify a set of vulnerable areas involved in determining a shift in brain state.
- Open Access
Using in silico perturbational approach to identify critical areas in schizophrenia
Schizophrenia is a debilitating neuropsychiatric disorder whose underlying correlates remain unclear despite decades of neuroimaging investigation. One contentious topic concerns the role of global signal fluctuations and how they affect more focal functional changes. Moreover, it has been difficult to pinpoint causal mechanisms of circuit disruption. Here we analysed resting-state fMRI data from 47 schizophrenia patients and 118 age-matched healthy controls and used dynamical analyses to investigate how global fluctuations and other functional metastable states are affected by this disorder. We then used in-silico perturbation of a whole-brain model to identify critical areas involved in the disease. We found that brain dynamics in the schizophrenic group were characterised by an increased probability of globally coherent states and reduced recurrence of a substate dominated by coupled activity in the default mode and limbic networks. Perturbing a set of temporoparietal sensory and associative areas in a model of the healthy brain reproduced global pathological dynamics. Healthy brain dynamics were instead restored by perturbing a set of medial fronto-temporal and cingulate regions in the model of pathology. These results highlight the relevance of global signal alterations in schizophrenia and identify a set of vulnerable areas involved in determining a shift in brain state.
Open AccessUsing in silico perturbational approach to identify critical areas in schizophrenia
Schizophrenia is a debilitating neuropsychiatric disorder whose underlying correlates remain unclear despite decades of neuroimaging investigation. One contentious topic concerns the role of global signal fluctuations and how they affect more focal functional changes. Moreover, it has been difficult to pinpoint causal mechanisms of circuit disruption. Here we analysed resting-state fMRI data from 47 schizophrenia patients and 118 age-matched healthy controls and used dynamical analyses to investigate how global fluctuations and other functional metastable states are affected by this disorder. We then used in-silico perturbation of a whole-brain model to identify critical areas involved in the disease. We found that brain dynamics in the schizophrenic group were characterised by an increased probability of globally coherent states and reduced recurrence of a substate dominated by coupled activity in the default mode and limbic networks. Perturbing a set of temporoparietal sensory and associative areas in a model of the healthy brain reproduced global pathological dynamics. Healthy brain dynamics were instead restored by perturbing a set of medial fronto-temporal and cingulate regions in the model of pathology. These results highlight the relevance of global signal alterations in schizophrenia and identify a set of vulnerable areas involved in determining a shift in brain state.
- Open Access
- 27 November 2022
- Published by Wiley in Human Brain Mapping
- Vol. 44 (3) , 1173-1192
Assessing the coupling between local neural activity and global connectivity fluctuations: Application to human intracranial electroencephalography during a cognitive task
Cognitive-relevant information is processed by different brain areas that cooperate to eventually produce a response. The relationship between local activity and global brain states during such processes, however, remains for the most part unexplored. To address this question, we designed a simple face-recognition task performed in patients with drug-resistant epilepsy and monitored with intracranial electroencephalography (EEG). Based on our observations, we developed a novel analytical framework (named "local-global" framework) to statistically correlate the brain activity in every recorded gray-matter region with the widespread connectivity fluctuations as proxy to identify concurrent local activations and global brain phenomena that may plausibly reflect a common functional network during cognition. The application of the local-global framework to the data from three subjects showed that similar connectivity fluctuations found across patients were mainly coupled to the local activity of brain areas involved in face information processing. In particular, our findings provide preliminary evidence that the reported global measures might be a novel signature of functional brain activity reorganization when a stimulus is processed in a task context regardless of the specific recorded areas.
- 27 November 2022
- Published by Wiley in Human Brain Mapping
- Vol. 44 (3) , 1173-1192
Open AccessAssessing the coupling between local neural activity and global connectivity fluctuations: Application to human intracranial electroencephalography during a cognitive task
Cognitive-relevant information is processed by different brain areas that cooperate to eventually produce a response. The relationship between local activity and global brain states during such processes, however, remains for the most part unexplored. To address this question, we designed a simple face-recognition task performed in patients with drug-resistant epilepsy and monitored with intracranial electroencephalography (EEG). Based on our observations, we developed a novel analytical framework (named "local-global" framework) to statistically correlate the brain activity in every recorded gray-matter region with the widespread connectivity fluctuations as proxy to identify concurrent local activations and global brain phenomena that may plausibly reflect a common functional network during cognition. The application of the local-global framework to the data from three subjects showed that similar connectivity fluctuations found across patients were mainly coupled to the local activity of brain areas involved in face information processing. In particular, our findings provide preliminary evidence that the reported global measures might be a novel signature of functional brain activity reorganization when a stimulus is processed in a task context regardless of the specific recorded areas.
- Open Access
Assessing the coupling between local neural activity and global connectivity fluctuations: Application to human intracranial EEG during a cognitive task
Cognitive-relevant information is processed by different brain areas that cooperate to eventually produce a response. The relationship between local activity and global brain states during such processes, however, remains for the most part unexplored. To address this question, we designed a simple face-recognition task performed in patients with drug-resistant epilepsy and monitored with intracranial EEG. Based on our observations, we developed a novel analytical framework (named “local-global” framework) to statistically correlate the brain activity in every recorded gray-matter region with the widespread connectivity fluctuations as proxy to identify concurrent local activations and global brain phenomena that may plausibly reflect a common functional network during cognition. The application of the local-global framework to the data from 3 subjects showed that similar connectivity fluctuations found across patients were mainly coupled to the local activity of brain areas involved in face information processing. In particular, our findings provide preliminary evidence that the reported global measures might be a novel signature of functional brain activity reorganization when a stimulus is processed in a task context regardless of the specific recorded areas. Data availability statement: Due to institutional restrictions, the data that supports the findings of this study can be accessed only with a data sharing agreement. All code used in this work can be found at https://github.com/mvilavidal/localglobal2022 . Funding statement: MVV was supported by a fellowship from ”la Caixa” Foundation, Spain (ID 100010434, fellowship code LCF/BQ/DE17/11600022). MVV and ATC were supported by the Bial Foundation grant 106/18. GD and ATC were supported by the project ”Clúster Emergent del Cervell Humà” (CECH, ref. 001-P-001682), within the framework of the European Research Development Fund Operational Program of Catalonia 2014-2020. GD was supported by a Spanish national research project (ref. PID2019-105772GB-I00 MCIU AEI) funded by the Spanish Ministry of Science, Innovation and Universities (MCIU), State Research Agency (AEI); HBP SGA3 Human Brain Project Specific Grant Agreement 3 (grant agreement no. 945539), funded by the EU H2020 FET Flagship programme; SGR Research Support Group support (ref. 2017 SGR 1545), funded by the Catalan Agency for Management of University and Research Grants (AGAUR); Neurotwin Digital twins for model-driven non-invasive electrical brain stimulation (grant agreement ID: 101017716) funded by the EU H2020 FET Proactive programme; euSNN European School of Network Neuroscience (grant agreement ID: 860563) funded by the EU H2020 MSCA-ITN Innovative Training Networks; Brain-Connects: Brain Connectivity during Stroke Recovery and Rehabilitation (id. 201725.33) funded by the Fundacio La Marato TV3; Corticity, FLAG–ERA JTC 2017, (ref. PCI2018-092891) funded by the Spanish Ministry of Science, Innovation and Universities (MCIU), State Research Agency (AEI). Conflict of interest disclosure: The authors declare no conflicts of interest. Ethics approval statement: The study was conducted in accordance with the Declaration of Helsinki. All diagnostic, surgical and experimental procedures have been previously approved by The Clinical Ethical Committee of Hospital Clínic (Barcelona, Spain). In particular, the specific proposal to run the cognitive experiments for this study was approved in March 2020 under the code number HCB/2020/0182. Patient consent statement: Informed consent was explicitly obtained from all participants prior to the recordings and the performance of the tasks.
Open AccessAssessing the coupling between local neural activity and global connectivity fluctuations: Application to human intracranial EEG during a cognitive task
Cognitive-relevant information is processed by different brain areas that cooperate to eventually produce a response. The relationship between local activity and global brain states during such processes, however, remains for the most part unexplored. To address this question, we designed a simple face-recognition task performed in patients with drug-resistant epilepsy and monitored with intracranial EEG. Based on our observations, we developed a novel analytical framework (named “local-global” framework) to statistically correlate the brain activity in every recorded gray-matter region with the widespread connectivity fluctuations as proxy to identify concurrent local activations and global brain phenomena that may plausibly reflect a common functional network during cognition. The application of the local-global framework to the data from 3 subjects showed that similar connectivity fluctuations found across patients were mainly coupled to the local activity of brain areas involved in face information processing. In particular, our findings provide preliminary evidence that the reported global measures might be a novel signature of functional brain activity reorganization when a stimulus is processed in a task context regardless of the specific recorded areas. Data availability statement: Due to institutional restrictions, the data that supports the findings of this study can be accessed only with a data sharing agreement. All code used in this work can be found at https://github.com/mvilavidal/localglobal2022 . Funding statement: MVV was supported by a fellowship from ”la Caixa” Foundation, Spain (ID 100010434, fellowship code LCF/BQ/DE17/11600022). MVV and ATC were supported by the Bial Foundation grant 106/18. GD and ATC were supported by the project ”Clúster Emergent del Cervell Humà” (CECH, ref. 001-P-001682), within the framework of the European Research Development Fund Operational Program of Catalonia 2014-2020. GD was supported by a Spanish national research project (ref. PID2019-105772GB-I00 MCIU AEI) funded by the Spanish Ministry of Science, Innovation and Universities (MCIU), State Research Agency (AEI); HBP SGA3 Human Brain Project Specific Grant Agreement 3 (grant agreement no. 945539), funded by the EU H2020 FET Flagship programme; SGR Research Support Group support (ref. 2017 SGR 1545), funded by the Catalan Agency for Management of University and Research Grants (AGAUR); Neurotwin Digital twins for model-driven non-invasive electrical brain stimulation (grant agreement ID: 101017716) funded by the EU H2020 FET Proactive programme; euSNN European School of Network Neuroscience (grant agreement ID: 860563) funded by the EU H2020 MSCA-ITN Innovative Training Networks; Brain-Connects: Brain Connectivity during Stroke Recovery and Rehabilitation (id. 201725.33) funded by the Fundacio La Marato TV3; Corticity, FLAG–ERA JTC 2017, (ref. PCI2018-092891) funded by the Spanish Ministry of Science, Innovation and Universities (MCIU), State Research Agency (AEI). Conflict of interest disclosure: The authors declare no conflicts of interest. Ethics approval statement: The study was conducted in accordance with the Declaration of Helsinki. All diagnostic, surgical and experimental procedures have been previously approved by The Clinical Ethical Committee of Hospital Clínic (Barcelona, Spain). In particular, the specific proposal to run the cognitive experiments for this study was approved in March 2020 under the code number HCB/2020/0182. Patient consent statement: Informed consent was explicitly obtained from all participants prior to the recordings and the performance of the tasks.