considering the number of transitions between two
sleep postures over the period of the sleep.
The rest of this paper is divided as follows. Sec-
tion 2 surveys existing solutions related to bed move-
ments detection. Section 3 elaborates on the material
and methods followed in the development and imple-
mentation of the sleep monitoring system. Section 4
explains the experimental evaluation of the proposed
system and discusses the obtained results. Finally,
Section 5 presents the concluding remarks and the fu-
ture directions of this research.
2 RELATED WORK
Actigraphy has been used in various areas of medi-
cal research, typically for monitoring motion-related
sleep disorders. In fact, It has been used in many stud-
ies since 30 years ago. (Kupfer et al., 1972) reported
a correlation between EEG signals, wrist activity, and
wakefulness in 1972. (Sadeh et al., 1995) concluded
that normal subjects showed more than 90% correla-
tion when comparing actigraphy data with PSG. By
1995, sufficient experimentation had been carried out
to finally enable the Standards of Practice Committee
of the American Sleep Disorders Association (ASDA)
to support the use of actigraphy in evaluating cer-
tain aspects of sleep disorders, such as insomnia, cir-
cadian sleep–wake disturbances, and periodic limb
movements. On an higher level, a generic classifica-
tion of bed related systems was proposed by (Ibrahim
et al., 2021). The authors classified these systems
into Wearable Systems (WS), Non-Wearable Systems
(NWS), and Fusion Systems (FS).
• Wearable Systems (WS): Many studies have
been reported to use actigraphy in WS. For in-
stance, (Miwa et al., 2007) proposed a rollover
detection system using a SenseWear Pro2 Arm-
band. They used the maximum and the mean
acceleration in the x and y directions to identify
the posture differences using a threshold based
algorithm. The experiments showed that 82.4%
of rollovers were detected. Similarly, (Acharya,
2020) proposed a rollover detection system using
the ADXL335 accelerometer attached on socks
where acceleration row data was used in a thresh-
old based algorithm.
• Non-Wearable Systems (NWS): Other studies
reported the use of unobtrusive sensors used for
bed movement detection. These include load sen-
sors installed under bedposts. (Adami et al., 2008)
proposed a system for classification of movement
in bed using load cells. The experiments were
done on 15 participants and showed an accuracy
of 84.6%. (Beattie et al., 2011) also used load
cells under bedposts giving a total of 4 cells. The
classification of the sleeping posture was done us-
ing K-Means classifier of the bed’s Center of Pres-
sure (CoP) in the x and y directions. The exper-
iments showed an accuracy of 68%, 57%, 69%,
and 33% for the back, right, left, and stomach
postures respectively. The problem with this ap-
proach is that CoPy values for back and stom-
ach postures are the same so the classifier fails to
distinguish between them. An unrestrained sleep
monitoring system using cameras has been also
proposed to monitor sleep postures. (Lee et al.,
2015) proposed a system to monitor the sleep-
ing position using a Kinect sensor. They used
Kinect’s skeleton and Kinect’s infrared camera to
detect the body joints. The joint model given by
the Kinect has 25 points. The authors recorded the
x, y and z positions of those points and calculated
the sleep movement taking the Euclidean distance
between those points with respect to time. How-
ever, the procedure may still be considered as an
invasion of privacy for some patients which makes
its utilisation not suitable.
• Fusion Systems (FS): Fusion of sensors will form
a multi-channel source of data which can provide
more accurate analysis. For instance, (Nam et al.,
2016a) used a pressure sensor and an accelerom-
eter to extract data on motion, respiration, body
activity, and heart rate. These data were used to
measure sleep quality by estimating the depth of
sleep, the number of apneaic episodes and the pe-
riodicity. The experimental results demonstrated
that the proposed system is effective in measuring
the physiological factors of sleep quality.
In addition to proposing a low cost device used to
identify body posture and transitions, this paper seeks
to contribute in proposing a body transition matrix
that could be used in any threshold based algorithm.
3 MATERIALS AND METHODS
3.1 Wearable Sensor
Continuous sleep monitoring must be unobtrusive
and have minimal physical impacts on bed activi-
ties. For these reasons, we proposed our sleep mon-
itoring system SleepPal. SleepPal includes a small
device that could be attached to the center of the
chest and measures the body acceleration in the three
axes. The device transmits real-time accelerome-
SleepPal: A Sleep Monitoring System for Body Movement and Sleep Posture Detection
41