xbb083's picture
Restore naturally ordered Sleep Assessment case paths
c00b2be verified
Raw
History Blame Contribute Delete
2.76 kB
{
"meta_info": {
"case_id": "Physionet2018_02.edf",
"bench_subset": "NeuroBench-Sleep",
"difficult": 1.5,
"original_dataset": "Physionet2018"
},
"agent_input": {
"data_path": "data/sleep/Physionet2018_02.edf",
"label_path": "data/sleep/Physionet2018_02.npy",
"instruction": "Please use the provided sleep EEG/PSG file and paired sleep-stage label file to identify the apnea event with the longest duration across the whole recording. Report its duration in seconds, its start time in minutes from the beginning of the recording, and the sleep stage at the event start. The sleep-stage output must be one of W, N1, N2, N3, or R. Respiratory channels: ABD = abdominal respiratory effort; CHEST = thoracic respiratory effort; AIRFLOW = airflow; SaO2 = oximetry."
},
"eval_config": {
"parser_prompt": "### ROLE\nYou are a precise JSON Extraction Engine for sleep medicine reports.\n\n### TASK\nExtract the duration in seconds, start time in minutes, and sleep stage of the longest apnea event.\n\n### STRICT CONSTRAINTS (MANDATORY)\n1. Output ONLY a valid JSON object.\n2. Do not include Markdown, explanations, units, or extra fields.\n3. The keys must be EXACTLY \"longest_apnea_duration_sec\", \"longest_apnea_start_min\", and \"sleep_stage\".\n4. The two numeric values must be FLOATS or null.\n5. \"sleep_stage\" must be exactly W, N1, N2, N3, R, or null.\n6. Normalize REM to R.\n7. If a value is missing or unclear, return null for that value.\n\n### OUTPUT TEMPLATE\n{\"longest_apnea_duration_sec\": <float|null>, \"longest_apnea_start_min\": <float|null>, \"sleep_stage\": <\"W\"|\"N1\"|\"N2\"|\"N3\"|\"R\"|null>}",
"metrics": [
{
"metric_id": "longest_apnea_duration_accuracy",
"type": "numeric_check",
"target_key": "longest_apnea_duration_sec",
"weight": 40,
"params": {
"gt_value": 26.100000000000364,
"tolerance": 1.0
}
},
{
"metric_id": "longest_apnea_start_time_accuracy",
"type": "numeric_check",
"target_key": "longest_apnea_start_min",
"weight": 40,
"params": {
"gt_value": 250.91833333333335,
"tolerance": 1.0
}
},
{
"metric_id": "longest_apnea_sleep_stage_accuracy",
"type": "categorical_check",
"target_key": "sleep_stage",
"weight": 20,
"params": {
"gt_value": "N2"
}
}
]
}
}