<!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>Artificial Neural Network for Sit-to-Stand classification based on Inertial Measurement Units Data</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sandy Rihana</string-name>
          <email>sandyrihana@usek.edu.lb</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Patrick Hockayem</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ramy Salloum</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Biomedical Engineering Department, Holy Spirit University Of Kaslik, USEK</institution>
          ,
          <addr-line>Jounieh</addr-line>
          ,
          <country country="LB">Lebanon</country>
        </aff>
      </contrib-group>
      <fpage>21</fpage>
      <lpage>26</lpage>
      <abstract>
        <p>- According to some statistics published by Centers for Disease Control and Prevention (CDC), 1 in 50 people approximately around the world is incapable of achieving some of daily's life activities by his own due to paralysis. Paralysis is the partial or total inability of the human body to perform some movements caused by stroke, spinal cord injury, multiple sclerosis, birth defect, etc. Today, number of paralysis “victims” is increasing dramatically making over 6 million people paralyzed around the world, with some cases were the physical therapy becomes unable to heal.</p>
      </abstract>
      <kwd-group>
        <kwd>Artificial Neural Network</kwd>
        <kwd>algorithm</kwd>
        <kwd>Gait analysis</kwd>
        <kwd>Classification</kwd>
        <kwd>IMU sensors</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The main goal of this project is to study the Sit-to-Stand and
Stand-to-Sit transfer in 10 young healthy subjects. IMU
(Inertial Measurement Unit) wearable sensors, more
specifically MPU6050 sensors, are used in the performed
experiences in order to extract desired raw data such as the
acceleration, angular rate and inclination of lower limb
different segments including metatarsal, shank and thigh
segments and the inclination of the trunk. Thus, ankle, knee
and hip joints angles were derived.</p>
      <p>Furthermore, extracted features are studied, analyzed and
used to establish epochs and recognize phases of the
Sit-toStand gesture based on a number of previous Sit-to-Stand
literature of art. This is accomplished using Artificial Neural
Network, using different architectures and choosing the best
one, which resulted in four main phases: flexion phase, transfer
phase, extension phase and stabilization phase.</p>
      <p>Finally, and using the proper Neural Network with the
higher accuracy (92.3% accuracy using the 30 layers
architecture), a Sit-to-Stand algorithm is proposed and
modeled.
Sit-To-Stand</p>
    </sec>
    <sec id="sec-2">
      <title>I. INTRODUCTION</title>
      <p>
        Gait and Sit To Stand (STS) analysis are studies based on
different techniques using various devices and sensors able
to capture some human motions and extract the
corresponding parameters and data for further applications.
Usually, three common techniques are used: Image
Processing, floor Force Sensors and Wearable Sensors.
Image processing technique is performed in a special
laboratory equipped with a set of cameras, either analog or
digital ones. Extracting gait and STS parameters using this
method can be done by taking several images during the
experience, processing, feature extraction and classification.
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        As its name indicates, floor force sensors technique uses a set
of force platforms which enable the user to extract and
calculate pressure, force or pressure and force based data
when the subject perform gait or STS tasks on the sensors.
This technique [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], like the previous one, needs special
equiped high end laboratories. Wearable sensors is a new
technique that provides great results and same accuracy as
image processing and floor force system, and overcomes
these methods by the fact that it is less complex, since it
doesn’t require special environment and can be performed
in-lab, less time consuming and less costly. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] During a STS
or gait study, the participant has a number of sensors
positioned on his body, usually segments and joints, in order
to extract desired data. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
      </p>
      <p>
        Tay et al. study was founded on Newton’s.motion.law.
Since fair forces applied on the human body are pro rata to
the acceleration of the latter, Tay et al introduced a method
by integrating two accelerometer sensors, positioned on the
left and right ankles of a subject to stalk walking, and an
accelerometer near the cervical vertebra in order to supervise
different body positions during the task. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
      </p>
      <p>Likewise, they were capable of evaluating some
interesting parameters like peak acceleration and time during
a sitting and standing tasks.</p>
      <p>
        Inspired from Android Phone Sphere application
allowing to estimate the direction of rotating the smartphone,
Kai-Yu Tong &amp; Granat studied gait and STS movements by
placing 1-axis gyroscopes on the shank and thigh of each
subject in order to extract every segment velocity rate. They
conclude the efficiency of this method in order to derive
other parameters such as inclination, orientation and number
of movements. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
Our experience and study were basically based on Tadano et
al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. They proposed a three dimension gait analysis using
wearable, combination of 3-axis accelerometer and 3-axis
gyroscope, sensors positioned on lower limb segments.
Acceleration and angular velocity data were recorded, in real
time, during walking task.
      </p>
      <p>The direction and orientation, respectively to the
gravitational force, were extracted from the accelerometer
sensors in order to compute original positions, while various
displacements and angular velocities were recorded using the
gyroscope sensors.</p>
      <p>Tadano et al. conclude that IMU based method showed
accurate and validate results, comparatively to other common
techniques, of quantitative data and parameters like segments
acceleration, inclination and angular displacement.
Our suggested methodology in this paper will be described
as follow : first, 50 STS tasks will be experimented on 10
subjects. The subjects have been asked to perform 5 trials,
while 7 IMU sensors are placed on lower limb segments and
the trunk. During the task, acceleration, angular velocity and
inclination of lower limb segments and inclination of the
trunk are recorded, using Arduino software, displayed on
graphs, using MATLAB software, and interpreted. Joints
angles will be derived and calculated. All these data are then
classified using Artificial Neural Netowork, ANN, using
various architectures. Afterwards, Receiver Operating
Characteristic, ROC and confusion matrixes results of the
most ideal ANN architecture are analyzed. Finally, all results
will be used in order to suggest a STS conceptual model
algorithm.</p>
    </sec>
    <sec id="sec-3">
      <title>II. MATERIALS AND METHODS</title>
      <sec id="sec-3-1">
        <title>A. Inertial Moment Unit Sensors</title>
        <p>Motion Processing Unit 6050 (MPU-6050), a part of
IMU-6000 family, consists of a micro-electromechanical
system, providing a 3 Degrees of Freedom of
acceleration and 3 Degrees of Freedom of angular
velocities values, using respectively a 3-axis
accelerometer and a 3-axis gyroscope. It provides 6
Degrees of Freedom as a final result. This low priced
sensor consumes less power and has a great performance
comparatively to other IMU sensors. MPU-6050 sensors
are compatible with Arduino and Raspberry pi boards
and softwares using I2C and Serial Peripheral Interface
(SPI) protocols.</p>
      </sec>
      <sec id="sec-3-2">
        <title>B. Experimentations</title>
        <p>10 healthy men participated in this experience, all these
participants are between 20 and 25 years (Mean= 23 years,
SD= 1.84), heights between 169 cm and 182 cm (Mean= 175
cm, SD= 4.7) and weights between 85 Kg and 99 Kg (Mean=
91.8 Kg, SD =3.89).</p>
        <p>All participants are free of any orthopedic or arthritic
disorder, and thus were all-able to perform the sit-to-stand
independently without any human support or device
assistance (e.g. knee support).</p>
        <p>Participants were requested to sit on an armless chair with no
active role of their arms in the sit-to-stand task. In order to
maintain the vertical position of the trunk, each subject uses
the back support of the chair, and his knees flexed to
approximately 90o with a space of 20 cm between his feet
while placed on the ground.</p>
        <p>Every participant was asked to perform 5
sit-to-stand-tosit trials for 13 to 14 seconds after verbal signals.
Instrumentation consists of 7 IMU sensors (MPU 6050),
Arduino software and armless back supported seats.
Sensors were positioned on 2/3 of each segment length
(metatarsal, shank and thigh) of the left and the right parts,
and 1 IMU is placed on the T3 thoracic vertebrae of the trunk
illustrated in Fig.2 and Fig.3.</p>
        <p>In this study, segments acceleration values, acquired
from the accelerometer and segments angular velocity
values, acquired from the gyroscope, were collected
simultaneously, displayed on the serial monitor of Arduino
software and saved in a .txt format file.</p>
        <p>Hip, knee and ankle angles were calculated from the
acceleration values. The right placement of the IMU sensors
is crucial to features extraction, because each sensor will
indicate to a certain list of variables all obtaining to one
parameter.</p>
        <p>Each sensor will be coded to one parameter as illustrated in
table II.</p>
        <p>The angles calculation is shown in the following formulas:
 =   (
 =   (
Ɵ =   (

TABLE II.</p>
        <p>SENSORS PLACEMENT
Sensor</p>
        <p>S1
S2
S3
S4
S5
S6
S7</p>
        <p>Place</p>
        <p>Trunk
Right thigh
Left thigh
Right shank</p>
        <p>Left shank
Right metatarsal
left metatarsal
In the first place, the subject is in a sitting position with feet
positioned on the ground.
• Trunk, maintained in a nearly vertical position, and
thigh, maintained in a nearly horizontal position
relatively to the ground, forms a hip angle of 95 o.
• Shank, maintained in a nearly vertical position
relatively to the ground, forms with the thigh a
knee angle of 85 o.
• Metatarsal, maintained in a nearly horizontal position
relatively to the ground, forms with
the shank an ankle angle in a range of 85 o.</p>
        <p>The first step, flexion phase, is demarcated by the
movement of the subject’s upper body part, especially the
trunk, while lower body segments are immobile. The main
base support in this phase is the seat or the chair.</p>
        <p>So it starts from the sitting position and end when
the trunk is flexed before lifting off from the seat or initial
position.
• Knee and ankle joints angles remain the same
while the trunk is flexed in a forward position resulting in a
decrease of the hip joint angle of 35o to achieve a flexion
position of 60 o.
• Thigh, shank and metatarsal segments accelerations
remain the same.
• Thigh, shank and metatarsal segments angular
velocity remain the same
The second step, extension phase is differentiated from the
first one from by several mechanical points. It is completed
when maximum forward flexed posture is reached. A
“transfer” of the base support occurs: the subject passes
from the seat support to the feet support. The lower body
movement accompanies the upper body movement.</p>
        <p>This step begins when the subject starts to lift off from
the seat and ends before starting the extension motion of
different joints.</p>
        <p>The third step, extension phase, also mechanically
differs from the first and the second phase. We can simply
say that the extension phase is the translation of the body in
a vertical direction.</p>
        <p>The Stabilization phase represents the final stage of a STS
transfer.</p>
        <p>Hip and knee angles of 170o allow us to conclude that
metatarsal and shank segment are nearly orthogonal, while
shank, thigh and trunk are approximately aligned in a
vertical direction nearly perpendicular to the horizontal
direction of the ground.</p>
        <p>The different STS phases are illustrated in Fig.4.</p>
        <p>Figure 4- STS Phases algorithm
Sit-to-Stand phases will be named respectively class 1, class
2, class 3 and class 4.</p>
      </sec>
      <sec id="sec-3-3">
        <title>D. Features Extraction</title>
        <p>All extracted features were recorded using Arduino
software. Here is a table that displays each feature number
and name.
body parts and the trunk to study the Sit-to-Stand task, it is
fundamental to use some anatomical terms related to
different joints movement:
-Flexion: causes two parts or segments to get closer,
decreasing the separating angle between them. It is usually
used to describe a flexion movement of the hip and knee
joints.
-Extension: causes two parts or segments to separate,
increasing the separating angle between them. It is usually
used to describe the extension movement of the hip and
knee joints.
-Dorsiflexion: is the flexion of the ankle joint
-Plantar flexion: is the extension of the ankle joint.
Fig. 5 represents an ankle joint, formed by the metatarsal
and the shank segments, with M and S the angles of
respectively metatarsal and shank segments, while M’ is the
internal alternate angle of the S relatively to the ground. M
is measured from the IMU sensor of the metatarsal segment,
and thus M’ is concluded from this sensor. S is measured
from the IMU sensor of the trunk segment. Ankle angle can
be seen on the figure as the sum of M’ and S angles.
Feature Number</p>
        <p>F.E.1
F.E.2
F.E.3
F.E.4
F.E.5
F.E.6
F.E.7
F.E.8
F.E.9
F.E.10</p>
        <p>Feature Name
Trunk angles</p>
        <p>Thigh Angles
Thigh Angular Velocity</p>
        <p>Thigh Acceleration</p>
        <p>Shank Angles
Shank Angular Velocity</p>
        <p>Shank Acceleration</p>
        <p>Metatarsal Angles
Metatarsal Angular Velocity</p>
        <p>Metatarsal Acceleration
Each experience is made for 13 seconds approximately;
each sensor can sense a value at 0.2 seconds. Thus for each
feature status above we will have, a certain number of
values that will be noted N, where N = 65 values. However,
the total amount of values obtained at each experience that
will be noted X, is equal to the N x Number of features = 10
x 65 = 650. To add, each experience is repeated 5 times, to
get the most accurate values possible. Total Amount of
Values (for each subject) , knowing that the experiment has
been repeated 5 times is equal to 3250 values. For the 10
subjects, the total Amount of Values (for all subject) is
equal to 32500 values.</p>
        <p>In general, when two bones are re-joined, a joint is
developed. The joint movement is completed by the
presence of muscles. Since we are interested in the lower
Same studies have been done for the knee joint, the hip
angle. We only limited the calculation on the X-plan, since
flexion and extension are only performed in the lateral plan.</p>
      </sec>
      <sec id="sec-3-4">
        <title>E. Processing workflow</title>
        <p>Extracted features have been fed into an artificial neural
network. Fig.6 illustrated the general workflow.
After extracting features from MATLAB workspace, 32 480
data were introduced as input vectors to the ANN. In this
statistical analysis, 10 samples were tested. The set of
variables could be resumed as follow : X-axis metatarsal
angles, X-axis shank angles, X-axis thigh angles, X-axis
trunk angles, X-axis metatarsal angular velocity, X-axis
shank angular velocity, X-axis thigh angular velocity, X-axis
metatarsal acceleration, X-axis shank acceleration, X-axis
thigh acceleration. Several neural network architectures were
employed in order to find the most appropriate one using 5,
10, 15, 20, 25, 30 and 35 neurons per hidden layer.</p>
        <p>Fig. 8 illustrates different trunk inclinations during the
task. As seen, 5 different steps can be recognized easily.</p>
        <p>TABLE IV- DIFFERENT ANN ARCHITECTURE AD THEIR RESULTING
ACCURACY</p>
        <p>ANN architecture (hidden layers)
Accuracy result (%)
 
5
10
15
20
25
30
35
64.1
76.0
88.5
89.9
90.6
92.8
92.6</p>
        <p>Figure 8- Trunk Angles Graph</p>
        <p>Phase 1: window between 0 x 0.2 sec and 10 x 0.2 sec. It
displays a constant curve of 87 degrees, which allows us to
conclude that the subject is at rest. In fact, these values are
related to a perpendicular posture of the trunk respectively to
the horizontal (ground) with values approximately close to
90 degrees.</p>
        <p>Phase 2: window between 10 x 0.2 sec and 15 x 0.2
sec. It displays a rapid decrease of the trunk inclination curve
of 40 degrees, going from 87 degrees to 47 degrees. In
includes a forward movement of the trunk since the angle
formed with the horizontal is decreasing and the trunk is
getting closer to the thigh.</p>
        <p>Phase 3: window between 15 x 0.2 sec and 20 x 0.2
sec. The curve is still in a descending direction, but relatively
slower than the previous one. Inclination value passes from
47 degrees to 30 degrees where it attempts its minimum
value. The trunk still performs a flexion motion.</p>
        <p>Phase 4: window between 20 x 0.2 sec and 25 x
0.2sec. A sudden increase of the curve occurs from 30
degrees to 97 degrees concluding that the trunk is moving in
the opposite direction of phases 2 and 3: it is getting further
from the thigh, and angle between the trunk and ground is
getting bigger. The trunk can be said to perform an extension
motion.</p>
        <p>Phase 5: window between 25 x 0.2 sec and 40 x 0.2 sec.
the curve maintains a constant value of 97 degrees, which
means that the trunk is in a vertical posture relatively to the
ground.</p>
        <p>The study has been elaborated for the different features.
The features were fed into an artificial neuronal network.
Different ANN architecture accuracy results are presented in
table IV. The best results have been obtained for the 30
hidden layers ANN architecture.</p>
        <p>Referred to the resulted test confusion matrix, trained inputs
provides a total precision of 92.3% and total error of 7.7%,
showed in the blue cell of the matrix. Precision and accuracy
values corresponding to each output-target class, represented
in green cells in the matrix, were as follow:
-Class-target 1: 95.0% and 93.3%.
-Class-target 2: 90.4% and 94.7%.
-Class-target 3: 95.8% and 88.7%.
-Class-target 4: 89.4 and 92.3%.</p>
        <p>Results are illustrated in Fig.9.</p>
        <p>As already stated the best ROC wished, is when the
curves starts so close to the y-axis, to reach the closer it can
get, to the left-upper corner and then to go parallel with
xaxis to reach the closest to the right-upper angle.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>IV. CONCLUSION</title>
      <p>We presented a full study of the STS motion based on
experiences made on 10 healthy subjects. After
understanding different factors that affect the movement and
biomechanics behind, we used 6 IMU sensors placed on the
metatarsal, shank and thigh segments of the lower limb parts,
and 1 IMU sensor on the trunk to extract and record STS
motion parameters such as the acceleration, angular velocity,
inclination and joint angles. In order to classify this data, we
used the Artificial Neural Network Toolbox in MATLAB.
By trying different architectures, we were able to each an
accuracy of 92.3% using the 30 layers architecture. Finally,
we proposed a conceptual algorithm model of the STS
motion based on analyzed results and visual observation of
different steps during the task. STS analysis has been always
an interesting study in different biomedical, biomechanics
and physical therapy. Improving our suggested method can
be used to study STS performance in elderly and obese
people or patients representing a Parkinson disease, impaired
postural control, etc. Higher accuracy, using ANN based
classification can be reached by increasing number of trials
per subject. Furthermore, our extracted features can be used
as a reference input to design a Patient Motion Aid
exoskeleton to assist disabled people in achieving a STS task
by their own.</p>
    </sec>
    <sec id="sec-5">
      <title>V. REFERENCES</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Courtney</surname>
            ,
            <given-names>J. B.</given-names>
          </string-name>
          (
          <year>2001</year>
          ).
          <article-title>Application of Digital Image Processing to Marker-free Analysis of Human Gait</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Whittle</surname>
            ,
            <given-names>M. W.</given-names>
          </string-name>
          (May 12,
          <year>2014</year>
          ).
          <article-title>Gait analysis: An introduction</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>P.</surname>
          </string-name>
          ,
          <string-name>
            <surname>B.</surname>
          </string-name>
          (
          <year>2003</year>
          ).
          <article-title>Wearable sensors/systems and their impact on biomedical engineering.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Fathima S.M.H.S.S.</surname>
            ,
            <given-names>B. R.</given-names>
          </string-name>
          (March 21,
          <year>2012</year>
          ).
          <article-title>Human Gait Recognition Based on Motion Analysis Including Ankle to Foot Angle Measurement</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Raymond</given-names>
            <surname>Kai-Yu Tong</surname>
          </string-name>
          ,
          <string-name>
            <surname>M. G. (n.d.).</surname>
          </string-name>
          <article-title>practical gait analysis system using gyroscopes in Medical Engineering</article-title>
          &amp; Physics.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>R.</given-names>
            <surname>Takeda</surname>
          </string-name>
          ,
          <string-name>
            <surname>S. T.</surname>
          </string-name>
          (
          <year>2009</year>
          ).
          <article-title>Gait posture estimation using wearable acceleration and gyro sensors</article-title>
          .
          <source>Journal of biomechanics.</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>