bioRxiv Science⌕ Search

Biology subjects

Dehgan, A.

Publications and source records attributed to Dehgan, A..

5 recordsLinked to original sources

MEEGNet: An open source python library for the application of convolutional neural networks to MEG

Artificial Neural Networks (ANNs) are rapidly gaining traction in neuroscience, proving invaluable for decoding and modeling brain signals from techniques such as electroencephalography (EEG) and functional magnetic resonance imaging (fMRI). Although these networks are beginning to find applications in magnetoencephalography (MEG), their use in this domain is still in the early stages. Here, we introduces MEEGNet, a novel Python library paired with an intuitive convolutional neural network (CNN) architecture designed primarily for MEG data, yet adaptable to EEG signals. The MEEGNet model was trained and cross-validated using MEG data from 643 participants across four classification tasks, including auditory and visual stimulus classification and age prediction. Our model achieves competitive performance across all tasks, with a notable balance of accuracy and efficiency--for instance, reaching 92.70% test accuracy in an auditory vs. visual classification task while maintaining shorter training times than other architectures. The MEEGNet pipeline also integrates latent space visualization tools, adapted for MEG and EEG data. These include saliency maps and Grad-CAM methods, which enhance the interpretability of ANN-based classification and help address the black-box critique of such models. Importantly, the MEEGNet library is designed for extensibility, allowing the neuroscience and machine learning communities to add functionalities and ANN models. By prioritizing usability, transparency, and interpretability, MEEGNet empowers MEG- and EEG-based research with a user-friendly and modular framework.

neuroscience↗

Decentralizing genetic testing for biodiversity monitoring and biosurveillance with the Nucleic Acid Barcode Identification Tool (NABIT) and Molecular Development Kit (MDK).

O_LIThe escalating threats to biodiversity, public health, and food security posed by emerging infectious diseases and illegal wildlife trafficking requires novel approaches to biosurveillance. This paper introduces two innovations developed to address these multifaceted challenges: the Nucleic Acid Barcode Identification Tool (NABIT) and the Molecular Development Kit (MDK). C_LIO_LIThe NABIT is a handheld, battery-powered device that enables genetic tests to be performed at the point of contact by non-technical users, creating a critical bridge between centralized laboratories and the field by reducing barriers to accessible and routine genetic testing. Verification testing and validation results for the NABIT and the lyophilized assays used with it demonstrate key performance parameters, including sample preparation, detection sensitivity, and stability of field-ready assays after 17 months without refrigeration. C_LIO_LIThe MDK complements the NABIT by providing a framework for third-party development and deployment of field-ready genetic assays. Similar to software development kits (SDKs), the MDK offers documentation, software tools, and NABIT hardware to accelerate the development of new assays, enabling early detection strategies and minimizing future losses. Crucially, the MDK empowers scientists worldwide to contribute to a new ecosystem for wildlife genetics and biosurveillance by developing their own field-ready tests for the NABIT. C_LIO_LIIn summary, the NABIT and MDK present the potential for a paradigm shift in biosurveillance, ecosystem monitoring, and biodiversity conservation, enabling decentralized genetic testing, early disease detection, and rapid response to protect sensitive ecosystems, public health, and food security. C_LI

bioengineering↗

Class imbalance should not throw you off balance: Choosing classifiers and performance metrics for brain decoding with imbalanced data

Machine learning (ML) is increasingly used in cognitive, computational and clinical neuroscience. The reliable and efficient application of ML requires a sound understanding of its subtleties and limitations. Training ML models on datasets with imbalanced classes is a particularly common problem, and it can have severe consequences if not adequately addressed. With the neuroscience ML user in mind, this paper provides a didactic assessment of the class imbalance problem and illustrates its impact through systematic manipulation of data imbalance ratios in (i) simulated data and (ii) brain data recorded with electroencephalography (EEG) and magnetoencephalography (MEG). Our results illustrate how the widely-used Accuracy (Acc) metric, which measures the overall proportion of successful predictions, yields misleadingly high performances, as class imbalance increases. Because Acc weights the per-class ratios of correct predictions proportionally to class size, it largely disregards the performance on the minority class. A binary classification model that learns to systematically vote for the majority class will yield an artificially high decoding accuracy that directly reflects the imbalance between the two classes, rather than any genuine generalizable ability to discriminate between them. We show that other evaluation metrics such as the Area Under the Curve (AUC) of the Receiver Operating Characteristic (ROC), and the less common Balanced Accuracy (BAcc) metric - defined as the arithmetic mean between sensitivity and specificity, provide more reliable performance evaluations for imbalanced data. Our findings also highlight the robustness of Random Forest (RF), and the benefits of using stratified cross-validation and hyperprameter optimization to tackle data imbalance. Critically, for neuroscience ML applications that seek to minimize overall classification error, we recommend the routine use of BAcc, which in the specific case of balanced data is equivalent to using standard Acc, and readily extends to multi-class settings. Importantly, we present a list of recommendations for dealing with imbalanced data, as well as open-source code to allow the neuroscience community to replicate and extend our observations and explore alternative approaches to coping with imbalanced data.

neuroscience↗

NeuroPycon: A free Python toolbox for fast multi-modal and reproducible brain connectivity pipelines

Recent years have witnessed a massive push towards reproducible research in neuroscience. Unfortunately, this endeavor is often challenged by the large diversity of tools used, project-specific custom code and the difficulty to track all user-defined parameters. NeuroPycon is an open-source multi-modal brain data analysis toolkit which provides Python-based template pipelines for advanced multi-processing of MEG, EEG, functional and anatomical MRI data, with a focus on connectivity and graph theoretical analyses. Importantly, it provides shareable parameter files to facilitate replication of all analysis steps. NeuroPycon is based on the NiPype framework which facilitates data analyses by wrapping many commonly-used neuroimaging software tools into a common Python environment. In other words, rather than being a brain imaging software with is own implementation of standard algorithms for brain signal processing, NeuroPycon seamlessly integrates existing packages (coded in python, Matlab or other languages) into a unified python framework. Importantly, thanks to the multi-threaded processing and computational efficiency afforded by NiPype, NeuroPycon provides an easy option for fast parallel processing, which critical when handling large sets of multi-dimensional brain data. Moreover, its flexible design allows users to easily configure analysis pipelines by connecting distinct nodes to each other. Each node can be a Python-wrapped module, a user-defined function or a well-established tool (e.g. MNE-Python for MEG analysis, Radatools for graph theoretical metrics, etc.). Last but not least, the ability to use NeuroPycon parameter files to fully describe any pipeline is an important feature for reproducibility, as they can be shared and used for easy replication by others. The current implementation of NeuroPycon contains two complementary packages: The first, called ephypype, includes pipelines for electrophysiology analysis and a command-line interface for on the fly pipeline creation. Current implementations allow for MEG/EEG data import, pre-processing and cleaning by automatic removal of ocular and cardiac artefacts, in addition to sensor or source-level connectivity analyses. The second package, called graphpype, is designed to investigate functional connectivity via a wide range of graph-theoretical metrics, including modular partitions. The present article describes the philosophy, architecture, and functionalities of the toolkit and provides illustrative examples through interactive notebooks. NeuroPycon is available for download via github (https://github.com/neuropycon) and the two principal packages are documented online (https://neuropycon.github.io/ephypype/index.html. and https://neuropycon.github.io/graphpype/index.html). Future developments include fusion of multi-modal data (eg. MEG and fMRI or intracranial EEG and fMRI). We hope that the release of NeuroPycon will attract many users and new contributors, and facilitate the efforts of our community towards open source tool sharing and development, as well as scientific reproducibility.

neuroscience↗

Decoding the neural dynamics of oculomotor decision making in humans

How do we choose a particular action among equally valid alternatives? Non-human primate findings have shown that decision-making implicates modulations in unit firing rates and local field potentials (LFPs) across frontal and parietal cortices. Yet the electrophysiological brain mechanisms that underlie free choice in humans remain ill defined. Here, we address this question using rare intracerebral EEG recordings in surgical epilepsy patients performing a delayed oculomotor decision task. We find that the temporal dynamics of high gamma (HG, 60-140 Hz) neural activity in distinct frontal and parietal brain areas robustly discriminate free choice from instructed saccade planning at the level of single trials. Classification analysis was applied to the LFP signals to isolate decision-related activity from sensory and motor planning processes. Compared to instructed saccades, free choice trials exhibited delayed and longer-lasting HG activity. The temporal dynamics of these sustained decision-related responses distinguished deliberation-related from working memory processes. Taken together, these findings provide the first direct electrophysiological evidence in humans for the role of sustained high-frequency neural activation in fronto-parietal cortex in mediating the intrinsically driven process of freely choosing among competing behavioral alternatives. HighlightsO_LIFirst intracerebral recordings in humans performing an oculomotor decision-making task C_LIO_LIMachine learning analytics unravel underlying spectral and temporal brain dynamics C_LIO_LIFree choice trials exhibit sustained fronto-parietal high gamma (HG) activity during the delay C_LIO_LIMaking a decision and maintaining it in working memory are associated with distinct sustained HG dynamics C_LI

neuroscience↗