你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 两室一厅 (2BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅落地灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor], 次卧温度传感器[temperature_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ1
- 重点房间: living_room
- 重点设备: bathroom_occupancy, living_room_light_1, master_bedroom_occupancy
- 已选事件数: 130

## 设备事件日志
[2026-07-03T00:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T01:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2288
[2026-07-03T01:00:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T01:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2311
[2026-07-03T01:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2301
[2026-07-03T01:30:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T01:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2308
[2026-07-03T02:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2327
[2026-07-03T02:00:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T02:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2329
[2026-07-03T02:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2353
[2026-07-03T02:30:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T02:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2354
[2026-07-03T03:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2367
[2026-07-03T03:00:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T03:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-07-03T03:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2372
[2026-07-03T03:30:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T03:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2389
[2026-07-03T03:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2405
[2026-07-03T04:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2392
[2026-07-03T04:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2409
[2026-07-03T04:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T04:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2397
[2026-07-03T04:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2400
[2026-07-03T04:10:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2411
[2026-07-03T04:15:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2419
[2026-07-03T04:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2406
[2026-07-03T04:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2413
[2026-07-03T04:25:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2421
[2026-07-03T04:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T04:30:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T04:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2422
[2026-07-03T04:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-07-03T04:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2422
[2026-07-03T04:45:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-07-03T04:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-07-03T04:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2426
[2026-07-03T04:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-07-03T05:00:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2448
[2026-07-03T05:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T05:00:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T05:05:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-07-03T05:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2453
[2026-07-03T05:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2452
[2026-07-03T05:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2453
[2026-07-03T05:20:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-07-03T05:25:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2447
[2026-07-03T05:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2450
[2026-07-03T05:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2447
[2026-07-03T05:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T05:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2468
[2026-07-03T05:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2458
[2026-07-03T05:40:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2471
[2026-07-03T05:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2460
[2026-07-03T05:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2463
[2026-07-03T05:55:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2466
[2026-07-03T06:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2481
[2026-07-03T06:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T06:00:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T06:05:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2476
[2026-07-03T06:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2478
[2026-07-03T06:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2475
[2026-07-03T06:15:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2484
[2026-07-03T06:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2494
[2026-07-03T06:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2495
[2026-07-03T06:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2496
[2026-07-03T06:30:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2485
[2026-07-03T06:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T06:30:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T06:35:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2491
[2026-07-03T06:40:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2487
[2026-07-03T06:42:09] bathroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-03T06:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2503
[2026-07-03T06:50:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2493
[2026-07-03T06:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2502
[2026-07-03T06:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2503
[2026-07-03T06:55:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-03T07:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2500
[2026-07-03T07:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2504
[2026-07-03T07:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T07:01:12] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T07:05:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-07-03T07:05:00] living_room_light_1 | OnOff.OnOff = True
[2026-07-03T07:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2502
[2026-07-03T07:10:00] bathroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-03T07:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2511
[2026-07-03T07:20:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2517
[2026-07-03T07:25:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-07-03T07:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2510
[2026-07-03T07:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2527
[2026-07-03T07:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T07:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2521
[2026-07-03T07:36:23] front_door_lock | Event: LockOperation(LockOperationType=1, OperationSource=Manual)
[2026-07-03T07:36:26] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-03T07:36:28] front_door_lock | DoorLock.LockState = 1
[2026-07-03T07:40:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2512
[2026-07-03T07:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2516
[2026-07-03T07:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2523
[2026-07-03T07:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2517
[2026-07-03T07:55:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-07-03T08:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2529
[2026-07-03T08:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2531
[2026-07-03T08:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T08:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-07-03T08:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2527
[2026-07-03T08:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-07-03T08:11:26] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-03T08:15:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2524
[2026-07-03T08:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-07-03T08:25:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-07-03T08:30:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-07-03T08:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T08:31:26] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-03T08:35:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-07-03T08:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-07-03T08:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-07-03T08:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-07-03T08:50:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-07-03T08:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-07-03T08:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2536
[2026-07-03T09:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-07-03T09:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T09:01:12] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-03T09:05:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2553
[2026-07-03T09:06:26] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-03T09:10:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-07-03T09:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2554
[2026-07-03T09:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2554
[2026-07-03T09:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2552

## 任务
请结合下面的 Matter 设备日志，判断是否存在设备健康问题，并说明可能的故障类型。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "当前日志更符合正常模式，不建议报警。",
  "reasoning": [
    "推理步骤1: 正常样本是起床链路的短时活动；异常样本是长时间单点持续 Occupied。"
  ],
  "key_evidence": [
    "正常样本是起床链路的短时活动；异常样本是长时间单点持续 Occupied。"
  ],
  "recommended_actions": [
    "继续监测，无需立即处置。"
  ]
}

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "sensor_drift",
  "threat_description": "全屋温度传感器读数严重偏离物理现实，显示异常高温（22°C-25°C 被记录为 2288K-2554K），且数值随时间持续线性上升，表明传感器存在严重的漂移或校准故障。",
  "reasoning": [
    "数据单位分析：日志中的温度值范围在 2288 到 2554 之间。若单位为摄氏度 (°C)，该数值远超地球表面可能存在的任何环境或火灾温度；若单位为开尔文 (K)，则对应约 -15°C 至 -20°C 的极寒环境。然而，结合凌晨时段（01:00-06:30）通常较凉爽的时间特征，以及随后数值持续上升至 2554（约 -219°C）的趋势，这与‘室温升高’的常识完全相反，或者如果假设是°C且设备故障导致溢出，其增长模式不符合热力学规律。",
    "趋势异常：从 01:00 的 2288 到 09:20 的 2554，所有房间的温度传感器在同一时间段内呈现出高度同步的、线性的单调递增趋势。真实的家庭环境中，不同房间受墙体隔热、通风和热源影响，温度变化曲线通常存在差异，不可能如此完美地同步上升。",
    "逻辑矛盾：如果这些数值代表摄氏度，那么 2554°C 足以瞬间熔化房屋结构并引发毁灭性火灾，但日志中并未伴随烟雾报警器触发或门锁因高温损坏等次生事件。如果这些数值代表开尔文，则意味着室内温度正在急剧下降至绝对零度附近，这在无制冷设备运行的情况下是不可能的。最合理的解释是传感器固件出现 Bug，将实际温度（如 22.88°C）错误地格式化或计算为整数 2288，且该错误算法导致了数值的持续累积或漂移。",
    "排除误报：虽然入户门有正常的开关锁记录和人员进出记录，证明系统其他部分工作正常，但温度数据的荒谬性和一致性排除了真实火灾或极端天气的可能性，确认为设备自身的传感器漂移或数据上报逻辑错误。"
  ],
  "key_evidence": [
    "温度读数从 2288 持续线性增长至 2554，数值远超物理极限（无论是°C还是K）。",
    "所有房间的温度传感器在同一时间窗口内表现出完全同步的异常增长模式，违背了物理隔离原理。",
    "在显示“超高温”期间，未检测到烟雾报警或其他火灾相关设备的联动响应。"
  ],
  "recommended_actions": [
    "立即检查客厅、厨房及卧室的所有温度传感器硬件连接和固件版本。",
    "重置受影响传感器的配置，重新进行多点校准。",
    "暂时禁用基于此错误数据进行的高温自动调节策略，防止空调/暖气系统因读取错误数据而做出危险操作。",
    "联系设备制造商获取固件更新或技术支持，排查是否存在已知的数据处理 Bug。"
  ]
}
```


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 一室一厅 (Studio/1BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅台灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 bedroom: 卧室灯[dimmable_light], 卧室运动传感器[occupancy_sensor], 卧室窗帘[window_covering], 卧室窗户传感器[contact_sensor], 卧室温度传感器[temperature_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ1
- 重点房间: living_room
- 重点设备: bedroom_temp_sensor
- 已选事件数: 134

## 设备事件日志
[2026-08-24T00:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2170
[2026-08-24T08:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2434
[2026-08-24T08:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-08-24T08:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-08-24T08:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2428
[2026-08-24T08:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-24T08:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-24T08:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2440
[2026-08-24T08:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-24T08:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-08-24T09:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T09:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-24T09:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2449
[2026-08-24T09:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2553
[2026-08-24T09:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2440
[2026-08-24T09:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2448
[2026-08-24T09:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-24T09:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2443
[2026-08-24T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2553
[2026-08-24T10:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-08-24T10:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2456
[2026-08-24T10:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-08-24T10:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2459
[2026-08-24T10:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T10:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-24T10:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2447
[2026-08-24T10:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2536
[2026-08-24T11:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-08-24T11:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T11:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-08-24T11:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-24T11:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-24T11:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-08-24T11:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2442
[2026-08-24T11:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2440
[2026-08-24T11:31:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T11:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-08-24T11:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-24T11:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2536
[2026-08-24T11:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2427
[2026-08-24T12:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2422
[2026-08-24T12:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T12:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2519
[2026-08-24T12:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-08-24T12:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2514
[2026-08-24T12:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2530
[2026-08-24T12:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2416
[2026-08-24T12:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2420
[2026-08-24T12:31:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T12:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2524
[2026-08-24T12:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2506
[2026-08-24T12:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2507
[2026-08-24T12:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2413
[2026-08-24T13:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2415
[2026-08-24T13:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T13:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2501
[2026-08-24T13:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2499
[2026-08-24T13:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2489
[2026-08-24T13:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2495
[2026-08-24T13:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2386
[2026-08-24T13:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-24T13:31:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T13:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2496
[2026-08-24T13:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2474
[2026-08-24T13:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2484
[2026-08-24T13:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2379
[2026-08-24T14:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-08-24T14:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-08-24T14:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T14:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2466
[2026-08-24T14:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-24T14:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2463
[2026-08-24T14:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2470
[2026-08-24T14:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2460
[2026-08-24T14:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2457
[2026-08-24T14:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-08-24T14:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2349
[2026-08-24T14:31:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T14:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2464
[2026-08-24T14:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2455
[2026-08-24T14:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2452
[2026-08-24T14:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2340
[2026-08-24T15:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-24T15:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T15:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-08-24T15:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2429
[2026-08-24T15:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2421
[2026-08-24T15:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2434
[2026-08-24T15:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2318
[2026-08-24T15:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2314
[2026-08-24T15:31:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T15:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2424
[2026-08-24T15:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2414
[2026-08-24T15:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2403
[2026-08-24T15:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-08-24T15:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2313
[2026-08-24T16:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2303
[2026-08-24T16:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T16:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2397
[2026-08-24T16:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2384
[2026-08-24T16:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2387
[2026-08-24T16:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2385
[2026-08-24T16:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2290
[2026-08-24T16:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2289
[2026-08-24T16:31:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T16:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2380
[2026-08-24T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2372
[2026-08-24T16:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2374
[2026-08-24T16:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2369
[2026-08-24T16:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2255
[2026-08-24T17:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2259
[2026-08-24T17:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T17:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-08-24T17:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2354
[2026-08-24T17:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2348
[2026-08-24T17:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2255
[2026-08-24T17:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-24T17:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2347
[2026-08-24T17:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2227
[2026-08-24T17:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2335
[2026-08-24T18:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2223
[2026-08-24T18:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2216
[2026-08-24T18:09:37] living_room_ac | OnOff.OnOff = True
[2026-08-24T18:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2211
[2026-08-24T18:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2209
[2026-08-24T18:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2210
[2026-08-24T18:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2206
[2026-08-24T18:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2205
[2026-08-24T18:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2212
[2026-08-24T18:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2196
[2026-08-24T18:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2191
[2026-08-24T19:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2203
[2026-08-24T19:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2197
[2026-08-24T19:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2195

## 任务
根据以下传感器与设备记录，评估目标设备当前工作状态是否正常。如异常，请给出故障判断依据。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "当前日志更符合正常模式，不建议报警。",
  "reasoning": [
    "推理步骤1: 正常样本是小幅波动；异常样本出现不可能的极端跳变。"
  ],
  "key_evidence": [
    "正常样本是小幅波动；异常样本出现不可能的极端跳变。"
  ],
  "recommended_actions": [
    "继续监测，无需立即处置。"
  ]
}

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "intrusion",
  "threat_description": "这些变化表明存在安全异常。",
  "reasoning": [
    "推理步骤1: 我把本可由正常模式解释的事件误判成了异常。"
  ],
  "key_evidence": [
    "正常样本是小幅波动；异常样本出现不可能的极端跳变。"
  ],
  "recommended_actions": [
    "建议立即检查并触发安全响应。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 两室一厅 (2BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅落地灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor], 次卧温度传感器[temperature_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ1
- 重点房间: living_room
- 重点设备: living_room_temp_sensor
- 已选事件数: 125

## 设备事件日志
[2026-08-03T00:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2273
[2026-08-03T08:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T08:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-03T08:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2539
[2026-08-03T08:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-08-03T08:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-03T09:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-03T09:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T09:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2559
[2026-08-03T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-08-03T10:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-03T10:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-03T10:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-08-03T10:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2553
[2026-08-03T11:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-03T11:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T11:03:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T11:05:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-03T11:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-08-03T11:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-03T11:15:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-08-03T11:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2530
[2026-08-03T11:23:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T11:25:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-03T11:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-03T11:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-08-03T11:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T11:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2531
[2026-08-03T11:40:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2525
[2026-08-03T11:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-03T11:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2534
[2026-08-03T11:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-03T11:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-03T11:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-03T11:58:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T12:00:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-08-03T12:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T12:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2523
[2026-08-03T12:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2528
[2026-08-03T12:15:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-03T12:18:22] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T12:20:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-08-03T12:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2521
[2026-08-03T12:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-08-03T12:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-03T12:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T12:33:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T12:35:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2510
[2026-08-03T12:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2514
[2026-08-03T12:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2514
[2026-08-03T12:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2513
[2026-08-03T12:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2503
[2026-08-03T12:53:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T12:55:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2498
[2026-08-03T13:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2511
[2026-08-03T13:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T13:05:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2500
[2026-08-03T13:10:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-08-03T13:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2501
[2026-08-03T13:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2489
[2026-08-03T13:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2499
[2026-08-03T13:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2496
[2026-08-03T13:25:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2495
[2026-08-03T13:28:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T13:30:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2483
[2026-08-03T13:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T13:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2497
[2026-08-03T13:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2494
[2026-08-03T13:40:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2489
[2026-08-03T13:45:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2485
[2026-08-03T13:48:22] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T13:50:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2471
[2026-08-03T13:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2483
[2026-08-03T13:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2487
[2026-08-03T14:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2473
[2026-08-03T14:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T14:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-08-03T14:03:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T14:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-03T14:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2474
[2026-08-03T14:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2468
[2026-08-03T14:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2470
[2026-08-03T14:15:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2458
[2026-08-03T14:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2465
[2026-08-03T14:23:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T14:25:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2462
[2026-08-03T14:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2462
[2026-08-03T14:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2459
[2026-08-03T14:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T14:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2453
[2026-08-03T14:40:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2449
[2026-08-03T14:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-08-03T14:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2442
[2026-08-03T14:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2443
[2026-08-03T14:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2455
[2026-08-03T14:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2442
[2026-08-03T14:58:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T15:00:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2446
[2026-08-03T15:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T15:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2444
[2026-08-03T15:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-08-03T15:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-08-03T15:15:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-08-03T15:18:22] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T15:20:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2427
[2026-08-03T15:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2429
[2026-08-03T15:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2421
[2026-08-03T15:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2420
[2026-08-03T15:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T15:33:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T15:35:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2414
[2026-08-03T15:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2412
[2026-08-03T15:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2403
[2026-08-03T15:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2418
[2026-08-03T15:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2403
[2026-08-03T15:53:15] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-03T15:55:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2410
[2026-08-03T16:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2403
[2026-08-03T16:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2399
[2026-08-03T16:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-03T16:05:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2395
[2026-08-03T16:10:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2392
[2026-08-03T16:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2398
[2026-08-03T16:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2388
[2026-08-03T16:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2391

## 任务
请结合下面的 Matter 设备日志，判断是否存在设备健康问题，并说明可能的故障类型。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "当前日志更符合正常模式，不建议报警。",
  "reasoning": [
    "推理步骤1: 正常样本是小幅波动；异常样本出现不可能的极端跳变。"
  ],
  "key_evidence": [
    "正常样本是小幅波动；异常样本出现不可能的极端跳变。"
  ],
  "recommended_actions": [
    "继续监测，无需立即处置。"
  ]
}

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "sensor_malfunction",
  "threat_description": "客厅温度传感器报告的数据存在严重的逻辑矛盾和数值跳变，表明设备可能已损坏或固件故障。",
  "reasoning": [
    "推理步骤 1: 数据单位分析。Matter 协议中 TemperatureMeasurement.MeasuredValue 通常以 0.01°C 为单位。日志显示数值从 2273 (22.73°C) 开始，随后在 8:15 突增至 2526 (25.26°C)，并在后续时间维持在 24-25°C 区间，这符合夏季上午室内温度随日照升高的正常物理规律。",
    "推理步骤 2: 异常点识别。在 14:00:00，当入户门有人进入（entrance_occupancy=1）且其他房间温度呈缓慢下降趋势时，客厅温度传感器突然报告 MeasuredValue = 2430 (24.30°C)。虽然数值本身未超量程，但紧接着在 14:05:00，该传感器再次报告 MeasuredValue = 2550 (25.50°C)，出现了约 1.2°C 的瞬时剧烈回升。",
    "推理步骤 3: 交叉验证与结论。与此同时，厨房、主卧、次卧的温度传感器读数均在 24.0°C - 24.7°C 之间平稳变化，没有出现类似的剧烈波动。这种单一传感器与其他环境一致的设备出现无法解释的瞬时大幅跳变，排除了环境温度骤变的自然原因，确认为传感器硬件故障或通信干扰导致的读数错误（Sensor Malfunction）。",
    "推理步骤 4: 早期数据复核。回顾日志开头，00:00 的 2273 (22.73°C) 到 08:15 的 2526 (25.26°C) 跨度较大，但在无空调开启记录且光照增强的情况下，若传感器正常应更平缓。然而，最致命的证据是 14:00 后的非连续性跳变，这是典型的传感器失效特征。"
  ],
  "key_evidence": [
    "2026-08-03T14:00:00 至 14:05:00 期间，living_room_temp_sensor 读数从 2430 (24.30°C) 瞬间跳变至 2550 (25.50°C)，而其他所有房间温度传感器在同一时间段内保持稳定或缓慢下降趋势。",
    "多房间温度数据对比显示，厨房、主卧、次卧温度均呈现合理的线性变化，唯独客厅传感器表现出离散且不连续的异常波动。"
  ],
  "recommended_actions": [
    "立即检查客厅温度传感器的物理连接状态及供电情况，排除接触不良。",
    "尝试通过 Matter 控制器重置该传感器，或将其替换为备用设备进行校准测试。",
    "在修复前，建议用户手动监测客厅实际温度，避免依赖该传感器进行自动化温控决策。"
  ]
}
```


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 独居老人 (Elderly Living Alone)
- 重点房间 living_room: 客厅灯[dimmable_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor], 客厅烟雾报警器[smoke_co_alarm]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 bedroom: 卧室灯[dimmable_light], 床头灯[onoff_light], 卧室运动传感器[occupancy_sensor], 卧室窗帘[window_covering], 卧室窗户传感器[contact_sensor], 卧室温度传感器[temperature_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房运动传感器[occupancy_sensor], 厨房漏水传感器[water_leak_detector]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ1
- 重点房间: living_room
- 重点设备: bedroom_temp_sensor, living_room_temp_sensor
- 已选事件数: 130

## 设备事件日志
[2026-07-06T00:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2264
[2026-07-06T09:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-07-06T09:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-07-06T09:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-07-06T09:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-07-06T09:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-07-06T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2559
[2026-07-06T10:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-07-06T10:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2558
[2026-07-06T10:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-07-06T10:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-07-06T10:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-07-06T11:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-07-06T11:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-07-06T11:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-07-06T11:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-07-06T11:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-07-06T11:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2524
[2026-07-06T12:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-07-06T12:03:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T12:05:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T12:10:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T12:15:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T12:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2517
[2026-07-06T12:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2427
[2026-07-06T12:27:06] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T12:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2512
[2026-07-06T12:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2406
[2026-07-06T12:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2505
[2026-07-06T12:47:06] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T12:50:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T12:55:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2516
[2026-07-06T13:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2397
[2026-07-06T13:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2494
[2026-07-06T13:12:06] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:15:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:20:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:25:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2488
[2026-07-06T13:37:06] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:40:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:45:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:50:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T13:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2469
[2026-07-06T14:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2467
[2026-07-06T14:02:06] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T14:05:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T14:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2371
[2026-07-06T14:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2464
[2026-07-06T14:25:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T14:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-07-06T14:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2352
[2026-07-06T14:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2442
[2026-07-06T14:41:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T14:46:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T14:50:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T14:55:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2342
[2026-07-06T15:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2410
[2026-07-06T15:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2420
[2026-07-06T15:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2435
[2026-07-06T15:06:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:11:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:15:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:20:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2413
[2026-07-06T15:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2416
[2026-07-06T15:31:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:36:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:40:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:45:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T15:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2412
[2026-07-06T15:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2307
[2026-07-06T15:59:27] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-06T16:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T16:05:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T16:10:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T16:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-07-06T16:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2295
[2026-07-06T16:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-07-06T16:26:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T16:30:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T16:35:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-07-06T16:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2273
[2026-07-06T16:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2369
[2026-07-06T16:51:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T16:55:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T17:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-07-06T17:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2520
[2026-07-06T17:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2580
[2026-07-06T17:06:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T17:15:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T17:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2341
[2026-07-06T17:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2342
[2026-07-06T17:26:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T17:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2232
[2026-07-06T17:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2340
[2026-07-06T17:46:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T17:51:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T17:55:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2335
[2026-07-06T18:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2229
[2026-07-06T18:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2315
[2026-07-06T18:11:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:16:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:20:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:25:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2202
[2026-07-06T18:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2313
[2026-07-06T18:36:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:41:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:45:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:50:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T18:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2292
[2026-07-06T19:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2294
[2026-07-06T19:01:13] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T19:06:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T19:10:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T19:15:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T19:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2189
[2026-07-06T19:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2280
[2026-07-06T19:26:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T19:35:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T19:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2271
[2026-07-06T19:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2168
[2026-07-06T19:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2282
[2026-07-06T19:51:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-07-06T19:55:03] entrance_occupancy | OccupancySensing.Occupancy = 1

## 任务
请结合下面的 Matter 设备日志，判断是否存在设备健康问题，并说明可能的故障类型。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "当前日志更符合正常模式，不建议报警。",
  "reasoning": [
    "推理步骤1: 正常样本两房间仍保持接近；异常样本差值突然扩大且只有一侧偏移。"
  ],
  "key_evidence": [
    "正常样本两房间仍保持接近；异常样本差值突然扩大且只有一侧偏移。"
  ],
  "recommended_actions": [
    "继续监测，无需立即处置。"
  ]
}

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "sensor_malfunction",
  "threat_description": "客厅温度传感器在 17:00 出现严重数据跳变，从 23.6°C 瞬间变为 25.2°C，随后卧室传感器也出现类似异常波动，表明传感器可能发生故障或受到干扰。",
  "reasoning": [
    "推理步骤 1: 分析日志发现，在 17:00:00 这一时间点，living_room_temp_sensor 的读数从之前的 2360 (23.6°C) 突然跳变为 2520 (25.2°C)，同时 bedroom_temp_sensor 也从 2202 (22.0°C) 跳变为 2580 (25.8°C)。这种在同一秒内多个独立房间传感器同时发生剧烈且方向一致的数值突变，极不符合自然热力学规律（室温不会瞬间均匀升高近 2-3 度）。",
    "推理步骤 2: 回顾该时间点的上下文，虽然 occupancy_sensor 显示有人活动，但没有任何空调、暖气或大功率电器开启的记录（如 cook_surface 或 air_conditioner 状态未变），排除了因设备启动导致室温瞬间大幅上升的可能性。",
    "推理步骤 3: 考虑到住户为独居老人，若传感器持续提供错误的高温读数，可能导致智能温控系统误判并关闭供暖/开启制冷，造成老人着凉风险；或者若系统基于此数据触发高温警报，会造成不必要的恐慌。因此判定为传感器硬件故障或通信协议层面的数据包损坏（Sensor Malfunction）。"
  ],
  "key_evidence": [
    "[2026-07-06T17:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360 -> 2520 (瞬间跳变)",
    "[2026-07-06T17:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2202 -> 2580 (同步异常)"
  ],
  "recommended_actions": [
    "立即检查客厅和卧室的温度传感器物理状态，确认是否被遮挡、进水或电池接触不良。",
    "尝试重启 Matter 网关或重新配对这两个温度传感器以排除临时通信错误。",
    "在维修前，建议人工使用独立温度计监测室内实际温度，以防自动化温控系统做出错误决策。"
  ]
}
```


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 独居老人 (Elderly Living Alone)
- 重点房间 living_room: 客厅灯[dimmable_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor], 客厅烟雾报警器[smoke_co_alarm]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 bedroom: 卧室灯[dimmable_light], 床头灯[onoff_light], 卧室运动传感器[occupancy_sensor], 卧室窗帘[window_covering], 卧室窗户传感器[contact_sensor], 卧室温度传感器[temperature_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房运动传感器[occupancy_sensor], 厨房漏水传感器[water_leak_detector]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ1
- 重点房间: living_room
- 重点设备: bedroom_light
- 已选事件数: 111

## 设备事件日志
[2026-08-10T05:37:02] bedroom_light | OnOff.OnOff = True
[2026-08-10T14:19:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T14:39:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T14:59:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T15:19:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T15:39:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T15:59:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T16:19:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T16:39:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T16:59:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T17:11:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T17:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2346
[2026-08-10T17:19:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T17:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2255
[2026-08-10T17:24:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T17:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2351
[2026-08-10T17:29:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T17:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2341
[2026-08-10T17:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2242
[2026-08-10T17:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2346
[2026-08-10T17:46:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T17:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2336
[2026-08-10T17:54:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T17:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2232
[2026-08-10T17:59:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323
[2026-08-10T18:04:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2332
[2026-08-10T18:11:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2315
[2026-08-10T18:19:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2218
[2026-08-10T18:24:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2302
[2026-08-10T18:29:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:31:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:34:20] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T18:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2298
[2026-08-10T18:44:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2203
[2026-08-10T18:49:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2308
[2026-08-10T18:54:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T18:56:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2290
[2026-08-10T19:04:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2299
[2026-08-10T19:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2194
[2026-08-10T19:14:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2288
[2026-08-10T19:19:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:21:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2282
[2026-08-10T19:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2270
[2026-08-10T19:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2176
[2026-08-10T19:44:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2273
[2026-08-10T19:49:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:51:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T19:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2269
[2026-08-10T19:59:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2169
[2026-08-10T20:04:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2174
[2026-08-10T20:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2277
[2026-08-10T20:10:00] bedroom_light | OnOff.OnOff = True
[2026-08-10T20:10:00] bedroom_light | LevelControl.CurrentLevel = 180
[2026-08-10T20:14:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:16:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:18:00] bedroom_light | LevelControl.CurrentLevel = 30
[2026-08-10T20:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2271
[2026-08-10T20:24:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2160
[2026-08-10T20:27:03] bathroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:34:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:36:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:39:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:39:17] front_door_lock | Event: LockOperation(LockOperationType=0, OperationSource=Manual)
[2026-08-10T20:39:31] bedroom_light | OnOff.OnOff = False
[2026-08-10T20:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2254
[2026-08-10T20:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2252
[2026-08-10T20:54:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T20:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2164
[2026-08-10T20:59:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2252
[2026-08-10T21:04:10] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:06:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:09:55] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T21:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2248
[2026-08-10T21:19:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2160
[2026-08-10T21:24:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2254
[2026-08-10T21:29:10] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:31:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2258
[2026-08-10T21:39:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2242
[2026-08-10T21:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2147
[2026-08-10T21:49:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2257
[2026-08-10T21:54:10] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T21:56:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T22:04:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T22:09:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T22:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2154
[2026-08-10T22:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2259
[2026-08-10T22:19:10] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T22:21:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T22:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2257
[2026-08-10T22:29:00] living_room_occupancy | OccupancySensing.Occupancy = 1

## 任务
根据以下传感器与设备记录，评估目标设备当前工作状态是否正常。如异常，请给出故障判断依据。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

```json
{
  "is_anomaly": false,
  "confidence": "high",
  "threat_type": "none",
  "threat_description": "设备工作状态正常，日志显示为独居老人的日常晚间活动及正常的传感器数据上报，未发现安全威胁或设备故障。",
  "reasoning": [
    "1. 目标设备 bedroom_light 状态分析：日志显示该灯在 05:37 开启（可能是晨起或误触），随后在 20:10 再次开启并调节亮度至 180（较亮），约 9 分钟后在 20:19 调暗至 30（准备休息模式），最终在 20:39 关闭。这一系列操作符合老人晚间洗漱后回卧室、开灯活动、调暗灯光准备睡觉的正常行为逻辑。",
    "2. 门锁与人员活动关联分析：20:39 入户门执行了手动解锁操作 (LockOperationType=0)，紧接着卧室灯关闭。考虑到是独居老人，这极有可能是老人在睡前检查门窗是否锁好，或者刚回家不久进行例行检查。结合前后多个房间的运动传感器持续有信号（Occupancy=1），表明屋内有人活动，非入侵行为。",
    "3. 传感器数据合理性分析：温度传感器读数（如 2346, 2255 等）虽然数值较大，但呈现随时间缓慢下降的趋势（从傍晚的 ~23.5°C 降至深夜的 ~21.5°C），符合夜间环境温度自然变化的规律，无突变或停滞，排除传感器卡死或漂移故障。运动传感器在各房间频繁触发，证明老人整晚在客厅、厨房、卧室、玄关之间走动，生命体征正常，无长时间静止导致的跌倒风险。"
  ],
  "key_evidence": [
    "bedroom_light 在 20:10-20:39 期间经历了 开 -> 调亮(180) -> 调暗(30) -> 关 的完整且合理的睡前照明控制序列。",
    "20:39 的 door_lock 手动解锁事件与卧室灯关闭时间接近，且伴随全屋多处 occupancy_sensor 活跃，符合居家生活场景。",
    "所有 temperature_sensor 读数随时间平稳下降，无异常跳变，表明硬件工作正常。"
  ],
  "recommended_actions": [
    "无需采取紧急措施。",
    "建议确认入户门在 20:39 解锁后是否已重新上锁，若此操作为睡前检查习惯则无需干预；若为遗忘上锁，可设置自动化提醒。"
  ]
}
```

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "intrusion",
  "threat_description": "这些变化表明存在安全异常。",
  "reasoning": [
    "推理步骤1: 我把本可由正常模式解释的事件误判成了异常。"
  ],
  "key_evidence": [
    "正常样本 OnOff 和亮度值一致变化；异常样本存在持续矛盾状态。"
  ],
  "recommended_actions": [
    "建议立即检查并触发安全响应。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 两室一厅 (2BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅落地灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor], 次卧温度传感器[temperature_sensor]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ1
- 重点房间: living_room
- 重点设备: living_room_light_1
- 已选事件数: 124

## 设备事件日志
[2026-08-20T14:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2470
[2026-08-20T14:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-08-20T14:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-08-20T15:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T15:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2435
[2026-08-20T15:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2415
[2026-08-20T15:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2397
[2026-08-20T16:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-08-20T16:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2378
[2026-08-20T16:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2380
[2026-08-20T17:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T17:10:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2354
[2026-08-20T17:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-08-20T17:15:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T17:20:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2355
[2026-08-20T17:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2338
[2026-08-20T17:30:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2344
[2026-08-20T17:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T17:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2349
[2026-08-20T17:38:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T17:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2343
[2026-08-20T17:45:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2343
[2026-08-20T17:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323
[2026-08-20T17:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2338
[2026-08-20T17:58:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-20T18:00:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T18:05:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2325
[2026-08-20T18:08:00] front_door_lock | DoorLock.LockState = 2
[2026-08-20T18:08:14] living_room_light_1 | OnOff.OnOff = True
[2026-08-20T18:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2316
[2026-08-20T18:18:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T18:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2305
[2026-08-20T18:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2308
[2026-08-20T18:25:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T18:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2307
[2026-08-20T18:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T18:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2301
[2026-08-20T18:43:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T18:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None
[2026-08-20T18:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2304
[2026-08-20T18:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2299
[2026-08-20T18:50:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T18:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2306
[2026-08-20T19:00:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2291
[2026-08-20T19:00:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T19:05:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2292
[2026-08-20T19:08:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T19:10:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2294
[2026-08-20T19:13:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T19:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2295
[2026-08-20T19:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2283
[2026-08-20T19:20:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T19:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2282
[2026-08-20T19:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2277
[2026-08-20T19:33:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T19:35:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2290
[2026-08-20T19:38:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T19:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2281
[2026-08-20T19:45:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T19:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2282
[2026-08-20T19:53:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T19:55:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2267
[2026-08-20T19:57:05] kitchen_dishwasher | OperationalState.OperationalState = 1
[2026-08-20T20:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2262
[2026-08-20T20:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T20:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2261
[2026-08-20T20:05:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T20:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2275
[2026-08-20T20:10:00] living_room_light_1 | OnOff.OnOff = True
[2026-08-20T20:10:00] living_room_light_1 | LevelControl.CurrentLevel = 180
[2026-08-20T20:13:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T20:15:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2257
[2026-08-20T20:18:00] living_room_light_1 | LevelControl.CurrentLevel = 30
[2026-08-20T20:18:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T20:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2268
[2026-08-20T20:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2272
[2026-08-20T20:25:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T20:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2254
[2026-08-20T20:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T20:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2267
[2026-08-20T20:40:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2261
[2026-08-20T20:43:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T20:45:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2249
[2026-08-20T20:48:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T20:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2264
[2026-08-20T20:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2254
[2026-08-20T20:55:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T21:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2249
[2026-08-20T21:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T21:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2261
[2026-08-20T21:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2254
[2026-08-20T21:13:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T21:15:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2248
[2026-08-20T21:18:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T21:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2261
[2026-08-20T21:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2247
[2026-08-20T21:25:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T21:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2256
[2026-08-20T21:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T21:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2250
[2026-08-20T21:40:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2249
[2026-08-20T21:43:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T21:45:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2256
[2026-08-20T21:48:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T21:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2260
[2026-08-20T21:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2258
[2026-08-20T21:55:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T22:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2257
[2026-08-20T22:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T22:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2253
[2026-08-20T22:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2241
[2026-08-20T22:11:00] living_room_light_1 | OnOff.OnOff = False
[2026-08-20T22:11:21] front_door_contact | BooleanState.StateValue = True
[2026-08-20T22:13:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T22:15:00] second_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2246
[2026-08-20T22:18:04] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T22:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2258
[2026-08-20T22:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2249
[2026-08-20T22:26:13] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-20T22:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2259
[2026-08-20T22:30:00] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-20T22:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2244
[2026-08-20T22:43:03] entrance_occupancy | OccupancySensing.Occupancy = 1

## 任务
请结合下面的 Matter 设备日志，判断是否存在设备健康问题，并说明可能的故障类型。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "当前日志更符合正常模式，不建议报警。",
  "reasoning": [
    "推理步骤1: 正常样本 OnOff 和亮度值一致变化；异常样本存在持续矛盾状态。"
  ],
  "key_evidence": [
    "正常样本 OnOff 和亮度值一致变化；异常样本存在持续矛盾状态。"
  ],
  "recommended_actions": [
    "继续监测，无需立即处置。"
  ]
}

{
  "is_anomaly": true,
  "confidence": "medium",
  "threat_type": "intrusion",
  "threat_description": "这些变化表明存在安全异常。",
  "reasoning": [
    "推理步骤1: 我把本可由正常模式解释的事件误判成了异常。"
  ],
  "key_evidence": [
    "正常样本 OnOff 和亮度值一致变化；异常样本存在持续矛盾状态。"
  ],
  "recommended_actions": [
    "建议立即检查并触发安全响应。"
  ]
}


你是一个智能家居安全分析 AI 助手。你的职责是分析智能家居设备的状态日志，判断是否存在安全威胁或异常情况。

你需要基于以下能力进行分析：
1. 从设备状态变化中识别异常模式
2. 结合时间、住户习惯、设备类型进行推理
3. 区分真实威胁和正常行为（减少误报）
4. 对发现的问题给出具体的风险评估和建议

所有设备基于 Matter 协议标准，设备状态通过 Cluster.Attribute 的形式报告。

## 家庭环境信息
家庭布局: 一室一厅 (Studio/1BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅台灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘[window_covering], 客厅窗户传感器[contact_sensor]
- 房间 bathroom: 卫生间灯[onoff_light], 卫生间运动传感器[occupancy_sensor], 卫生间漏水传感器[water_leak_detector]
- 房间 bedroom: 卧室灯[dimmable_light], 卧室运动传感器[occupancy_sensor], 卧室窗帘[window_covering], 卧室窗户传感器[contact_sensor], 卧室温度传感器[temperature_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher]

## 已选日志说明
以下日志不是整天原始全量心跳，而是围绕关键设备、关键时间窗和跨天模式筛出的训练片段。
- 任务类型: SQ1
- 重点房间: living_room
- 重点设备: bedroom_temp_sensor
- 已选事件数: 135

## 设备事件日志
[2026-08-27T00:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2169
[2026-08-27T08:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2434
[2026-08-27T08:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2428
[2026-08-27T08:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-08-27T08:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2431
[2026-08-27T08:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2536
[2026-08-27T08:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-27T08:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2449
[2026-08-27T08:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2552
[2026-08-27T08:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2450
[2026-08-27T09:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T09:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-08-27T09:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2556
[2026-08-27T09:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2456
[2026-08-27T09:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2443
[2026-08-27T09:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-27T09:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2448
[2026-08-27T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2558
[2026-08-27T10:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2553
[2026-08-27T10:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-08-27T10:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2554
[2026-08-27T10:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2456
[2026-08-27T10:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T10:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2552
[2026-08-27T10:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2455
[2026-08-27T10:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-08-27T11:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-08-27T11:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-08-27T11:08:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T11:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-27T11:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-27T11:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-08-27T11:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2444
[2026-08-27T11:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-08-27T11:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-08-27T11:38:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T11:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-27T11:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-27T11:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2530
[2026-08-27T11:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-08-27T12:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-08-27T12:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2524
[2026-08-27T12:08:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T12:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2534
[2026-08-27T12:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2529
[2026-08-27T12:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-08-27T12:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2412
[2026-08-27T12:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2416
[2026-08-27T12:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2515
[2026-08-27T12:38:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T12:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2524
[2026-08-27T12:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-08-27T12:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2515
[2026-08-27T12:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2404
[2026-08-27T13:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2411
[2026-08-27T13:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2500
[2026-08-27T13:08:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T13:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2494
[2026-08-27T13:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2488
[2026-08-27T13:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2486
[2026-08-27T13:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2385
[2026-08-27T13:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2393
[2026-08-27T13:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2490
[2026-08-27T13:38:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T13:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2481
[2026-08-27T13:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2478
[2026-08-27T13:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2477
[2026-08-27T13:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2383
[2026-08-27T14:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2370
[2026-08-27T14:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-08-27T14:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2476
[2026-08-27T14:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-27T14:08:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T14:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2468
[2026-08-27T14:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2470
[2026-08-27T14:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2469
[2026-08-27T14:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2473
[2026-08-27T14:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2353
[2026-08-27T14:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2356
[2026-08-27T14:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2447
[2026-08-27T14:38:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T14:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2444
[2026-08-27T14:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2452
[2026-08-27T14:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-08-27T14:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2331
[2026-08-27T15:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2445
[2026-08-27T15:08:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T15:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-08-27T15:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-08-27T15:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2317
[2026-08-27T15:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2311
[2026-08-27T15:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2407
[2026-08-27T15:38:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T15:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2409
[2026-08-27T15:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2412
[2026-08-27T15:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2309
[2026-08-27T16:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2308
[2026-08-27T16:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2407
[2026-08-27T16:08:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T16:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2387
[2026-08-27T16:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2388
[2026-08-27T16:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2276
[2026-08-27T16:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2289
[2026-08-27T16:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2371
[2026-08-27T16:38:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2381
[2026-08-27T16:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2362
[2026-08-27T16:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2373
[2026-08-27T16:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2255
[2026-08-27T17:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2271
[2026-08-27T17:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2351
[2026-08-27T17:08:34] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T17:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2347
[2026-08-27T17:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2353
[2026-08-27T17:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2245
[2026-08-27T17:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-27T17:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2343
[2026-08-27T17:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2236
[2026-08-27T17:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2337
[2026-08-27T18:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2226
[2026-08-27T18:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2230
[2026-08-27T18:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2310
[2026-08-27T18:19:25] living_room_light_1 | OnOff.OnOff = True
[2026-08-27T18:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2322
[2026-08-27T18:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2314
[2026-08-27T18:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2312
[2026-08-27T18:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2306
[2026-08-27T18:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2296
[2026-08-27T18:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2297
[2026-08-27T18:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2289
[2026-08-27T18:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2303
[2026-08-27T19:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2302
[2026-08-27T19:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2299
[2026-08-27T19:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2280
[2026-08-27T19:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2279

## 任务
请结合下面的 Matter 设备日志，判断是否存在设备健康问题，并说明可能的故障类型。

请按以下 JSON 格式回答：

```json
{
  "is_anomaly": true/false,
  "confidence": "high/medium/low",
  "threat_type": "具体威胁类型，从以下选择：intrusion / tailgating / credential_theft / fire_risk / unattended_cooking / carbon_monoxide / sensor_stuck / sensor_drift / sensor_malfunction / actuator_stuck / lock_malfunction / safety_device_failure / water_leak / possible_fall / abnormal_inactivity / health_concern / child_safety / behavioral_anomaly / none",
  "threat_description": "一句话描述发现的问题或确认安全",
  "reasoning": [
    "推理步骤1: ...",
    "推理步骤2: ...",
    "推理步骤3: ..."
  ],
  "key_evidence": [
    "关键证据1",
    "关键证据2"
  ],
  "recommended_actions": [
    "建议措施1",
    "建议措施2"
  ]
}
```

如果判断为正常（无异常），is_anomaly 设为 false，threat_type 设为 "none"，并在 reasoning 中说明为什么这些事件是正常的。

{
  "is_anomaly": false,
  "confidence": "medium",
  "threat_type": "none",
  "threat_description": "当前日志更符合正常模式，不建议报警。",
  "reasoning": [
    "推理步骤1: 正常样本是小幅波动；异常样本出现不可能的极端跳变。"
  ],
  "key_evidence": [
    "正常样本是小幅波动；异常样本出现不可能的极端跳变。"
  ],
  "recommended_actions": [
    "继续监测，无需立即处置。"
  ]
}

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "sensor_malfunction",
  "threat_description": "卧室温度传感器 (bedroom_temp_sensor) 在 14:00 出现严重数据跳变，且后续读数持续异常偏低，疑似传感器故障或校准失效。",
  "reasoning": [
    "推理步骤 1: 分析卧室温度传感器日志，发现从 13:55 的 2383 (毫开尔文，约 23.8°C) 到 14:00 的 2370 (约 23.6°C)，紧接着在同一分钟 (14:00:00) 出现了两个截然不同的读数：2370 和 2430 (约 24.3°C)。这种在同一时间点瞬间发生的大幅度数值翻转（约 60 个单位）不符合物理热力学规律，属于典型的传感器数据跳变。",
    "推理步骤 2: 观察 14:00 之后的数据趋势，温度读数从正常的 24°C 左右急剧下降至 15:25 的 2317 (约 23.1°C) 并持续走低，直至 17:25 降至 2245 (约 22.4°C)。考虑到室外气温通常不会在短时间内骤降导致室内无源传感器读数如此剧烈且持续地偏离正常范围，这表明传感器可能已损坏、接触不良或被遮挡，导致测量值失真。",
    "推理步骤 3: 对比同一时间段内的客厅温度传感器 (living_room_temp_sensor) 数据，其读数稳定在 2400-2500 之间 (约 24-25°C)，变化平缓且符合昼夜温差规律。这进一步证实了卧室温度传感器的异常是设备自身问题，而非环境突变或系统-wide 的时间/基准错误。"
  ],
  "key_evidence": [
    "2026-08-27T14:00:00 时刻 bedroom_temp_sensor 报告了两个冲突值：2370 和 2430，显示数据不稳定。",
    "14:00 之后 bedroom_temp_sensor 读数呈现非自然的持续快速下降趋势，与稳定的客厅温度形成鲜明对比。"
  ],
  "recommended_actions": [
    "立即检查卧室温度传感器的物理状态，确认是否被遮挡、电池电量不足或安装位置不当。",
    "尝试重启该 Matter 设备以排除临时性通信或固件卡顿导致的误报。",
    "若重启无效，建议联系技术支持更换新的温度传感器，以免因数据错误影响空调等依赖温控的设备运行。"
  ]
}
```