APOE event export events - Stanford-STAGES/sev GitHub Wiki

Arousal

arousal.nvt (2004)

  • Bytes per record: 52
  • Code: 6,1
  • Test case: evt=CLASS_codec.parseEmblaEvent('arousal.nvt',256,256);
  • Notes: Counter may be order placed. Three unknowns.
Offset 0 4 8 9 10 12 14 16 20 48
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 uint32 uint32 uint32
Field Start sample Stop Sample Event ID Sub ID Unknown Unknown Unknown Counter? Padding(255) End record (42,.,.,.)
Example 79,182,25,0 78,187,25,0 6 1 0 0 0,0 0/16,0 32/29/,0,2-128,0 255x28 42,175,194,1
a(:,1:20)
    79   182    25     0    78   187    25     0     6     1     0     0     0     0    32     0    41     0     0     0
    56   162    38     0    55   167    38     0     6     1     0     0     0     0    32     0    65     0     0     0
    44   146    73     0    98   151    73     0     6     1     0     0     0     0    35     0     3     0     0     0
     4    12    76     0    58    13    76     0     6     1     0     0     0     0    35     0     2     0     0     0

a(:,end-3:end)
    42   175   194     1
    42   152   124     8
    42    87    86     8
    42     0     0     0

aroual.evt (2003)

  • 2003: arousal.evt
  • Bytes per record: 16
  • Code: 6,1
  • Test case:

evt=CLASS_codec.parseEmblaEvent('arousal.evt',256,256);

Offset 0 4 8 9 10 12 14
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16
Field Start sample Stop sample Event ID Sub ID Unknown Unknown End Record (10/11)
Example 1 52,227,100,0 47,230,100,0 6 1 0 0 0 0 10,0
Example 2 0,84,111,0 235,87,111,0 6 1 0 0 0 0 10,8
Example 3 - - 6 1 0 0 4 0 11,0
   168    48     2     0   215    48     2     0     6     1     0     0     0     0    10     0
    52   227   100     0    47   230   100     0     6     1     0     0     0     0    10     0
     0    84   111     0   235    87   111     0     6     1     0     0     0     0    10     8

BadData

BadData.evt (2003)

  • Bytes per record: 20
  • Code: 5,1
  • Test cases:

evt=CLASS_codec.parseEmblaEvent('BadData.evt',256,256);

Offset 0 4 8 9 10 14 16
Data type uint32 uint32 uint8 uint8 uint32 uint16 uint32
Field Start sample Stop sample Event ID Event ID Padding(0) ? ?
Example 66,47,9,0 7,243,9,0 5 1 0 0 0 0 63 0 10 2 152 28
Example 91,182,23,0 115,202,24,0 5 1 0 0 0 0 63 0 10 0 0 0
    66    47     9     0     7   243     9     0     5     1     0     0     0     0    63     0    10     2   152    28
    91   182    23     0   115   202    24     0     5     1     0     0     0     0    63     0    10     0     0     0
   178   127    73     0   152   112    74     0     5     1     0     0     0     0    63     0    10    24   238     0
   185    95   120     0   226   250   121     0     5     1     0     0     0     0    63     0    10     0     0     0

   145    48   128     0    62   246   128     0     5     1     0     0     0     0    63     0    10    32   248    32

2006 example:
   158   166     5     0    46   187     5     0     5     1     0     0     0     0    40     0    42     0     0     0
    72   211     6     0    81    15     7     0     5     1     0     0     0     0    40     0    42   255   255   255
    43     2     8     0    24    49     8     0     5     1     0     0     0     0    40     0    42     0     0     0
   221   121     8     0   247   166     8     0     5     1     0     0     0     0    40     0    42   255   255   255
   201   107     9     0   244   173     9     0     5     1     0     0     0     0    40     0    42     0     0     0
   171   198     9     0   116   254    10     0     5     1     0     0     0     0    40     0    42     0     0     0
   154    29    11     0   211    61    11     0     5     1     0     0     0     0    40     0    42   255   255   255
    68    94    15     0   175   136    15     0     5     1     0     0     0     0    40     0    42     0     0     0

Biocals

2002

  • Date: 12/2002
  • Bytes per record: 524
  • Code: _13 1 _
Offset 0 4 5 6 10 >10 <522 522 523
Data type uint32 uint8 uint8 uint32 uint16 uint16 uint64 uint8 uint8
Field Start sample Biocal ID Biocal ID Padding Description (string) Padding/break point Memory address (10) (0)
Example 1 172 53 22 0 13 1 0 69 0 121 0 101 0 ... 0 0 0 0 238 2 0 0 64 1 10 0
Example 2 232 76 22 0 13 1 0 114 0 105 0 103 0 ... 0 0 68 1 0 0 52 3 0 1 10 0

Custom

custom.evt ()

  • Bytes per record: 12
  • Code: 20, ?
  • Test cases:

evt=CLASS_codec.parseEmblaEvent('custom.evt',256,256);

Offset 0 4 5 6 10
Data type uint32 uint8 uint8 uint32 uint16
Field Start sample Event ID Event ID Padding(0) ?
Example 144,6,23,0 20 9 0 0 0 0 10 23

2003/2002

144     6    23     0    20     9     0     0     0     0    10    23
228   184    47     0    20     2     0     0     0     0    10    67
219   103   129     0    20    10     0     0     0     0    10   151

53   178    14     0    20     9     0     0     0     0    10     0
129   167   112     0    20    10     0     0     0     0    10     0

35    26    26     0    20     9     0     0     0     0    10     0
244   144   134     0    20    10     0     0     0     0    10     0

Desat

Codebook

  • Related event tags
    • 4 w/Respiratory
    • 0 none

desat.evt

  • Year: 2003
  • Bytes per record: 48
  • Code: 8,1
  • Test cases:

evt=CLASS_codec.parseEmblaEvent('desat.evt',256,256);

Offset 0 4 8 9 10 12 14 16 20 24 32 40
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 int32 int32 double double double
Field Start sample Stop sample Event ID Event ID Desat Type (2) Related Event flag (4/0) (unknown) Computer start Computer Stop High Saturation Low Saturation Unknown
Example 4070528 4090304 8 1 2 0 -1 -1 -1 98.1436 94.9682 35.0519
Example 4097792 4101120 8 1 2 4 -1 4095392 4098016 98.1436 93.0142 35.5556
a(1:16)
    64   133   112     0   128   171   112     0     8     1     2     0     0     0   146     1
a(25:48)
   235   170   240    81    36     3    89    64    84   154   228    49   199    51    88    64     8     0     0     0   200     4   168     3

desat.nvt

  • Year: 2004
  • Bytes per record: 80
  • Code: 8,1
  • Test cases:

evt=CLASS_codec.parseEmblaEvent('desat.nvt',256,256);

Offset 0 4 8 9 10 12 14 16 24 32 40 42 46 48 76
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 uint64 double double uint16 uint32 uint16 uint32 uint32
Field Start sample Stop sample Event ID Event ID Desat Type (2) Related event tag (4/0) Padding(0) Padding(255) High Saturation Low Saturation Padding(255) Unknown Padding(0) Padding(255) Unknown
Example 128,28,62,0 192,105,62,0 8 1 2 0 0 0 0 0 255x8 0x4 0,128,88,64 0x4 0,64,87,64 255x2 56 95 1 0 0 0 255x28 41,108,0,0

Filesect

filesect.evt (2003)

  • Bytes per record: 528
  • Code: 16,1
  • Test cases: evt=CLASS_codec.parseEmblaEvent('filesect.evt',256,256);
Offset 0 4 5 6 10 10+2n (85-86) 12+2n (87-106)*29 524-527
Data type uint32 uint8 uint8 uint32 utf-16le utf-16le mixed uint32
Field Start sample Event ID Event ID Padding(0) Text Text stop signal <20 byte subrecords?> End signal
Example 252,218,73,0 16 1 0 0 0 0 84 0, 69 0 0 0 2 0 8 42 10 0 31 0
reshape(a(87:526),20,[])'

     2     0     8    42    36    73   254    66   128     0     0    65   130     0     5     1     0     0     0     0
     3     0     8    29   152   138   254    66   128     0     0    65   130     0     5     1     0     0     0     0
     4     0     8    97   110   124   254    66   128     0     0    65   130     0     5     1     0     0     0     0
     5     0     8    28    36   136   254    66   128     0     0    65   130     0     5     1     0     0     0     0
     6     0     8    23    81     6   254    66   128     0     0    65   130     0     5     1     0     0     0     0
     7     0     8   107   122    83   254    66   128     0     0    65   130     0     5     1     0     0     0     0
     8     0     8    65     1    88   254    66   128     0     0    65   130     0     5     1     0     0     0     0
     9     0     8   123   122    85   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    10     0     8     2    86     4   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    11     0     8    39    46    69   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    12     0     8     9    95    88   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    13     0     8    30     6    76   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    14     0     8     0   144     1   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    15     0     8     0     0     0   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    16     0     8     4     6     0   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    17     0     8    86    19     0   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    18     0     8     0    10     0   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    26     0     8     4     6     0   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    27     0     8     9    64     0   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    28     0     8     0    10     1   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    29     0     8     3     4     0   254    66   128     0     0    65   130     0     5     1     0     0     0     0
    30     0     8   166   119     0   254    66   128     0     0    65   130     0     5     1     0     0    10     0

Hr

hr.evt (2003)

  • Bytes per record: 32
  • Code: 0,0
  • Test cases: evt=CLASS_codec.parseEmblaEvent('hr.evt',256,256);
Offset 0 4 8 9 10 12 16 20 24 28
Data type uint32 uint32 uint8 uint8 uint16 float uint32 float uint32 uint32
Field Start sample Stop Sample Event ID Event ID Padding(0) Start value Padding(0) Stop Value ? Record end
Example 191,202,40,0 203,203,40,0 0 0 0 0 3.7559 0,0,0,0 -3.5254 11,5,0,0 0,0,10,0
a(:,1:12)
   191   202    40     0   203   203    40     0     0     0     0     0
    33   227    48     0   218   229    48     0     0     0     0     0
   220    57    49     0    34    60    49     0     0     0     0     0

a(:,13:32)
     0    96   112    64     0     0     0     0     0   160    97   192    11     5     0     0     0     0    10     0
     0   160    97   192     0     0     0     0     0   208   117   192    11     5     0     0     0     0    10     0
     0     0    87   192     0     0     0     0     0     0   118   192    11     5     0     0     0     0    10     0

numeric

Codebook

  • Sub ID
    • CPAP(1)
    • Bilevel(2)
    • Unknown(3)
  • Double values
    • CPAP(1)
    • Bilevel-IPAP(1)
    • Bilevel-EPAP(2)
    • Unknown(3)

numeric.evt

  • Year: 2006
  • Bytes per record: 40
  • Code: 3,
  • Test cases:
    1. evt=CLASS_codec.parseEmblaEvent('numeric.evt',256,256);
  • Possibly corrupted test cases:
    1. char(a(:,[1:8,15:16,25:32,end-4:end]))
Offset 0 4 8 9 10 12 14 16 24 32
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 double double/utf-16 uint64
Field Start sample Stop sample/Text Event ID Sub ID Unused Unused /Text Measure 1 Measure 2/Text Unknown
a(1:4,:)
   198   252    11     0    28     0     0     0     3     1     0     0     0     0     0     0     0     0     0     0     0     0    24    64   111     0   110     0    32     0    83     0     1     0    42     0   101     0   101     0
    72    69    32     0    66     0   117     0     3     1     0     0     0     0   114     0     0     0     0     0     0     0    24    64   105     0   111     0   110     0   115     0     1     0    42     0     0     0     0     0
   150   231    45     0   103     0   105     0     3     1     0     0     0     0    32     0     0     0     0     0     0     0    28    64   110     0   110     0   111     0   116     0     1     0    42     0   115     0   101     0
   178   176    51     0    97     0    99     0     3     1     0     0     0     0   105     0     0     0     0     0     0     0    32    64    32     0   110     0   111     0   116     0     1     0    42     0   117     0   108 

a
    39   207    70     0   191    97    24     0     3     1     0     0     0     0    10     6     0     0     0     0     0     0    20    64     0     0    10    28    95   237    25     0     1     0    10     0     0     0    10    17
    63   218    71     0     2     4     6     0     3     1     0     0     0     0    43     0     0     0     0     0     0     0    24    64    87   235    50     0     2     4     6     0     1     0    10   136   128   110    57     0
   223   231    87     0     0     0    10     8     3     1     0     0     0     0     3     0     0     0     0     0     0     0    28    64     2     3     4     0     0     0    10    11     1     0    10     0     2     4     6     0
   119    84    96     0   200   190    95     0     3     1     0     0     0     0    10    81     0     0     0     0     0     0    32    64     0     0    10   121   183   151   116     0     1     0    10     0     0     0    10    90

numeric.nvt

  • Year: 2005
  • Bytes per record: 40
  • Code: 3,
  • Test cases: evt=CLASS_codec.parseEmblaEvent('numeric.nvt',256,256);

Similar results, but stop sample is definitely strange...

a =

   130   186     2     0     0   177     1   212     3     1     0     0     0     0     1   212     0     0     0     0     0     0    20    64   150   180   197     1     0     0     0     0     1     0    42     0   164   229    18     0
    50    76     7     0    68    97   116    97     3     1     0     0     0     0   121    80     0     0     0     0     0     0    24    64   115    46   100   104   114     0    53    45     1     0    42    49    95    50    50    45
   238    49    14     0    54    95    98   101     3     1     0     0     0     0   114   101     0     0     0     0     0     0    28    64   169    53   153    54     1     1     1     1     1     0    42    66    66    67    66    66
   230   183    20     0    67    68    69    70     3     1     0     0     0     0    69    70     0     0     0     0     0     0    32    64    71    69    71    70    71    72    71    71     1     0    42    70    68    69    68    69
   189    23    26     0    71    70    69    68     3     1     0     0     0     0    65    66     0     0     0     0     0     0    34    64    72    73    75    76    78    78    79    79     1     0    42    78    79    80    79    78
   242   239    35     0    74    73    73    73     3     1     0     0     0     0    69    68     0     0     0     0     0     0    36    64    66     1     2     2     2     3     3     3     1     0    42     2     3     4     5     7
    49    27    81     0    12    14    15    17     3     1     0     0     0     0    26    24     0     0     0     0     0     0    38    64    17    15    14    12    10     8     7     7     1     0    42     8     8     7     7     6
     1   141    98     0     4     5     5     6     3     1     0     0     0     0     3     3     0     0     0     0     0     0    40    64    68    66    69    76    90    75   126    68     1     0    42    82     0    71    28    71

plm

Codebook

  • Associated leg
    • 1 Left
    • 2 Right
    • 3 Both
  • With Arousal
    • 0 No
    • 1 Yes

plm.nvt

  • Bytes per record: 52
  • Code: 9,2
  • Test cases: evt=CLASS_codec.parseEmblaEvent('plm.nvt',256,256);
Offset 0 4 8 9 10 12 14 16 20 48
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 uint32 uint32 uint32
Field Start sample Stop Sample Event ID Sub ID Associated leg Arousal Flag Arousal Field Record Count Padding(255) End record (40/42,.,.,.)
Example 134,51,35,0 178,52,35,0 9 2 2,0 0,0 255,255 0,0,0,0 255x28 40,255,255,255
a(1:z,1:20)
   134    51    35     0   178    52    35     0     9     2     2     0     0     0   255   255     0     0     0     0
   220    95    35     0    89    96    35     0     9     2     2     0     0     0   255   255     1     0     0     0
    67   108    35     0   236   109    35     0     9     2     2     0     0     0   255   255     2     0     0     0
    14   121    35     0   239   121    35     0     9     2     2     0     0     0   255   255     3     0     0     0
   107   168    35     0   251   169    35     0     9     2     2     0     0     0   255   255     4     0     0     0
   216   204    35     0    54   206    35     0     9     2     2     0     0     0   255   255     5     0     0     0
   128   252    35     0   135   255    35     0     9     2     2     0     0     0   255   255     6     0     0     0
   223    26    36     0   161    28    36     0     9     2     3     0     0     0   255   255     7     0     0     0
    59    45    36     0   247    47    36     0     9     2     2     0     0     0   255   255     8     0     0     0
   240    43    37     0   152    45    37     0     9     2     3     0     1     0     7     0   111     1     0     0
   208    60    37     0   144    62    37     0     9     2     3     0     1     0     7     0   112     1     0     0
   230    73    37     0   143    75    37     0     9     2     2     0     0     0   255   255    11     0     0     0
   200    87    37     0    21    89    37     0     9     2     3     0     1     0     7     0   113     1     0     0
    57   106    37     0    20   108    37     0     9     2     2     0     0     0   255   255    13     0     0     0

a(x:y,49:52)
    40   255   255   255
    40     0     0     0
    40     2   165     2
    40   255   255   255
    40   255   255   255
    40   255   255   255
    40     1     0     0
    40   255   255   255
    40   255   255   255
    40     0   165     2
    40   176    11     9
    40     2   164     2
    40     2   164     2
    40     2   161     2
    40     2   164     2
    40     2   161     2

plm.evt (2003)

  • Bytes per record: 16
  • Code: 9,2
  • Test cases: evt=CLASS_codec.parseEmblaEvent('~/data/ssc/4682_3-26-2003/hr.evt',256,256);
Offset 0 4 8 9 10 12 14
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16
Field Start sample Stop Sample Event ID Event ID Associated leg Has Arousal Record end
Example 191,202,40,0 203,203,40,0 9 2 3 0 1 0 10 192
   190    71    29     0   150    74    29     0     9     2     3     0     1     0    10   192
   122   229    29     0    97   232    29     0     9     2     3     0     0     0    10   192
   183     3    30     0   182     5    30     0     9     2     3     0     0     0    10    64
   168    53    35     0   184    56    35     0     9     2     3     0     1     0    10    64
    15   116    35     0    84   117    35     0     9     2     3     0     0     0    10    64
    13     0    36     0    12     2    36     0     9     2     3     0     1     0    10   192
    19    38    36     0   174    41    36     0     9     2     3     0     1     0    10   192
    59   110    36     0   181   112    36     0     9     2     3     0     0     0    10   191
   166   150    36     0   165   152    36     0     9     2     3     0     1     0    10    64
   100   179    36     0    99   181    36     0     9     2     3     0     0     0    10    64
   214   207    36     0   213   209    36     0     9     2     3     0     0     0    10    60
    22   232    36     0    21   234    36     0     9     2     3     0     0     0    10   192

resp

Codebook

  • Respiratory Type
    • 1 Apnea
    • 2 Hypopnea
    • 5 RERA
  • Mediated Type
    • 1 Central
    • 2 Mixed
    • 3 Obstructive
  • Arousal (guessing)
    • 0 (None)
    • 1 w/Arousal
    • 32 w/Desat
    • 33 w/Desat and arousal

resp.nvt (2004)

  • Bytes per record: 80
  • Code: 7,?
  • Test cases: _evt=CLASS_codec.parseEmblaEvent('resp.nvt',256,256); _
Offset 0 4 8 9 10 12 14 16 40 44 48 76
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 uint64 uint32 uint32 uint64 uint32
Field Start sample Stop sample Event ID Respiratory Type Mediated Type Arousal Unknown Padding Signal Order placed Padding Record stop
Example 109,150,37,0 44,176,37,0 7 5 0 0 0 0 0 0 255x8 0x16 5,0,0,0 7,0,0,0 255x28 42,2,0,0
a(1:5,1:16)
   109   150    37     0    44   176    37     0     7     5     0     0     0     0     0     0
   149   207    37     0    30   236    37     0     7     5     0     0     0     0     0     0
   158    35    38     0    60    58    38     0     7     2     3     0    33     0     0     0
   112    66    38     0   176    87    38     0     7     2     3     0    33     0     0     0
   148   117    38     0   201   140    38     0     7     2     3     0    33     0     0     0

a(1:5,41:48)
     5     0     0     0     7     0     0     0
     5     0     0     0     8     0     0     0
     3     0     0     0     6     0     0     0
     3     0     0     0    10     0     0     0
     3     0     0     0     9     0     0     0

a(1:5,end-3:end)
    42     2     0     0
    42     2     0     0
    42     2     0     0
    42     2     0     0
    42     2     0     0

resp.evt (2003)

  • Bytes per record: 48
  • Code: 7,?
  • Test cases: _evt=CLASS_codec.parseEmblaEvent('resp.evt',256,256); _
Offset 0 4 8 9 10 12 14 16 40
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 uint64 uint64
Field Start sample Stop sample Event ID Respiratory Type Mediated Type Arousal Unknown Padding Unknown
Example 51,115,29,0 43,140,29,0 7 2 3 0 33 0 21 137 0x8 255x16 10,135,126,136 235,137,245,134
  • Respiratory Type
    • 1 Apnea
    • 2 Hypopnea
    • 5 RERA
  • Mediated Type
    • 1 Central
    • 2 Mixed
    • 3 Obstructive
  • Arousal (guessing)
    • 0 (None)
    • 1 w/Arousal
    • 32 w/Desat
    • 33 w/Desat and arousal
a(1:5,1:16)
    51   115    29     0    43   140    29     0     7     2     3     0    33     0    21   137
   102   107    48     0    75   156    48     0     7     5     0     0     0     0   136    59
    99   123    52     0    25   151    52     0     7     5     0     0     0     0   166   136
   204   231    52     0   171     1    53     0     7     2     3     0    33     0   137   126
     2    33    62     0    25    51    62     0     7     2     3     0    33     0   136   182

a(1:5,17:end)
   255   255   255   255   255   255   255   255     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0    10   135   126   136   235   137   245   134
   255   255   255   255   255   255   255   255     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0    10   135   139    22    47   136   190   135
   255   255   255   255   255   255   255   255     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0    10   136     1    85    49    81   135   126
   255   255   255   255   255   255   255   255     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0    10   126   133   233   137    92   136   253
   255   255   255   255   255   255   255   255     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0     0    10   134   243   136    13   136   127   136

snore

snore.evt (2003)

  • Bytes per record: 16
  • Code: 10,1
  • Test cases: evt=CLASS_codec.parseEmblaEvent('snore.evt',256,256);
Offset 0 4 8 9 10 12 14
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16
Field Start sample Stop Sample Event ID Event ID Respiratory event Has Arousal Record end
Example 122,154,6,0 60,169,6,0 10 1 0 0 1 0 10 64
  • Respiratory event
    • unknown
  • Has arousal
    • 0 No
    • 1 Yes
   155   189     8     0    38   205     8     0    10     1     0     0     1     0    10    64
   207    21    11     0   134    39    11     0    10     1     0     0     1     0    10    64
   164   117    11     0    75   135    11     0    10     1     0     0     1     0    10     0
    45   243    14     0   236     6    15     0    10     1     0     0     1     0    10     0

snore.nvt (2004+)

  • Bytes per record: 52
  • Code: 10,1
  • Test cases: evt=CLASS_codec.parseEmblaEvent('snore.nvt',256,256);
Offset 0 4 8 9 10 12 14 16 20 24 28 48
Data type uint32 uint32 uint8 uint8 uint16 uint16 uint16 uint32 uint32 uint32 uint32 uint32
Field Start sample Stop Sample Event ID Event ID Snore Type Respiratory event Has Arousal Counter Padding(255) Assoc signal(?) Padding(255) End record
Example 155,100,78,0 84,128,78,0 10 1 0 0 0 0 1 0 120,0,0,0 255x4 255x4 255x20 42,161,42,8
  • Respiratory event
    • 4 Yes
    • 0 No
  • Has arousal
    • 0 No
    • 1 Yes
a(:,1:24)
   155   100    78     0    84   128    78     0    10     1     0     0     0     0     1     0   120     0     0     0   255   255   255   255
   159    70    84     0     1   103    84     0    10     1     0     0     0     0     1     0   122     0     0     0   255   255   255   255
   246    71    85     0   118    97    85     0    10     1     0     0     0     0     1     0   123     0     0     0   255   255   255   255
   144   171    86     0     8   173    86     0    10     1     0     0     0     0     1     0     1     0     0     0   255   255   255   255
    59   178    86     0    13   180    86     0    10     1     0     0     0     0     1     0     0     0     0     0   255   255   255   255
   116    25   119     0   108    27   119     0    10     1     0     0     4     0     1     0     2     0     0     0   255   255   255   255
   157   157   125     0   149   159   125     0    10     1     0     0     0     0     1     0     4     0     0     0   255   255   255   255

a(:,25:52)

   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255    42   161    42     8
   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255    42   194   179     1
   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255    42    26   176     1
   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255    42    78   177     1
   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255    42   103   222     8
     3     0     0     0   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255    42   203    12     8
   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255   255    42     9   195     1

Stage

stage.evt

  • Bytes per record: 12
  • Code: 1,?
  • Test cases: evt=CLASS_codec.parseEmblaEvent('snore.nvt',256,256);
Offset 0 4 5 6 10 11 12
Data type uint32 uint8 uint8 uint32 uint8 uint8
Field Start sample Event ID Stage ID Unknown Unknown Record end signal unknown
Example 0,84,36,0 ` 1 1 0,0,0,0 34 0
  • Stage ID
    • 1 Wake
    • 2 Stage 1
    • 3 Stage 2
    • 4 Stage 3
    • 5 Stage 4
    • 7 REM
a(1:5,:)
     0    84    36     0     1     1     0     0     0     0    34     0
     0   114    36     0     1     1     0     0     0     0    34   192
     0   144    36     0     1     1     0     0     0     0    34     0
     0   174    36     0     1     1     0     0     0     0    34    63
     0   204    36     0     1     1     0     0     0     0    34     0

Tag

tag.evt 2003

  • Date: 3/2003
  • Bytes per record: 12
  • Event code: 2
Offset 0 4 5 6 7 8
Data type uint32 uint8 uint8 uint8 uint8 uint32
Field Start sample Event code Label Sublabel Side position Unknown
Example 1 125, 47, 3, 0 2 1 2 0 0, 0, 10, 0
Example 2 187, 28, 32, 0 2 4 7 1 0, 0, 10, 0
  • Label:

    • Lights(1)
    • Bathroom(2)
    • Tech(3)
    • Position(4)
    • Cough(5)
    • Feeding(6)
  • Sublabel:

    • On(1)
    • Off(2)
    • In(3)
    • Out(4)
    • Prone(5)
    • Supine(6)
    • Side(7)
  • Side position:

    • Left(1)
    • Right(2)
  • Example

    125    47     3     0     2     1     2     0     0     0    10     0  
    151    54     3     0     2     4     6     0     0     0    10     0  
    247   183    17     0     2     4     6     0     0     0    10     0  
    187    28    32     0     2     4     7     1     0     0    10     0  
    148     2    62     0     2     4     7     1     0     0    10     0  
    104   133    88     0     2     3     3     0     0     0    10    91  
     38   188    88     0     2     2     3     0     0     0    10     0  
    241    90    90     0     2     3     4     0     0     0    10     0  
    155   154   101     0     2     1     1     0     0     0    10     0  
    

user

user.evt (2003)

  • Bytes per record: 524
  • Code: 4,1
  • Test cases: evt=CLASS_codec.parseEmblaEvent('~/data/ssc/1958_10-31-2003/filesect.evt',256,256);
Offset 0 4 5 6 10 10+2n 12+2n 522
Data type uint32 uint8 uint8 uint32 utf-16le utf-16le mixed uint16
Field Start sample Event ID Event ID Padding(0) Text Text stop signal Unknown Record stop
Example 216,247,8,0 4 1 0 0 0 0 78 0 ... 0 0 ? ? ? ? 10 93
a(:,1:14)
   216   247     8     0     4     1     0     0     0     0    78     0    79     0
   196    15    80     0     4     1     0     0     0     0    84     0    69     0
    89   178   112     0     4     1     0     0     0     0    87     0    73     0

a(:,end-20:end)
     1   132   147   135    46   137   234   139   113   140     4    73   114    88     6    70    77    89    84    10    93
    69    65    69    77    75    75    72    72    74   152   101    69    66    73    74    79    67    67    77    10    72
   135   128   138    14   139    26   139   114   105   138   221    67   139    31   138   218   138   128   106    10     2