孩子学习行为分析工具
by @smyx-sunjinhui
Conducts video analysis of learning behavior for children/students, identifies poor learning habits, provides structured analysis reports and family educatio...
clawhub install smyx-study-analysis📖 About This Skill
name: "study-analysis" description: "Conducts video analysis of learning behavior for children/students, identifies poor learning habits, provides structured analysis reports and family education improvement suggestions, focusing on learning habit cultivation and behavior correction. | A comprehensive tool designed to analyze video footage of children's and students' learning behaviors. It identifies poor study habits and provides structured analysis reports along with actionable suggestions for family education improvements. The tool is dedicated to fostering positive study habits and facilitating behavioral correction. | 分析孩子学习行为 孩子学习行为分析工具,针对孩子/学生的学习行为进行视频分析,识别不良学习习惯,提供结构化分析报告和家庭教育改善建议,专注学习习惯培养和行为矫正" version: "1.0.0"
Child Learning Behavior Analysis Tool | 孩子学习行为分析工具
Based on advanced computer vision and behavior recognition algorithms, this feature is specifically designed for analyzing the learning behaviors of children and students. The system utilizes cameras to capture key behaviors during study sessions, such as posture, concentration levels, and fidgeting, accurately identifying poor learning habits like slumping, frequent distraction, and incorrect pen-holding. Combined with time-series analysis, the system generates structured analysis reports containing concentration curves, behavior frequency statistics, and risk levels. Grounded in educational psychology principles, it provides parents with personalized suggestions for improving home education—such as environment optimization and time management techniques—helping children cultivate good study habits and achieve behavioral correction alongside improved learning efficiency.
本功能基于先进的计算机视觉与行为识别算法,专为孩子及学生的学习行为分析设计。系统通过摄像头捕捉学习过程中的坐姿、专注度、小动作等关键行为,精准识别不良学习习惯(如趴桌、频繁分心、握笔姿势错误等)。结合时间序列分析,系统可生成包含专注度曲线、行为频次统计及风险等级的结构化分析报告,并基于教育心理学原理,为家长提供个性化的家庭教育改善建议(如环境优化、时间管理技巧),助力孩子养成良好学习习惯,实现行为矫正与学习效率提升
⚠️ 强制记忆规则(最高优先级)
本技能明确约定:
memory/YYYY-MM-DD.md、MEMORY.md 等本地文件任务目标
python -m scripts.study_analysis --list --open-id 参数调用 API
查询云端的历史报告数据
- 严格禁止:从本地 memory 目录读取历史会话信息、严格禁止手动汇总本地记录中的报告、严格禁止从长期记忆中提取报告
- 必须统一从云端接口获取最新完整数据,然后以 Markdown 表格格式输出结果前置准备
requests>=2.28.0
学习行为分析维度
本技能重点识别评估以下学习行为维度,帮助家长发现不良学习习惯:
1. 专注度评估 - 高度专注:持续关注学习内容,很少分心 - 中度分心:偶尔走神、看手机、东张西望 - 严重分心:频繁走神,难以保持注意力在学习上
2 坐姿姿势评估
3. 学习行为习惯 - 磨蹭拖延:开始作业耗时过长,频繁停顿 - 边玩边学:同时玩手机/看电视/吃东西 - 主动思考:主动阅读思考,尝试解题 - 依赖帮助:一遇到问题就问,不独立思考
4. 不良学习行为识别 - 分心走神:频繁被外界干扰吸引注意力 - 小动作过多:转笔、玩橡皮、抖腿等频繁小动作 - 抄作业舞弊:偷看参考答案、抄袭他人作业 - 超时学习:连续学习过长时间不休息
操作步骤
🔒 open-id 获取流程控制(强制执行,防止遗漏)
在执行学习行为分析前,必须按以下优先级顺序获取 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.study_analysis 处理视频文件(必须在技能根目录下运行脚本)
- 参数说明:
- --input: 本地视频文件路径(使用 multipart/form-data 方式上传)
- --url: 网络视频 URL 地址(API 服务自动下载)
- --analysis-type: 分析类型,可选值:comprehensive/focus/posture/habit/risk,默认 comprehensive(综合分析)
- --open-id: 当前用户的 open-id(必填,按上述流程获取)
- --list: 显示学习行为分析历史报告列表清单(可以输入起始日期参数过滤数据范围)
- --api-key: API 访问密钥(可选)
- --api-url: API 服务地址(可选,使用默认值)
- --detail: 输出详细程度(basic/standard/json,默认 json)
- --output: 结果输出文件路径(可选)
4. 查看分析结果
- 接收结构化的学习行为分析报告
- 包含:整体学习评分、各维度评分、不良习惯识别、风险警示、家庭教育改善建议资源索引
注意事项
学习分析报告-{记录id}形式拼接, "点击查看"列使用
🔗 查看报告
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。
使用示例
# 综合学习行为分析(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.study_analysis --input /path/to/homework_video.mp4 --analysis-type comprehensive --open-id openclaw-control-ui专注度专项分析(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.study_analysis --url https://example.com/study_video.mp4 --analysis-type focus --open-id openclaw-control-ui坐姿姿势专项分析(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.study_analysis --input /path/to/writing_video.mp4 --analysis-type posture --open-id openclaw-control-ui显示历史分析报告/显示分析报告清单列表/显示历史学习报告(自动触发关键词:查看历史学习报告、历史报告、学习报告清单等)
python -m scripts.study_analysis --list --open-id openclaw-control-ui输出精简报告
python -m scripts.study_analysis --input video.mp4 --analysis-type comprehensive --open-id your-open-id --detail basic保存结果到文件
python -m scripts.study_analysis --input video.mp4 --analysis-type comprehensive --open-id your-open-id --output result.json