GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [P2] NONE 质量 EEG 保留能量后仍产生非零注意力和放松度 · Issue #20 · Entertech/NeuroBridge

[P2] NONE 质量 EEG 保留能量后仍产生非零注意力和放松度 #20

New issue
Copy link
New issue
Copy link
Open
Open
[P2] NONE 质量 EEG 保留能量后仍产生非零注意力和放松度#20
Copy link

Description

@wk1995
wk1995
opened on Oct 29, 2026
Issue body actions

[Codex][GPT-6]

问题

PR #19 更新 EEGHandler 后,质量为 NONE (0) 的窗口仍保留波形和能量。但下游注意力、放松度计算没有独立阻断这些无效窗口,持续不合格的 EEG 会产出非零认知指标。

  • 关联 PR:升级至 0.3.2:更新算法 SDK 并调整左右脑波限幅 #19
  • 原始审查评论:升级至 0.3.2:更新算法 SDK 并调整左右脑波限幅 #19 (comment)
  • 严重程度:P2
  • 审查基线:78f6efa91eade6f013bfa923b52aaadb79a3b30b
  • 已复现提交:0b7015c73e7f7f14c48cb10b77087e20264de8d1
  • 当前处理:按用户要求仅登记和关联,暂不修复。

原因与影响

EEGHandler.cpp 无条件返回 power 和 featurePower,EEGProgress::trigger() 随后将能量写入 SessionCache.eegPower/eeglPower/eegrPower。

AttentionComputing::trigger()、RelaxationComputing::trigger() 的质量判断只更新佩戴历史并重置缓存,随后仍调用 handler。handler 依靠频段能量是否大于零判断数据有效,因此仅保留现有质量判断代码无法保持此前的无效输出行为。

AffectiveAlgorithm::appendEEG() 使用上述调用路径,bridge 会返回这些指标。对外保留 NONE 波形和能量是本次预期改动;本 Issue 跟踪的是它对下游指标计算产生的回归。

复现步骤

  1. 从上述 PR 提交构建仓库内 C++ SDK。
  2. 按 DeviceInfoFtV1 的采样率生成每组 0.6 秒合成数据:以 (eegMaxVal + eegMinVal) / 2 为中点,叠加 50 Hz、幅值 10000 的正弦信号。左右通道使用同一信号。
  3. 使用同一组持久实例,连续 40 次调用 EEGProgress::trigger(cache, samples, samples, false),随后调用 AttentionComputing::trigger(cache) 和 RelaxationComputing::trigger(cache)。
  4. 保持其他代码和输入不变,仅将 EEGHandler 换回上述 PR 基线实现,重新构建并运行比较。

实际结果

质量始终为 NONE (0)。PR 实现后续持续输出:

quality=0 attention=3.25 relaxation=6.79

仅替换回基线 EEGHandler 后,同一测试的注意力、放松度始终为 0。

复现环境为 macOS 开发机,属于合成源码回归证据,不代表 Windows 或银河麒麟目标机验收结果。

预期与后续验收

  • 保留预期的 NONE 波形、能量输出,同时为下游指标保留独立质量门禁和既有无效输出策略。
  • 补充持续 NONE、GOOD→NONE 的下游端到端回归,确认无效窗口不会参与有效指标计算或污染自适应历史。
  • 修复后仍需分别完成目标机真实录制数据比对与现场验收。

已有验证

38 项相关 Python 测试、原生 SDK EEG 输出回归和协议台账检查通过;这些现有测试未覆盖本问题。当前尚未进行修复。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.