LITcoder让脑科学模型构建更简单,一键对比不同方法效果。
LITcoder: A General-Purpose Library for Building and Comparing Encoding Models
- 模块化工具链,支持文本/语音与脑数据对齐、特征提取和建模
- 在3个故事听觉数据集上验证,提升模型预测性能
- 适合神经科学、脑机接口研究者快速搭建可比实验
我们提出LITcoder,一个开源神经编码模型构建与评估库。作为灵活的后端框架,它提供标准化工具,用于对齐连续刺激(如文本和语音)与脑数据,将刺激转化为表征特征,映射特征至脑数据,并在保留数据上评估模型预测性能。该库采用模块化流程,涵盖多种方法选择:脑数据集、脑区、刺激特征(基于神经网络与控制变量,如词频)、降采样方式等。同时支持内置日志、绘图及与Weights & Biases等实验追踪平台的无缝集成。我们通过在三个故事听觉数据集(LeBel et al., 2023;Narratives;Little Prince)上拟合多种编码模型,展示了框架的可扩展性与通用性。还探讨了连续fMRI数据建模中的关键方法选择:必须包含每个时间窗内所有词元(而非仅最后一个),考虑血流动力学延迟,使用防止信息泄露的训练-测试划分,以及校正头动对预测性的影响。LITcoder降低了编码模型实现的技术门槛,促进模型与数据集间的系统比较,提升方法严谨性,加速高质量脑活动预测模型的开发。项目页:https://litcoder-brain.github.io
原文摘要 · Abstract (English)
We introduce LITcoder, an open-source library for building and benchmarking neural encoding models. Designed as a flexible backend, LITcoder provides standardized tools for aligning continuous stimuli (e.g., text and speech) with brain data, transforming stimuli into representational features, mapping those features onto brain data, and evaluating the predictive performance of the resulting model on held-out data. The library implements a modular pipeline covering a wide array of methodological design choices, so researchers can easily compose, compare, and extend encoding models without reinventing core infrastructure. Such choices include brain datasets, brain regions, stimulus feature (both neural-net-based and control, such as word rate), downsampling approaches, and many others. In addition, the library provides built-in logging, plotting, and seamless integration with experiment tracking platforms such as Weights & Biases (W&B). We demonstrate the scalability and versatility of our framework by fitting a range of encoding models to three story listening datasets: LeBel et al. (2023), Narratives, and Little Prince. We also explore the methodological choices critical for building encoding models for continuous fMRI data, illustrating the importance of accounting for all tokens in a TR scan (as opposed to just taking the last one, even when contextualized), incorporating hemodynamic lag effects, using train-test splits that minimize information leakage, and accounting for head motion effects on encoding model predictivity. Overall, LITcoder lowers technical barriers to encoding model implementation, facilitates systematic comparisons across models and datasets, fosters methodological rigor, and accelerates the development of high-quality high-performance predictive models of brain activity. Project page: https://litcoder-brain.github.io
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。