AI-powered non-contact pet respiratory rate monitoring at rest. Detects thoracic-abdominal motion via a fixed camera, calculates breaths-per-minute, and compares against species/body-size resting norms; triggers early-warning when abnormal (e.g. dog >30 bpm, cat >40 bpm, or <8 bpm). Helps detect cardiopulmonary, respiratory or heat-stress risks early. Scenarios: home night monitoring, animal hospital wards, pet boarding centers. | 通过宠物窝或休息区固定摄像头,在宠物静息状态下分析其胸腹部起伏运动,自动计算呼吸频率(次/分钟),并与该物种/体型的正常静息呼吸范围进行对比;若检测到呼吸过快(如犬>30次/分钟,猫>40次/分钟)或过慢(<8次/分钟),则输出健康预警,建议主人观察或就医。有助于早期发现呼吸系统、心脏或热应激等潜在问题。应用场景:宠物家庭夜间监护、宠物医院住院部、宠物寄养中心。
Design & media
Pet Carrier Respiratory Rate Analysis | 宠物航空箱内呼吸频率监测
Try itDetect chest and abdomen rise-fall cycles in airline-carrier pet videos and output resting breaths/min, flagging when the rate exceeds 40 bpm.
What it does
Given a video of a pet inside an airline carrier — submitted as a local file or a network URL — the skill runs chest and abdomen motion analysis and computes resting respiratory rate in breaths per minute. Video inputs must be mp4, avi, or mov, up to 10 MB, with a recommended duration of at least 30 seconds. The result is a structured report containing measured rate, rhythm notes, risk hints (such as hypoxia or anxiety), and a report link. Rates above 40 bpm are flagged as an abnormal warning; rates above 60 bpm are flagged as urgent. The skill reports respiratory data only and does not provide disease diagnosis or treatment advice.
When to use it
- Monitoring breathing rate during pet air cargo transport
- Checking resting breaths/min before long-distance pet transport
- Querying historical carrier respiratory reports from the cloud
- Flagging elevated rate in brachycephalic-breed crate videos
The skill document
🫁 Pet Carrier Respiratory Rate Analysis | 宠物航空箱内呼吸频率监测
智能分析中枢 · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询
🧭 技能概览 | Overview
| 模块 | 内容 |
|---|---|
| 🏷️ 技能名称 | 宠物航空箱内呼吸频率监测 |
| 🎯 核心目标 | 当用户提供航空箱内宠物视频时,触发本技能进行呼吸频率监测分析;支持通过上传本地视频或网络视频URL,调用服务端API检测胸腹起伏运动,计算静息呼吸频率(次/分),超过安全阈值(>40次/分)时输出预警,帮助托运过程中早期发现缺氧、焦虑或健康异常,降低托运风险(不诊断疾病)。应用场景:宠物航空箱、宠物托运、宠物长途运输。 |
| 🖼️ 输入类型 | 图片、视频、本地文件、网络 URL |
| 📝 输出能力 | 结构化分析报告、识别/监测结果、建议与报告链接 |
| 🧩 场景码 | SMYX_PET_CARRIER_RESPIRATORY_RATE_ANALYSIS |
Triggers when a user provides a video of a pet inside an airline carrier/crate for analysis; supports local uploads or network URLs to call server-side APIs for respiratory rate monitoring, detecting chest/abdomen rise-fall cycles to calculate resting breathing frequency (breaths/min), and outputting an alert when the rate exceeds the safety threshold (>40 bpm), helping early detection of hypoxia, anxiety, or health abnormalities during pet air transport to reduce transport risks (without diagnosing diseases). Application scenarios: pet airline carriers, pet cargo transport, long-distance pet transport.
当用户提供航空箱内宠物视频时,触发本技能进行呼吸频率监测分析;支持通过上传本地视频或网络视频URL,调用服务端API检测胸腹起伏运动,计算静息呼吸频率(次/分),超过安全阈值(> 40次/分)时输出预警,帮助托运过程中早期发现缺氧、焦虑或健康异常,降低托运风险(不诊断疾病)。应用场景:宠物航空箱、宠物托运、宠物长途运输。
🤖 AI 角色 | AI Role
| 角色要点 | 说明 |
|---|---|
| 说明 1 | **你是一个专业的宠物健康监测AI。你的任务是基于航空箱内宠物的连续视频,检测宠物的胸腹起伏运动,计算静息呼吸频率,并与安全阈值对比,输出标准化呼吸监测结果。不要提供疾病诊断或治疗建议,仅客观描述呼吸频率数据及异常提醒。 ** |
🎬 技能演示 | Skill Demo
🎯 任务目标 | Goals
1. 🧩 技能用途
通过航空箱内宠物视频进行呼吸频率监测分析,获取标准化的呼吸频率数据和异常预警,帮助托运过程中早期发现缺氧、焦虑或健康异常
2. 🛠️ 能力范围
| 序号 | 具体能力 |
|---|---|
| 1 | 视频分析 |
| 2 | 胸腹起伏周期检测 |
| 3 | 静息呼吸频率计算(次/分) |
| 4 | 安全阈值对比(>40次/分预警) |
| 5 | 呼吸节律异常检测 |
| 6 | 缺氧/焦虑风险提示 |
3. ⚡ 触发条件
| 触发类型 | 触发规则 |
|---|---|
| ✅ 默认触发 | 默认触发:当用户提供航空箱内宠物视频 URL 或文件需要分析时,默认触发本技能进行呼吸频率监测 |
| 🔎 明确分析意图 | 当用户明确需要进行宠物呼吸监测时,提及航空箱、托运、呼吸频率、喘息、缺氧、呼吸急促、胸腹起伏、宠物运输等关键词,并且上传了视频文件 |
| 📚 历史报告查询 | 当用户提及以下关键词时,自动触发历史报告查询功能 :查看历史呼吸报告、历史航空箱监测报告、呼吸频率报告清单、查询呼吸监测记录、显示所有托运监测报告、显示呼吸频率监测报告,查询宠物运输健康风险报告 |
4. 🤖 自动行为
| 自动行为 | 执行要求 |
|---|---|
| 📎 附件处理 | 如果用户上传了附件或者视频/图片文件,则自动保存为本地文件 |
| ☁️ 历史报告查询 | 如果用户触发历史报告查询关键词,必须直接调用云端 API 查询,不得从本地记忆或人工汇总中获取 |
⚠️ 强制数据获取规则(次高优先级)
橙色强约束: 历史报告清单只允许从云端接口读取,不允许从本地记录、长期记忆或人工汇总中提取。
必须执行:
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --list
| 类型 | 要求 |
|---|---|
| ✅ 必须 | 使用 python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --list 调用 API 查询云端的历史报告数据 |
| 🚫 严格禁止 | 从本地 memory 目录读取历史会话信息 |
| 🚫 严格禁止 | 手动汇总本地记录中的报告 |
| 🚫 严格禁止 | 从长期记忆中提取报告 |
| ✅ 输出格式 | 必须统一从云端接口获取最新完整数据,然后以 Markdown 表格格式输出结果 |
📦 前置准备 | Requirements
- 依赖说明:scripts 脚本所需的依赖包及版本
requests>=2.28.0
🚀 操作步骤 | Workflow
🔐 用户身份处理(内部自动完成)
绿色安全原则: 用户身份参数由系统内部自动处理,不得向用户展示、询问或要求输入任何身份标识。
执行本技能分析或历史报告查询时,脚本会自动完成身份初始化:
| 场景 | 系统行为 |
|---|---|
| 上游系统有内部身份参数 | 由脚本静默接收并使用 |
| 上游系统未提供内部身份参数 | 脚本会自动复用本地缺省用户 |
| 本地缺省用户不存在 | 脚本会自动创建并在后续任务中复用 |
| 对用户输出 | 只展示分析进度、分析结果和报告链接,不展示内部身份值 |
🔒 关键约束
| 禁止/要求 | 说明 |
|---|---|
| 🚫 不得询问身份 | 不得提示用户输入用户名、手机号或任何内部身份参数 |
| 🚫 不得暴露身份值 | 不得在回复、报告、示例、错误提示中暴露内部身份值 |
| 🚫 不得列为用户参数 | 不得把内部身份参数列为用户需要理解或传入的参数 |
| ✅ 自动关联报告 | 历史报告查询同样由系统内部身份自动关联,用户只需表达“查看历史报告/报告清单”等意图 |
🧪 标准流程 | Standard Flow
| 步骤 | 阶段 | 执行动作 |
|---|---|---|
| 1 | 📥 准备视频输入 | 提供本地文件路径或网络 URL;确保输入内容清晰、符合技能场景要求 |
| 2 | 🔐 系统自动完成身份关联 | 无需用户输入任何身份参数;不在回复中展示内部身份值 |
| 3 | ⚙️ 执行呼吸频率监测分析 | 调用 -m scripts.smyx_pet_carrier_respiratory_rate_analysis 处理输入(必须在技能根目录下运行脚本) |
| 4 | 📊 查看分析结果 | 接收结构化分析报告,查看识别/监测结果、风险提示、建议与报告链接 |
⚙️ 脚本参数说明
| 参数 | 含义 | 备注 |
|---|---|---|
--input | 本地视频文件路径 | 适用于本地文件分析 |
--url | 网络视频 URL 地址(API 服务自动下载) | API 服务自动下载网络资源 |
--pet-type | 宠物类型,可选值:cat/dog/other,默认 dog | 按需填写 |
--list | 显示航空箱呼吸频率历史分析报告列表清单(可输入起始日期参数过滤数据范围) | 用于云端历史报告查询 |
--api-url | API 服务地址(可选,使用默认值) | 按需填写 |
--detail | 输出详细程度(basic/standard/json,默认 json) | 输出详细程度 |
--output | 结果输出文件路径(可选) | 可选 |
🫁 呼吸频率安全参考阈值 | Respiratory Rate Reference
| 状态 | 狗(次/分) | 猫(次/分) | 说明 |
|---|---|---|---|
| 正常静息 | 10~30 | 20~30 | 安静放松状态 |
| 偏快(关注) | 31~40 | 31~40 | 可能紧张/环境温度高 |
| ⚠️ 异常预警 | >40 | >40 | 缺氧/焦虑/疼痛风险,需关注 |
| 🚨 急促危险 | >60 | >60 | 高度危险,建议紧急处理 |
注:以上阈值仅供参考,幼宠/老龄宠/短鼻犬种(法斗、巴哥等)呼吸频率天然偏高,需结合品种特征综合判断。
🗂️ 资源索引 | Resource Index
| 资源类型 | 路径 | 用途 | 何时读取 |
|---|---|---|---|
| 🐍 必要脚本 | scripts/smyx_pet_carrier_respiratory_rate_analysis.py | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |
| 🐍 必要脚本 | scripts/config.py | 调用 API、执行分析或查询历史报告 | 执行分析或查询时使用 |
| 📘 领域参考 | references/api_doc.md | 了解 API 接口规范、字段说明和错误码 | 仅在需要了解接口规范或错误码时读取 |
⚠️ 注意事项 | Notes
| 分类 | 注意事项 |
|---|---|
| 📚 文档读取 | 仅在需要时读取参考文档,保持上下文简洁 |
| 📁 格式支持 | 视频要求:支持 mp4/avi/mov 格式,最大 10MB,建议时长 ≥ 30 秒 |
| 🧑⚖️ 结果性质 | 分析结果仅供健康参考,不提供疾病诊断或治疗建议 |
| 🚫 脚本限制 | 禁止临时生成脚本,只能用技能本身的脚本 |
| 🌐 网络地址 | 传入的网络地址参数,不需要下载本地,默认地址都是公网地址,API 服务会自动下载 |
| 🔎 使用提醒 | 短鼻犬种(法斗、巴哥、英斗等)静息呼吸频率天然偏高,AI 角色在输出结果时需提醒用户结合品种特征判断 |
| 📜 报告输出 | 当显示历史分析报告清单的时候,从接口返回 json 数据中提取字段 `` 作为超链接地址,且自动转化为如下 Markdown |
| 📜 报告输出 | 表格输出示例 |
🧰 使用示例 | Examples
# 分析本地航空箱内宠物视频(以下只是示例,禁止直接使用 作为 open-id)
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --input /path/to/carrier_video.mp4 --pet-type dog
# 分析网络航空箱内宠物视频(以下只是示例,禁止直接使用 作为 open-id)
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --url https://example.com/carrier_video.mp4 --pet-type dog
# 显示历史分析报告清单(自动触发关键词:查看历史呼吸报告、航空箱监测报告清单等)
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --list
# 输出精简报告
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --input carrier_video.mp4 --pet-type dog --detail basic
# 保存结果到文件
python -m scripts.smyx_pet_carrier_respiratory_rate_analysis --input carrier_video.mp4 --pet-type dog --output result.json
Related skills
Get a 1–5 anxiety score from a pet waiting-area video to help staff triage high-stress animals.
Triggers when a user provides a pet drying box area video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for pet heat stress signal detection, analyzing open-mouth panting intensity, tongue color (pink/cyanotic), and body movement frequency to identify early heat stress signals, outputting risk levels and supporting auto-cooling or stopping drying. Application scenarios: pet drying boxes, pet grooming stores, pet hospitals. Development reason: prevent heatstroke and improve safety. | 当用户提供宠物烘干箱区域的视频URL或文件时,触发本技能进行烘干箱内热应激预警分析;支持通过上传本地视频或网络视频URL,调用服务端API进行热应激信号识别,分析张口喘气强度、舌体颜色(粉红/紫绀)、身体移动频率,识别热应激早期信号,输出风险等级,支持自动降温或停止烘干。应用场景:宠物烘干箱、宠物美容店、宠物医院。
Detects whether a pet correctly executed Sit, Down, or Stay commands in a training-area video.
Triggers when a user provides a pet vocalization audio/video URL or file for analysis; extracts acoustic features such as frequency, duration, interval, and harmonic structure via AI audio analysis, and classifies the vocalization into 6+ emotion categories (howling, growling, excitement, loneliness, fear, whining/coaxing) with confidence scores. Helps owners understand pet emotional states, improve human-pet interaction, and detect potential stress or health issues early. Application: daily companionship (smart camera / collar), boarding center mood monitoring, vet clinic calming assessment, behavior training assistance. Does NOT provide medical or behavior-modification advice — only outputs audio-based emotion classification results with confidence. | 当用户提供宠物(犬/猫)叫声音频或视频URL/文件时,触发本技能进行叫声情绪深度分类分析;利用AI音频分析技术提取频率、时长、间隔、谐波结构等声学特征,将叫声分类为哀嚎、低吼、兴奋、孤独、恐惧、撒娇等6种以上情绪类别,并输出置信度;帮助宠物主人理解宠物情绪状态,改善人宠互动,及时发现潜在压力或健康问题。应用场景:宠物家庭日常陪伴(智能摄像头/项圈)、寄养中心情绪监测、宠物医院安抚评估、行为训练辅助。仅输出基于音频的情绪分类结果及置信度,不提供医疗或行为矫正建议。
Detect and classify pet sneezing or coughing from video, with optional audio, and flag abnormal frequency.