生理信号估算_vital-sign-extraction 以下为本文档的中文说明该技能用于从经过清洗的一维生理时间序列信号中估算心率和呼吸率单位为每分钟次数bpm。支持的信号类型包括雷达相位信号、WiFi CSI幅度、PPG信号或胸部运动信号。使用场景包括当Claude需要从噪声信号中选择合适的HR/BR带通滤波器边界在噪声频带中识别峰值频率排除HR二次谐波对基频的干扰处理呼吸缓慢时呼吸谐波泄漏到HR频带的问题标记低置信度的估算结果。核心处理流程包括将信号分割为呼吸频带和心率频带两个独立的带通滤波器使用零填充Welch功率谱密度估计计算峰值频率从各频带中提取峰值对应的频率并转换为bpm值。该技能明确了其不适用的场景心律失常或逐搏分析、多人源信号分离、以及快速非平稳速率估算。它通常作为雷达信号处理技能的下游模块使用。Vital-Sign ExtractionGiven a cleaned 1-D periodic signal (radar phase, WiFi CSI, PPG, piezo), estimate heart rate and breathing rate in bpm.Upstream ingestion of radar captures is theradar-signal-processingskill. This skill picks up after a 1-D signal is extracted.Pipeline (do every step)Split into BR and HR bandswith two separate bandpasses:BR:butter(4, [0.08, 0.5], btypeband, fsfs)— 4.8–30 bpmHR:butter(4, [0.7, 3.0], btypeband, fsfs)— 42–180 bpmPeak frequency via zero-padded Welch PSD:npersegmin(len(x),int(fs*25))f,pwelch(x,fsfs,npersegnperseg,noverlapnperseg//2,nfft8*nperseg,detrendconstant)in_band(flo)(fhi)peak_hzf[in_band][np.argmax(p[in_band])]HR harmonic rejection — always run:f_subf_peak/2.0if0.7f_sub3.0:p_subnp.interp(f_sub,f,p)p_topnp.interp(f_peak,f,p)ifp_sub0.5*p_top:f_peakf_sub# the peak was the 2nd harmonichr_bpmf_peak*60Cross-check with autocorrelation:acnp.correlate(x-x.mean(),x-x.mean(),modefull)acac[len(ac)//2:]/ac[len(ac)//2]lagint(fs/f_hi)np.argmax(ac[int(fs/f_hi):int(fs/f_lo)])bpm_ac60*fs/lagIfabs(bpm_ac - bpm_psd) 5, flag as low confidence.Decision rulesIfThenf_peak/2in HR band andp_sub 0.5 × p_topPick sub-harmonic (fundamental)PSD and autocorrelation disagree by 5 bpmFlag low confidence; do not commit to one valueBR estimate 10 bpm (slow breather)Expect HR-band contamination — see references/harmonic-pitfalls.mdHR 150 bpm (tachycardia)Widen HR band upper to 3.3 Hz, re-estimateClip 15 s longPSD bin spacing tolerance — prefer autocorrelation or flag inconclusiveSanity checks before reportingBR HR. Always true for a live adult at rest — if violated you swapped bands.HR × duration_minutes ≈ peak count in find_peaks(bandpassed_hr). Off by 2× → harmonic error slipped through.Resting adult plausibility: HR 50–90 bpm, BR 10–20 bpm. Way outside → re-check band edges, decimation factor, and harmonic rejection.Why the band edges above, not textbook 0.1–0.5 / 0.8–2.5See references/band-rationale.md. Short version: textbook bands miss slow breathers (supine clinical subjects breathe 5–10 bpm) and bradycardia (athletes, post-tilt-down).Why HR-harmonic and BR-leakage are criticalSee references/harmonic-pitfalls.md. These are the two failure modes that cost naïve pipelines the most accuracy on real data.Not in scopeArrhythmia / irregular rhythms — use R-peak / foot detection RR-interval analysis, not PSD.Multiple subjects in one signal — run source separation first.Rapidly non-stationary rate (exercise ramp) — use a spectrogram, not single-window PSD.

相关新闻

最新新闻

SerenityOS 命令行选项解析指南:getopt 与 getopt_long 用法、返回值与底层实现

SerenityOS 命令行选项解析指南:getopt 与 getopt_long 用法、返回值与底层实现

SerenityOS 命令行选项解析指南:getopt 与 getopt_long 用法、返回值与底层实现 【免费下载链接】serenity The Serenity Operating System 🐞 项目地址: https://gitcode.com/GitHub_Trending/se/serenity 导读 本文以 getopt(3) 手册 为核心&a…

2026/10/1 19:32:24
轻量服务器还是ECS?大促云服务器选购与避坑实战指南

轻量服务器还是ECS?大促云服务器选购与避坑实战指南

每年大促节点,群里永远有人在问同一个问题:“38元的轻量服务器到底怎么抢?为什么我每次点进去都是已售罄?68元直购和99元的ECS我到底选哪个?”作为一个常年帮团队和自己采购云服务器的老用户,我太清楚这种纠…

2026/9/30 21:32:07
为 AI 代理的 Review 动作编写 Cedar 审批门控策略:review-agent-governance 策略编写实战指南

为 AI 代理的 Review 动作编写 Cedar 审批门控策略:review-agent-governance 策略编写实战指南

为 AI 代理的 Review 动作编写 Cedar 审批门控策略:review-agent-governance 策略编写实战指南 【免费下载链接】agents Multi-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, and Google Antigravity 项目地址:…

2026/9/30 19:41:56
PaddleOCR 手写数学公式识别算法 CAN 实战指南:Counting-Aware Network 训练、评估与推理部署

PaddleOCR 手写数学公式识别算法 CAN 实战指南:Counting-Aware Network 训练、评估与推理部署

PaddleOCR 手写数学公式识别算法 CAN 实战指南:Counting-Aware Network 训练、评估与推理部署 【免费下载链接】PaddleOCR Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between i…

2026/10/1 19:32:23
Spring源码解析:构造器注入的类型转换与候选匹配机制

Spring源码解析:构造器注入的类型转换与候选匹配机制

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/1 19:32:35
openai-agents-python 多模型接入指南:深入解析 AnyLLMModel 适配层与 any-llm 路由

openai-agents-python 多模型接入指南:深入解析 AnyLLMModel 适配层与 any-llm 路由

openai-agents-python 多模型接入指南:深入解析 AnyLLMModel 适配层与 any-llm 路由 【免费下载链接】openai-agents-python A lightweight, powerful framework for multi-agent workflows 项目地址: https://gitcode.com/GitHub_Trending/op/openai-agents-pyth…

2026/9/30 21:32:11

日新闻

周新闻

月新闻