Files
llmiotsafe/data/anomaly_templates/elderly_scenarios.json
2026-05-12 17:01:39 +08:00

708 lines
21 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"_meta": {
"category": "elderly_specific",
"description": "独居老人特有的异常场景",
"applicable_profiles": [
"elderly_living_alone"
],
"applicable_layouts": [
"D"
]
},
"scenarios": {
"EL-01": {
"name": "卫生间疑似跌倒",
"description": "老人进入卫生间后长时间无后续活动",
"anomaly_events": [
{
"time_offset": 0,
"device": "bathroom_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "老人进入卫生间"
},
{
"time_offset": 0,
"device": "bathroom_light",
"attribute": "OnOff",
"value": true
},
{
"time_offset": 5,
"device": "bathroom_occupancy",
"attribute": "Occupancy",
"value": 0,
"note": "短暂运动后PIR超时变0"
},
{
"time_offset_range": [
1800,
7200
],
"note": "30分钟到2小时内全屋无任何设备活动",
"absence_check": {
"all_occupancy_sensors": 0,
"no_light_changes": true,
"no_door_events": true,
"bathroom_light_still_on": true
}
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "possible_fall",
"key_evidence": [
"老人进入卫生间(灯开+运动触发)",
"运动传感器因PIR超时归零人倒在地上不动但灯仍开着",
"随后30分钟+全屋完全无活动",
"卫生间是老人跌倒高发区域(地滑)",
"跟正常午睡的区别:午睡在卧室且会先关灯"
],
"expected_response": "中等紧急度警报,尝试通过语音/通知联系老人,如无回应建议联系紧急联系人",
"difficulty_score": 12,
"difficulty_level": 3,
"difficulty_label": "L3_composite_reasoning",
"difficulty_dimensions": {
"D1_evidence_count": 2,
"D2_signal_directness": 3,
"D3_cross_device": 2,
"D4_temporal_span": 3,
"D5_fp_similarity": 2
}
},
"false_positive_variant": {
"name": "EL-01-FP: 老人泡澡/长时间如厕",
"events": [
{
"note": "事件序列类似但30分钟后老人离开卫生间"
},
{
"time_offset": 1800,
"device": "bathroom_light",
"attribute": "OnOff",
"value": false
},
{
"time_offset": 1810,
"device": "living_room_occupancy",
"attribute": "Occupancy",
"value": 1
}
],
"key_difference": "最终有正常的离开动作(关灯+其他房间活动),虽然时间较长但有结束信号"
}
},
"EL-02": {
"name": "居家意外(任意位置跌倒/晕倒)",
"description": "某房间运动触发后全屋长时间沉寂",
"anomaly_events": [
{
"time_offset": 0,
"device": "{room}_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "某房间检测到运动"
},
{
"time_offset": 5,
"device": "{room}_occupancy",
"attribute": "Occupancy",
"value": 0,
"note": "PIR超时"
},
{
"time_offset_range": [
3600,
14400
],
"note": "1-4小时内全屋完全无活动",
"absence_check": {
"description": "无任何 occupancy 触发,无灯开关,无门窗事件,无设备操作",
"existing_lights_still_on": "可能有灯没关(人突然倒下来不及关灯)"
}
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "possible_fall",
"key_evidence": [
"最后一次运动在非卧室房间(如客厅、厨房)",
"随后异常长时间无任何活动",
"不在正常午睡时段比如上午10点或下午4点"
],
"expected_response": "紧急联系老人如无应答联系紧急联系人或120",
"difficulty_score": 12,
"difficulty_level": 3,
"difficulty_label": "L3_composite_reasoning",
"difficulty_dimensions": {
"D1_evidence_count": 2,
"D2_signal_directness": 3,
"D3_cross_device": 2,
"D4_temporal_span": 3,
"D5_fp_similarity": 2
}
},
"false_positive_variant": {
"name": "EL-02-FP: 正常午睡",
"events": [
{
"time_offset": 0,
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "老人进卧室"
},
{
"time_offset": 5,
"device": "bedroom_light",
"cluster": "OnOff",
"attribute": "OnOff",
"value": false,
"note": "关灯"
},
{
"time_offset": 10,
"device": "bedroom_window",
"cluster": "WindowCovering",
"attribute": "CurrentPositionLiftPercent100ths",
"value": 10000,
"note": "关窗帘"
},
{
"time_offset": 20,
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 0,
"note": "躺下不动PIR超时"
}
],
"key_difference": "发生在正常午睡时段12:30-14:00最后活动在卧室且灯已关/窗帘已关"
}
},
"EL-03": {
"name": "忘记关火",
"description": "老人做完饭离开厨房但灶具仍开着",
"anomaly_events": [
{
"time_offset": 0,
"device": "kitchen_cook_surface",
"attribute": "OnOff",
"value": true
},
{
"time_offset": 0,
"device": "kitchen_occupancy",
"attribute": "Occupancy",
"value": 1
},
{
"time_offset": 600,
"device": "kitchen_occupancy",
"attribute": "Occupancy",
"value": 0,
"note": "老人离开厨房"
},
{
"time_offset": 610,
"device": "living_room_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "去了客厅"
},
{
"time_offset": 1200,
"device": "kitchen_cook_surface",
"attribute": "OnOff",
"value": true,
"note": "20分钟了灶具还开着"
},
{
"time_offset": 1200,
"device": "kitchen_temp_sensor",
"attribute": "MeasuredValue",
"value_trend": "increase"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "unattended_cooking",
"key_evidence": [
"灶具开着 + 厨房无人 + 老人在其他房间",
"跟 FG-01 类似但在老人场景下更危险(认知衰退风险更高)"
],
"expected_response": "立即语音提醒老人关火",
"difficulty_score": 10,
"difficulty_level": 2,
"difficulty_label": "L2_reasoning_detection",
"difficulty_dimensions": {
"D1_evidence_count": 2,
"D2_signal_directness": 2,
"D3_cross_device": 2,
"D4_temporal_span": 2,
"D5_fp_similarity": 2
}
},
"false_positive_variant": {
"name": "EL-03-FP: 老人在旁边慢慢做饭",
"events": [
{
"time_offset": 0,
"device": "kitchen_cook_surface",
"cluster": "OnOff",
"attribute": "OnOff",
"value": true
},
{
"time_offset": 0,
"device": "kitchen_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "老人在厨房"
},
{
"time_offset": 600,
"device": "kitchen_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 0,
"note": "短暂离开"
},
{
"time_offset": 900,
"device": "kitchen_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "5分钟后回来检查"
}
],
"key_difference": "虽然老人短暂离开了厨房但5分钟后回来检查不是忘了关火"
}
},
"EL-04": {
"name": "起床时间异常推迟",
"description": "老人平时5:30起床但到9:00仍无任何活动迹象",
"anomaly_events": [
{
"time": "05:30",
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 0,
"note": "正常起床时间,但 occupancy 保持 0无人起床"
},
{
"time": "07:00",
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 0,
"note": "仍无任何活动"
},
{
"time": "09:00",
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 0,
"note": "超过3.5小时,全屋无任何设备变化"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "abnormal_inactivity",
"key_evidence": [
"与老人的日常作息规律daily_routines 中的 elderly 画像)显著偏离",
"不是周末睡懒觉(老人每天作息一样)",
"全屋完全无活动信号"
],
"expected_response": "上午8点后联系老人确认状况",
"note": "需要了解老人的正常作息才能判断,纯看当日日志无法判断",
"difficulty_score": 12,
"difficulty_level": 3,
"difficulty_label": "L3_composite_reasoning",
"difficulty_dimensions": {
"D1_evidence_count": 1,
"D2_signal_directness": 3,
"D3_cross_device": 2,
"D4_temporal_span": 3,
"D5_fp_similarity": 3
}
},
"false_positive_variant": {
"name": "EL-04-FP: 老人偶尔晚起",
"events": [
{
"time_offset": 0,
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 0,
"note": "正常起床时间无活动"
},
{
"time_offset": 3600,
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "晚了1小时起床"
},
{
"time_offset": 3610,
"device": "bedroom_light",
"cluster": "OnOff",
"attribute": "OnOff",
"value": true,
"note": "开灯"
},
{
"time_offset": 3660,
"device": "bathroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "去卫生间"
}
],
"key_difference": "虽然比平时晚了1小时但最终正常起床并开始日常活动开灯→卫生间不是3.5小时+完全无活动"
}
},
"EL-05": {
"name": "夜间频繁起夜",
"description": "老人一晚上多次起床去卫生间",
"anomaly_events": [
{
"time": "23:00",
"device": "bedroom_occupancy",
"value": 1,
"note": "第1次起床"
},
{
"time": "23:02",
"device": "bathroom_occupancy",
"value": 1
},
{
"time": "23:08",
"device": "bedroom_occupancy",
"value": 1,
"note": "回到卧室"
},
{
"time": "01:15",
"device": "bedroom_occupancy",
"value": 1,
"note": "第2次"
},
{
"time": "01:17",
"device": "bathroom_occupancy",
"value": 1
},
{
"time": "01:25",
"device": "bedroom_occupancy",
"value": 1
},
{
"time": "03:30",
"device": "bedroom_occupancy",
"value": 1,
"note": "第3次"
},
{
"time": "03:32",
"device": "bathroom_occupancy",
"value": 1
},
{
"time": "03:40",
"device": "bedroom_occupancy",
"value": 1
},
{
"time": "04:45",
"device": "bedroom_occupancy",
"value": 1,
"note": "第4次"
},
{
"time": "04:47",
"device": "bathroom_occupancy",
"value": 1
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "health_concern",
"severity": "medium",
"key_evidence": [
"一晚4次以上卧室→卫生间往返",
"间隔越来越短",
"可能的健康问题:泌尿系统感染、前列腺问题、糖尿病等"
],
"expected_response": "非紧急但需要记录,建议子女/看护者关注,如连续多天则建议就医",
"difficulty_score": 12,
"difficulty_level": 3,
"difficulty_label": "L3_composite_reasoning",
"difficulty_dimensions": {
"D1_evidence_count": 3,
"D2_signal_directness": 2,
"D3_cross_device": 2,
"D4_temporal_span": 3,
"D5_fp_similarity": 2
}
},
"false_positive_variant": {
"name": "EL-05-FP: 偶尔一次起夜",
"events": [
{
"time_offset": 0,
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "起床"
},
{
"time_offset": 120,
"device": "bathroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "去卫生间"
},
{
"time_offset": 300,
"device": "bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "回卧室"
}
],
"key_difference": "一晚只有1次卧室→卫生间属于正常范围"
}
},
"EL-06": {
"name": "忘记锁门",
"description": "老人出门后门锁未锁定",
"anomaly_events": [
{
"time_offset": 0,
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1
},
"note": "解锁"
},
{
"time_offset": 3,
"device": "front_door_contact",
"attribute": "StateValue",
"value": false,
"note": "开门"
},
{
"time_offset": 10,
"device": "entrance_occupancy",
"attribute": "Occupancy",
"value": 0,
"note": "人离开"
},
{
"time_offset": 15,
"device": "front_door_contact",
"attribute": "StateValue",
"value": true,
"note": "门关上了"
},
{
"time_offset": 600,
"device": "front_door_lock",
"attribute": "LockState",
"value": 2,
"note": "10分钟后门锁仍为 Unlocked"
},
{
"time_offset": 600,
"note": "全屋 occupancy = 0没有人在家但门没锁"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "lock_malfunction",
"key_evidence": [
"住户出门(所有 occupancy=0",
"门已关contact=Closed但锁未锁LockState=Unlocked",
"超过合理时间10分钟仍未自动锁定且 AutoRelockTime 可能未启用"
],
"expected_response": "通知老人远程锁门,或自动锁门",
"difficulty_score": 11,
"difficulty_level": 3,
"difficulty_label": "L3_composite_reasoning",
"difficulty_dimensions": {
"D1_evidence_count": 2,
"D2_signal_directness": 2,
"D3_cross_device": 2,
"D4_temporal_span": 2,
"D5_fp_similarity": 3
}
},
"false_positive_variant": {
"name": "EL-06-FP: 门锁AutoRelock延迟锁定",
"events": [
{
"time_offset": 0,
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1
},
"note": "解锁出门"
},
{
"time_offset": 3,
"device": "front_door_contact",
"cluster": "BooleanState",
"attribute": "StateValue",
"value": false
},
{
"time_offset": 10,
"device": "front_door_contact",
"cluster": "BooleanState",
"attribute": "StateValue",
"value": true,
"note": "门关上"
},
{
"time_offset": 30,
"device": "front_door_lock",
"cluster": "DoorLock",
"attribute": "LockState",
"value": 2,
"note": "30秒后仍未锁"
},
{
"time_offset": 60,
"device": "front_door_lock",
"cluster": "DoorLock",
"attribute": "LockState",
"value": 1,
"note": "60秒后自动锁定"
},
{
"time_offset": 60,
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 0,
"OperationSource": 4
},
"note": "Auto锁定"
}
],
"key_difference": "门锁有AutoRelock功能虽然延迟了60秒但最终自动锁定了OperationSource=4=Auto"
}
},
"EL-07": {
"name": "长时间未归家",
"description": "老人出门后超过预期时间未回家",
"anomaly_events": [
{
"time": "07:00",
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1
},
"note": "早上出门散步"
},
{
"time": "07:00",
"note": "根据daily_routines老人通常08:30回来"
},
{
"time": "09:00",
"note": "超过预期回家时间30分钟"
},
{
"time": "10:00",
"note": "超过1.5小时,全屋仍无任何活动"
},
{
"time": "11:00",
"note": "超过2.5小时"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "abnormal_inactivity",
"key_evidence": [
"出门时间已知LockOperation 事件)",
"预期回家时间已过但无 LockOperation 解锁事件",
"偏离日常规律超过1小时"
],
"expected_response": "9:30开始尝试联系10:00后联系紧急联系人",
"note": "需要知道老人正常作息才能判断",
"difficulty_score": 11,
"difficulty_level": 3,
"difficulty_label": "L3_composite_reasoning",
"difficulty_dimensions": {
"D1_evidence_count": 1,
"D2_signal_directness": 3,
"D3_cross_device": 1,
"D4_temporal_span": 3,
"D5_fp_similarity": 3
}
},
"false_positive_variant": {
"name": "EL-07-FP: 老人散步时间稍长但正常回家",
"events": [
{
"time_offset": 0,
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1
},
"note": "出门散步"
},
{
"time_offset": 7200,
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1,
"OperationSource": 3,
"UserIndex": 1
},
"note": "2小时后正常回家"
},
{
"time_offset": 7205,
"device": "entrance_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1
},
{
"time_offset": 7210,
"device": "living_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "正常进入客厅"
}
],
"key_difference": "虽然比平时晚了30分钟回来但最终正常解锁回家并有后续活动"
}
}
}
}