Install
openclaw skills install smyx-elderly-nightmare-startle-detect-analysisUsing a fixed bedroom camera (infrared night vision + microphone), the system analyzes elderly nighttime sleep video and detects abnormal events such as sudden sitting-up (quick lying-to-sitting transition), screams (high-pitched short cries), and arm-thrashing (purposeless rapid arm movements), and records the occurrence time, frequency and duration of each event. This skill helps family members or caregivers understand the elderly person's nighttime sleep quality and identify possible nightmares or REM-sleep Behavior Disorder (RBD), providing reference data for medical evaluation. Application scenarios: home elderly care, nursing homes, neurology sleep monitoring. The system relays monitoring through the night and generates a sleep-abnormality event report. Skill features: frequent nighttime awakenings or nightmares in the elderly may be early manifestations of neurological diseases such as RBD. AI auto-recording of abnormal events provides objective data for physicians, supporting early diagnosis of Parkinson's disease and other neurodegenerative conditions. Can be integrated into smart-home cameras or elderly-care monitoring platforms as an important health-warning tool. | 通过卧室固定摄像头(红外夜视),分析老年人夜间睡眠视频,检测突然坐起(快速从躺卧变为坐立)、惊叫声音(高频短促叫声)以及挥舞手臂(无目的性的快速手臂动作)等行为,记录发生时间、频次及持续时间。该技能可帮助家属或护理人员了解老人夜间睡眠质量,识别可能的梦魇、快速眼动期睡眠行为障碍等异常现象,为医疗评估提供参考。应用场景:居家养老、养老院、神经内科睡眠监测。系统夜间接力监测,生成睡眠异常事件报告。技能特点:老年人夜间频繁惊醒、梦魇可能是快速眼动期睡眠行为障碍(RBD)等神经系统疾病的早期表现。通过AI自动记录异常行为,可为医生提供客观数据,帮助早期诊断帕金森病等神经退行性疾病。该技能可集成到智能家居摄像头或养老监护平台中,成为健康预警的重要工具。
openclaw skills install smyx-elderly-nightmare-startle-detect-analysisUsing a fixed bedroom camera (infrared night vision + microphone), the system analyzes elderly nighttime sleep video and detects abnormal events such as sudden sitting-up (quick lying-to-sitting transition), screams (high-pitched short cries), and arm-thrashing (purposeless rapid arm movements), and records the occurrence time, frequency and duration of each event. This skill helps family members or caregivers understand the elderly person's nighttime sleep quality and identify possible nightmares or REM-sleep Behavior Disorder (RBD), providing reference data for medical evaluation. Application scenarios: home elderly care, nursing homes, neurology sleep monitoring. The system relays monitoring through the night and generates a sleep-abnormality event report. Skill features: frequent nighttime awakenings or nightmares in the elderly may be early manifestations of neurological diseases such as RBD. AI auto-recording of abnormal events provides objective data for physicians, supporting early diagnosis of Parkinson's disease and other neurodegenerative conditions. Can be integrated into smart-home cameras or elderly-care monitoring platforms as an important health-warning tool.
通过卧室固定摄像头(红外夜视),分析老年人夜间睡眠视频,检测突然坐起(快速从躺卧变为坐立)、惊叫声音(高频短促叫声)以及挥舞手臂(无目的性的快速手臂动作)等行为,记录发生时间、频次及持续时间。该技能可帮助家属或护理人员了解老人夜间睡眠质量,识别可能的梦魇、快速眼动期睡眠行为障碍等异常现象,为医疗评估提供参考。应用场景:居家养老、养老院、神经内科睡眠监测。系统夜间接力监测,生成睡眠异常事件报告。技能特点:老年人夜间频繁惊醒、梦魇可能是快速眼动期睡眠行为障碍(RBD)等神经系统疾病的早期表现。通过AI自动记录异常行为,可为医生提供客观数据,帮助早期诊断帕金森病等神经退行性疾病。该技能可集成到智能家居摄像头或养老监护平台中,成为健康预警的重要工具。
假设你是一个专业的老年人睡眠行为监测 AI。你的任务是分析卧室固定摄像头的夜间视频(含音频),检测老年人睡眠中的异常行为,包括突然坐起、惊叫声音、无目的挥舞手臂、踢腿等。记录每次事件的起止时间、持续时长,统计夜间总频次与高发时段。不要提供医疗诊断,仅输出基于视觉和音频的行为事件统计,并在频繁或疑似 RBD 模式时附神经内科/睡眠门诊就诊建议。
python -m scripts.smyx_elderly_nightmare_startle_detect_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_elderly_nightmare_startle_detect_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: 结果输出文件路径(可选)frequent 或 suspect_rbd_pattern 时,必须在摘要中附"建议尽快就诊神经内科 / 睡眠门诊进行 PSG(多导睡眠图)检查"老人睡眠异常报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 事件数/行为模式/高发时段 | 分析时间 | 点击查看 |
|---|---|---|---|
| 老人睡眠异常报告-20260312172200001 | 5 次 / suspect_rbd / 03:00-04:00 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地夜间睡眠音视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --input /path/to/night_sleep.mp4 --open-id your-open-id
# 分析网络夜间睡眠音视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --url https://example.com/night_sleep.mp4 --open-id your-open-id
# 显示历史老年人睡眠中间惊醒/梦魇报告(自动触发关键词:查看睡眠异常历史报告、夜间惊醒/梦魇报告清单等)
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --input ns.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --input ns.mp4 --open-id your-open-id --output result.json