BDF, BDF+ and Recordings With Gaps

Topic | 4 min read

24-bit BioSemi BDF files, their Status triggers, and EDF+D / BDF+D recordings whose data has gaps.

BDF and BDF+

BDF is the 24-bit form of EDF that BioSemi systems write; BDF+ adds an annotation signal (“BDF Annotations”). EEG TraceLab reads every sample at its full 24-bit resolution (digital values from −8,388,608 to 8,388,607), converts it with the channel's physical and digital range like EDF, and never rounds it to 16 bits.

Every copy of a BDF recording stays BDF: the De-identified BDF Copy, the Annotated BDF+ Copy (with a 3-byte “BDF Annotations” signal) and a Research Handoff's optional copy (raw/header-anonymised.bdf) keep every sample byte for byte.

Status channel and trigger events

A BioSemi file's last channel, “Status”, holds the trigger inputs and device status bits, not EEG. It is never a voltage channel: it is not selected by default and stays out of montages, average reference, spectra and every analysis. Channels can still show it as recorded.

Its trigger codes become events read from the file: each time the lower 16 bits change to a code other than 0, an event “Trigger N” starts at that sample (a code present from the first sample is the starting state, not an event). Device status bits (16 to 23) never make events. The events appear in Annotations, can be edited like any file annotation, and go into the Annotation CSV, events.tsv and the Annotated BDF+ Copy. The first 4,000 are read.

EDF+D and BDF+D: recordings with gaps

In EDF+D and BDF+D files the data records may leave gaps. Each record starts at the time its time-keeping annotation gives, so every sample keeps its real time in seconds from the first sample, and annotations keep their times from the file.

EDF+D and BDF+D need their annotation signal for the record times; a file without one is declined. A header that says EDF+C or BDF+C but has no annotation signal (some tools, such as EDF.jl, write these) opens as a plain continuous recording, as EDFlib reads it.

A record that starts before the previous one ends overlaps it, which EDF+ does not allow (some systems write this when their clock is adjusted). EEG TraceLab leaves such records out instead of moving them: they are not shown or analysed, a marker in the Viewer shows where (“1 overlapping record not shown”), and the recording's page says how many. The copies keep every record.

Gaps are never compressed. The Viewer shows each gap as empty time with its length (“No data, 12 s”); nothing is drawn, filtered or measured across it, and each side of a gap is filtered on its own.

Spectra, analyses, Preprocess, signal exports and Research Handoffs use one continuous segment at a time: a range that crosses a gap is refused with the segments you can choose instead, never shortened or joined across the gap. Choose a Custom Segment inside one segment. Recording Overview is the exception: it covers the whole recording, leaves each gap blank as No data, and keeps every window inside one segment.

The Free preview is the first 10 minutes of recorded data: gaps do not count, so it ends later than 10:00 when a gap comes first.

The Annotated EDF+ Copy of an EDF+D file stays EDF+D (BDF+D for BDF+D) and keeps every record's onset, so the gaps stay where they were.

A record that starts between two samples is placed on the nearer sample (within half a sample period); its onset is kept exactly in the Annotated Copy.

Export Segment saves a range that spans a gap as EDF+D or BDF+D, with every record’s onset counted from the new start, so each gap keeps its length; a range inside one segment becomes EDF+C or BDF+C. A BDF segment stays 24-bit at the original rate.

Online EEG Reviewer

The Online EEG Reviewer on eegtracelab.com reads BDF, BDF+, EDF+D and BDF+D the same way: 24-bit samples, Status triggers as events, gaps shown as empty time and a Free preview of the first 10 minutes of recorded data.

BDF, BDF+ and Recordings With Gaps

Topic | 4 min read

24-bit BioSemi BDF files, their Status triggers, and EDF+D / BDF+D recordings whose data has gaps.

BDF and BDF+

BDF is the 24-bit form of EDF that BioSemi systems write; BDF+ adds an annotation signal (“BDF Annotations”). EEG TraceLab reads every sample at its full 24-bit resolution (digital values from −8,388,608 to 8,388,607), converts it with the channel's physical and digital range like EDF, and never rounds it to 16 bits.

Every copy of a BDF recording stays BDF: the De-identified BDF Copy, the Annotated BDF+ Copy (with a 3-byte “BDF Annotations” signal) and a Research Handoff's optional copy (raw/header-anonymised.bdf) keep every sample byte for byte.

Status channel and trigger events

A BioSemi file's last channel, “Status”, holds the trigger inputs and device status bits, not EEG. It is never a voltage channel: it is not selected by default and stays out of montages, average reference, spectra and every analysis. Channels can still show it as recorded.

Its trigger codes become events read from the file: each time the lower 16 bits change to a code other than 0, an event “Trigger N” starts at that sample (a code present from the first sample is the starting state, not an event). Device status bits (16 to 23) never make events. The events appear in Annotations, can be edited like any file annotation, and go into the Annotation CSV, events.tsv and the Annotated BDF+ Copy. The first 4,000 are read.

EDF+D and BDF+D: recordings with gaps

In EDF+D and BDF+D files the data records may leave gaps. Each record starts at the time its time-keeping annotation gives, so every sample keeps its real time in seconds from the first sample, and annotations keep their times from the file.

EDF+D and BDF+D need their annotation signal for the record times; a file without one is declined. A header that says EDF+C or BDF+C but has no annotation signal (some tools, such as EDF.jl, write these) opens as a plain continuous recording, as EDFlib reads it.

A record that starts before the previous one ends overlaps it, which EDF+ does not allow (some systems write this when their clock is adjusted). EEG TraceLab leaves such records out instead of moving them: they are not shown or analysed, a marker in the Viewer shows where (“1 overlapping record not shown”), and Details, under the Viewer's More, says how many. The copies keep every record.

Gaps are never compressed. The Viewer shows each gap as a band of grey lines across every row with its length (“Gap 12 s”); nothing is drawn, filtered or measured across it, and each side of a gap is filtered on its own.

Spectra, analyses, Preprocess, signal exports and Research Handoffs use one continuous segment at a time: a range that crosses a gap is refused with the segments you can choose instead, never shortened or joined across the gap. Choose a Custom Segment inside one segment. Recording Overview is the exception: it covers the whole recording, leaves each gap blank as No data, and keeps every window inside one segment.

The Free preview is the first 10 minutes of recorded data: gaps do not count, so it ends later than 10:00 when a gap comes first.

The Annotated EDF+ Copy of an EDF+D file stays EDF+D (BDF+D for BDF+D) and keeps every record's onset, so the gaps stay where they were.

A record that starts between two samples is placed on the nearer sample (within half a sample period); its onset is kept exactly in the Annotated Copy.

Export Segment saves a range that spans a gap as EDF+D or BDF+D, with every record’s onset counted from the new start, so each gap keeps its length; a range inside one segment becomes EDF+C or BDF+C. A BDF segment stays 24-bit at the original rate.

Online EEG Reviewer

The Online EEG Reviewer on eegtracelab.com reads BDF, BDF+, EDF+D and BDF+D the same way: 24-bit samples, Status triggers as events, gaps shown as empty time and a Free preview of the first 10 minutes of recorded data.