A Tool For Sleep Classification
A Tool For Sleep Classification
Keywords: automatic scoring, sleep stages, polysomnography, With the advancement in digital signal processing
AASM, hypnogram techniques, several other used frequency spectral analysis [7],
neural network analysis [8], multidimensional scaling and
wavelets techniques or expert system approaches [9] to develop
I. INTRODUCTION
automatic sleep staging system. We thus describe the
developed staging process combine many methods to detect
Sleep was described as a succession of five repeating stages features of each sleep stages. For each data, we apply many
by Rechtschaffen and Kale (R&K) in 1968: the rapid eye tool to filter, analyse both time domain and frequency domain
movement (REM) stage and four nonrapid eye movement to collect the valuable information to calculating. After
(NREM) stages, SI, S2, S3, S4 [I]. It has not been changed classification and post-processing, the results was been
until 2007 the American Academy of Sleep Medicine updated checked again to against some errors by analysing in single
part of it. S3 and S4 were grouped into one stage and signed epoch. A description of the algorithms corresponding to these
N3 stage [2]. Thus following the AASM 2007 rules, NREM different processes is also provided.
sleep has three major stages: NI, N2, N3 replace for SI, S2, S3
or S4, respectively.
II. METERlALS AND METHODS
Polysomnography (PSG) is a psycho-physiological method
for the assessment of sleep and wake states. It is based on the
concurrent recording of brain electroencephalography (EEG), A. Experimental Data
chin electromyography (EMG) and electro-oculography (EOG)
signals collected in human individuals using non-invasive Before each experiment, subject was explained for the
surface electrodes. PSG allows for the description of different purpose and procedures of the study. Then they were asked to
sleep-wake states, which may exhibit abnormal qualitative and fill out a questionnaire which was kept confidential and
quantitative changes with clinical conditions and included patient's identification. Informed consent and health
environmental situations. It is the golden standard in the information inquiry form that had been filled out by the
diagnosis of sleep disorders [3]. volunteers was also obtained. Before they sleep, we did not use
any kind of medicine, stimulant or sedation. The whole night
neurological and psychological signs and symptoms. The data Alpha (8-13Hz) 12 1 0
of each subject, including EEG, EOG and EMG signals. In this Beta (>13Hz) 4 1 0
study, one channel of EEG were analyzed from the C3-A2
derivation, two channels of EOG include Left EOG and Right Theta (4-7Hz) 21 1 0
EOG signals with a sampling rate of 100Hz, one channel of Delta (1-3Hz) 43 1 0
Chin EMG with 200Hz in sampling rate.
Slow waves (1-3Hz) 800 1 0
EEG cup-electrodes were attached onto the scalp of the
EOG «0.5Hz) 2500 1 0
subjects according to the international 10-20 system for
electrodes placement. EOG and EMG electrodes were attached
onto the skin [3], Fig 2. The patient preparation, and To separate the rapid-eye-movement s (REMs) from slow
instrumental setup were done according to AASM guidelines eyes-movements (SEMs), prior to any detection, the two
[2] and Sleep Technician Guide of Alice 5 device [11]. channels of EOG data are filtered using a fourth-order digital
Butterworth bandpass filter with cut offs at 1 and 5Hz to yield
Sleep-wake stages were scored according to conventional
the filtered EOG data . This effectively minimizes false
criteria using a fixed epoch duration of 30s. Each epoch was
detections due to SEMs as REMs as well as any high frequency
classified exclusively amongst six possible stages: wakefulness
noise [13]. We detect the Candidate of REM in each epoch
(W), transitional sleep (N1), shallow sleep (N2), deep sleep
which is the characteristic of REM appearance [14]. Detection
(N3), REM sleep (R) and movement time (MT).
of rapid eye movement is based upon correlation coefficients
between two EOG derivations and deflection between left and
right EOG.
EGelectrode
30 seconds I epoch
C3M2 (EEG). LOC + ROC (EoG), EMG
B. Methods
308
• Detection of Body movements or Artifact signals m. RESULTS
Movement Time (MT) is a separate stage assigned in case The system used for all the computations, including the
of EEG, EOG or EMG signals obscured in more than half the algorithm of automatic sleep stage classification, is complete
epoch by muscle tension or amplifier blocking artifacts source code base on Matlab computing language. We develop
associated with movement of the subject. Movement artifacts this user interface for anyone use our software easier and
are usually reflected in a big increase of the amplitude of EEG, permit they manually adjusting the thresholds value for some
EOG and EMG signals. The values of amplitude signal are specific case, for example: with human that have a sleep apnea
compared to thresholds, determined from the training data: ± or older people, threshold to detect appearance of Alpha wave
300 flV. The tonic EMG activity differs across the sleep stages must be higher than another people in normal. By this way, a
and time of sleep. It almost always reaches its lowest level doctor can check correctly scored epoch following traditional
during stage REM-this fact is used in the scoring of sleep method that he or she has more experiments. (Fig 4)
stages. To determine relative level of tone EMG signal, for
each 30-s epochs of filtered EMG signal. This procedure was ) Full Sirep Sl� r-l-!5Cl
adopted to reject the burst-type high activities of EMG EE GWalies Thresholcl ofP'ower
Pnks owtr
Thrutll:lld
occurred also in stage REM. Thresholds for the value of tone �hO(8-IlHz)S-- r=-
-l _____
- � 12 Epo<n .. n I
EMG, detecting stage REM, were determined on the basis of eoto(I3-30Hz)£J � • Epoch""", SOl
The"'(4.7Hz)� I .1 ,.
the data collected to train the system. These thresholds are O""(1.�Hzj� C.I 0 [ R..PIot I
computed for each sleep recording as the average EMG tone of _ ......S(02.o1Hz) ·r [ '1 !IX)
all the epochs (with the additional constraint of not exceeding
10 flV).
epoch of R N2 R, N2 N1 N2, W R W with R R R, N2 N2 N2, the signal of PSG. It has a tool in the same function of our
software to automatic scoring sleep stages, but results of our
W W W, respectively [15]. At the end of the procedure,
software and that software have big difference. These
hypnogram is reviewed for elimination of I-epoch stages
differences in scoring of analyzed data are summarized by
(except MT).
statistical measures in Table Il.B, H.C.
309
TABLE II. A: STATlSTIS OF THE CONCORDANCE RESULTS OF ALlCE 5 single channel of EEG, EMG and two channel of EOG. All
AND OUR SOFTWARE
major stages are plotted in hypnogram is call Macro Sleep
MT W REM Nt N2 N3 Architecture (MSA). Estimation of MSA is a critical process in
n 11 369 99 6 309 13 assessing several sleep disorders such as Obstructive Sleep
Apnea (OSA), Periodic Leg Movements (PLMS) and Upper
ALICE 5 %n 1.4 45.7 12.3 0.74 38.3 1.61
Air Respiratory Syndrome (UARS) [16]. However, one of the
n 15 206 129 48 345 64
most difficult challenges for analyzing structure of sleep is
Proposal %n 1.7 25.5 16.0 6.0 42.8 7.93
detection of the micro parts or events occur in a period of time
Concordance n 0 182 88 0 193 8
---
which is much less than 30 seconds. So in the near future, we
of ALICE 5 %n 0.0 38.6 18.7 0.00 41 1.7 will add more tools to detect micro structures of sleep such as
& Proposal % 58.36 micro-arousals, K-complexes, sleep spindles.
Doctor %n l.86 18.1 16.2 2.48 42.4 19.0 Rules, Terminology and Technical Specifications", American Academy
In this paper we present a tool for automatic scoring [16] Kryger, M.H., T. Roth, and w.e. Dement, "Principles and Practice of
Sleep Medicine". 3 ed. 2000:W. B. Saunders . 1336.
Movement Time, Wakefulness and four stages of sleep using
310