The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
total_patients: int64
files: list<item: struct<patient_id: int64, diagnosis: string, file: string>>
child 0, item: struct<patient_id: int64, diagnosis: string, file: string>
child 0, patient_id: int64
child 1, diagnosis: string
child 2, file: string
durationSec: int64
startTimeGases: int64
endTimeGases: int64
patient_diag_class: int64
startDateTime: string
sensors: list<item: struct<id: string, sampleRate: double, channels: list<item: struct<id: string, samples: l (... 21 chars omitted)
child 0, item: struct<id: string, sampleRate: double, channels: list<item: struct<id: string, samples: list<item: d (... 9 chars omitted)
child 0, id: string
child 1, sampleRate: double
child 2, channels: list<item: struct<id: string, samples: list<item: double>>>
child 0, item: struct<id: string, samples: list<item: double>>
child 0, id: string
child 1, samples: list<item: double>
child 0, item: double
patient_id: int64
to
{'patient_id': Value('int64'), 'patient_diag_class': Value('int64'), 'startDateTime': Value('string'), 'startTimeGases': Value('int64'), 'endTimeGases': Value('int64'), 'durationSec': Value('int64'), 'sensors': List({'id': Value('string'), 'sampleRate': Value('float64'), 'channels': List({'id': Value('string'), 'samples': List(Value('float64'))})})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1816, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
total_patients: int64
files: list<item: struct<patient_id: int64, diagnosis: string, file: string>>
child 0, item: struct<patient_id: int64, diagnosis: string, file: string>
child 0, patient_id: int64
child 1, diagnosis: string
child 2, file: string
durationSec: int64
startTimeGases: int64
endTimeGases: int64
patient_diag_class: int64
startDateTime: string
sensors: list<item: struct<id: string, sampleRate: double, channels: list<item: struct<id: string, samples: l (... 21 chars omitted)
child 0, item: struct<id: string, sampleRate: double, channels: list<item: struct<id: string, samples: list<item: d (... 9 chars omitted)
child 0, id: string
child 1, sampleRate: double
child 2, channels: list<item: struct<id: string, samples: list<item: double>>>
child 0, item: struct<id: string, samples: list<item: double>>
child 0, id: string
child 1, samples: list<item: double>
child 0, item: double
patient_id: int64
to
{'patient_id': Value('int64'), 'patient_diag_class': Value('int64'), 'startDateTime': Value('string'), 'startTimeGases': Value('int64'), 'endTimeGases': Value('int64'), 'durationSec': Value('int64'), 'sensors': List({'id': Value('string'), 'sampleRate': Value('float64'), 'channels': List({'id': Value('string'), 'samples': List(Value('float64'))})})}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1869, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
patient_id int64 | patient_diag_class int64 | startDateTime string | startTimeGases int64 | endTimeGases int64 | durationSec int64 | sensors list |
|---|---|---|---|---|---|---|
2,002 | 8 | 2025-09-01T16:28:59.869120Z | 20 | 450 | 920 | [
{
"id": "enose",
"sampleRate": 0.4,
"channels": [
{
"id": "R1",
"samples": [
637,
636,
362,
606,
636,
0,
370,
372,
630,
368,
634,
629,
630,
62... |
2,004 | 8 | 2025-09-01T16:58:22.693029Z | 20 | 450 | 920 | [
{
"id": "enose",
"sampleRate": 0.4,
"channels": [
{
"id": "R1",
"samples": [
595,
594,
590,
593,
596,
596,
596,
590,
598,
336,
594,
596,
598,
... |
2,006 | 8 | 2025-09-01T17:23:10.914332Z | 20 | 450 | 920 | [
{
"id": "enose",
"sampleRate": 0.4,
"channels": [
{
"id": "R1",
"samples": [
607,
570,
605,
314,
312,
306,
306,
316,
310,
310,
592,
328,
326,
... |
2,008 | 8 | 2025-09-02T08:14:21.693301Z | 20 | 450 | 920 | [{"id":"enose","sampleRate":0.4,"channels":[{"id":"R1","samples":[476.0,730.0,464.0,734.0,728.0,724.(...TRUNCATED) |
2,010 | 8 | 2025-09-02T08:39:11.298165Z | 20 | 450 | 920 | [{"id":"enose","sampleRate":0.4,"channels":[{"id":"R1","samples":[366.0,653.0,650.0,650.0,386.0,624.(...TRUNCATED) |
2,012 | 8 | 2025-09-02T09:04:17.977590Z | 20 | 450 | 920 | [{"id":"enose","sampleRate":0.4,"channels":[{"id":"R1","samples":[334.0,329.0,338.0,588.0,620.0,621.(...TRUNCATED) |
2,014 | 8 | 2025-09-02T09:30:52.734318Z | 20 | 450 | 920 | [{"id":"enose","sampleRate":0.4,"channels":[{"id":"R1","samples":[642.0,366.0,624.0,651.0,642.0,632.(...TRUNCATED) |
2,016 | 8 | 2025-09-02T11:52:35.687225Z | 20 | 450 | 920 | [{"id":"enose","sampleRate":0.4,"channels":[{"id":"R1","samples":[650.0,655.0,382.0,639.0,640.0,644.(...TRUNCATED) |
2,018 | 8 | 2025-09-02T12:21:03.612839Z | 20 | 450 | 920 | [{"id":"enose","sampleRate":0.4,"channels":[{"id":"R1","samples":[406.0,408.0,646.0,648.0,649.0,656.(...TRUNCATED) |
2,020 | 8 | 2025-09-02T12:31:03.696437Z | 20 | 450 | 920 | [{"id":"enose","sampleRate":0.4,"channels":[{"id":"R1","samples":[398.0,398.0,654.0,658.0,392.0,657.(...TRUNCATED) |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Scent of Health (S-O-H) Dataset
Overview
The Scent of Health (S-O-H) dataset is the largest public clinical electronic nose (eNose) collection for non-invasive disease screening via exhaled breath analysis. It comprises 1,234 patients across eight diagnostic groups (healthy controls and seven diseases), each providing a 17-channel multivariate time series of breath measurements.
| Property | Value |
|---|---|
| Patients | 1,234 |
| Diagnostic groups | 9 (healthy + 8 diseases) |
| Time series channels | 17 (eNose sensors) + auxiliary sensors |
| Sampling rate | 0.4 Hz |
| Duration per sample | 895 seconds (~15 minutes) |
| Collection period | 13 consecutive weeks |
| Clinical sites | 2 |
Repository Structure
S-OH/
βββ README.md # This file
βββ LICENSE.txt # MIT License
βββ metadata.csv # Patient metadata (demographics, diagnosis, site, week)
βββ data/
β βββ manifest.json # Index of all patient files
β βββ Z00/ # Healthy controls
β β βββ patient_1.json
β β βββ patient_2.json
β β βββ ...
β βββ B18/ # Hepatitis B/C
β β βββ patient_10.json
β β βββ ...
β βββ K29/ # Gastritis and duodenitis
β βββ K76/ # Non-alcoholic fatty liver disease
β βββ E11/ # Diabetes mellitus type II
β βββ N18/ # Chronic renal failure
β βββ J44/ # COPD
β βββ C34/ # Lung cancer
β βββ A15/ # Respiratory tuberculosis
βββ scripts/
βββ quick_start.py # Load metadata and patient JSONs
βββ validate_metadata.py # Metadata check
βββ validate_temporal_splits.py # Temporal splits check
βββ baseline_lstm_lung_cancer.py # Example: ML/AI Use Case (LSTM baseline for C34)
βββ baseline_cnn_z00.py # Temporal splits check
βββ baseline_resnet18_z00.py # Example: ML/AI Use Case (LSTM baseline for C34)
Dataset Structure
metadata.csv
CSV file containing patient metadata with the following columns:
| Column | Description |
|---|---|
Patient_id |
Unique patient identifier |
Patient_age |
Age in years |
Patient_gender |
Gender (0 = female, 1 = male) |
Diagnosis |
ICD-10 diagnosis code |
D_class |
Disease class (0β7) |
D_bin_class |
Binary class for one-vs-rest classification |
Datetime |
Collection timestamp |
Week |
Collection week (1β13) |
Site |
Clinical site (SiteA or CiteB) |
data/ - Per-Patient JSON Files
Each patient is stored as a separate JSON file in a subdirectory named after their ICD-10 diagnosis code. The file name format is patient_{Patient_id}.json. Example path: data/Z00/patient_1.json.
Each patient JSON file has the following structure:
{
"patient_id": 1,
"patient_diag_class": 0,
"startDateTime": "2025-09-01T08:05:47.676148Z",
"startTimeGases": 20,
"endTimeGases": 450,
"durationSec": 895,
"sensors": [
{
"id": "enose",
"sampleRate": 0.4,
"channels": [
{"id": "R1", "samples": [float, ...]},
{"id": "R2", "samples": [float, ...]},
...
{"id": "R17", "samples": [float, ...]},
{"id": "humidity", "samples": [float, ...]},
{"id": "temperature", "samples": [float, ...]}
]
},
{
"id": "ze03",
"sampleRate": 0.4,
"channels": [{"id": "0", "samples": [float, ...]}]
},
{
"id": "mhz14",
"sampleRate": 0.4,
"channels": [{"id": "0", "samples": [float, ...]}]
},
{
"id": "ze08",
"sampleRate": 0.4,
"channels": [{"id": "0", "samples": [float, ...]}]
},
{
"id": "bme280",
"sampleRate": 0.4,
"channels": [
{"id": "pressure", "samples": [float, ...]},
{"id": "temperature", "samples": [float, ...]},
{"id": "humidity", "samples": [float, ...]}
]
}
]
}
data/manifest.json
Index file mapping patient IDs to their JSON file paths:
{
"total_patients": 1234,
"files": [
{"patient_id": 1, "diagnosis": "Z00", "file": "Z00/patient_1.json"},
{"patient_id": 2, "diagnosis": "Z00", "file": "Z00/patient_2.json"},
...
]
}
scripts/
Utility scripts for loading and processing the dataset.
eNose Channels (17 channels)
The eNose sensor array consists of 17 channels printed on a single chip:
| Channel ID | Material |
|---|---|
| R1βR17 | ZnO and metal-doped ZnO (In-ZnO, Ag-ZnO, Ce-ZnO, Ni-ZnO) |
Auxiliary Sensors
| Sensor ID | Measurements |
|---|---|
| ze03 | Ozone (Oβ) |
| mhz14 | Carbon dioxide (COβ) |
| ze08 | Carbon monoxide (CO) |
| bme280 | Pressure, temperature, humidity |
Quick Start
import json
import pandas as pd
# 1. Load metadata
metadata = pd.read_csv('../metadata.csv')
# 2. Load patient data via manifest
with open('../data/manifest.json', 'r') as f:
manifest = json.load(f)
# 3. Load a specific patient
patient_id, icd = '1', 'Z00'
entry = next(e for e in manifest['files'] if e['patient_id'] == patient_id)
with open(f"../data/{icd}/{entry['file']}", 'r') as f:
patient_data = json.load(f)
# 4. Extract eNose signals
for sensor in patient_data['sensors']:
if sensor['id'] == 'enose':
for channel in sensor['channels']:
print(f"{channel['id']}: {len(channel['samples'])} samples")
Temporal Train/Test Splits
The dataset includes explicit temporal splits to enable drift-aware evaluation. For each disease, test weeks were selected to be temporally separated from training weeks, simulating real-world deployment conditions.
Ethics
The study protocol was approved by the Local Ethics Committee at Anonymized Clinical Institute (SiteA) and Anonymized Research Institute (SiteB).
All participants provided written informed consent.
Citation
If you use this dataset in your research, please cite:
@article{soh2026,
title = {Scent of Health (S-OH): Olfactory Multivariate Time Series Dataset for Non-Invasive Disease Screening},
author = {Anonymized and ...},
journal = {MICCAI Open Data},
year = {2026}
}
License
This dataset is released under the MIT License. See LICENSE.txt for full terms. You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the dataset, subject to the condition that the copyright notice and permission notice are included in all copies or substantial portions.
Contact
For questions or issues, please open an issue on this repository or contact the corresponding author (see paper for details).
- Downloads last month
- 51