Search bioRxiv⌕ Search

Biology subjects

Abdelhedi, H.

Publications and source records attributed to Abdelhedi, H..

2 recordsLinked to original sources

Task-optimized neural networks reveal distinct contributions of specialized and broader visual learning to neural representations of face familiarity

How neural activity across the ventral visual hierarchy supports face recognition is an open question. A long-standing debate asks whether face processing, particularly in fusiform cortex, relies on face-specific computations or representations shared with broader visual recognition. Here we combine source-resolved magnetoencephalography (MEG) with task-optimized neural networks as controlled computational models of visual experience. Rather than manipulating long-term expertise in human observers, we systematically vary learning objective on the model side-what the networks are trained to recognize-while holding architecture and loss function constant within model comparisons. We then ask which learned representational geometries best align with neural responses, where and when. We measured millisecond-resolved brain-model alignment across V1, lateral occipital cortex (LOC) and fusiform cortex while participants viewed familiar, unfamiliar and scrambled faces. The same stimuli were presented to seven CNN architectures trained for face-identity recognition (FR), object-category recognition (OR) or object categorization including a face category (Dual), alongside untrained controls. Familiarity produced a stage-dependent dissociation: in LOC, familiar faces showed earlier brain-model alignment than unfamiliar faces in the M170 range, an effect most consistent in models trained for face-recognition, whereas broader objectives produced more variable, architecture-dependent peak alignment latencies. In fusiform cortex they showed stronger alignment around the M200 range. This fusiform advantage was not uniquely associated with face-recognition training: dual- and object-trained models showed greater fusiform correspondence than face-trained models. Together, these findings support stage-dependent specialization, with training for face-identity recognition constraining intermediate-stage timing while later fusiform representations remain compatible with representational structure acquired through broader visual computations.

neuroscience↗

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↗