<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Sleep Stage Estimation based on The Estimated Probability of each Sleep Stage by Learning with Specialized Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Iko Nakari</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Keiki Takadama</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>The University of Electro-Communications</institution>
          ,
          <addr-line>1-5-1 Chofugaoka, Chofu, Tokyo</addr-line>
          ,
          <country country="JP">Japan</country>
          <addr-line>182-8585</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>This paper proposed a novel non-contact sleep stage estimation method that ensemble the estimation results of specialized RFs that are trained with each sleep stage, which is unlike the conventional machine learning methods that train each sleep stage at once. Concretely, when ensembling the results of each RF, its estimation probabilities are employed to estimate the most likely sleep stage. Furthermore, the method employs the optimal length for learning with RF at each sleep stage. To deal with individual diferences, this paper compares other probabilities of sleep stage estimation by employing hyperparameter  for each sleep stage, which subtracts the largest estimated probability to reduce false positive estimation. Through experiments, the following implications have been revealed: (1) the proposed method contributed to improving the percentage of Accuracy by 70.5% from 62.4% by the conventional machine learning method; (2) the suitable lengths of data for learning with RF were about 2, 4, and 2 min for REM sleep, N12 sleep, and N34 sleep, respectively; (3) hyperparameter  is efective in reducing biased sleep stage estimation caused by individual diferences and improving estimation accuracy.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;machine learning</kwd>
        <kwd>random forest</kwd>
        <kwd>sleep stage estimation</kwd>
        <kwd>mattress sensor</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>For the facts, it is not suitable for measuring daily sleep
quality.</p>
      <p>
        Sleep is one of the most important activities of life and To address the problems, the demand for sleep stage
people spend a third of their lives sleeping. If sleep de- estimation methods by simple sensors (such as mattress
privation (especially 4-6 hours of sleep) persists, people sensors) has increased as an alternative to the PSG test. It
become in a state of sleep debt. In the state of sleep debt, is challenging to estimate sleep stages without biological
the ability to think and make decisions are equivalent to data obtained from PSG test. For example, Watanabe
staying up all night [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], and it is a factor in the increased developed a mattress sensor and focused on
physiologrisk of industrial and trafic accidents. It also decreases ical findings which is the relation between heart rate
immune function and increases the risk of developing variability and sleep stage [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. The accuracies of the
lifestyle-related diseases such as depression and demen- method are reported as follows: 42.8% in three stages
tia [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ]. To avoid becoming a state of sleep debt, it is (NREM/REM/WAKE) estimation; 82.6% in NREM
estimaimportant to get enough sleep, but in some cases, it is not tion; 70.5% in WAKE estimation; and 38.3% in REM
estienough due to sleep diseases. This is because sleep dis- mation. As the results show, the accuracy of the method
eases, such as sleep apnea syndrome, worsen sleep quality is not high and it suggests that the method based on
so that it is the same condition as sleep deprivation even ifndings has limitations.
if you spend enough sleep. In order to realize our sleep To tackle the problems, it is necessary to estimate sleep
problems, it is necessary to understand our daily sleep stages from a new perspective other than physiological
quality. The standard method for measuring sleep qual- findings. However, since we do not know what to focus
ity (sleep stage) is to evaluate biological data (i.e., EEG, on and it is dificult to find novel physiological findings,
EOG and EMG) acquired by Polysomnography (PSG) test machine learning (ML) is a good way to estimate sleep
based on the Rechtschafen &amp; Kales (R&amp;K) method [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. stages from a new perspective. In this study, Random
However, the PSG test is a highly restrictive method and Forests [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] is employed for the ML model because it is
easrequires a person to attach multiple electrodes to his/her ier to analyze what the model learned from the data than
head and body, which burdens physical and mental on deep learning [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], which is widely employed because of
his/her and prevents obtaining data on sleep as usual. its high prediction accuracy. It is essential for analyzing
models easier because it leads to the interpretability of
the model in the future. The dificult points in learning
sleep stages with ML are the followings: (1) it may be
diferent for each sleep stage that the features suitable
for classification; (2) ML is not good at learning data with
AAAI 2023 Spring Symposia, Socially Responsible AI for Well-being,
March 27–29, 2023, USA
* Corresponding author.
† These authors contributed equally.
" iko0528@cas.lab.uec.ac.jp (I. Nakari); keiki@inf.uec.ac.jp
(K. Takadama)
      </p>
      <p>© 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License individual diferences.</p>
      <p>CPWrEooUrckReshdoinpgs IhStpN:/c1e6u1r3-w-0s.o7r3g ACttEribUutRion W4.0oInrtekrnsahtioonpal (PCCroBYce4.0e).dings (CEUR-WS.org) To overcome these problems, this paper aims to
improve the accuracy of sleep stage estimation and proposes WRAEKME
a novel non-contact sleep stage estimation method that NREM1
ensemble the estimation results of specialized RFs that NNRREEMM32
are trained with each sleep stage. In addition, this paper 0 90 180 270 360 Time (min)
tries to discover a way to adjust sleep stage estimation
for individual diferences. Concretely, this paper employs
TANITA sleep scan SL511 (Japan) as the mattress sensor Figure 1: Example of the overnight sleep stage.
for acquiring bio-vibration data, and prepares several
RFs for each sleep stage. When ensembling the results
of each RF, its estimation probabilities are employed to called the ultradian rhythm.
estimate the most likely sleep stage. Furthermore, since The characteristics of each sleep stage are described
some characteristics of each sleep stage appear for a short below. The WAKE stage and N1 sleep occur suddenly in a
time and others appear intermittently for a long time, short time, and these sleep stages often occur with large
multiple data lengths are employed for training RF. For body movements. The size of body movements tends to
example, WAKE and N1 sleep suddenly occur with large be larger in the WAKE stage than in the N1 stage. In
addibody movements and other sleep stages (especially REM tion, some WAKE stages are self-aware while others are
sleep) intermittently occur for a long time. This paper not. In this paper, WAKE stages longer than 2 minutes
investigates the optimal data length for each sleep stage are excluded because their characteristics are diferent
and employs it to train RF. For individual diferences, this from WAKE stages that occur suddenly. REM sleep is
paper focuses on the other probabilities of sleep stage determined by focusing on “rapid eye movement” and
estimation to improve the accuracy of the estimation. “decreased skeletal muscle activity” in the R&amp;K method.</p>
      <p>This paper is organized as follows. The next section Other characteristics of REM sleep are increased or
unstadescribes the sleep mechanism. Section 3 describes the ble heart rate and respiratory rate. The mattress sensors
related works of non-contact sleep stage estimation and only can measure the characteristics related to heart rate
RF which is the main ML method in our proposed method and respiratory rate, but these characteristics occur
interand Section 4 proposes our sleep stage estimation based mittently, rather than continuously. The characteristics
on an ensemble of models trained for each sleep stage. of N2 and N34 are that the heart rate and respiratory rate
The experiment is conducted in Section 5 and the results tend to decrease with deeper sleep (N34), and the sleep
are analyzed in Section 6. Finally, our conclusion is given stage does not change suddenly but remains in the same
in Section 7. sleep stage continuously.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Sleep Stage</title>
    </sec>
    <sec id="sec-3">
      <title>3. Related Works</title>
      <p>
        The sleep stage is an indicator of the depth of sleep de- 3.1. Sleep Stage Estimation by mattress
ifned by the R&amp;K method. The depth of sleep is classified sensor
into six stages in each epoch (30 seconds), i.e., WAKE,
REM, Non-REM1 (N1), N2, N3, and N4. N4 is often
included in N3 and is denoted as N34 in this paper. The
proportion of each sleep stage in healthy young adults
per night is as follows: WAKE is 1-5%; REM is 15-25%;
N1 is 5-20%; N2 is 45-75%; and N34 is 10-22%
(depending on age and physical condition on that day). In order
to determine the sleep stage, the R&amp;K method needs
biological data such as electroencephalography (EEG),
electrooculogram (EOG), and electromyogram (EMG)
acquired by the PSG test. Figure 1 shows the example of
the overnight sleep stages, where the vertical axis
indicates the sleep stage and the horizontal axis indicates the
time. As shown in Figure 1, the structure of the sleep
stage in a healthy person repeats deep sleep (N3 sleep) 3.2. Random Forests
and shallow sleep (above N3 sleep) alternately, and the
regular sleep repeats this cycle (about 90 to 120 minutes)
three to five times a night. Each cycle is connected by
about 20 to 30 minutes of REM sleep, and this cycle is
Watanabe et al. tried to extract the relation between
the change in the heart rate and sleep stages through
the frequency band containing the multiple biological
rhythms of a human to build a foundation of sleep stage
estimation from heart rate variability (HRV) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. They
focused on two biological rhythms, the ultradian rhythm
and the circadian rhythm, which is an approximate 25
hours cycle. From their study, the relations between the
frequency of HRV and sleep stage have been revealed,
and they built a sleep stage estimation method based
on the heart rate data acquired from the air mattress
sensor [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        This study employs Random Forests (RF) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The RF
model repeats random sampling from training data,
randomly constructs decision trees with diferent conditional
Training Dataset
Label
      </p>
      <p>WAKE
Non-WAKE</p>
      <p>REM
Non-REM</p>
      <p>N12
Non-N12</p>
      <p>N34
Non-N34
Input data
2500</p>
      <p>0
-2500</p>
      <p>Time
Time
Time
Time</p>
      <p>Time
Bio-vibration data (mattress sensor value)</p>
      <p>Preprocessing
or
For WAKE</p>
      <p>For other stages</p>
      <p>WAKE
RF
REM
RF
N12
RF
N34
RF
New subject data
(Unlearned)
WAKE_P
N12_P</p>
      <p>REM_P Time</p>
      <p>N34_P
Ensemble</p>
      <p>Time
Estimated sleep stage (ensemble result)
branches, and classifies them by the majority rule of those
results. In this research, Gini impurity is the splitting
condition, it becomes low when all the samples contained
in each node of the decision tree are the same. RF
processing is as follows:
3. Repeat 1. to 2.  times.</p>
      <sec id="sec-3-1">
        <title>1. Generate bootstrapped sample  from training</title>
        <p>data set . Figure 3: The example of bio-vibration data in (a) non-WAKE
2. One-third of the original data is called Out-Of- stage and (b) WAKE stage.</p>
        <p>Bug (OOB), and it is used for constructing a
decision tree. Each node processing is as follows:
a) Extract  features randomly with not</p>
        <p>allowing duplicate value.
b) Choose the feature that minimizes Gini
impurity, and divides nodes.</p>
        <p>stages by an ensemble of four RFs based on their
estimation probabilities. All graphs in Figure 2, the horizontal
axis represents “time”, and the vertical axis represents
sleep stages, bio-vibration data or estimated probability
of RF.
where  is the number of decision trees. In the
classification problem, it is recommended to use the square
root of the total number of features for the variable ,
which is employed to divide the nodes of decision trees.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Ensemble of Models Trained for each Sleep Stage</title>
      <sec id="sec-4-1">
        <title>4.1. Input data</title>
        <p>
          For training each sleep stage, this paper designs two types
of input data. The first type is the features related to body
movement for the WAKE stage, and the other type is the
logarithmic power spectrum for the non-WAKE stage
(i.e., REM sleep, N12 sleep and N34 sleep).
stage, while that is large in the WAKE stage. From this
fact, it is suitable to estimate the WAKE stage by
designing the features such as the variance of the bio-vibration
data in one epoch from the viewpoint of body movement.
Our previous work designed the following six kinds of
features from the bio-vibration data in one epoch are
designed as shown in (Table 1): standard deviation (SD),
the diference between maximum and minimum (Range),
the summation (SUM), the sum of squares (Square), the
average of variation (Level Change: LC) and the
RootMean-Square (RMS) [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ].
4.1.2. Features except for WAKE stage
To make it easier for ML to learn the characteristics of
biovibration data for each sleep stage, the frequency analysis
is applied for decomposing each vibration (i.e., heartbeats,
respiration and body movement) to frequencies. This
process is conducted as follows.
        </p>
        <p>
          1. Applying the Fast Fourier Transform (FFT) [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]
to the bio-vibration data in a -second window
to convert the data to a power spectrum (note
that the sampling frequency of the mattress
sensor is 16Hz, and data size is  × 16). In this
study, window size () is set as next for
capturing several scales of REM.  = {32, 64, 128, 256}.
According to the sampling theorem [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ], the
frequency that can be analyzed by FFT is up to 8Hz,
so that the data size of the power spectrum is
 × 8, and the frequency resolution is 1/ Hz.
Figure 4(a) shows the example of the power
spectrum ( = 64) calculated from bio-vibration data,
where the vertical axis indicates the density of the
power spectrum and the horizontal axis indicates
the frequency. In particular, the frequency band
between 0.1Hz and 0.3Hz is related to respiration,
and the frequency band between 0.6Hz and 1.5Hz
is related to heartbeats. Regarding the BM, the
larger/smaller BM, the higher/lower density of
the power spectrum. However, as shown in
Figure 4(a), it is dificult to understand the shape of
(a) power spectrum
(b) logarithmic spectrum
        </p>
        <p>the power spectrum above 1Hz because of the
high density of frequencies below 1Hz.
2. In order to make it easier to understand above
1Hz and for RF to learn, the power spectrum is
converted into a logarithmic spectrum (log10).
Figure 4(b) shows the example of the logarithmic
spectrum converted from the power spectrum
of Figure 4(a), where the vertical axis indicates
the density (logarithmic value) of the spectrum
and the horizontal axis indicates the frequency.
Furthermore, the density of each frequency in
the logarithmic spectrum is normalized to 0, 1
based on the value of the density of the overall
frequency.
3. This logarithmic spectrum is calculated per 30
seconds (stride size is 30 seconds) and labeled with
the correct sleep stage (one sleep stage/others)
determined by R&amp;K method for RF to learn.
Figure ?? shows the example of strides (window size
is 128 seconds) and how to label the sleep stage
to the spectrum. When labeling the sleep stage
to the spectrum, bio-vibration data often have
multiple sleep stages, so that, in this study, the
sleep stage which is labeled to the spectrum is
determined by a majority vote of the proportions
occupied by those sleep stages. Note that, when
using RF for the sleep stage estimation (not the
learning phase), the logarithmic spectrum is not
labeled with the correct sleep stage, and the
output of the estimation is for the first epoch.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Ensemble based on Estimated</title>
      </sec>
      <sec id="sec-4-3">
        <title>Probability and Hyperparameter</title>
        <p>Each sleep stage is trained by a separate RF, and each
RF selects and trains features specific to each sleep stage.</p>
        <p>When data is input to each RF, the probability of each
sleep stage is output by each RF. Then, the sleep stage
with the highest probability is determined as a result
of the ensemble. However, it is also possible that the
probability of both two sleep stages increases (i.e., the
estimated probabilities of WAKE, REM, N12 and N34
indicates the total number of epochs in one night. Note
that, the numbers in parentheses for WAKE and Total
represent the number of epochs excluding consecutive
awakenings of more than 2 minutes (sleep disruption)
and are excluded from the calculation of Accuracy rates
in this paper. The average number of epochs (30 seconds)
of sleep without sleep disruption is 634±136.</p>
        <p>The performance of the proposed method is compared
with single RF trained with four sleep stages at once.</p>
        <p>As evaluation criteria, this study employs the Accuracy
rate between PSG-based sleep stages and estimated sleep
stages. In addition to Ex.1, Precision, Recall, F-measure
and Specificity of each sleep stage estimation are
employed.
are 90%, 50%, 80%, 30% respectively) due to individual
diferences. In particular, the probability of the WAKE 5.1. Experimental Setup
stage increases with more body movement, but some The electrodes were attached to the body and head of
subjects may not be in the WAKE stage. each subject to acquire EEG, EOG and EMG, and the</p>
        <p>To deal with the problem, the method subtracts the hy- mattress sensor was placed under the mattress in the bed
perparameter % from the probability of the sleep stage to acquire bio-vibration data in one night. After sleep,
with the highest probability before comparing it to the the correct sleep stages for each subject were determined
other sleep stages. If subtracting the probability changes according to the R&amp;K method based on the data measured
the relationship between the probabilities of each sleep by PSG (helped by a medical specialist), and the
biostage, the sleep stage with the highest probability at that vibration data measured by mattress sensor is converted
time will be the result of the ensemble. For example, the to “Features for the WAKE stage” or “Features except
probabilities of WAKE, REM, N12 and N34 are 90%, 50%, for WAKE stage” that logarithmic spectrums of several
80%, 30% respectively, and the hyperparameter for WAKE scales (i.e., window sizes are  = {32, 64, 128, 256, 512}).
stage ( ) is set as 20%, the probabilities are changed Each feature is labeled with the correct sleep stage in
to 70%, 50%, 80%, 30% respectively. In this case, the en- each epoch. The parameters of RF are set as follows: (i)
semble result is changed to N12 sleep from the WAKE the maximum depth of the decision tree is 10; (ii) the
stage. number of the decision tree is 50; (iii) the number of
features employed to construct the decision tree is 16, 23,
5. Experiments and Results 32, 46 and 64 for window sizes 32, 64, 128, 256 and 512
respectively.</p>
        <sec id="sec-4-3-1">
          <title>To investigate the efectiveness of the proposed sleep</title>
          <p>stage estimation based on an ensemble of models trained
for each sleep stage, this paper conducted the human
subject experiments of nine healthy subjects. The
experiments are divided into three parts. The purposes of each
experiment are the followings:</p>
          <p>Ex.1 is conducted for determining a suitable window
1. To determine a suitable window length of input length of input data for each sleep stage except for the
data for each sleep stage.; WAKE stage. As evaluation criteria, Ex.1 employs the
2. To determine the hyperparameter  , , Accuracy, Precision, Recall, F-measure and Specificity of
12 and 34 for the highest estimated prob- REM sleep, N12 sleep and N34 sleep respectively.
ability of ensembling each of the RFs correspond- Figure 5, Figure 6 and Figure 7 show the averaged
ing to the four sleep stages. results of each evaluation criteria for each sleep stage.</p>
          <p>The vertical and horizontal axes indicate the percentage
3. Sleep stage estimation with the hyperparameters and each criterion, respectively. The blue, orange, gray
selected in Experiment 1. and yellow bars indicate the length of the window (input
The information on the subjects is summarized in Table 2. data), i.e., 32 seconds, 64 seconds, 128 seconds and 256
The column “ID (Age)” indicates the ID and the age of seconds. In REM sleep, “128 seconds size of window
the subject. The columns from “WAKE” to “N34” indicate length” is the most suitable for REM sleep estimation
the number of epochs in each sleep stage (WAKE, REM, because Precision, Recall and F-measure are higher than
NREM1, NREM2 and NREM34), and the column “Total” any other window length. In N12 sleep, “256 seconds</p>
        </sec>
      </sec>
      <sec id="sec-4-4">
        <title>5.2. Ex.1 Comparison of Estimation</title>
      </sec>
      <sec id="sec-4-5">
        <title>Accuracy by Window Length of Input Data for each Sleep Stage</title>
        <p>80.0%
60.0%</p>
      </sec>
      <sec id="sec-4-6">
        <title>5.3. Ex.2 Sensitivity Analysis of</title>
      </sec>
      <sec id="sec-4-7">
        <title>Hyperparameter</title>
        <p>Ex.2 is conducted for determining the hyperparameter
 , , 12 and 34 for the highest estimated
probability of ensembling each of the RFs
corresponding to the four sleep stages. In Ex.2 all sleep stages are 67.6% 67.5%
estimated by the flow of the proposed method, which 67.4% 67.3% 67.5%
ensembles RFs specialized for estimating each sleep stage. 67.2% 67.4%
Since the adjustment of the hyperparameter  for each 67.0% 67.0% 67.2%
sleep stage changes the overall result of sleep stage
estimation, the evaluation criterion is the percentage of 66.8% 66.7%
Accuracy between the sleep stage from PSG and the pre- 66.6% 0 0.05 0.1 0.15 0.2 0.25 0.3
dicted sleep stage. Hyperparameter  for each sleep
stage has experimented with values of 0.00, 0.05, 0.10, Figure 11: Ex.2 Averaged accuracy of sleep stage estimation
0.15, 0.20, 0.25 and 0.30. in sensitivity analysis of 34.</p>
        <p>Figure 8, Figure 9, Figure 10 and Figure 11 show the
results of sensitivity analysis for Hyperparameter  for
each sleep stage. The vertical and horizontal axes in- 5.4. Ex.3 Single RF vs. Proposed Method
dicate the accuracy of sleep stage estimation and the
value of hyperparameter . From the results, the most Ex.3 is conducted for validating the efectiveness of the
suitable hyperparameter  is determined as the follow- proposed method and the method is compared with the
ings:  = 0.20,  = 0.25, 12 = 0.00 and result of RF trained with all sleep stages at once. For the
34 = 0.30. proposed method, hyperparameter  has experimented
with two patterns,  = 0 and  with the results of
Ex.2. As evaluation criteria, Ex.3 employs the
percentage of Accuracy between the sleep stage from PSG and
the predicted sleep stage. The vertical and horizontal
axes indicate the accuracy of sleep stage estimation and
estimation methods respectively.</p>
        <p>Figure 12 shows the result of sleep stage estimation
by single RF, proposed with  = 0 and proposed with
the results of Ex.2. The vertical and horizontal axes
indicate the accuracy of sleep stage estimation and sleep
estimation methods. As shown in Figure 12, the
estimation accuracies of RF, proposed method ( = 0) and the
proposed method ( with the results of Ex.2) are 62.4%,
66.7% and 70.5% respectively. The proposed method is
8.1% higher than the conventional sleep stage estimation
method that classifies 4 sleep stages by s single RF. This
paper conducted a paired t-test for the results and found
a significant diference between the single RF and the
proposed method. This result suggests, the proposed method
significantly increases the Accuracy of sleep stage
estimation more than conventional single RF.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>6. Discussion</title>
      <sec id="sec-5-1">
        <title>6.1. Single RF vs. Proposed Method</title>
        <p>WAKE
REM
N12</p>
        <p>N34
WAKE
REM
N12
N34
To discuss the diferences in sleep stage estimation
results between single RF and the proposed method,
Figure 13 shows the results of each subject. The vertical and 6.2. Efectiveness of Hyperparameter  .
horizontal axes indicate the accuracy of sleep stage
estimation and subject IDs. The blue, orange and gray bars As shown in Figure 13, even with the proposed method,
the estimation may not improve the Accuracy as in
SubiannddicpartoeptohseedrewsuiltthotfhseinregsleulRtsF,opfrEoxp.o2.seTdhweiathccura=cie0s ject I. The lack of improvement in the Accuracy rate
of the estimation for each subject are improved by the is caused by the over-estimating REM sleep as shown
proposed method. Figure 14 and Figure 15 show the esti- in Figure 16. This means that subject I, who is elderly,
mation result of subject D by single RF and the proposed has over-estimating REM sleep because the bio-vibration
data in normal conditions are similar to the bio-vibration
cmaetethtohde (slee=ps0ta).gTehaendvetrimticea.lTahnedbhluoeriaznodntoarlaanxgees liinndeis- data during REM sleep in the training data (i.e., the
estiindicate the correct sleep stage (obtained from PSG) and mated probability of REM sleep is often greater than 50%).
estimated sleep stage. The estimation by single RF has Even if the estimated probability of REM sleep is high,
more false REM estimations than the estimation by the the estimation probabilities of other sleep stages
(espe</p>
        <p>PSG RF
PSG
proposed method. Such false REM estimations by single
RF tend to occur in other subjects, and some subjects
also have more false WAKE stage estimations than
estimations by the proposed method. Since the proposed
method trains a dedicated RF for each sleep stage, it can
learn the characteristics of each sleep stage from multiple
perspectives. On the other hand, a single RF must learn
the characteristics of four sleep stages, which limits the
number of characteristics that can be learned. This is the
reason why the proposed method has higher estimation
accuracy than the single RF.
cially N12 sleep) may also be high. Based on this, when
only the estimated probability of REM sleep is high, REM
sleep is employed as the estimation result, and when the
estimated probability of other REM sleep is also high,
estimation of other sleep stages can be employed to reduce
over-estimating REM sleep estimation. Hyperparameter
, which is set for each sleep stage, can deal with this
problem because it subtracts X% from the probability of
the sleep stage with the largest estimated probability.</p>
        <p>Then, Subject I was able to reduce over-estimating
REM sleep estimation by setting the hyperparameter 
obtained in Ex.2.</p>
        <p>This suggests that hyperparameter  is efective in
reducing biased sleep stage estimation caused by individual
diferences and improving estimation accuracy.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>7. Conclusion</title>
      <p>This paper proposed a novel non-contact sleep stage
estimation method that ensemble the estimation results of
specialized RFs that are trained with each sleep stage.
Concretely, when ensembling the results of each RF, its
estimation probabilities are employed to estimate the
most likely sleep stage. Furthermore, the method
employs the optimal length for learning with RF at each
sleep stage. To deal with individual diferences, this
paper compares other probabilities of sleep stage estimation
by employing hyperparameter  for each sleep stage,
which subtracts the largest estimated probability to
reduce false positive estimation. Through experiments, the
following implications have been revealed: (1) the
proposed method contributed to improving the percentage
of Accuracy by 70.5% from 62.4% by the conventional
machine learning method; (2) the suitable lengths of data
for learning with RF were about 2, 4, and 2 min for REM
sleep, N12 sleep, and N34 sleep, respectively; (3)
hyperparameter  is efective in reducing biased sleep stage
estimation caused by individual diferences and
improving estimation accuracy.</p>
      <p>The future tasks are the followings: (1) expansion of
subject data to improve the accuracy of N34 estimation
due to the small amount of N34 sleep data; (2) to improve
the estimation accuracy by classifying the individual
difference trends from subject sleep data and learning for
each similar subject.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>H.</given-names>
            <surname>Van Dongen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Maislin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Mullington</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. F.</given-names>
            <surname>Dinges</surname>
          </string-name>
          ,
          <article-title>The cumulative cost of additional wakefulness: dose-response efects on neurobehavioral functions and sleep physiology from chronic sleep restriction and total sleep deprivation</article-title>
          ,
          <source>Sleep</source>
          <volume>26</volume>
          (
          <year>2003</year>
          )
          <fpage>117</fpage>
          -
          <lpage>126</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Mullington</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Haack</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Toth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Serrador</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. K.</given-names>
            <surname>Meier-Ewert</surname>
          </string-name>
          ,
          <article-title>Cardiovascular, inflammatory, and metabolic consequences of sleep deprivation</article-title>
          ,
          <source>Progress in cardiovascular diseases 51</source>
          (
          <year>2009</year>
          )
          <fpage>294</fpage>
          -
          <lpage>302</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>C.</given-names>
            <surname>Holingue</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Wennberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Berger</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V. Y.</given-names>
            <surname>Polotsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. P.</given-names>
            <surname>Spira</surname>
          </string-name>
          ,
          <article-title>Disturbed sleep and diabetes: A potential nexus of dementia risk</article-title>
          ,
          <source>Metabolism</source>
          <volume>84</volume>
          (
          <year>2018</year>
          )
          <fpage>85</fpage>
          -
          <lpage>93</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Rechtschafen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kales</surname>
          </string-name>
          ,
          <article-title>A Manual of Standardized Terminology, Techniques and Scoring System for Sleep Stages of Human Subjects</article-title>
          , Washington DC,
          <year>1968</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T.</given-names>
            <surname>Watanabe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Watanabe</surname>
          </string-name>
          ,
          <article-title>Noncontact method for sleep stage estimation</article-title>
          ,
          <source>IEEE Transactions on biomedical engineering 51</source>
          (
          <year>2004</year>
          )
          <fpage>1735</fpage>
          -
          <lpage>1748</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>L.</given-names>
            <surname>Breiman</surname>
          </string-name>
          , Random forests,
          <source>Machine learning 45</source>
          (
          <year>2001</year>
          )
          <fpage>5</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>I.</given-names>
            <surname>Goodfellow</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Courville</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          ,
          <article-title>Deep learning</article-title>
          , volume
          <volume>1</volume>
          , MIT press Cambridge,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>T.</given-names>
            <surname>Watanabe</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Watanabe</surname>
          </string-name>
          ,
          <article-title>Estimation of the sleep stages by the non-restrictive air mattress sensor relation between the change in the heart rate and sleep stages</article-title>
          ,
          <source>Transactions of the Society of Instrument and Control Engineers</source>
          <volume>37</volume>
          (
          <year>2001</year>
          )
          <fpage>821</fpage>
          -
          <lpage>828</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>I.</given-names>
            <surname>Nakari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Tajima</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Takano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Toboru</surname>
          </string-name>
          ,
          <string-name>
            <surname>K.</surname>
          </string-name>
          <article-title>Takadama, WAKE Detection During Sleep using Random Forest for Sleep Apnea Syndrome Patient</article-title>
          ,
          <source>AAAI Spring Symposium</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J. W.</given-names>
            <surname>Cooley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. W.</given-names>
            <surname>Tukey</surname>
          </string-name>
          ,
          <article-title>An algorithm for the machine calculation of complex fourier series</article-title>
          ,
          <source>Mathematics of computation 19</source>
          (
          <year>1965</year>
          )
          <fpage>297</fpage>
          -
          <lpage>301</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>C. E.</given-names>
            <surname>Shannon</surname>
          </string-name>
          ,
          <article-title>Communication in the presence of noise</article-title>
          ,
          <source>Proceedings of the IRE</source>
          <volume>37</volume>
          (
          <year>1949</year>
          )
          <fpage>10</fpage>
          -
          <lpage>21</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>