Token导航 LogoToken导航

Agent Skill · 研究检索

neural-population-decoding-analysis(神经群体解码分析)

neural-population-decoding-analysis 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

neural-population-decoding-analysis 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为权限未标注;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 9,498。

总安装 14,133周安装 745GitHub Stars 18下载 10,077核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:neural-population-decoding-analysis(神经群体解码分析)
来源仓库:https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills
仓库路径:skills/neural-population-decoding-analysis
安装命令:
npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills --skill 'Neural Population Decoding Analysis'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills --skill 'Neural Population Decoding Analysis'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

实现从神经放电模式到行为意图的解码算法开发。常用于脑机接口研究中运动想象或决策过程重构。支持线性判别、贝叶斯滤波等多种解码器实现路径。性能评估依赖高质量标定数据集与交叉验证策略。neural-population-decoding-analysis 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/neural-population-decoding-analysis

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscie…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    权限没有明确标注,第一次使用时只给一个无关紧要的任务,观察它到底读了哪些文件和网络。

常见问题

6 条

neural-population-decoding-analysis 怎么安装?

在终端执行 npx skills add https://github.com/haoxuanlithuai/awesome_cognitive_and_neuroscience_skills…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

neural-population-decoding-analysis 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

neural-population-decoding-analysis 需要什么权限?

权限级别没有明确标注。第一次使用时建议只给无关紧要的任务,观察它实际读写了哪些内容。

neural-population-decoding-analysis 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

neural-population-decoding-analysis 用的人多吗?

公开数据是累计安装 14,133 次,近一周安装 745 次,下载 10,077 次,GitHub 18 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

neural-population-decoding-analysis 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
neural-population-decoding-analysis

神经群体解码分析 · 本页

14,13318权限未标注未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Neural Population Decoding Analysis

Purpose

This skill encodes expert methodological knowledge for multivariate neural decoding analyses in systems neuroscience. It covers cross-validated classification (MVPA), representational similarity analysis (RSA), temporal generalization, and encoding models. The skill provides domain-specific decision logic, parameter recommendations, and pitfall warnings that a machine-learning engineer without neuroscience training would not know.

When to Use This Skill

  • Determining whether stimulus or task information is represented in neural population activity
  • Comparing the representational geometry of brain regions to computational models
  • Characterizing the temporal dynamics of neural representations from EEG/MEG
  • Building encoding models to predict neural responses from stimulus features
  • Designing a decoding analysis pipeline and choosing appropriate methods and parameters

Research Planning Protocol

Before executing the domain-specific steps below, you MUST:

  1. State the research question — What specific representational or informational question is this decoding analysis addressing?
  2. Justify the method choice — Why decoding/RSA (not univariate analysis, connectivity, etc.)? What alternatives were considered?
  3. Declare expected outcomes — What decoding accuracy or representational structure would support vs. refute the hypothesis?
  4. Note assumptions and limitations — What does this method assume? Where could it mislead (e.g., confounds, leakage)?
  5. Present the plan to the user and WAIT for confirmation before proceeding.

For detailed methodology guidance, see the research-literacy skill.

⚠️ Verification Notice

This skill was generated by AI from academic literature. All parameters, thresholds, and citations require independent verification before use in research. If you find errors, please open an issue.

When to Use Decoding vs. Univariate Analysis

Univariate analysis tests whether the *mean activity level* differs across conditions in a region. Decoding tests whether *spatial patterns of activity* carry information, even when mean activity is identical across conditions (Haynes, 2015). Use decoding when:

  • You expect information to be encoded in distributed patterns, not mean amplitude
  • The signal-to-noise ratio per voxel/channel is low but the population carries information
  • You want to compare neural representations to computational model predictions (use RSA)
  • You want to track when information emerges and transforms over time (use temporal generalization)
Domain judgment: High decoding accuracy does NOT mean the decoded region is the *source* of the representation. It means the information is *accessible* from that region's patterns. A downstream region receiving a copy of the signal will also decode well (Haynes, 2015).

Method Selection Decision Tree

What is your research question?
|
+-- "Is stimulus/task information present in this brain region's patterns?"
| --> Cross-validated classification (MVPA)
| Output: classification accuracy or d-prime
|
+-- "How are representations organized? Does the geometry match a model?"
| --> Representational Similarity Analysis (RSA)
| Output: model-RDM correlation, noise ceiling
|
+-- "When does information emerge and how does it transform over time?"
| --> Temporal Generalization (time x time decoding)
| Output: temporal generalization matrix
| Best for: EEG, MEG, intracranial recordings
|
+-- "What stimulus features drive neural responses across the feature space?"
 --> Encoding Models (voxelwise/channel-wise prediction)
 Output: prediction accuracy (R^2), feature tuning maps

Cross-Validated Classification (MVPA)

Classifier Selection

ClassifierWhen to UseWhen to AvoidSource
Linear SVMDefault choice; robust to high dimensionality; works well with small samplesWhen you need probabilistic outputs (use logistic regression)Misaki et al., 2010; Varoquaux et al., 2017
LDAFast; good when n_features << n_samples after reductionRaw high-dimensional data (covariance estimate unstable)Misaki et al., 2010
Logistic RegressionWhen you need class probabilities; with L1 for sparse solutionsRarely a bad choice; comparable to linear SVMVaroquaux et al., 2017
Linear kernel (general)Almost always for fMRI/EEGNonlinear kernels rarely improve and risk overfittingMisaki et al., 2010
Domain judgment: Linear classifiers are strongly preferred in neuroimaging because (1) fMRI/EEG patterns are high-dimensional relative to sample size, making nonlinear methods prone to overfitting, and (2) linear weights are more interpretable neurally, though see Haufe et al. (2014) on the distinction between classifier weights and activation patterns.

Cross-Validation Strategy

StrategyWhen to UseRationale
Leave-one-run-outfMRI (standard)Respects temporal autocorrelation within runs; prevents leakage from slow hemodynamic signals (Varoquaux et al., 2017)
Stratified k-fold (k=5-10)EEG/MEG with many trialsBalances class proportions in each fold; k=5 recommended for bias-variance tradeoff (Varoquaux, 2018)
Leave-one-trial-outWhen few trials availableMaximum training data but high variance; avoid for fMRI due to temporal autocorrelation (Varoquaux et al., 2017)
Leave-one-subject-outBetween-subject generalizationTests whether patterns generalize across individuals
CRITICAL -- Information leakage: Feature selection, normalization, and dimensionality reduction MUST be performed WITHIN each cross-validation fold, using ONLY training data. Fitting a PCA or z-scoring across all data before splitting inflates accuracy by leaking test-set statistics into training (Kriegeskorte et al., 2009; Varoquaux et al., 2017).

Chance Level and Statistical Testing

  • Theoretical chance: 1/n_classes for balanced designs (e.g., 50% for 2-class)
  • CRITICAL: Theoretical chance is only valid with infinite samples. With small samples, empirical accuracy on random data can substantially exceed 1/n_classes (Combrisson & Jerbi, 2015)
  • Use permutation testing: Shuffle labels 1000+ times, decode each permutation, compute p-value as the proportion of permuted accuracies >= observed accuracy (Combrisson & Jerbi, 2015)
  • Binomial test: Acceptable quick alternative for large trial counts, but permutation testing is preferred (Combrisson & Jerbi, 2015)
  • For group-level inference: test accuracy against chance across subjects using a one-sample t-test or Wilcoxon signed-rank test on subject-level accuracies

Minimum Data Requirements

  • Trials per class: Minimum 20-30 trials per class for reliable within-subject decoding (Varoquaux, 2018; Grootswagers et al., 2017)
  • Cross-validation error bars: With ~100 samples, expect confidence intervals of approximately +/-10% on accuracy estimates (Varoquaux, 2018)
  • Trial averaging: Averaging 5-10 trials before classification improves SNR but reduces effective sample size; balance based on total trial count (Grootswagers et al., 2017)

Representational Similarity Analysis (RSA)

RSA abstracts from activity patterns to a condition-by-condition dissimilarity matrix (RDM), enabling comparison across brain regions, species, and computational models (Kriegeskorte et al., 2008).

RDM Construction

Distance MetricPropertiesWhen to UseSource
Correlation distance (1 - Pearson r)Invariant to mean and scaleDefault for comparing pattern shape; standard in early RSAKriegeskorte et al., 2008
Euclidean distanceSensitive to amplitudeWhen amplitude differences are meaningfulKriegeskorte et al., 2008
Crossnobis distanceCross-validated Mahalanobis; unbiased estimator with interpretable zeroPreferred for inferential statistics; requires multi-run dataWalther et al., 2016; Kriegeskorte & Diedrichsen, 2019
Domain judgment: The crossnobis estimator is unbiased -- its expected value is zero when two conditions have identical representations, unlike correlation distance or Euclidean distance which are positively biased by noise. This means crossnobis values can be negative (not a true distance), but this property makes it valid for statistical inference without bias correction (Walther et al., 2016).

Model Comparison

  • Pearson/Spearman correlation: Correlate model RDM with brain RDM (use Spearman for robustness to outliers; Nili et al., 2014)
  • Partial correlation: Control for one model while testing another (essential when models are correlated)
  • Regression on RDMs: Fit multiple model RDMs simultaneously; use weighted least squares or component models (Kriegeskorte & Diedrichsen, 2019)

Statistical Inference

  • Noise ceiling: Upper and lower bounds on the best achievable model fit given between-subject variability. Upper bound: average correlation of each subject's RDM with the group mean RDM. Lower bound: same but computed with leave-one-subject-out (Nili et al., 2014)
  • Stimulus-label randomization: Permute condition labels to construct a null distribution for RDM correlation (Nili et al., 2014)
  • Bootstrap confidence intervals: Resample subjects with replacement to estimate confidence intervals on model-RDM correlations
Domain judgment: If a model falls within the noise ceiling, it explains as much variance as is explainable given the noise in the data. A model below the lower bound leaves systematic variance unexplained. This is NOT the same as a significance test -- a model can be significantly correlated with brain RDMs yet still fall below the noise ceiling (Nili et al., 2014).

See references/rsa-guide.md for a complete step-by-step RSA workflow.

Temporal Generalization (EEG/MEG)

Train a classifier at each time point t, test it at every time point t'. The resulting time x time matrix reveals the dynamics of neural representations (King & Dehaene, 2014).

Interpreting the Temporal Generalization Matrix

PatternMatrix ShapeInterpretationExample
Diagonal onlyThin diagonal stripeInformation is present but the neural code changes over time (chain of transient states)Sequence of processing stages
Square blockBroad off-diagonal generalizationStable, sustained representation (same code maintained)Working memory maintenance
Off-diagonal stripeHorizontal or vertical extensionA code trained at one time reactivates laterMemory reactivation
Below-diagonal spreadWidening below diagonalLater representations are decodable by earlier classifiers (persistent code)Sustained sensory trace

(King & Dehaene, 2014; Grootswagers et al., 2017)

Sliding Window Parameters

ParameterRecommended ValueRationaleSource
Window width50 ms for EEG/MEGBalances temporal resolution with SNRGrootswagers et al., 2017
Step size10 ms for EEG/MEGProvides smooth temporal profile without excessive computationGrootswagers et al., 2017
Baseline window-200 to 0 msStandard pre-stimulus baselineGrootswagers et al., 2017
FeaturesAll sensors at time point tUse all channels; spatial patterns carry informationKing & Dehaene, 2014

Statistical Testing for Temporal Generalization

  • Cluster-based permutation test on the time x time matrix (Maris & Oostenveld, 2007)
  • Cluster-forming threshold: p < 0.05 (two-tailed) at the individual time-point level; correct at cluster level with 1000+ permutations
  • Caution: Cluster tests control family-wise error rate but do NOT localize the effect to specific time points (Maris & Oostenveld, 2007)

Encoding Models

Encoding models predict neural responses from stimulus features, complementing decoding (which predicts stimuli from neural responses).

When to Use Encoding Over Decoding

  • When the feature space is continuous or high-dimensional (e.g., image pixels, spectrograms)
  • When you want to characterize *what features* a region encodes, not just *whether* it encodes information
  • Voxelwise encoding models: fit a regularized regression (ridge) from features to each voxel's response (Kriegeskorte & Diedrichsen, 2019)

Key Considerations

  • Regularization: Ridge regression (L2) is standard; prevents overfitting when features > samples
  • Cross-validation: Leave-one-run-out; evaluate with Pearson correlation between predicted and actual responses
  • Feature spaces: Gabor wavelets (V1), DNN layers (ventral stream), semantic embeddings (language regions)
  • Relationship to RSA: When using a zero-mean isotropic Gaussian weight prior (ridge regression), encoding models, RSA, and pattern component models test equivalent hypotheses captured by the second moment matrix G (Kriegeskorte & Diedrichsen, 2019)

Common Pitfalls

1. Information Leakage (The Most Common Error)

Feature selection, z-scoring, PCA, or any data-driven preprocessing on the full dataset before cross-validation splitting will leak information from test folds into training, inflating accuracy. ALL such steps must occur WITHIN each fold (Kriegeskorte et al., 2009; Varoquaux et al., 2017).

2. Confounds Driving Decoding

Decoding "success" may reflect confounds rather than neural representations:

  • Eye movements: Systematic gaze differences between conditions produce decodable EOG artifacts in EEG and BOLD signal differences near the eyes in fMRI
  • Reaction time differences: Conditions with different RTs produce different motor preparation signals
  • Head motion: Differential motion across conditions (e.g., speech vs. rest) introduces confounded spatial patterns
  • Run order: If conditions are blocked or ordered within runs, slow signal drifts can drive classification

3. Interpreting Accuracy Magnitude

  • Decoding accuracy reflects information *accessible to the classifier*, not the *amount* of neural information (Haynes, 2015)
  • Low accuracy does not mean low information (features may be nonlinearly coded)
  • High accuracy does not imply the region is the *origin* of the representation
  • Never compare accuracy magnitudes across regions with different voxel counts, SNR, or dimensionality without controlling for these factors

4. Double-Dipping in Searchlight Analysis

Selecting an ROI based on significant searchlight clusters and then performing additional analyses on those clusters is circular (Kriegeskorte et al., 2009; Etzel et al., 2013). Use independent data or pre-registered ROIs for follow-up analyses.

5. Classifier Weights Are Not Activation Patterns

Raw SVM or regression weights do NOT indicate which voxels/channels are most *activated* by a condition. They indicate which features are most useful for *discrimination*, which can include suppressing noise. To obtain neurophysiologically interpretable maps, transform weights into activation patterns using the method of Haufe et al. (2014).

6. Imbalanced Classes

Unequal trial counts across classes bias accuracy toward the majority class. Solutions:

  • Undersample the majority class
  • Use balanced accuracy (average of per-class recall)
  • Stratify cross-validation folds

Minimum Reporting Checklist

Based on Haynes (2015), Varoquaux et al. (2017), and Grootswagers et al. (2017):

  • Classifier type and hyperparameters (e.g., linear SVM, C=1)
  • Cross-validation scheme (e.g., leave-one-run-out, 5-fold stratified)
  • Feature space (number of voxels/channels, ROI definition or searchlight radius)
  • Preprocessing steps performed WITHIN vs. OUTSIDE cross-validation folds
  • Number of trials/samples per class per subject
  • Statistical test for significance (permutation test with N permutations, or parametric test)
  • Effect size or confidence intervals on accuracy
  • For RSA: distance metric, model RDMs tested, noise ceiling
  • For temporal generalization: window width, step size, cluster-correction parameters
  • Software and version used

Key References

  • Combrisson, E., & Jerbi, K. (2015). Exceeding chance level by chance: The caveat of theoretical chance levels in brain signal classification and statistical assessment of decoding accuracy. *Journal of Neuroscience Methods*, 250, 126-136.
  • Etzel, J. A., Zacks, J. M., & Braver, T. S. (2013). Searchlight analysis: Promise, pitfalls, and potential. *NeuroImage*, 78, 261-269.
  • Grootswagers, T., Wardle, S. G., & Carlson, T. A. (2017). Decoding dynamic brain patterns from evoked responses: A tutorial on multivariate pattern analysis applied to time series neuroimaging data. *Journal of Cognitive Neuroscience*, 29(4), 677-697.
  • Haufe, S., et al. (2014). On the interpretation of weight vectors of linear models in multivariate neuroimaging. *NeuroImage*, 87, 96-110.
  • Haynes, J.-D. (2015). A primer on pattern-based approaches to fMRI: Principles, pitfalls, and perspectives. *Neuron*, 87(2), 257-270.
  • King, J.-R., & Dehaene, S. (2014). Characterizing the dynamics of mental representations: The temporal generalization method. *Trends in Cognitive Sciences*, 18(4), 203-210.
  • Kriegeskorte, N., Goebel, R., & Bandettini, P. (2006). Information-based functional brain mapping. *Proceedings of the National Academy of Sciences*, 103(10), 3863-3868.
  • Kriegeskorte, N., Mur, M., & Bandettini, P. (2008). Representational similarity analysis -- Connecting the branches of systems neuroscience. *Frontiers in Systems Neuroscience*, 2, 4.
  • Kriegeskorte, N., Simmons, W. K., Bellgowan, P. S., & Baker, C. I. (2009). Circular analysis in systems neuroscience: The dangers of double dipping. *Nature Neuroscience*, 12(5), 535-540.
  • Kriegeskorte, N., & Diedrichsen, J. (2019). Peeling the onion of brain representations. *Annual Review of Neuroscience*, 42, 407-432.
  • Maris, E., & Oostenveld, R. (2007). Nonparametric statistical testing of EEG- and MEG-data. *Journal of Neuroscience Methods*, 164(1), 177-190.
  • Misaki, M., Kim, Y., Bandettini, P. A., & Kriegeskorte, N. (2010). Comparison of multivariate classifiers and response normalizations for pattern-information fMRI. *NeuroImage*, 53(1), 103-118.
  • Nili, H., et al. (2014). A toolbox for representational similarity analysis. *PLoS Computational Biology*, 10(4), e1003553.
  • Varoquaux, G., et al. (2017). Assessing and tuning brain decoders: Cross-validation, caveats, and guidelines. *NeuroImage*, 145, 166-179.
  • Varoquaux, G. (2018). Cross-validation failure: Small sample sizes lead to large error bars. *NeuroImage*, 180, 68-77.
  • Walther, A., et al. (2016). Reliability of dissimilarity measures for multi-voxel pattern analysis. *NeuroImage*, 137, 188-200.

See references/decoding-methods.md for detailed classifier comparisons, searchlight parameters, and software tools. See references/rsa-guide.md for a complete step-by-step RSA analysis workflow.

平台分布

Codex

33.64%
按下载量换算3,390

Claude

33.26%
按下载量换算3,352

Cursor

18.35%
按下载量换算1,849

Gemini CLI

8.91%
按下载量换算898

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限未标注

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills