{ "meta_info": { "case_id": "ISRUC_02.edf", "bench_subset": "NeuroBench-Sleep", "difficult": 2, "original_dataset": "ISRUC" }, "agent_input": { "data_path": "data/sleep/ISRUC_02.edf", "label_path": "data/sleep/ISRUC_02.npy", "instruction": "Please use the provided sleep EEG/PSG file and paired sleep-stage label file to calculate the whole-night Apnea-Hypopnea Index (AHI). Count all apnea events and all hypopnea events across the full recording from the sleep signal. Compute total sleep time (TST) from the label file as the number of non-Wake epochs (N1, N2, N3, or R/REM) multiplied by 30 seconds, converted to hours. AHI is defined as (apnea_count + hypopnea_count) divided by TST in hours, reported as events per hour of total sleep time. Respiratory channels for ISRUC: X5 = snore signal; X6 = Flow-1, pressure-based airflow; DC3 = Flow-2, second airflow channel; X7 and X8 = abdominal respiratory-effort channels. Please clearly report the final AHI value." }, "eval_config": { "parser_prompt": "### ROLE\nYou are a precise JSON Extraction Engine for sleep medicine reports. Your sole task is to convert natural language reports into structured JSON data.\n\n### TASK\nExtract the whole-night Apnea-Hypopnea Index (AHI) from the agent's report. AHI should be reported as apnea plus hypopnea events per hour of total sleep time.\n\n### STRICT CONSTRAINTS (MANDATORY)\n1. Output ONLY a valid JSON object.\n2. DO NOT include Markdown code blocks.\n3. DO NOT include conversational text, explanations, or units.\n4. The key must be EXACTLY \"ahi\".\n5. The value must be a FLOAT or null.\n6. If the value is missing or cannot be found, return {\"ahi\": null}.\n\n### OUTPUT TEMPLATE\n{\"ahi\": }", "metrics": [ { "metric_id": "apnea_hypopnea_index_accuracy", "type": "numeric_check", "target_key": "ahi", "weight": 100, "params": { "gt_value": 5.674547983310154, "tolerance": 1.1349095966620308 } } ] } }