Using 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 调用 API查询云端的历史报告数据
```
requests>=2.28.0
```
用户身份参数由系统内部自动处理,不得向用户展示、询问或要求输入任何身份标识。
执行本技能分析或历史报告查询时,脚本会自动完成身份初始化:
关键约束:
-m scripts.smyx_elderly_nightmare_startle_detect_analysis 处理输入(必须在技能根目录下运行脚本)--input: 本地卧室固定摄像头(红外夜视、含麦克风)夜间睡眠音视频文件路径--url: 网络卧室固定摄像头(红外夜视、含麦克风)夜间睡眠音视频 URL 地址(API 服务自动下载)--pet-type: 类别标识,老年人睡眠行为监测场景默认 other--list: 显示老年人睡眠中间惊醒/梦魇行为识别历史分析报告列表清单(可以输入起始日期参数过滤数据范围)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)用途:调用 API 进行老年人睡眠中间惊醒/梦魇行为识别,本地文件上传,网络 URL 由 API 服务自动下载)
frequent 或 suspect_rbd_pattern 时,必须在摘要中附"建议尽快就诊神经内科 / 睡眠门诊进行 PSG(多导睡眠图)检查"表格格式输出,包含"
报告名称"、"事件数/行为模式/高发时段"、"分析时间"、"点击查看"四列,其中"报告名称"列使用老人睡眠异常报告-{记录id}形式拼接, "点击查看"
列使用
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。
| 报告名称 | 事件数/行为模式/高发时段 | 分析时间 | 点击查看 |
|----------|----------|----------|----------|
| 老人睡眠异常报告-20260312172200001 | 5 次 / suspect_rbd / 03:00-04:00 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地夜间睡眠音视频
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --input /path/to/night_sleep.mp4
# 分析网络夜间睡眠音视频
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --url https://example.com/night_sleep.mp4
# 显示历史老年人睡眠中间惊醒/梦魇报告(自动触发关键词:查看睡眠异常历史报告、夜间惊醒/梦魇报告清单等)
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --list
# 输出精简报告
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --input ns.mp4 --detail basic
# 保存结果到文件
python -m scripts.smyx_elderly_nightmare_startle_detect_analysis --input ns.mp4 --output result.json
共 1 个版本