{
  "traces": [
    {
      "stage": "stage1_official_test",
      "input": {
        "wave": [
          1,
          80000
        ],
        "tokens": [
          248,
          768
        ],
        "duration_s": 2.31,
        "device": "AKGC417L",
        "patient": 178,
        "snr_proxy_db": 9.03
      },
      "stage1_output": {
        "p_crackle_topk3": 0.5195,
        "p_wheeze_topk3": 0.4806,
        "p_crackle_max": 0.5458,
        "p_wheeze_max": 0.5392,
        "tau_crackle": 0.91,
        "tau_wheeze": 0.75,
        "pred": "normal",
        "truth": "crackle",
        "entropy_nats": 1.3848,
        "top2_margin": 0.0202,
        "top1": "crackle",
        "top2": "both",
        "bucket": "high_entropy_wrong"
      },
      "stage2_handoff": {
        "consumes": "continuous p_c, p_w, binary entropy, max-vs-topk gap (9-d stats)",
        "not": "one-hot of pred",
        "confused": true
      }
    },
    {
      "stage": "stage1_official_test",
      "input": {
        "wave": [
          1,
          80000
        ],
        "tokens": [
          248,
          768
        ],
        "duration_s": 4.44,
        "device": "AKGC417L",
        "patient": 160,
        "snr_proxy_db": 15.21
      },
      "stage1_output": {
        "p_crackle_topk3": 0.5196,
        "p_wheeze_topk3": 0.4594,
        "p_crackle_max": 0.5429,
        "p_wheeze_max": 0.4703,
        "tau_crackle": 0.91,
        "tau_wheeze": 0.75,
        "pred": "normal",
        "truth": "wheeze",
        "entropy_nats": 1.3822,
        "top2_margin": 0.0212,
        "top1": "crackle",
        "top2": "normal",
        "bucket": "high_entropy_wrong"
      },
      "stage2_handoff": {
        "consumes": "continuous p_c, p_w, binary entropy, max-vs-topk gap (9-d stats)",
        "not": "one-hot of pred",
        "confused": true
      }
    },
    {
      "stage": "stage1_official_test",
      "input": {
        "wave": [
          1,
          80000
        ],
        "tokens": [
          248,
          768
        ],
        "duration_s": 3.936,
        "device": "AKGC417L",
        "patient": 178,
        "snr_proxy_db": 11.46
      },
      "stage1_output": {
        "p_crackle_topk3": 0.5771,
        "p_wheeze_topk3": 0.7573,
        "p_crackle_max": 0.6198,
        "p_wheeze_max": 0.7916,
        "tau_crackle": 0.91,
        "tau_wheeze": 0.75,
        "pred": "wheeze",
        "truth": "both",
        "entropy_nats": 1.2353,
        "top2_margin": 0.1168,
        "top1": "both",
        "top2": "wheeze",
        "bucket": "high_entropy_wrong"
      },
      "stage2_handoff": {
        "consumes": "continuous p_c, p_w, binary entropy, max-vs-topk gap (9-d stats)",
        "not": "one-hot of pred",
        "confused": true
      }
    },
    {
      "stage": "stage1_official_test",
      "input": {
        "wave": [
          1,
          80000
        ],
        "tokens": [
          248,
          768
        ],
        "duration_s": 3.692,
        "device": "AKGC417L",
        "patient": 147,
        "snr_proxy_db": 11.42
      },
      "stage1_output": {
        "p_crackle_topk3": 0.9307,
        "p_wheeze_topk3": 0.5175,
        "p_crackle_max": 0.9502,
        "p_wheeze_max": 0.552,
        "tau_crackle": 0.91,
        "tau_wheeze": 0.75,
        "pred": "crackle",
        "truth": "normal",
        "entropy_nats": 0.9445,
        "top2_margin": 0.0326,
        "top1": "both",
        "top2": "crackle",
        "bucket": "high_entropy_wrong"
      },
      "stage2_handoff": {
        "consumes": "continuous p_c, p_w, binary entropy, max-vs-topk gap (9-d stats)",
        "not": "one-hot of pred",
        "confused": true
      }
    },
    {
      "stage": "stage1_official_test",
      "input": {
        "wave": [
          1,
          80000
        ],
        "tokens": [
          248,
          768
        ],
        "duration_s": 2.13,
        "device": "Litt3200",
        "patient": 109,
        "snr_proxy_db": 28.36
      },
      "stage1_output": {
        "p_crackle_topk3": 0.573,
        "p_wheeze_topk3": 0.7655,
        "p_crackle_max": 0.5822,
        "p_wheeze_max": 0.7893,
        "tau_crackle": 0.91,
        "tau_wheeze": 0.75,
        "pred": "wheeze",
        "truth": "normal",
        "entropy_nats": 1.2271,
        "top2_margin": 0.1118,
        "top1": "both",
        "top2": "wheeze",
        "bucket": "high_entropy_wrong"
      },
      "stage2_handoff": {
        "consumes": "continuous p_c, p_w, binary entropy, max-vs-topk gap (9-d stats)",
        "not": "one-hot of pred",
        "confused": true
      }
    },
    {
      "stage": "stage1_official_test",
      "input": {
        "wave": [
          1,
          80000
        ],
        "tokens": [
          248,
          768
        ],
        "duration_s": 1.346,
        "device": "AKGC417L",
        "patient": 133,
        "snr_proxy_db": 14.71
      },
      "stage1_output": {
        "p_crackle_topk3": 0.9426,
        "p_wheeze_topk3": 0.8509,
        "p_crackle_max": 0.9499,
        "p_wheeze_max": 0.8628,
        "tau_crackle": 0.91,
        "tau_wheeze": 0.75,
        "pred": "both",
        "truth": "both",
        "entropy_nats": 0.6408,
        "top2_margin": 0.6616,
        "top1": "both",
        "top2": "crackle",
        "bucket": "low_entropy_correct"
      },
      "stage2_handoff": {
        "consumes": "continuous p_c, p_w, binary entropy, max-vs-topk gap (9-d stats)",
        "not": "one-hot of pred",
        "confused": false
      }
    }
  ],
  "shapes": {
    "wave": "B x 80000",
    "tokens": "B x 248 x 768",
    "logit_crackle": "B x 248",
    "logit_wheeze": "B x 248",
    "p_mil": "B",
    "decision": "pred, entropy, top2_margin"
  }
}