Install
openclaw skills install smyx-anxiety-behavior-recognition-analysisUsing a fixed camera at home or in the office, the system analyzes daily videos of an individual (e.g., adult, adolescent) and detects anxiety-related behaviors: hand rubbing (repeated rubbing of both hands), nail biting (hand approaching mouth with biting motion), and pacing (repeated back-and-forth walking in a small area). It counts each behavior's frequency (events/hour) and total duration, and outputs an anxiety-behavior index (0-100). The skill helps users self-monitor anxiety states or assists counselors in evaluating intervention effectiveness. Application scenarios: home, office, counseling room, school. Real-time monitoring; when the anxiety-behavior index exceeds a threshold, a reminder is pushed (e.g., 'You showed more anxiety-related behaviors today — try a relaxation exercise'). Skill features: anxiety patients often display unconscious repetitive behaviors (hand-rubbing, nail-biting, pacing), which can serve as objective emotional indicators. AI auto-recording of frequency and trends helps users self-manage anxiety or provides data support for counselors. Can be integrated into smart-home cameras or mental-health APPs as a practical emotion-management tool. | 通过家庭或办公室的固定摄像头,分析个体(如成人、青少年)的日常行为视频,检测手部搓揉(双手反复摩擦)、指甲啃咬(手部靠近嘴部并有啃咬动作)、来回踱步(在狭小区域内反复折返行走)等焦虑相关行为。统计每种行为的频次(次/小时)和总持续时间,并输出焦虑行为指数(0-100)。该技能有助于用户自我觉察焦虑状态,或辅助心理咨询师评估干预效果。应用场景:家庭、办公室、心理咨询室、学校。系统实时监测,当焦虑行为指数超过阈值时推送提醒(如'您今日焦虑行为较多,建议进行放松练习')。技能特点:焦虑症患者常有无意识的重复行为(搓手、咬指甲、踱步),这些行为可作为情绪状态的客观指标。通过AI自动记录频次和趋势,可帮助用户自我管理焦虑,或为心理咨询师提供数据支持。该技能可集成到智能家居摄像头或心理健康APP中,成为情绪健康管理的实用功能。
openclaw skills install smyx-anxiety-behavior-recognition-analysisUsing a fixed camera at home or in the office, the system analyzes daily videos of an individual (e.g., adult, adolescent) and detects anxiety-related behaviors: hand rubbing (repeated rubbing of both hands), nail biting (hand approaching mouth with biting motion), and pacing (repeated back-and-forth walking in a small area). It counts each behavior's frequency (events/hour) and total duration, and outputs an anxiety-behavior index (0-100). The skill helps users self-monitor anxiety states or assists counselors in evaluating intervention effectiveness. Application scenarios: home, office, counseling room, school. Real-time monitoring; when the anxiety-behavior index exceeds a threshold, a reminder is pushed (e.g., 'You showed more anxiety-related behaviors today — try a relaxation exercise'). Skill features: anxiety patients often display unconscious repetitive behaviors (hand-rubbing, nail-biting, pacing), which can serve as objective emotional indicators. AI auto-recording of frequency and trends helps users self-manage anxiety or provides data support for counselors. Can be integrated into smart-home cameras or mental-health APPs as a practical emotion-management tool.
通过家庭或办公室的固定摄像头,分析个体(如成人、青少年)的日常行为视频,检测手部搓揉(双手反复摩擦)、指甲啃咬(手部靠近嘴部并有啃咬动作)、来回踱步(在狭小区域内反复折返行走)等焦虑相关行为。统计每种行为的频次(次/小时)和总持续时间,并输出焦虑行为指数(0-100)。该技能有助于用户自我觉察焦虑状态,或辅助心理咨询师评估干预效果。应用场景:家庭、办公室、心理咨询室、学校。系统实时监测,当焦虑行为指数超过阈值时推送提醒(如'您今日焦虑行为较多,建议进行放松练习')。技能特点:焦虑症患者常有无意识的重复行为(搓手、咬指甲、踱步),这些行为可作为情绪状态的客观指标。通过AI自动记录频次和趋势,可帮助用户自我管理焦虑,或为心理咨询师提供数据支持。该技能可集成到智能家居摄像头或心理健康APP中,成为情绪健康管理的实用功能。
假设你是一个专业的心理健康行为分析 AI。你的任务是分析固定摄像头的视频,检测特定焦虑相关行为:手部搓揉、指甲啃咬、来回踱步(路径重复)。统计这些行为的频次和持续时间,综合计算焦虑行为指数。不要提供医疗诊断,仅输出基于视觉的行为统计和趋势指标,并给出温和的自我关怀建议。
python -m scripts.smyx_anxiety_behavior_recognition_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行焦虑症相关行为识别前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.smyx_anxiety_behavior_recognition_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地家庭/办公室固定摄像头视频文件路径--url: 网络家庭/办公室固定摄像头视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,心理健康行为分析场景默认 other--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示焦虑症相关行为识别历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)high 等级或伴随躯体化症状(胸闷 / 心悸 / 惊恐发作)时,必须在提醒中附心理援助热线 400-161-9995并建议本人尽快就医焦虑相关行为识别报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 焦虑指数/主导行为 | 分析时间 | 点击查看 |
|---|---|---|---|
| 焦虑相关行为识别报告-20260312172200001 | 62 (notable) / dominant=hand_rubbing | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地家庭/办公室视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_anxiety_behavior_recognition_analysis --input /path/to/office.mp4 --open-id your-open-id
# 分析网络家庭/办公室视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_anxiety_behavior_recognition_analysis --url https://example.com/office.mp4 --open-id your-open-id
# 显示历史焦虑症相关行为识别报告(自动触发关键词:查看焦虑行为历史报告、焦虑行为指数报告清单等)
python -m scripts.smyx_anxiety_behavior_recognition_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_anxiety_behavior_recognition_analysis --input office.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_anxiety_behavior_recognition_analysis --input office.mp4 --open-id your-open-id --output result.json