xbb083's picture
Restore naturally ordered Sleep Assessment case paths
c00b2be verified
Raw
History Blame Contribute Delete
2.63 kB
{
"meta_info": {
"case_id": "case41_09",
"bench_subset": "NeuroBench-Sleep",
"difficult": 1.5,
"original_dataset": "SHHS1"
},
"agent_input": {
"data_path": "data/sleep/SHHS1_05.edf",
"label_path": "data/sleep/SHHS1_05.npy",
"instruction": "Use the sleep file and paired labels to calculate sleep mean SpO2, wake mean SpO2, and sleep minimum SpO2. Convert SaO2 to 1 Hz by per-second median; accept 50-100%, remove isolated <=2-second outliers more than 4 points from a centered 9-second median, interpolate only bounded internal gaps <=30 seconds, apply a centered 9-second median, and exclude all remaining missing seconds. Treat N1/N2/N3/R as sleep and W as wake. Report percentages. SHHS1: SaO2=oxygen saturation; THOR RES/ABDO RES=effort; NEW AIR/AIRFLOW=airflow."
},
"eval_config": {
"parser_prompt": "### ROLE\nYou are a precise JSON Extraction Engine for sleep medicine reports.\n\n### TASK\nExtract sleep mean SpO2, wake mean SpO2, and sleep minimum SpO2.\n\n### STRICT CONSTRAINTS (MANDATORY)\n1. Output ONLY a valid JSON object.\n2. Do not include Markdown, explanations, units, or extra fields.\n3. Keys must be EXACTLY \"sleep_mean_spo2\", \"wake_mean_spo2\", and \"sleep_min_spo2\".\n4. Values must be FLOAT values or null.\n5. Return null for a missing or unclear value.\n\n### OUTPUT TEMPLATE\n{\"sleep_mean_spo2\": <float|null>, \"wake_mean_spo2\": <float|null>, \"sleep_min_spo2\": <float|null>}",
"metrics": [
{
"metric_id": "sleep_mean_oxygen_saturation_accuracy",
"type": "numeric_check",
"target_key": "sleep_mean_spo2",
"weight": 33,
"params": {
"gt_value": 94.84243082865771,
"tolerance": 4.742121541432886
}
},
{
"metric_id": "wake_mean_oxygen_saturation_accuracy",
"type": "numeric_check",
"target_key": "wake_mean_spo2",
"weight": 33,
"params": {
"gt_value": 95.96471019336792,
"tolerance": 4.798235509668396
}
},
{
"metric_id": "sleep_min_oxygen_saturation_accuracy",
"type": "numeric_check",
"target_key": "sleep_min_spo2",
"weight": 34,
"params": {
"gt_value": 84.70099572079334,
"tolerance": 4.235049786039667
}
}
]
}
}