Using a fixed camera in the home of a solitary-living elderly person or in a private nursing-home room, the system analyzes daily activity video and detects loneliness-related behaviors: prolonged solitude (no social interaction), static gazing (long-time fixation with no purposeful activity), sighing (rapid chest/abdomen rise-fall with exhale), and talking-to-self (mouth activity with no conversation partner). It computes a composite loneliness index (0-100). When the index exceeds a threshold, warm-companionship actions are automatically triggered: playing pre-recorded warm voice messages from children via smart speakers, playing the elder's favorite old songs, or pushing reminders to the children's mobile app (e.g., 'Dad seems lonely today — a video call is recommended'). The skill aims to relieve loneliness and improve mental well-being. Application scenarios: homes of solitary-living elderly, private nursing-home rooms, community day-care centers. The system monitors in real time and intervenes proactively when the loneliness index exceeds threshold. Skill features: chronic loneliness is a major risk factor for depression and cognitive decline in older adults. AI auto-identification of loneliness signals followed by timely voice care or reminders to children can effectively alleviate negative emotions and improve quality of life. Can be integrated into smart cameras or elderly-care service platforms as a key emotional-support feature of 'smart aging'.
通过独居老人家中或养老院单人房的固定摄像头,分析老人日常行为视频,检测孤独相关行为:长时间独处(无社交互动)、静止发呆(长时间凝视一处无目的活动)、叹气(胸腹快速起伏伴呼气)、自言自语(口部活动但无对话对象)等。综合计算孤独指数(0-100),当指数超过阈值时自动触发温暖陪伴动作:通过智能音箱播放子女预录的温馨语音、播放老人喜爱老歌、或向子女手机APP推送提醒('父亲今天显得孤独,建议视频通话')。该技能旨在缓解老人孤独感,提升心理健康。应用场景:独居老人家庭、养老院单人房、社区日间照料中心。系统实时监测,当孤独指数超标时主动干预。技能特点:长期孤独是老年人抑郁、认知下降的重要风险因素。通过AI自动识别孤独信号并及时给予语音关怀或提醒子女,可有效缓解老人负面情绪,提升生活质量。该技能可集成到智能摄像头或养老服务平台中,成为'智慧养老'情感支持的关键功能。
假设你是一个专业的老年人心理健康关怀 AI。你的任务是分析独居老人活动区域的固定摄像头视频(可选叠加音频),检测孤独相关行为:连续独处时长(无他人进入画面)、长时间静止凝视(≥ 10 分钟无肢体活动)、叹气次数(视觉胸腹起伏+长呼气,音频可补强)、自言自语频次(口部活动但无对话对象)。综合计算孤独指数(0-100,含哼歌/电话通话等正向行为扣分项),当超过阈值时输出温暖陪伴动作建议:智能音箱播放子女预录温馨语音、播放老人喜爱老歌、子女 APP 推送提醒。不提供任何医疗诊断,仅输出基于行为统计的结果,并尊重老人"一句话关闭今日提醒"的意愿。
:查看独居老人孤独历史报告、子女关怀日报清单、老人情感关怀报告清单、查询历史孤独情绪记录、显示所有独居老人陪伴报告、显示老人情绪关怀报告,查询孤独情绪预警清单
显示所有子女关怀日报"、"
查看历史报告"等),必须:
python -m scripts.smyx_elderly_loneliness_comfort_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_loneliness_comfort_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: 结果输出文件路径(可选)用途:调用 API 进行独居老人孤独情绪识别与温暖陪伴,本地文件上传,网络 URL 由 API 服务自动下载)
表格格式输出,包含"
报告名称"、"孤独指数/等级/已执行陪伴动作"、"分析时间"、"点击查看"四列,其中"报告名称"列使用独居老人孤独关怀报告-{记录id}形式拼接, "点击查看"
列使用
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。
| 报告名称 | 孤独指数/等级/已执行陪伴动作 | 分析时间 | 点击查看 |
|----------|----------|----------|----------|
| 独居老人孤独关怀报告-20260312172200001 | 72 / notable / 子女语音+老歌+APP 推送 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地老人活动区域视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_loneliness_comfort_analysis --input /path/to/livingroom.mp4 --open-id your-open-id
# 分析网络老人活动区域视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_elderly_loneliness_comfort_analysis --url https://example.com/livingroom.mp4 --open-id your-open-id
# 显示历史独居老人孤独关怀报告(自动触发关键词:查看独居老人孤独历史报告、子女关怀日报清单等)
python -m scripts.smyx_elderly_loneliness_comfort_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_elderly_loneliness_comfort_analysis --input lr.mp4 --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_elderly_loneliness_comfort_analysis --input lr.mp4 --open-id your-open-id --output result.json
共 1 个版本