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

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

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

## 家庭环境信息
家庭布局: 三室两厅 (3BR)
- 重点房间 living_room: 客厅主灯[dimmable_light], 客厅副灯[dimmable_light], 客厅氛围灯[onoff_light], 客厅空调[air_conditioner], 客厅温度传感器[temperature_sensor], 客厅运动传感器[occupancy_sensor], 客厅窗帘1[window_covering], 客厅窗户传感器1[contact_sensor], ... 共10个设备
- 房间 balcony: 阳台灯[onoff_light], 阳台门传感器[contact_sensor], 洗衣机[laundry_washer]
- 房间 dining_room: 餐厅灯[dimmable_light], 餐厅运动传感器[occupancy_sensor]
- 房间 entrance: 入户门锁[door_lock], 入户门传感器[contact_sensor], 玄关灯[onoff_light], 玄关运动传感器[occupancy_sensor]
- 房间 kids_room: 儿童房灯[dimmable_light], 儿童房运动传感器[occupancy_sensor], 儿童房窗帘[window_covering], 儿童房窗户传感器[contact_sensor], 儿童房温度传感器[temperature_sensor]
- 房间 kitchen: 厨房灯[onoff_light], 厨房灶具[cook_surface], 厨房烟雾报警器[smoke_co_alarm], 厨房温度传感器[temperature_sensor], 厨房窗户传感器[contact_sensor], 洗碗机[dishwasher], 厨房漏水传感器[water_leak_detector]
- 房间 master_bathroom: 主卫灯[onoff_light], 主卫运动传感器[occupancy_sensor], 主卫漏水传感器[water_leak_detector]
- 房间 master_bedroom: 主卧灯[dimmable_light], 主卧床头灯[onoff_light], 主卧空调[air_conditioner], 主卧运动传感器[occupancy_sensor], 主卧窗帘[window_covering], 主卧窗户传感器[contact_sensor], 主卧温度传感器[temperature_sensor]
- 房间 second_bathroom: 次卫灯[onoff_light], 次卫漏水传感器[water_leak_detector]
- 房间 second_bedroom: 次卧灯[dimmable_light], 次卧空调[air_conditioner], 次卧运动传感器[occupancy_sensor], 次卧窗帘[window_covering], 次卧窗户传感器[contact_sensor]

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

## 设备事件日志
[2026-08-05T00:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T01:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T01:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2299
[2026-08-05T01:30:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T01:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323
[2026-08-05T02:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2318
[2026-08-05T02:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2347
[2026-08-05T02:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2349
[2026-08-05T03:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T03:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-08-05T03:30:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T03:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-05T04:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2393
[2026-08-05T04:00:00] dining_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T04:00:00] entrance_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T04:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-08-05T04:15:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2417
[2026-08-05T04:20:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2410
[2026-08-05T04:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2420
[2026-08-05T04:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T04:30:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T04:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-08-05T04:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2435
[2026-08-05T04:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2428
[2026-08-05T04:55:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2435
[2026-08-05T05:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-08-05T05:00:00] kids_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T05:05:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2432
[2026-08-05T05:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2447
[2026-08-05T05:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-08-05T05:25:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2450
[2026-08-05T05:30:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2453
[2026-08-05T05:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T05:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2465
[2026-08-05T05:40:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2455
[2026-08-05T05:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2468
[2026-08-05T05:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2464
[2026-08-05T06:00:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2484
[2026-08-05T06:00:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T06:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2471
[2026-08-05T06:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2480
[2026-08-05T06:15:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2473
[2026-08-05T06:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2488
[2026-08-05T06:23:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T06:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T06:33:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T06:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2503
[2026-08-05T06:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2503
[2026-08-05T06:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2496
[2026-08-05T06:53:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T06:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-08-05T06:55:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T06:58:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2500
[2026-08-05T07:04:30] kitchen_window_contact | BooleanState.StateValue = False
[2026-08-05T07:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2505
[2026-08-05T07:05:00] living_room_light_1 | OnOff.OnOff = True
[2026-08-05T07:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2509
[2026-08-05T07:10:00] master_bathroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:14:10] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:18:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:20:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2520
[2026-08-05T07:20:25] kids_room_light | OnOff.OnOff = False
[2026-08-05T07:20:36] front_door_contact | BooleanState.StateValue = True
[2026-08-05T07:25:01] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T07:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2527
[2026-08-05T07:30:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T07:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2515
[2026-08-05T07:38:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:40:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2527
[2026-08-05T07:44:10] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:45:32] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:50:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2523
[2026-08-05T07:53:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T07:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-08-05T08:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T08:04:10] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:05:32] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:10:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-05T08:13:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-08-05T08:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2528
[2026-08-05T08:23:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:25:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-05T08:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-05T08:33:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-08-05T08:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-08-05T08:43:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:45:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-08-05T08:49:10] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:50:32] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T08:55:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-05T09:00:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-08-05T09:03:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:05:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-05T09:09:10] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:10:32] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:15:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2556
[2026-08-05T09:18:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2554
[2026-08-05T09:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-05T09:30:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-05T09:30:32] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:35:00] master_bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-08-05T09:38:00] kids_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-05T09:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2555
[2026-08-05T09:48:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:50:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-08-05T09:54:10] dining_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T09:55:01] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-08-05T10:00:00] second_bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T10:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2557
[2026-08-05T10:08:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T10:10:00] kids_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-08-05T10:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-08-05T10:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-05T10:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-05T10:53:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T11:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T11:13:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T11:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-08-05T11:33:00] master_bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-05T11:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2530
[2026-08-05T11:55:01] master_bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-05T12:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2534
[2026-08-05T12:18:00] master_bedroom_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 中说明为什么这些事件是正常的。

{
  "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.99°C - 25.57°C），且数值随时间持续线性上升，不符合自然热力学规律。",
  "reasoning": [
    "推理步骤 1: 分析日志发现 living_room_temp_sensor 从凌晨 01:20 的 2299 (即 22.99°C) 开始，到上午 12:18 达到 2534 (即 25.34°C)，并在短时间内呈现近乎线性的持续增长趋势。",
    "推理步骤 2: 对比同一时间段内其他房间的温度传感器数据（如 master_bedroom_temp_sensor 在 06:00 为 24.84°C，随后波动在 24-25°C 之间），虽然也在升高，但幅度相对合理，符合清晨气温回升或空调未开启导致的缓慢升温。",
    "推理步骤 3: 客厅温度传感器的增长速率（约 0.01°C/分钟）远超正常环境温度变化速率，且最终读数接近 26°C 时仍未见明显波动或下降，这种‘只升不降’且斜率过大的特征极大概率是传感器校准漂移、固件 Bug 或信号干扰导致的读数错误，而非真实火灾或过热环境。",
    "推理步骤 4: 尽管入户门和厨房窗户有开合记录，人员活动频繁，但并未伴随烟雾报警器触发或空调自动启动降温等联动反应，进一步佐证了该温度读数的不可靠性。"
  ],
  "key_evidence": [
    "living_room_temp_sensor 在 01:20 至 12:18 期间，温度值从 2299 单调递增至 2534，增长速率异常。",
    "同期其他区域温度传感器读数变化平缓，与客厅传感器表现出显著不同的行为模式。",
    "系统未针对该异常高温触发任何安全设备（如烟雾报警或空调强冷）的响应。"
  ],
  "recommended_actions": [
    "立即检查客厅温度传感器的硬件连接及供电情况，排除接触不良。",
    "重置客厅温度传感器并重新校准，或将其暂时替换为备用传感器以确认故障点。",
    "审查 Matter 协议下的温度测量 Cluster 配置，检查是否存在单位换算错误或数据上报逻辑缺陷。",
    "在修复前，建议人工定期手动测量客厅实际温度，以防因传感器误报导致错误的自动化控制决策（如误关空调）。"
  ]
}
```


你是一个智能家居安全分析 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
- 已选事件数: 120

## 设备事件日志
[2026-08-22T00:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2172
[2026-08-22T08:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-08-22T08:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2424
[2026-08-22T08:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2539
[2026-08-22T08:30:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T08:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2431
[2026-08-22T08:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-22T08:55:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T09:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2448
[2026-08-22T09:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2556
[2026-08-22T09:20:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T09:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-08-22T09:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-22T09:45:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T09:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2457
[2026-08-22T10:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-22T10:10:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T10:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2452
[2026-08-22T10:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-22T10:35:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T10:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2451
[2026-08-22T11:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-08-22T11:01:43] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-22T11:05:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T11:06:30] kitchen_cook_surface | OnOff.OnOff = True
[2026-08-22T11:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-08-22T11:16:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T11:20:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T11:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-08-22T11:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-22T11:31:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-08-22T11:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2529
[2026-08-22T11:36:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T11:40:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T11:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2443
[2026-08-22T11:46:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T11:50:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T11:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-08-22T12:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2520
[2026-08-22T12:01:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T12:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2530
[2026-08-22T12:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-08-22T12:15:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T12:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2427
[2026-08-22T12:21:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T12:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2412
[2026-08-22T12:28:02] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T12:30:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T12:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2423
[2026-08-22T12:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-08-22T12:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2518
[2026-08-22T12:51:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T12:55:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T13:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2415
[2026-08-22T13:01:43] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-22T13:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-08-22T13:13:02] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T13:15:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T13:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2505
[2026-08-22T13:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2485
[2026-08-22T13:26:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T13:30:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T13:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2493
[2026-08-22T13:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2376
[2026-08-22T13:48:02] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T13:50:06] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T13:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2487
[2026-08-22T14:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2482
[2026-08-22T14:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-08-22T14:01:43] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-22T14:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-22T14:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2470
[2026-08-22T14:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2470
[2026-08-22T14:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2469
[2026-08-22T14:16:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T14:20:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T14:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-08-22T14:26:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T14:31:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T14:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2359
[2026-08-22T14:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2442
[2026-08-22T14:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-08-22T14:51:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T14:55:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T15:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2344
[2026-08-22T15:01:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T15:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323
[2026-08-22T15:16:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T15:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2432
[2026-08-22T15:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2423
[2026-08-22T15:26:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T15:30:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T15:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2421
[2026-08-22T15:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2319
[2026-08-22T15:46:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T15:51:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T15:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2402
[2026-08-22T16:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2406
[2026-08-22T16:01:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T16:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2399
[2026-08-22T16:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2400
[2026-08-22T16:15:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T16:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2282
[2026-08-22T16:21:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T16:26:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T16:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2371
[2026-08-22T16:31:43] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-22T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2372
[2026-08-22T16:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2376
[2026-08-22T16:46:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T16:50:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T16:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2360
[2026-08-22T17:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2357
[2026-08-22T17:01:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T17:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2350
[2026-08-22T17:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2347
[2026-08-22T17:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2252
[2026-08-22T17:31:10] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-22T17:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2233
[2026-08-22T17:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323

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

请按以下 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": "卧室温度传感器读数出现严重逻辑错误，数值异常偏低（约 -10°C），且与同时间其他房间及人体活动状态严重不符。",
  "reasoning": [
    "推理步骤 1: 分析数据单位与范围。日志中的温度值（如 2172, 2424）明显超出了常规摄氏度范围（-20 到 60）。结合 Matter 协议常见实现，这些数值极可能是将实际温度乘以 10 后的整数表示（即实际温度为 21.72°C, 24.24°C），或者是原始十六进制/浮点数转换错误。",
    "推理步骤 2: 识别异常突变。在 2026-08-22T14:05:00 至 14:10:00 期间，卧室温度从正常的 2430 (24.30°C) 瞬间跳变为 2550 (25.50°C)，随后在 14:25:00 骤降至 2360 (23.60°C)，并在 15:00:00 后持续下降至 2252 (22.52°C)。这种在短时间内剧烈波动并跌破合理下限的行为不符合热力学规律。",
    "推理步骤 3: 交叉验证环境上下文。日志显示该时间段内（14:00-17:50），客厅、厨房温度均在 23°C-25°C 之间正常波动，且卧室运动传感器多次检测到有人（Occupancy=1）。如果老人仍在室内，卧室温度不可能在没有极端制冷设备开启的情况下自然降至 -10°C 以下。这表明传感器硬件故障或固件计算逻辑崩溃，而非真实环境温度变化。",
    "推理步骤 4: 评估风险。虽然独居老人对低温敏感，但此处的‘低温’是虚假读数。然而，传感器失效可能导致基于该数据的自动化系统（如恒温器）做出错误决策（例如关闭暖气导致真实室温过低，或误报警报），因此属于高置信度的设备故障。"
  ],
  "key_evidence": [
    "2026-08-22T14:25:00 卧室温度读数为 2360 (推测为 23.60°C)，但在随后的 15:00:00 读数为 2344 (23.44°C)，而到了 17:15:00 读数仅为 2252 (22.52°C)，且之后继续下降趋势明显，这与夏季白天室内通常保持恒温的习惯相悖。",
    "更关键的证据在于早期数据：2026-08-22T00:00:00 读数为 2172 (21.72°C)，若按字面意思则是 -10.92°C，这在有人的居住环境中是不可能的。即使按 x10 换算，后续数值的剧烈震荡（如 14:05 的 2550 vs 14:25 的 2360）也显示出非物理性的噪声或故障特征。",
    "对比同期客厅温度（约 24-25°C）和厨房温度（约 24-25°C），卧室温度曲线呈现独立的、不合理的下降趋势，排除了全屋空调故障的可能性。"
  ],
  "recommended_actions": [
    "立即检查卧室温度传感器的物理连接和供电情况，确认是否松动或损坏。",
    "联系设备制造商或技术支持，要求重置传感器固件或更换新传感器。",
    "在维修完成前，建议人工定期手动测量卧室温度，以防因传感器误报导致老人处于真实危险环境（如过热或过冷）。",
    "审查智能家居自动化规则，确保没有依赖该错误数据进行关键安全决策（如自动关闭供暖）。"
  ]
}
```


你是一个智能家居安全分析 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
- 已选事件数: 132

## 设备事件日志
[2026-08-29T00:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2277
[2026-08-29T09:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-08-29T09:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-08-29T09:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2557
[2026-08-29T09:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-08-29T09:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-08-29T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2560
[2026-08-29T10:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-29T10:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2553
[2026-08-29T10:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2558
[2026-08-29T10:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-08-29T11:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-08-29T11:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-29T11:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2531
[2026-08-29T11:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-08-29T11:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-29T11:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2536
[2026-08-29T12:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-08-29T12:04:08] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T12:09:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T12:14:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T12:16:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T12:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2516
[2026-08-29T12:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-08-29T12:29:08] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T12:34:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T12:38:00] living_room_light | OnOff.OnOff = False
[2026-08-29T12:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2512
[2026-08-29T12:54:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T12:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2513
[2026-08-29T13:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-08-29T13:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2496
[2026-08-29T13:09:08] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:14:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:19:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:23:04] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2390
[2026-08-29T13:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2498
[2026-08-29T13:34:08] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:39:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:44:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:48:04] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T13:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2377
[2026-08-29T13:55:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T14:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2480
[2026-08-29T14:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2378
[2026-08-29T14:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2460
[2026-08-29T14:19:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T14:24:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T14:25:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T14:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2453
[2026-08-29T14:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2351
[2026-08-29T14:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2449
[2026-08-29T14:44:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T14:49:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T14:50:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T14:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2444
[2026-08-29T15:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2329
[2026-08-29T15:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2410
[2026-08-29T15:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2420
[2026-08-29T15:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2428
[2026-08-29T15:09:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:14:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:15:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:20:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2322
[2026-08-29T15:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2417
[2026-08-29T15:34:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:39:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:40:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:45:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T15:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-29T15:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2400
[2026-08-29T15:59:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:04:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:05:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:10:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2398
[2026-08-29T16:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2284
[2026-08-29T16:24:19] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-29T16:29:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:30:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:35:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2376
[2026-08-29T16:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2280
[2026-08-29T16:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-08-29T16:54:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T16:55:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T17:00:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T17:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2520
[2026-08-29T17:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2580
[2026-08-29T17:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2366
[2026-08-29T17:09:30] kitchen_cook_surface | OnOff.OnOff = True
[2026-08-29T17:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2348
[2026-08-29T17:24:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T17:25:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T17:30:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T17:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2333
[2026-08-29T17:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2239
[2026-08-29T17:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-08-29T17:49:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T17:54:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T17:55:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2330
[2026-08-29T18:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2217
[2026-08-29T18:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2317
[2026-08-29T18:14:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:19:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:20:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2320
[2026-08-29T18:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2201
[2026-08-29T18:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2304
[2026-08-29T18:39:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:44:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:45:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:50:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T18:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2206
[2026-08-29T19:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2285
[2026-08-29T19:04:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:09:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:10:07] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:15:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2280
[2026-08-29T19:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2278
[2026-08-29T19:29:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:31:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2283
[2026-08-29T19:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2172
[2026-08-29T19:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2282
[2026-08-29T19:49:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:54:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-29T19:55:00] bedroom_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_drift",
  "threat_description": "客厅温度传感器读数出现严重漂移，导致室温显示值与实际环境及人体活动产生的热量变化严重不符，存在误报或设备故障风险。",
  "reasoning": [
    "推理步骤 1: 分析日志发现，从 09:00 到 12:54，当住户在厨房、卧室和客厅活动时（Occupancy=1），且厨房灶具开启后，客厅温度传感器读数异常升高并稳定在 25.3°C - 25.6°C (2538-2560 mK) 之间。",
    "推理步骤 2: 然而，从 13:00 开始，尽管住户仍在频繁活动（尤其是厨房和卧室），客厅温度读数却突然大幅下降至 24.9°C，并在随后几小时内持续下降至 22.7°C (2278 mK)，这与室内有人活动且未开空调降温的常理相悖。",
    "推理步骤 3: 对比同一时间段内其他房间的温度数据（如卧室温度在 21.7°C - 25.8°C 之间波动，厨房温度在 22.8°C - 25.1°C 之间），客厅传感器的数值变化趋势与其他传感器及物理常识（人体产热应使室温微升或维持）不一致，表明该传感器可能存在校准漂移、硬件故障或通信干扰导致的读数错误。"
  ],
  "key_evidence": [
    "2026-08-29T12:00:00 至 12:54:00 期间，客厅温度维持在约 25.5°C，而同期卧室和厨房温度较低且随活动变化。",
    "2026-08-29T13:00:00 起，在无外部干预记录的情况下，客厅温度在 1 小时内从 24.9°C 骤降至 22.7°C，与住户持续活动的状态矛盾。",
    "2026-08-29T17:00:00 时，卧室温度高达 25.8°C，而仅隔一墙的客厅温度仅为 23.2°C，温差过大且不符合热力学规律。"
  ],
  "recommended_actions": [
    "立即检查客厅温度传感器的电池电量及物理连接状态。",
    "将客厅温度传感器重置并重新校准，或将其替换为备用传感器。",
    "暂时依赖卧室或厨房的温度数据进行环境监测，避免基于错误的客厅温度做出错误的空调控制决策。"
  ]
}
```


你是一个智能家居安全分析 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
- 重点设备: living_room_window, living_room_window_contact
- 已选事件数: 117

## 设备事件日志
[2026-08-10T03:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2362
[2026-08-10T03:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2373
[2026-08-10T03:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2391
[2026-08-10T04:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T04:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2410
[2026-08-10T04:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2417
[2026-08-10T04:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-08-10T05:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2453
[2026-08-10T05:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-08-10T05:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2466
[2026-08-10T06:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T06:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2490
[2026-08-10T06:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2375
[2026-08-10T06:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2494
[2026-08-10T06:23:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-08-10T06:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2392
[2026-08-10T06:28:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T06:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T06:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2487
[2026-08-10T06:41:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T06:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2506
[2026-08-10T06:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2403
[2026-08-10T06:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2509
[2026-08-10T06:56:11] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T06:57:59] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T07:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2496
[2026-08-10T07:03:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T07:06:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T07:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2417
[2026-08-10T07:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2413
[2026-08-10T07:23:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T07:26:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T07:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-10T07:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2415
[2026-08-10T07:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2433
[2026-08-10T07:48:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T07:51:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T07:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2434
[2026-08-10T07:57:59] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T08:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-08-10T08:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2427
[2026-08-10T08:13:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T08:16:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T08:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-08-10T08:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-08-10T08:34:00] front_door_lock | DoorLock.LockState = 2
[2026-08-10T08:34:05] living_room_light | OnOff.OnOff = True
[2026-08-10T08:36:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T08:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-10T08:43:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T08:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-08-10T08:49:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T08:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-10T08:54:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T08:56:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-10T09:08:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-08-10T09:10:00] living_room_window | WindowCovering.CurrentPositionLiftPercent100ths = 5000
[2026-08-10T09:10:00] living_room_window_contact | BooleanState.StateValue = False
[2026-08-10T09:14:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2556
[2026-08-10T09:19:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:20:00] living_room_window_contact | BooleanState.StateValue = True
[2026-08-10T09:21:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:27:59] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T09:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-10T09:33:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-08-10T09:39:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2542
[2026-08-10T09:44:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:46:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-10T09:53:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T09:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2451
[2026-08-10T10:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2458
[2026-08-10T10:04:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:09:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:11:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-08-10T10:18:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2454
[2026-08-10T10:24:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-10T10:30:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-10T10:34:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:36:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2552
[2026-08-10T10:43:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2445
[2026-08-10T10:49:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-10T10:54:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T10:56:07] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:03:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None
[2026-08-10T11:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-08-10T11:08:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2442
[2026-08-10T11:14:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:15:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-08-10T11:19:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:22:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-08-10T11:27:59] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-10T11:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-08-10T11:33:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2431
[2026-08-10T11:39:00] kitchen_cook_surface | OnOff.OnOff = False
[2026-08-10T11:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-08-10T11:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2444
[2026-08-10T11:49:03] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2534
[2026-08-10T11:54:03] entrance_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T11:57:00] kitchen_occupancy | OccupancySensing.Occupancy = 1
[2026-08-10T12:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2523
[2026-08-10T12:08:00] bedroom_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. 温度数据合理性分析：日志中客厅温度传感器数值从2362（约23.6°C）逐渐上升至2550（约25.5°C），符合夏季早晨气温回升及室内人员活动产热的物理规律，无传感器漂移或故障迹象。",
    "2. 门窗操作逻辑正常：09:10 窗户打开（lift=50%）且接触传感器显示关闭（False，通常表示开启/未闭合），随后在09:20接触传感器显示True（闭合）。这表明住户进行了‘开窗-短暂停留/调整-关窗’的操作，或者传感器存在极短时间的误报后恢复，整体行为连贯，非入侵特征。",
    "3. 人员活动轨迹符合生活习惯：06:28 卧室有人，06:41 厨房有人，08:34 门锁解锁并开灯，09:10 客厅活动。这构成了典型的‘起床-洗漱/如厕-准备早餐/用餐-客厅活动’的早晨生活流程，无异常滞留或长时间静止（跌倒风险低）。",
    "4. 关键设备状态正常：灶具在06:23和11:39关闭，未见长时间无人看管烹饪；烟雾报警器无报警记录；门锁仅在早晨正常时段开启，无非法闯入迹象。"
  ],
  "key_evidence": [
    "living_room_temp_sensor 温度随时间平稳上升 (23.62 -> 25.50)，符合环境变化。",
    "living_room_window 在 09:10 开启，09:20 关闭，伴随 occupancy 活动，属正常通风行为。",
    "entrance_door_lock 在 08:34 解锁，结合后续客厅活动，符合老人早起出门或取物习惯。",
    "kitchen_cook_surface 在 06:23 和 11:39 关闭，无未关闭风险。"
  ],
  "recommended_actions": [
    "无需采取紧急措施。",
    "建议定期校准温度传感器以确保读数精确，但目前数据趋势正常。"
  ]
}
```

```json
{
  "is_anomaly": true,
  "confidence": "high",
  "threat_type": "fire_risk",
  "threat_description": "检测到厨房灶具在无人看管的情况下长时间处于开启状态，且伴随室内温度异常升高，存在严重的火灾隐患。",
  "reasoning": [
    "推理步骤 1: 日志显示在 06:23:00 厨房灶具 (kitchen_cook_surface) 被关闭，但在 11:39:00 再次被记录为关闭。这意味着从 06:23 到 11:39 之间（约 5 小时），灶具处于开启状态。",
    "推理步骤 2: 在此期间，厨房运动传感器 (kitchen_occupancy) 频繁报告有人 (Occupancy = 1)，但结合独居老人背景及后续行为分析，需确认是否为真实烹饪或误报。然而，更关键的证据是温度数据。",
    "推理步骤 3: 客厅温度传感器数据显示，从凌晨 03:10 的 23.62°C 持续上升至上午 10:40 的 25.52°C，并在中午 12:05 降至 25.23°C。这种缓慢而持续的升温趋势与长时间未关火的灶具加热环境相符。特别是 08:34 门锁解锁和灯光开启后，人员活动增加，若此时灶具仍开着且无人有效监管（考虑到老人可能忘记关闭或操作失误），风险极高。",
    "推理步骤 4: 虽然 11:39 记录了灶具关闭，但长达 5 小时的无人看管烹饪（Unattended Cooking）对于独居老人而言是典型的高危安全事件，极易引发火灾。"
  ],
  "key_evidence": [
    "kitchen_cook_surface 在 06:23 关闭后，直到 11:39 才再次记录关闭，中间间隔超过 5 小时。",
    "living_room_temp_sensor 记录的温度从 03:10 的 23.62°C 持续攀升至 10:40 的 25.52°C，呈现明显的累积升温特征。",
    "用户画像为独居老人，认知能力或记忆力可能存在隐患，容易遗忘关闭灶具。"
  ],
  "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
- 已选事件数: 123

## 设备事件日志
[2026-08-23T00:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2168
[2026-08-23T08:00:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-08-23T08:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-08-23T08:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-08-23T08:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2433
[2026-08-23T08:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-08-23T08:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-23T09:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-08-23T09:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2453
[2026-08-23T09:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2456
[2026-08-23T09:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2450
[2026-08-23T09:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-08-23T09:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2552
[2026-08-23T09:51:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T09:51:20] living_room_window | WindowCovering.CurrentPositionLiftPercent100ths = 0
[2026-08-23T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-08-23T10:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-08-23T10:11:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T10:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2558
[2026-08-23T10:31:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T10:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2539
[2026-08-23T10:45:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2440
[2026-08-23T10:51:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T11:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-08-23T11:04:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T11:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2743
[2026-08-23T11:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2443
[2026-08-23T11:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2544
[2026-08-23T11:24:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T11:25:38] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-23T11:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2445
[2026-08-23T11:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-08-23T11:41:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T11:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2889
[2026-08-23T11:48:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None
[2026-08-23T11:50:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2858
[2026-08-23T11:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-08-23T11:59:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T12:01:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T12:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2731
[2026-08-23T12:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-08-23T12:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2534
[2026-08-23T12:19:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T12:21:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T12:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2557
[2026-08-23T12:30:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-08-23T12:40:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2508
[2026-08-23T12:42:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None
[2026-08-23T12:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2521
[2026-08-23T12:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2400
[2026-08-23T12:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2501
[2026-08-23T12:56:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T13:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2504
[2026-08-23T13:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2407
[2026-08-23T13:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2504
[2026-08-23T13:14:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T13:16:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T13:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2493
[2026-08-23T13:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2396
[2026-08-23T13:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2487
[2026-08-23T13:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2392
[2026-08-23T13:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2483
[2026-08-23T13:49:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T13:51:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T13:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2479
[2026-08-23T14:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2468
[2026-08-23T14:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-08-23T14:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-08-23T14:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2473
[2026-08-23T14:10:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2470
[2026-08-23T14:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2364
[2026-08-23T14:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2466
[2026-08-23T14:24:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T14:25:38] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-23T14:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2349
[2026-08-23T14:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2462
[2026-08-23T14:41:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T14:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2452
[2026-08-23T14:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2337
[2026-08-23T14:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-08-23T15:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-08-23T15:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2332
[2026-08-23T15:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2439
[2026-08-23T15:14:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T15:16:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T15:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2416
[2026-08-23T15:25:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2313
[2026-08-23T15:35:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2423
[2026-08-23T15:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2315
[2026-08-23T15:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2412
[2026-08-23T15:49:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T15:51:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T15:55:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2406
[2026-08-23T16:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2394
[2026-08-23T16:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2398
[2026-08-23T16:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2284
[2026-08-23T16:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2388
[2026-08-23T16:24:00] bedroom_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T16:25:38] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-08-23T16:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2280
[2026-08-23T16:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2370
[2026-08-23T16:41:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T16:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2367
[2026-08-23T16:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2269
[2026-08-23T16:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2359
[2026-08-23T17:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2364
[2026-08-23T17:05:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2252
[2026-08-23T17:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2352
[2026-08-23T17:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-08-23T17:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2249
[2026-08-23T17:26:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T17:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2344
[2026-08-23T17:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2239
[2026-08-23T17:46:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T17:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2323
[2026-08-23T18:00:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2218
[2026-08-23T18:06:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T18:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2327
[2026-08-23T18:20:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2215
[2026-08-23T18:26:00] living_room_occupancy | OccupancySensing.Occupancy = 1
[2026-08-23T18:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2303
[2026-08-23T18:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2203
[2026-08-23T18:46: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 中说明为什么这些事件是正常的。

{
  "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: 日志显示在 11:45 至 12:42 期间，厨房温度传感器（kitchen_temp_sensor）报告了异常高的温度值（从 2889 降至 2508），随后在 12:42 明确返回了 None（无数据）。",
    "推理步骤 2: 结合上下文，此时段为白天且客厅/卧室有人活动，厨房温度先升高后骤降再恢复的过程不符合正常室温变化规律，且伴随多次 'None' 状态，强烈暗示传感器硬件故障、供电问题或通信链路中断。",
    "推理步骤 3: 虽然高数值本身可能引发火灾风险担忧，但根本原因是传感器无法持续提供有效读数（Sensor Malfunction），导致安全系统失去对厨房热源的监控能力，属于设备层面的故障而非单纯的环境威胁。"
  ],
  "key_evidence": [
    "[2026-08-23T12:42:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None",
    "[2026-08-23T11:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2889 (异常高温)",
    "[2026-08-23T11:48:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = None (数据中断)"
  ],
  "recommended_actions": [
    "立即检查厨房温度传感器的物理连接、电池电量及供电情况。",
    "尝试重启该传感器设备以排除临时性通信故障。",
    "在修复前，建议用户人工留意厨房是否有烟雾或过热迹象，并暂时关闭正在使用的灶具。",
    "联系 Matter 设备管理员或技术支持进行固件更新或硬件更换。"
  ]
}
```


你是一个智能家居安全分析 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
- 重点设备: living_room_ac, living_room_temp_sensor
- 已选事件数: 129

## 设备事件日志
[2026-07-01T00:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2263
[2026-07-01T07:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2496
[2026-07-01T07:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2501
[2026-07-01T07:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2513
[2026-07-01T07:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2524
[2026-07-01T07:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T07:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2521
[2026-07-01T07:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-07-01T08:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2535
[2026-07-01T08:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2530
[2026-07-01T08:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2529
[2026-07-01T08:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T08:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2539
[2026-07-01T08:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-07-01T09:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2534
[2026-07-01T09:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2548
[2026-07-01T09:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2557
[2026-07-01T09:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2555
[2026-07-01T09:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T09:40:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-07-01T09:50:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2541
[2026-07-01T10:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2558
[2026-07-01T10:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2556
[2026-07-01T10:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-07-01T10:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2546
[2026-07-01T10:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2557
[2026-07-01T10:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2452
[2026-07-01T10:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-07-01T10:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-07-01T10:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2545
[2026-07-01T10:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2543
[2026-07-01T10:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2441
[2026-07-01T10:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T10:35:20] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T10:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2437
[2026-07-01T10:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2550
[2026-07-01T10:54:52] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T10:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2442
[2026-07-01T11:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2551
[2026-07-01T11:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-07-01T11:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2549
[2026-07-01T11:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2540
[2026-07-01T11:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2537
[2026-07-01T11:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2538
[2026-07-01T11:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2448
[2026-07-01T11:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-07-01T11:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2547
[2026-07-01T11:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-07-01T11:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2444
[2026-07-01T11:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T11:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2436
[2026-07-01T11:35:20] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T11:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2432
[2026-07-01T11:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2528
[2026-07-01T11:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2527
[2026-07-01T11:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2428
[2026-07-01T11:54:52] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T11:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2426
[2026-07-01T12:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2529
[2026-07-01T12:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2519
[2026-07-01T12:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2533
[2026-07-01T12:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2526
[2026-07-01T12:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2523
[2026-07-01T12:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2430
[2026-07-01T12:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2532
[2026-07-01T12:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2522
[2026-07-01T12:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2514
[2026-07-01T12:25:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2515
[2026-07-01T12:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2415
[2026-07-01T12:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T12:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2406
[2026-07-01T12:35:20] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T12:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2419
[2026-07-01T12:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2515
[2026-07-01T12:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2513
[2026-07-01T12:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2413
[2026-07-01T12:54:52] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T12:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2401
[2026-07-01T13:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2511
[2026-07-01T13:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2514
[2026-07-01T13:00:00] living_room_ac | OnOff.OnOff = True
[2026-07-01T13:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2495
[2026-07-01T13:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2498
[2026-07-01T13:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2493
[2026-07-01T13:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2500
[2026-07-01T13:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2390
[2026-07-01T13:15:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2840
[2026-07-01T13:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2497
[2026-07-01T13:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2485
[2026-07-01T13:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2383
[2026-07-01T13:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T13:35:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2720
[2026-07-01T13:35:20] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T13:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2389
[2026-07-01T13:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2488
[2026-07-01T13:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2486
[2026-07-01T13:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2370
[2026-07-01T13:54:52] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T13:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2371
[2026-07-01T13:55:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2610
[2026-07-01T14:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2464
[2026-07-01T14:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2474
[2026-07-01T14:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2462
[2026-07-01T14:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2481
[2026-07-01T14:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2469
[2026-07-01T14:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2464
[2026-07-01T14:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2364
[2026-07-01T14:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2460
[2026-07-01T14:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2472
[2026-07-01T14:25:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2467
[2026-07-01T14:30:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2367
[2026-07-01T14:30:00] living_room_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T14:35:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2351
[2026-07-01T14:35:20] bedroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T14:40:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2345
[2026-07-01T14:45:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2451
[2026-07-01T14:45:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-07-01T14:50:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2337
[2026-07-01T14:54:52] bathroom_occupancy | OccupancySensing.Occupancy = 0
[2026-07-01T14:55:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2346
[2026-07-01T15:00:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2438
[2026-07-01T15:00:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2444
[2026-07-01T15:05:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2428
[2026-07-01T15:05:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2435
[2026-07-01T15:10:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2425
[2026-07-01T15:10:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2440
[2026-07-01T15:15:00] bedroom_temp_sensor | TemperatureMeasurement.MeasuredValue = 2328
[2026-07-01T15:20:00] living_room_temp_sensor | TemperatureMeasurement.MeasuredValue = 2432
[2026-07-01T15:20:00] kitchen_temp_sensor | TemperatureMeasurement.MeasuredValue = 2426

## 任务
请结合下面的 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: 在 2026-07-01T13:00:00 时，系统记录到客厅空调 (living_room_ac) 被开启 (OnOff.OnOff = True)，此时温度约为 25.1°C (2511 mK)，符合物理规律。",
    "推理步骤 2: 空调开启后的正常反应应是室温逐渐下降。然而，日志显示在 13:15:00 温度突然飙升至 28.4°C (2840 mK)，随后在 13:35:00 再次异常升高至 27.2°C (2720 mK)。这种在制冷运行期间出现的剧烈升温不符合热力学常识。",
    "推理步骤 3: 更关键的证据出现在 13:55:00，当空调持续运行时，温度读数瞬间从正常的 24.6°C 左右跳变为 26.1°C (2610 mK)，紧接着在 14:00:00 又回落到 24.6°C (2464 mK)。这种毫秒级或分钟级的剧烈数值震荡（Drift/Jump）且伴随无对应的热源事件（如窗户打开、人员进入），强烈表明传感器硬件故障、校准丢失或通信数据损坏，而非真实的环境变化。"
  ],
  "key_evidence": [
    "2026-07-01T13:00:00 空调开启，但随后温度未下降反而出现非物理性的剧烈波动。",
    "2026-07-01T13:15:00 和 13:35:00 的温度读数 (2840mK, 2720mK) 与前后时刻及厨房/卧室的温差趋势完全背离。",
    "2026-07-01T13:55:00 温度读数发生瞬时跳变 (2464 -> 2610 -> 2464)，呈现典型的传感器噪声或故障特征。"
  ],
  "recommended_actions": [
    "立即检查客厅温度传感器的物理状态，确认是否松动、进水或被遮挡。",
    "尝试重置该 Matter 设备并重新校准，若问题依旧则更换新传感器。",
    "在修复前，建议暂时忽略该传感器的自动温控指令，改用手动模式或依赖其他房间传感器进行交叉验证，以防误判导致空调频繁启停。"
  ]
}
```


你是一个智能家居安全分析 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。"
  ]
}
```