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

511 lines
16 KiB
JSON
Raw 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": "child_specific",
"description": "有小孩家庭特有的异常场景",
"applicable_profiles": [
"family_with_children"
],
"applicable_layouts": [
"C"
]
},
"scenarios": {
"CH-01": {
"name": "儿童独自在家异常",
"description": "工作日上午(应该上学时间)家中只有儿童房有活动",
"anomaly_events": [
{
"time": "07:30",
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1,
"UserIndex": 1
},
"note": "家长出门"
},
{
"time": "07:30",
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 0
},
"note": "锁门"
},
{
"time": "08:00",
"note": "此时孩子应该在学校"
},
{
"time": "09:00",
"device": "kids_room_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "儿童房有活动"
},
{
"time": "09:00",
"device": "kids_room_light",
"attribute": "OnOff",
"value": true
},
{
"time": "09:00",
"note": "其他房间无活动,只有儿童房"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "child_safety",
"key_evidence": [
"工作日上午学校时段",
"家长已出门LockOperation 记录)",
"仅儿童房有活动信号,其他房间无人",
"活动模式像小孩(仅在一个房间)"
],
"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": "CH-01-FP: 孩子生病请假在家(家长陪护)",
"events": [
{
"time_offset": 0,
"device": "kids_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "孩子在房间"
},
{
"time_offset": 0,
"device": "kids_room_light",
"cluster": "OnOff",
"attribute": "OnOff",
"value": true
},
{
"time_offset": 600,
"device": "master_bedroom_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "家长也在家"
},
{
"time_offset": 1200,
"device": "kitchen_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "家长去厨房准备吃的"
}
],
"key_difference": "家长也在家(多个房间有活动),不只是儿童房,说明有成人陪护"
}
},
"CH-02": {
"name": "儿童进入危险区域操作危险设备",
"description": "儿童独自时厨房灶具被开启",
"preconditions": {
"home_state": "家长不在家或在其他房间",
"time_range": "any"
},
"anomaly_events": [
{
"time_offset": 0,
"device": "kids_room_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "儿童在儿童房"
},
{
"time_offset": 60,
"device": "kids_room_occupancy",
"attribute": "Occupancy",
"value": 0,
"note": "离开"
},
{
"time_offset": 75,
"device": "kitchen_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "进入厨房"
},
{
"time_offset": 90,
"device": "kitchen_cook_surface",
"attribute": "OnOff",
"value": true,
"note": "灶具被打开"
},
{
"time_offset": 90,
"note": "此时无成人在场——master_bedroom_occupancy=0, living_room_occupancy=0 或家长在别的房间"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "child_safety",
"severity": "critical",
"key_evidence": [
"活动轨迹:儿童房 → 厨房",
"厨房灶具被开启",
"无成人在厨房(厨房 occupancy 信号模式+其他房间的 occupancy 信号表明成人不在厨房)",
"如果灶具有 OffOnly 限制,理论上不能远程开启——这意味着是物理操作"
],
"expected_response": "立即通知家长如可能则远程关闭灶具OffOnly命令",
"difficulty_score": 10,
"difficulty_level": 2,
"difficulty_label": "L2_reasoning_detection",
"difficulty_dimensions": {
"D1_evidence_count": 2,
"D2_signal_directness": 2,
"D3_cross_device": 3,
"D4_temporal_span": 1,
"D5_fp_similarity": 2
}
},
"false_positive_variant": {
"name": "CH-02-FP: 家长陪同孩子在厨房",
"events": [
{
"time_offset": 0,
"device": "kids_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1
},
{
"time_offset": 60,
"device": "kitchen_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "进入厨房"
},
{
"time_offset": 65,
"device": "kitchen_cook_surface",
"cluster": "OnOff",
"attribute": "OnOff",
"value": true,
"note": "灶具开启"
},
{
"time_offset": 65,
"device": "living_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "家长也在附近活动"
}
],
"key_difference": "家长也在活动living_room occupancy不是孩子独自操作灶具"
}
},
"CH-03": {
"name": "儿童深夜活动",
"description": "儿童房半夜有持续活动",
"anomaly_events": [
{
"time": "01:30",
"device": "kids_room_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "凌晨1:30儿童房运动"
},
{
"time": "01:30",
"device": "kids_room_light",
"attribute": "OnOff",
"value": true,
"note": "开灯"
},
{
"time": "01:35",
"device": "kids_room_occupancy",
"attribute": "Occupancy",
"value": 0
},
{
"time": "01:36",
"device": "living_room_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "去了客厅"
},
{
"time": "01:36",
"note": "家长卧室无运动(家长在睡觉)"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "child_safety",
"key_evidence": [
"凌晨时段儿童房活动 → 离开房间去其他区域",
"家长卧室无活动(不是家长带着孩子)",
"低龄儿童深夜独自活动有安全风险(摔倒、误触电器等)"
],
"expected_response": "通知家长(轻柔方式),建议查看孩子情况",
"difficulty_score": 9,
"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": 1,
"D5_fp_similarity": 2
}
},
"false_positive_variant": {
"name": "CH-03-FP: 孩子起夜上厕所",
"events": [
{
"time": "02:00",
"device": "kids_room_occupancy",
"value": 1
},
{
"time": "02:02",
"device": "second_bathroom_occupancy",
"value": 1,
"note": "直接去卫生间"
},
{
"time": "02:05",
"device": "kids_room_occupancy",
"value": 1,
"note": "回到房间"
}
],
"key_difference": "路径是 儿童房→卫生间→儿童房,直来直去没有去其他地方,持续时间短"
}
},
"CH-04": {
"name": "儿童尝试开门外出",
"description": "低龄儿童在无成人在场时尝试打开入户门",
"anomaly_events": [
{
"time_offset": 0,
"device": "entrance_occupancy",
"attribute": "Occupancy",
"value": 1,
"note": "玄关检测到活动(矮小身影)"
},
{
"time_offset": 5,
"device": "front_door_lock",
"event": "LockOperationError",
"fields": {
"OperationError": 1,
"OperationSource": 3
},
"note": "尝试用密码解锁失败"
},
{
"time_offset": 15,
"device": "front_door_lock",
"event": "LockOperationError",
"fields": {
"OperationError": 1,
"OperationSource": 3
},
"note": "再次失败"
},
{
"time_offset": 15,
"note": "master_bedroom_occupancy=0 或家长在其他房间未响应"
}
],
"ground_truth": {
"is_anomaly": true,
"threat_type": "child_safety",
"key_evidence": [
"玄关运动 + 门锁解锁失败",
"密码错误(小孩可能记不准密码)",
"无成人在玄关区域",
"跟 INS-02 的区别这里不是暴力破解只有1-2次尝试且家中有其他房间的活动说明有人在家"
],
"expected_response": "通知家长孩子在尝试开门",
"difficulty_score": 9,
"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": 1,
"D5_fp_similarity": 2
}
},
"false_positive_variant": {
"name": "CH-04-FP: 家长在玄关操作门锁",
"events": [
{
"time_offset": 0,
"device": "entrance_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1
},
{
"time_offset": 5,
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1,
"OperationSource": 3,
"UserIndex": 1
},
"note": "成人成功解锁"
},
{
"time_offset": 8,
"device": "front_door_contact",
"cluster": "BooleanState",
"attribute": "StateValue",
"value": false
},
{
"time_offset": 30,
"device": "front_door_contact",
"cluster": "BooleanState",
"attribute": "StateValue",
"value": true
},
{
"time_offset": 32,
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 0,
"OperationSource": 3,
"UserIndex": 1
},
"note": "锁门"
}
],
"key_difference": "成人成功解锁UserIndex=1无LockOperationError不是儿童输错密码"
}
},
"CH-05": {
"name": "儿童异常长时间静止",
"description": "孩子放学回家后某个房间有过信号,然后长时间完全无活动",
"anomaly_events": [
{
"time": "16:15",
"device": "front_door_lock",
"event": "LockOperation",
"fields": {
"LockOperationType": 1,
"OperationSource": 3
},
"note": "放学回家"
},
{
"time": "16:16",
"device": "kids_room_occupancy",
"attribute": "Occupancy",
"value": 1
},
{
"time": "16:16",
"device": "kids_room_light",
"attribute": "OnOff",
"value": true
},
{
"time": "16:20",
"device": "kids_room_occupancy",
"attribute": "Occupancy",
"value": 0,
"note": "坐下不动PIR超时"
},
{
"time_range": "16:20-18:30",
"note": "超过2小时无任何活动灯还开着其他房间全无信号"
}
],
"ground_truth": {
"is_anomaly": "uncertain",
"threat_type": "child_safety",
"key_evidence": [
"孩子回家后进入房间然后2小时+完全无活动",
"灯还开着说明人可能还在房间但不动",
"可能场景:写作业/看手机正常vs 身体不适/情绪问题(需关注)",
"这个场景的判断需要谨慎——不能过度报警"
],
"expected_response": "低优先级提醒家长孩子回家后比较安静,建议关注",
"note": "这种场景的 TP/FP 边界模糊,考验 LLM 的判断力和措辞能力",
"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": "CH-05-FP: 孩子安静写作业后正常活动",
"events": [
{
"time_offset": 0,
"device": "kids_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1
},
{
"time_offset": 0,
"device": "kids_room_light",
"cluster": "OnOff",
"attribute": "OnOff",
"value": true
},
{
"time_offset": 3600,
"device": "kids_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 0,
"note": "PIR超时"
},
{
"time_offset": 5400,
"device": "kids_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "1.5小时后站起来"
},
{
"time_offset": 5430,
"device": "living_room_occupancy",
"cluster": "OccupancySensing",
"attribute": "Occupancy",
"value": 1,
"note": "去客厅"
}
],
"key_difference": "虽然安静了1.5小时,但之后正常起身活动去了其他房间,说明只是在专注写作业"
}
}
}
}