Install
openclaw skills install smyx-dementia-confusion-orientation-analysisThrough fixed cameras (and optional microphones) in dementia care facilities or homes, the system analyzes behaviors of people with dementia to identify confusion/disorientation states: sudden activity stops (interrupting ongoing actions such as eating or walking for ≥ 5 seconds), gaze drifting (eyes wandering without focus), looking around (frequent head turning), and repeated disorientation questions ('Where is this?', 'What time is it?', 'Who are you?' — requires voice recognition / voiceprint binding). When such behaviors are detected, oriented soothing is automatically triggered: smart speakers play family member introductions (e.g. 'Your son is Li Ming, he will visit you at noon'), current time and location reminders ('Today is May 19 2026, Thursday, you are at Happiness Home Nursing Center'), with a gentle tone. This skill helps reduce anxiety and confusion in people with dementia and improve quality of life. Application scenarios: dementia care facilities, cognitive care units, home care. The system monitors in real time and proactively provides orientation cues when confusion occurs. Skill features: people with dementia often feel lost, anxious, and develop behavioral issues (wandering, agitation) due to memory loss. AI-based real-time confusion recognition with orientation soothing can reduce distress, slow cognitive decline, and ease caregiver burden. This skill can be integrated into smart cameras or nursing home management systems as a practical dementia care tool. | 通过失智照护机构或家庭固定摄像头(及可选麦克风),分析失智老人的行为,识别困惑/迷惘状态:突然停止活动(中断正在进行的动作,如吃饭、行走 ≥ 5 秒)、眼神游离(视线漫无目的漂移、不聚焦)、四处张望(头部频繁转动)、反复询问'这是哪''现在几点''你是谁'等定向障碍问题(需配合声纹或语音识别)。当检测到上述行为时,自动触发定向安抚:通过智能音箱播放家庭成员介绍(如'您儿子叫李明,他中午会来看您')、当前时间地点提示('今天是 2026 年 5 月 19 日,星期四,您在幸福家园养老院'),并轻声安抚。该技能有助于减轻失智老人的焦虑和困惑,提高生活质量。应用场景:失智照护机构、认知症单元、居家照护。系统实时监测,当老人出现困惑时自动给予定向信息。技能特点:失智老人常因记忆丧失而感到迷茫、焦虑,甚至引发行为问题(如游荡、激越)。通过 AI 实时识别困惑状态并提供定向安抚,有助于减少老人不安,延缓认知功能下降,减轻照护者负担。该技能可集成到智能摄像头或养老机构管理系统中,成为认知症照护的实用工具。
openclaw skills install smyx-dementia-confusion-orientation-analysisThrough fixed cameras (and optional microphones) in dementia care facilities or homes, the system analyzes behaviors of people with dementia to identify confusion/disorientation states: sudden activity stops (interrupting ongoing actions such as eating or walking for ≥ 5 seconds), gaze drifting (eyes wandering without focus), looking around (frequent head turning), and repeated disorientation questions ('Where is this?', 'What time is it?', 'Who are you?' — requires voice recognition / voiceprint binding). When such behaviors are detected, oriented soothing is automatically triggered: smart speakers play family member introductions (e.g. 'Your son is Li Ming, he will visit you at noon'), current time and location reminders ('Today is May 19 2026, Thursday, you are at Happiness Home Nursing Center'), with a gentle tone. This skill helps reduce anxiety and confusion in people with dementia and improve quality of life. Application scenarios: dementia care facilities, cognitive care units, home care. The system monitors in real time and proactively provides orientation cues when confusion occurs. Skill features: people with dementia often feel lost, anxious, and develop behavioral issues (wandering, agitation) due to memory loss. AI-based real-time confusion recognition with orientation soothing can reduce distress, slow cognitive decline, and ease caregiver burden. This skill can be integrated into smart cameras or nursing home management systems as a practical dementia care tool.
通过失智照护机构或家庭固定摄像头(及可选麦克风),分析失智老人的行为,识别困惑/迷惘状态:突然停止活动(中断正在进行的动作,如吃饭、行走 ≥ 5 秒)、眼神游离(视线漫无目的漂移、不聚焦)、四处张望(头部频繁转动)、反复询问'这是哪''现在几点''你是谁'等定向障碍问题(需配合声纹或语音识别)。当检测到上述行为时,自动触发定向安抚:通过智能音箱播放家庭成员介绍(如'您儿子叫李明,他中午会来看您')、当前时间地点提示('今天是 2026 年 5 月 19 日,星期四,您在幸福家园养老院'),并轻声安抚。该技能有助于减轻失智老人的焦虑和困惑,提高生活质量。应用场景:失智照护机构、认知症单元、居家照护。系统实时监测,当老人出现困惑时自动给予定向信息。技能特点:失智老人常因记忆丧失而感到迷茫、焦虑,甚至引发行为问题(如游荡、激越)。通过 AI 实时识别困惑状态并提供定向安抚,有助于减少老人不安,延缓认知功能下降,减轻照护者负担。该技能可集成到智能摄像头或养老机构管理系统中,成为认知症照护的实用工具。
假设你是一个专业的失智老人照护 AI。你的任务是分析失智照护机构或家庭固定摄像头(及可选麦克风)的实时音视频,检测失智老人的困惑/迷惘行为:突然停止活动(正在进行的动作如吃饭/行走中断 ≥ 5s)、眼神游离(视线无明显焦点 / 头部无目的转动)、四处张望(头部扫描周围环境)、重复询问定向问题("这是哪 / 你是谁 / 现在几点 / 我在哪 / 几点了"等 5 分钟内重复 ≥ 2 次,需语音识别 + 声纹绑定)、伴随激越或游荡。综合评估困惑等级,按 4 级定向安抚策略递进:Level 1 智能音箱当前时间地点温和提示 → Level 2 家庭成员介绍录音 + 柔光辅助 → Level 3 主照护者 APP 提醒 + 就近工作人员 → Level 4 紧急推送 + 机构值班护士 + 本地引导音。3 分钟后效果评估,未平复自动升级。安抚音量 ≤ 55 dB(兼顾老人听力衰退又不可惊吓),严禁 AI 克隆家人声音,禁用"您不是说过 / 您忘了吗"等否定矫正语,仅使用家属预录温和语音。不提供任何医疗诊断,仅输出基于音视频的客观行为识别与定向安抚动作。
python -m scripts.smyx_dementia_confusion_orientation_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_dementia_confusion_orientation_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: 结果输出文件路径(可选)失智老人定向安抚-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 场景/等级/已执行定向安抚动作 | 分析时间 | 点击查看 |
|---|---|---|---|
| 失智老人定向安抚-20260519143200001 | dementia_orientation_question / moderate / 时间地点提示+家属介绍录音 | 2026-05-19 14:32:00 | 🔗 查看报告 |
# 分析本地失智老人活动区域音视频(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_dementia_confusion_orientation_analysis --input /path/to/care_unit.mp4 --open-id your-open-id
# 分析网络失智老人活动区域音视频/实时流(以下只是示例,禁止直接使用 openclaw-control-ui 作为 open-id)
python -m scripts.smyx_dementia_confusion_orientation_analysis --url https://example.com/care_unit.mp4 --open-id your-open-id
# 显示历史定向安抚记录清单(自动触发关键词:查看失智老人定向安抚历史报告、定向安抚日志清单等)
python -m scripts.smyx_dementia_confusion_orientation_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_dementia_confusion_orientation_analysis --input cu.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_dementia_confusion_orientation_analysis --input cu.mp4 --open-id your-open-id --output result.json