1 Introduction

REM (Rapid Eye Movement) sleep as one of the five stages of sleep is the restorative part of the sleep cycle. During REM sleep, eyes move quickly in different directions and most dreams occur. Why people need REM sleep, why we dream, and what purposes our dreams serve are not known exactly. RBD (REM Behavior Disorder), a parasomnia, involves abnormal behavior during REM sleep phase, such as loss of muscle atonia. RBD is most often associated with elderly and in those with neurodegenerative disorders such as Parkinson’s disease, multiple system atrophy and Lewy body dementia.

There are many devices for monitoring sleep stages by measuring heart rate, respiration, motion, chest movement on breathe, sound of body movement on bed, body temperature, galvanic skin response, etcs using a thin sensor pad under the mattress, bedside sonar, sound sensor clipped onto pillow, or biosensors on wrist [1,2,3,4,5]. However, RBD detection is still accomplished on heavy expensive devices such as polysomnography and/or videographical analysis.

This study suggests a portable REM sleep detecting system based on the localization of eyeball using optical sensors.

2 Method

Figure 1 shows a diagram of the portable REM sleep detecting system in which the principle of the localization of eyeball using optical sensors is represented. Optical sensors used in the system consist of two infrared detectors and one infrared led source in the middle of the detectors. The localization of the eyeball is estimated by the difference of the reflected portion of the light emitted to the surface of the eyelid between the two detectors while eyeball moves.

Fig. 1.
figure 1

A schematic diagram of the principle of the localization of eyeball using optical sensors.

Figure 2 shows the circuit diagram of the portable REM sleep detecting system. The system consists of an optical source/detector, current regulator, differential amplification, data acquisition, feature extraction, and classification parts, where a 730 nm light emitting diode and two photo detectors were used in the optical source/detector part.

Fig. 2.
figure 2

The circuit diagram of the portable REM sleep detecting system.

3 Results and Discussions

A simulation study was carried out by the human eyeball model constructed using 3D printer based on the design verified through rendering. Figure 3 shows the design and the constructed human eyeball model.

Fig. 3.
figure 3

A human eyeball model constructed using 3D printer based on the design verified through rendering.

The invasiveness of the system to human was tested for various durations of the emitting of the optical source. The test was accomplished to the arm with the similar skin type to that of eyelid. Table 1 describes the temperature measured on the skin for various durations of the emitting of the optical source. The results showed the variation of the temperature is not significant on the duration of the infrared led emitting as shown in Table 1. The result suggests that the system has no harmful side effect on human skin and proves its invasiveness and usefulness during real life sleep hours.

Table 1. The temperature measured on the skin for various durations of the emitting of the optical source.

Wavelet transformation was applied in the feature extraction and the classification parts of the system. In the feature extraction part, sleep time series data obtained from the data acquisition part was resampled to a sampling frequency of 256 Hz and then filtered with a 1st order 0.16 Hz high pass filter to remove dc offset and a 2nd order 60 Hz band limit filter. Finally, the filtered data was transformed using Matlab dwt function to detect periods of REM sleep. Figure 4 represent the difference of the spectrogram according to the speed of the eyeball. The performance of this REM sleep detecting system was evaluated with overnight recordings of 5 subjects. The results showed sensitivity of 85% and specificity of 92%, suggesting that this system can be a very practically efficient in automatic detection of REM sleep stages in a mobile environment.

Fig. 4.
figure 4

The difference of the spectrogram according to the speed of the eyeball.

4 Conclusions

A portable and user friendly REM sleep detecting system is proposed based on differential shift of the eyeball localization using infrared optical sensor in this study. The system consists of an optical source/detector, current regulator, differential amplification, data acquisition, feature extraction, and classification parts, where a 730 nm light emitting diode and two photo detectors were used in the optical source/detector part, and wavelet transformation was applied in the feature extraction and the classification parts. In the feature extraction part, sleep time series data obtained from the data acquisition part was resampled to a sampling frequency of 256 Hz and then filtered with a 1st order 0.16 Hz high pass filter to remove dc offset and a 2nd order 60 Hz band limit filter. Finally, the filtered data was transformed using Matlab dwt function to detect periods of REM sleep. The performance of this REM sleep detecting system was evaluated with overnight recordings of 5 subjects. The results showed sensitivity of 85% and specificity of 92%, suggesting that this system can be a very practically efficient in automatic detection of REM sleep stages in a mobile environment.