# 1 Introduction

Assistive Technology (AT) Devices are tools that aim to provide people living with disabilities, complementary functionalities to compensate cognitive, sensory or motor impairments. Such tools often require complex user interaction to properly activate all their degrees of freedom (DoFs). Control interfaces (CIs) such as joysticks and user buttons, with or without adaptive functions, are necessary to capture the user’s intent and translate it into action commands. Although considerable efforts have been devoted to improve CIs for people living with severe disabilities, important challenges still need to be addressed both in terms of the variability of the users’ capacity to interface with AT and the general functionality of these ATs.

Individuals living with limited residual functional capacities (RFCs) have to rely on specialized CIs to provide them with activable DoFs. Devices such as dedicated joysticks and user buttons [1] require mechanical intervention by the user and can fail for those with dexterity issues, lack of mobility or absence of upper extremity members. Sip-and-puff tools [2] and head mounted switches [3] have successfully been used to operate powered wheelchairs. However, they are often cumbersome, counter intuitive and hardly adaptable to each individual’s ergonomic requirements (e.g. chair, wheelchair, bed), and impairment condition. CIs that translate tongue position into command vectors can provide several DoFs to the severely disabled, but they tend to be invasive, requiring a tongue piercing and necessitate the help of a third person to place/remove the headset or the necessary intraoral sensing accessory [4], [5]. Brain activity can be used to operate external devices by reading electroencephalography (EEG) and/or electrocorticography (ECoG) signals [6], [7]. Although the results are promising, precise electrode placement and extensive training phases are often required. Furthermore, the implementation cost of these techniques remains high [8]. Eye motion and gaze orientation sensed using electro-occulography (EOG) [9], and camera or infrared (IR) sensors [10]–[12], has been used as well to operate, inter alia, an articulated robotic arm [13], [14]. While skin preparation and facial electrode placement is required for EOG measurement, the user has to be positioned within a limited range of view for camera and IR sensors. Surface electromyography (sEMG), from which muscle activity patterns can be derived, has also been used through amplitude based detection [15] and/or pattern recognition [16] to implement efficient CIs. However, periodic recalibration of the classification system is required [17], [18]. In addition, sEMG-based control can be impractical in the presence of muscle spasms or when the muscle signal is weak, due to atrophy or low body-motion amplitude (e.g. fingers and toes). In these case, inertial measurement units (IMU) sensors, when properly used, can provide much better body motion measurement resolution.

Body-machine interfaces (BoMI) that rely on residual motion can be highly beneficial to users by maintaining a certain level of muscular activity and tonus in their mobile body parts. Commercial grade IMUs have been successfully used to read upper-body gestures and control external devices. Researchers used three [19] and four [20] IMU modules from Xsens Technologies2 to read the shoulder motion of individuals living with spinal cord injuries (SCI) between C2 and C5, and provide proportional control to a powered wheelchair and a computer cursor. In those studies, Principal Component Analysis (PCA) was performed to extract the first two principal components of the motion pattern during calibration, and build a body movement transfer function. However, such approaches limit the system DOFs to only two. Chau et al. proposed a technique consisting of modelling the upper body using a finite model introduced as the Virtual Body Machine (VBM) [21]. Although it was successfully tested using five IMU modules, developed by YOST Labs3, to operates a 7-DoF robotic arm, it requires precise upper body measurements such as: head width, torso height and posture. Systems relying on a set of calibrated angular amplitude thresholds (thresholds-based approach) to generate control commands that are proportionally derived from head/shoulder motions have also been developed [22]–[25]. Their operating principle is depicted in Figure 1. Despite their high precision, one major drawback of threshold-based approaches is that they can only target a pre-determined, and thus limited range of functional capacities. For instance, limiting motion to head and shoulder restrains the applicability and usability to a smaller group of disabilities. Furthermore, this type of control is not suitable for users with conditions that generate spasms.

For users to fully benefit from the growing popularity of AT devices, several issues need to be addressed to overcome the limitations of existing BoMI solutions. First, from a functional point of view, the existing BoMIs are often highly specific, hardly customizable and cannot accommodate a wide range of disabilities without significant changes to the architecture. The manufacturers often have to build or integrate new hardware and/or control algorithm for each user. Thus, from a design point of view, trying to accommodate new users with an existing system can introduce considerable engineering effort and monetary cost. As a large part of the population who need AT devices do not have access to them, due in part to the incurred costs, this issue must be addressed [26]. In particular, an efficient BoMI design should allow integration of new modalities to most suitably address the RFCs of the user (e.g. IMU, sEMG, voice).

This work proposes a calibration (training) and control algorithm providing both motion classification and amplitude control using IMU sensors. It applies proven signal processing techniques commonly used in EMG pattern recognition applications [27], to the processing of IMU signals, for body-machine interaction purposes. The proposed system translates residual body motion, from a wide range of body parts (e.g. finger, head, shoulder, foot), into up to a 9-DoF command vector for external device control. Unlike for modalities that require the use of electrodes or direct field of view, IMU sensors can be easily integrated within accessories and garments. The software algorithm is intended to run on a low-cost, readily accessible processing platform (Raspberry Pi [28] in this case), to be embedded on mobile platforms such as powered wheelchairs. This paper adopts a new approach to addressing the lack of non-invasive BoMIs for severely impaired individuals, by leveraging affordable solutions with the potential of being suitable for a wide range of disabilities. Additionally, the JACO arm from Kinova Robotics4 [29] is employed as a testbed to prove functionality of the proposed modular BoMI by performing activities of daily living in real-time.

This paper is organized as follows. An overview of the system’s architecture is provided in Section 2. Section 3 describes the dataset recorded for this work alongside the proposed feature extraction method, classification scheme and experiments conducted. Section 4 presents the experiments’ results within this work, including a real-time experiment to assess the usability of the proposed system for the completion of tasks of daily living.

# 2 System Architecture

In an era where the continuous evolution of technologies and structures is mainly shaped by our capacities, individuals living with cerebral paralysis (CP), spinal cord injuries (SCI), congenital absence of limbs and stroke-induced handicaps in the upper body, usually have limited direct interaction with their environment. Depending on the severity of their condition, these individuals often have RFCs allowing them to move their toe, foot, finger, shoulder and head. However, these motion abilities tend to weaken if not maintained. One of the main added values of BoMIs is to exploit these voluntary capacities and turn them into efficient control means to operate CIs while allowing users to more easily retain their motions capabilities.

The objective that motivated the architecture of the proposed system consists of providing the user with a flexible sensing system that can capture their RFCs and voluntary motion capacities for translation into commands. The system uses sensors that are worn with accessories, garments and as patches to properly measure IMU motion signals. Then, the suitable motion pattern features are extracted based on motion characteristics and fed into a classifier for real-time pattern recognition and classification into several classes. While each class is mapped to specific DoFs, motion amplitude is provided as well to allow for proportional control (speed control, position, intensity, etc), as depicted in Figure 2.

The proposed BoMI was specifically designed around a set of requirements to satisfy comfort, affordability, power autonomy, robustness and intuitiveness. The motion capture system utilizes a custom wearable sensor network, made of off-the-shelf electronic components. IMU data fusion and signal processing are performed by this system to provide precise pattern extraction.

## 2.1 Hardware System

The architecture of the custom, wireless, wearable body sensor network used to implement the proposed system is described in [24]. It is part of an ongoing project to provide a flexible framework architecture for the design of BoMIs dedicated to the severely disabled. Within the network, IMU sensor nodes integrate IMU sensing features using the LS9DSM0 inertial sensor from STMicroelectronics, Switzerland, which provides a serial peripheral interface (SPI). The MSP430F5528 microcontroller unit (MCU) from Texas Instrument, USA, is used for its low power performance. The recorded data is sent wirelessly using the nRF24L01+ 2.4-GHz radio-frequency (RF) chip from Nordic Semiconductor, Norway, which employs a proprietary protocol designed to allow up to 6 pipelines (TX and RX). Therefore, up to 6 IMU sensor nodes, lying on a 4-cm by 2.5-cm printed circuit board (PCB), can be used simultaneously. They can be worn with accessories (e.g., headset and ring), attached to clothes or put directly on the skin as patches (see Figure 3).

The wearable sensors are connected with a USB base station wirelessly through a body area network (BAN). The nodes are all independent from each other for flexibility and modularity. The network’s communication is performed using a star topology. The base station features the TM4C123GH6PM Cortex-M4F MCU from Texas Instruments to gather the data from the network, handle communications, signaling, and transfer the data to the Host platform (Raspberry Pi) for real-time data processing and pattern recognition. It is also used to program the sensors (i.e. download the firmware into the embedded MSP430 MCU) and for charging the battery.

## 2.2 Software and Signal Processing

The 16-bit raw IMU data from the $$i^{th}$$​ sensor ($$Sensor_{i}, i \in \left\{1,..,6\right\}$$​) are sampled at 60Hz to provide a suitable time resolution, given that body motion frequency is often below 10 Hz [30]. The 3-axis accelerometer (acc$$_{x}$$​, acc$$_{y}$$​, acc$$_{z}$$), 3-axis gyroscope (gyro$$_{x}$$​, gyro$$_{y}$$​, gyro$$_{z}$$) and 3-axis magnetometer (mag$$_{x}$$​, mag$$_{y}$$​, mag$$_{z}$$) components are processed using a first-order complementary filtering [31] approach as recommended in [24], to retrieve the corresponding Pitch$$_{i}$$, Roll$$_{i}$$ and Yaw$$_{i}$$ orientation angles. Data fusion provides 1$$^{o}$$​ precision and 18E-4$$^{o}/s$$​ measured angular drift over time. Prior to regular operation, proper angular offset rotation is applied during a calibration phase to provide the relative motion measurements with respect to an initial neutral position.

The raw IMU data (3-axis accelerometer, 3-axis gyroscope and 3-axis magnetometer), the calibrated 3D orientation angles (Pitch$$_{i}$$, Roll$$_{i}$$ and Yaw$$_{i}$$) and the time-domain features computed from all the sensors worn by the user are all used for motion pattern recognition. A motion amplitude indicator $$\gamma_{amp}$$​ described by ($$\ref{eq:amplitude}$$) is derived from the measured 3D angles in real-time. The maximum motion range values, ($$\gamma_{max}^{j}$$​, $$j \in \left\{0,..,n\right\}$$​), where $$n$$​ is the number of classes of the classifier, are captured during a training phase. The corresponding minimum values ($$\gamma_{min}^{j}$$​) are also found during the training phase. Thus, along each motion class $$c_{n}$$​, a proportional output $$\nu_{n}(t)$$​, computed as described in ($$\ref{eq:prop}$$), is provided.

$$$\gamma_{amp}(t) = \sqrt{Pitch_{i}^{2}(t) + Roll_{i}^{2}(t) + Yaw_{i}^{2}(t)} \label{eq:amplitude}$$$

$$$\nu_{j}(t) = \frac{\vert\gamma_{amp}(t) - \gamma_{min}^{j}\vert}{\gamma_{max}^{j} - \gamma_{min}^{j}} \label{eq:prop}$$$

# 3 Dataset and Method

The BoMI architectures described in [24], [25] employ a set of calibrated thresholds, based on the user’s capacities, to capture motion and infer intent. These systems use head motion measurement to generate control commands. They are built around a set of a priori assumptions about the user’s motion ranges and therefore exclude individuals with specific RFCs or spasms. The BoMI proposed in the current work overcomes these limitations, allowing the user to choose the body parts and motion ranges to use.

## 3.1 Participants

A total of five participants with different motion capacities were recruited to build, test and validate the functionalities of the proposed BoMI. For each individual user, a dedicated transfer function is provided, built from the classifier model generated by the acquired motion patterns (training session). The functionality and reliability of the proposed approach for different motion amplitudes, and over five consecutive days of usage, is also investigated. The architecture of the proposed BoMI is designed to provide portability and comfort.

The experimental protocol was performed in accordance with the ethical research at Laval University5. The complete dataset recorded with said experimental protocol is available for download at github.com/LatyrFall/FlexibleBoMI.

The body motions of interest were chosen in the perspective of having both an intuitive directional control (2D or 3D), similar to a joystick device, and the possibility to emulate at least 1 user button (see Figure 4). This is in conformity with devices such as the JACO arm, which minimally requires a 2D joystick and a single button as control devices to be fully controllable [24].

During the design phase, three able-bodied participants (P$$_{1}$$​, P$$_{2}$$​ and P$$_{3}$$) were recruited. The nine different head/shoulder motions presented in Figure 5 are employed to control the JACO arm with the same capability as with the joystick depicted in Figure 4. Three IMU sensors (Sensor$$_{1}$$, Sensor$$_{2}$$ and Sensor$$_{3}$$) are used and worn as depicted in Figure 6. The motion classes c$$_{1}$$​, c$$_{2}$$​, c$$_{3}$$​, c$$_{4}$$​, c$$_{5}$$​, c$$_{6}$$​, c$$_{7}$$​, c$$_{8}$$, described in Figure 5, are utilized to map the joystick functionalities F, B, R, L, R$$_{r}$$​, L$$_{r}$$​, B$$_{1}$$​, B$$_{2}$$, respectively. The class c$$_{0}$$​ indicates the user’s neutral position.

Two participants living with upper-body disabilities and specific residual motion capacities were then recruited to evaluate the performance of the proposed approach. Both are AT users, possess a JACO arm, and have experience using CIs such as joysticks, dedicated switches, keypads, sip-and-puff and eye-tracking tools. Prior to performing the experiment, the participants filled out a user profile form to provide information about their disability, residual body motion capacities and associated control level (from 1 to 3), spasm level if any (Low, Medium or High). The information is summarized in Table ???.

Participant $$P_{4}$$​, a male aged 29, has a Cerebral Palsy. He has spasm (see Table ???) and his RFCs allow him to perform head and foot movement. The targeted motions considered in consultation with the participant are: 4 head motions, $$c_{1}$$​, $$c_{2}$$​, $$c_{3}$$​ and $$c_{4}$$​ depicted in Figures 5-c), 5-d), 5-e) and 5-f), respectively, and knee elevation ($$c_{5}$$​). These motions allow the user to emulate all the functionalities of a 2D joystick while also allowing the simulation of a user button with $$c_{5}$$​. The utilization of two sensor nodes, Sensor$$_{1}$$ and Sensor$$_{2}$$, worn as depicted in Figure 7-a), are necessary to record the targeted motions.

Participant $$P_{5}$$​, a male aged 46, lives with a degenerative muscular dystrophy. He is able to perform head motion and limited left thumb movements. A 2D joystick control configuration with a user button emulation is again utilized. Two sensor nodes are worn as depicted in Figure 7-b). Sensor$$_{1}$$ is used for thumb motion sensing, as depicted in Figure 8, in order to replicate the 2D joystick control ((F, B, R, L). Additionally, the head motion depicted in Figure 5-e) is considered for user button emulation with respect to the participant’s functional capacities.

Characteristics
Age 29 y.o. 46 y.o.
Gender male male
Disability
Diagnosis Cerebral Palsy Muscular Dystrophy
Condition - Degenerative
Spasme Level High$$^{+}$$ Low$$^{+}$$
Residual Motion Head$$\star\star\star^{++}$$ Left Thumb$$\star\star$$
Right Foot$$\star\star\star$$ Head$$\star$$
Assistive Technologies
Assistive Devices

Adaptive CIs Joystick (Foot) Sip-and-Puff ASBs Joystick $$\geq$$​ 7 ASBs

: Profile of Participants with Upper-Body Disabilities.

[tableparticipantstab]

## 3.2 Dataset Recording

The specific targeted motion classes for each user (see Figure 5 and 8) are each recorded for a total of five seconds per motion. Each motion was repeated three times before moving to the next one, starting from $$c_1$$​. In between repetitions, the user was requested to go back to the neutral class ($$c_0)$$​ for a period of five second. In this work, this process will be referred to as a Sequence. For each user, three such Sequences are recorded to form a Session. This recording process is illustrated in Figure 9. The first two Sequences are employed for training and validation, whereas the last Sequence is reserved for the test set. Only the first two Sequences of the able-bodied participants were used during the classifier design phase to compare the performance of different architectures. In other words, the test sets of $$P_{1}$$​, $$P_{2}$$​ and $$P_{3}$$​ and all the data recorded for $$P_{4}$$​ and $$P_{5}$$​ were left completely untouched during the classifier design phase.

The first recorded Sequence ($$seq_{1}$$​) from P$$_{1}$$, using Sensor$$_{1}$$, Sensor$$_{2}$$ and Sensor$$_{3}$$, is depicted in Figure 10. Pitch$$_{i}$$, Roll$$_{i}$$ and Yaw$$_{i}$$ are plotted with the associated labels ($$c_{0}$$​, $$c_{1}$$​,..,$$c_{8}$$​). As comparison, the Pitch$$_{1}$$, Roll$$_{1}$$ and Yaw$$_{1}$$ recorded from participant $$P_{4}$$​ (see Figure 7-a) who reported a High level of spasm (see Table ???) are depicted in Figure 11. The measured in-class head motion angle variations (up to 10$$^{o}$$​) due to spasm are clearly visible. Note that the proposed approach relies on the possibility for the user to repeat their motion patterns over time. Repeating the different classes during the recording Sequences allows for greater in-class variability to be captured and accounted for.

In addition to precisely discriminating the body motion being performed with respect to the variability over time, the goal of the proposed system is to provide a proportional output, $$\gamma_{amp}(t)$$​, as described in Section 2.2. During an additional recording Session performed by P$$_{1}$$, the participant was asked to arbitrarily perform three different head motion amplitudes during the different repetitions ($$rep_{1}$$​ to $$rep_{3}$$​) of head motion classes ($$c_{1}$$​,$$c_{2}$$​,$$c_{3}$$​,$$c_{4}$$​,$$c_{5}$$​,$$c_{6}$$​) (see Figure 12). This additional recording session, referred to as the multi-amplitude examples (MAE), was intended to evaluate the robustness of the proposed approach, for different motion ranges.

In order to evaluate the performance of the classifier for long-term use, $$P_{1}$$​ performed daily recording sessions for five consecutive days. Thus, for each day from day1 to day5, two recording sequences intended for classifier training were performed with no particular attention to precise sensor placement. This was followed by another recording period during which the software generated a random sequence of 27 motions taken from the nine shown in Figure 5. Note that the user was only shown one motion of the sequence at a time, and each motion had to be held for five seconds. The collected data was intended to provide insight about the performance of the proposed approach over several days of utilization (see Section 4.3 for results).

## 3.3 Classifier Descriptions

An offline classifiers exploration, using the Statistics and Machine Learning Toolbox from MATLAB, was performed on the training sets of the able-bodied participants. That is, $$seq_{1}$$​ and $$seq_{2}$$​ of participant $$P_{1}$$​, $$P_{2}$$​ and $$P_{3}$$​ are used for training and validation respectively to find the best suited classifier architecture to discriminate the targeted motion classes. For the real-time control of an external device (e.g. a prosthesis), a latency between 100-300 ms is recommended [32]–[34]. Consequently, a window size of eight samples ($$T_{win} \approx$$​ 133 ms) was selected to enhance the classification accuracy, hence setting the processing time at the lower end of the recommended latency control. Windows are created with an overlap of 7 samples ($$T_{ovrlp} \approx$$​ 116 ms) as a form of data augmentation [35], [36]. A Linear Discriminant Classifier (LDA) was selected for the classification task as it is computationally inexpensive, robust and devoid of hyperparameters. Moreover, it was shown to obtain similar performance in comparison to more complex models for biometric pattern recognition [35], [37].

The offline classifiers exploration was also used to identify suitable feature extraction to be used as input for the classifier. An important consideration when designing the feature set was to limit as much as possible the computational cost of producing a given feature vector so that the solution remain lightweight. As described in Section 2.2, the raw inertial data from all the sensors worn by the user is sampled and fused using a complementary filtering approach in order to retrieve the 3D orientation angles. The performance of the following 3 feature vectors was evaluated: 1) $$FV_{1}$$​ consists of the 3D orientation angles from Sensor$$_{1}$$ (Pitch$$_{1}$$, Roll$$_{1}$$, Yaw$$_{1}$$), and Pitch and Roll from the other sensors used (Sensor$$_{2}$$ and Sensor$$_{3}$$ (if available)); 2) $$FV_{2}$$​ consists of the same components as $$FV_{1}$$​, plus the measured gyroscope components from all sensors, which provides additional information regarding user motion characteristics such as spasm; 3) $$FV_{3}$$​ where each window is divided into two sub-windows of length four. Then, the Minimum, Maximum, Average and Absolute Sum for each of the components of $$FV_{2}$$​ are calculated to form the feature vector.

## 3.4 Real-time Robotic Arm Control

To evaluate the functionality of the proposed approach in real-time, the BoMI was used to control the JACO arm. Participant $$P_{1}$$​ performed an assembly task where, as depicted in Figure 13, two cubes of 5 cm were to be moved from position A one by one, and stacked at location B. Three repetitions were required and no timeout delay was defined. The task is considered finished when the participant successfully manages to stack the cubes in a stable manner. For comparison, the experiment is also performed using the joystick controller depicted in Figure 4 (default control method of the JACO arm). The initial position of the arm ($$P_{o}$$​) known as the home position is depicted in Figure 13. The software algorithm is implemented in C++, using the libsubspace library [38], [39], and the Application Programmable Interface (API) provided by Kinova Robotics, Canada to control the robotic arm. It implements a data logger, running while the task is being performed, to record the controller’s output and the robotic arm’s coordinates.

JACO was controlled in 3D mode in this test and it was set to require two user buttons for mode navigation at a maximum speed of 20 cm/s. One IMU sensor ($$Sensor_{1}$$​) was worn with a headset, and head motion classes from $$c_1$$​ to $$c_6$$​ as depicted in Figure 5 were mapped to joystick functionalities F, B, R, L, R$$_{r}$$​, L$$_{r}$$, which respectively correspond to displacements of the robotic arm in $$y-$$​, $$y+$$​, $$x-$$​, $$x+$$​, $$z+$$​, $$z-$$​ (see Figure 13). The user buttons B$$_{1}$$​, B$$_{2}$$ used with the joystick were emulated with two Switch Click USB from Ablenet6. The LDA classifier is trained during a calibration phase by recording a single training MAE sequence. Three different motion amplitudes (minimum, intermediate and maximum range) are performed to allow a proportional control.

# 4 Results

## 4.1 Classification Performances

The measured accuracy over the test set of each participant, for each feature vector, is summarized in Table ???. For participants $$P_{4}$$​ and $$P_{5}$$​, $$FV_{3}$$​ provides an average performance increase of 6.01% and 4.31% compare to $$FV_{1}$$​ and $$FV_{2}$$​ respectively. Consequently, subsequent experiments were conducted considering only $$FV_{3}$$​.

Classification accuracy using the different feature vectors tested ($$FV_1$$​, $$FV_2$$​ and $$FV_3$$​) for all the participants ($$P_{1}$$​ to $$P_{5}$$​).
Participants       $$FV_{1}$$       $$FV_{2}$$       $$FV_{3}$$
$$P_{1}$$​    100.00%      100.00%       100.00%
$$P_{2}$$​    99.75%      99.78%       99.87%
$$P_{3}$$​    100.00%      100.00%       100.00%
$$P_{4}$$​    89.02%      90.92%       94.84%
$$P_{5}$$​    82.28%      83.78%       88.48%

[tableperformancetab]

Based on the confusion matrix corresponding to the measured performance with participant $$P_{4}$$​ (see Figure 14), the most misclassified class at 64.2% accuracy is $$c_{1}$$​. Figure 11 reveals that, for this class, the angle variations due to spasm are the highest in comparison to other classes, e.g. $$c_{3}$$​. This explains the overall measured prediction accuracy of 94.84% (see Table ???). For participant $$P_{5}$$​, Figure 15 reveals that $$c_{3}$$​ (see Figure 8 for a description of the control motion) is 48.8% and 14.2% confused with $$c_{0}$$​ and $$c_{5}$$​, respectively. This is due to the low motion range of $$P_{5}$$​’s left finger. In addition, the sensor used for the recording Session had a size of 4.0 cm by 2.5 cm, which slightly hindered the motion freedom. Note that for both $$P_{4}$$​ and $$P_{5}$$​, the vast majority of the classifier’s mistakes came from predicting the motion $$c_{0}$$​ (neutral). For real-time applications, these types of misclassifications do not affect the state of the assistive device (in comparison to other types of misclassifications) and are therefore the easiest to recover from.

## 4.2 Proportional Control & Reliability

As described in Section 3.2, participant P$$_{1}$$ performed a recording session, referred to as MAE, during which three distinct amplitudes are realized for each motion class intended for intuitive directional control: a minimum and a maximum amplitude that define the range and an intermediate level (see Figure 12). The impact of varying the amplitude during the training on the classifier’s performance is assessed by employing two different datasets for training, while testing is done on the third sequence. The first training was done using the first two Sequences of the MAE dataset; the second was realized with two new sequences from participant $$P_{1}$$​, both recorded with a single amplitude and referred to as the single-amplitude example (SAE). Figure 16 shows a comparative view of the measured classification output in these 2 configurations. While training with a the SAE is only 80.76% accurate when the amplitude varies, the proposed training method with MAE provides 95.76% reliability. In both cases, the misclassified events are only confused with the neutral position $$c_{0}$$​, thus minimizing the risk of an unexpected behaviour of the controlled device.

## 4.3 Performance Reliability Over Several Days

As described in Section 3.2, in order to evaluate reliability over several days of usage, motion data from participant $$P_{1}$$​ was recorded every day for a 5-day period. Two sequences are intended for training and subsequent predictions are performed on data recorded from 27 random motions. First, a prediction model generated using the two training sequences recorded on day one (referred to as the day-1 model) is used to predict the labels for others days (from day one to day five). Second, the experiment is repeated using the d-day models where a new model ($$m_i$$​) is generated every new day using the training data of the associated day ($$d_i$$​). Table ??? shows that while the d-day models outperform the day-1 model, the later model is still highly accurate even after 5 days without recalibration (98.31% test set accuracy).

Measured prediction accuracy based on the dataset recorded over 5 consecutive days. day1 model refers to the performance obtained when using the examples of day1 for training, while d-day models refers to the measured accuracy when using the d-day examples.
Training Model day1 day2 day3 day4 day5
day1 model 99.58% 99.93% 98.14% 97.50% 98.31%
d-day models 99.58% 99.60% 98.10% 100.0% 100.0%

[tableperfvstimetab]

## 4.4 Real-Time Robotic Arm Control Performance

On average, the real-time control task with the JACO arm was completed in 138 sec with the BoMI and in 58 sec with the joystick. The task duration measured during the 3 trials are reported in Table ???. Although participant $$P_{1}$$​, who is an able-bodied person, performed faster using the joystick controller, the assembly task was still successfully completed using the proposed BoMI, which is more accessible to individuals with certain type of upper-body disabilities.

Figure 17 provides an overview of the real-time robotic arm control experiment in action. Figure 17-a) shows the position of the robotic arm’s end effector from position $$P_{0}$$​, relatively to the location B, during the best trial using each controller. Figures 17-b) and 17-c) show the output of the classifier and the amplitudes $$\gamma_{amp}(t)$$​ and $$\nu(t)$$​ (see ($$\ref{eq:amplitude}$$) and ($$\ref{eq:prop}$$)), respectively, following the position of the robotic arm depicted in Figure 17-a). The outputs identified as misclassified events due to irrelevancy are highlighted in red with the number of outputs. When comparing with Figure 17-a), one can realize that it has not generated explicit undesired motion of the robotic arm. Furthermore, the maximum number of measured consecutive misclassifications is 18, which corresponds to only 290 ms. The accuracy in real-time operation is evaluated to be 99.2%.

Measured task duration using the proposed BoMI and the joystick controller, for each of the three trials.
Control Interface       Trial 1       Trial 2       Trial 3
Proposed BoMI 156.58$$s$$​      121.08$$s$$​       135.37$$s$$​
Joystick Controller 59.36$$s$$​       64.64$$s$$​       49.84$$s$$​

[tabletrialstab]

# 5 Conclusion

This paper presents an assistive, modular BoMI for people living with disabilities and limited RFCs. A custom wearable and wireless body sensor network is used to measure the residual body motion of the user, and classify it to infer the user’s intents and appropriate human-machine interaction. A complimentary filtering approach is employed for IMU data fusion to retrieve the 3D orientation angles while the pattern recognition system utilizes an LDA classifier. Five participants (three able-bodied subjects and two with disabilities) were recruited to build a dataset, which is made readily available online for download. This dataset was used to evaluate the feasibility of a flexible and modular CI, capable of exploiting the motion of different body parts such as the head, shoulders, fingers and foot. The capacities of participants living with disabilities include spasm and limited motion ranges, making it challenging to discriminate the different targeted motion classes. The measured performances show that the proposed approach can reach 100% of accuracy for up to 9 head and shoulder motions when used by able-bodied individuals. Such results are highly relevant as able-bodied participants can have motion control and amplitudes similar to people with absence of upper-limbs, spinal cord-injuries at C5-C8 levels, after-stroke injuries, etc. In the presence of spasm, head motion classification combined with the right foot shows 94.84% accuracy. Finally, the discrimination of limited finger motions can achieve 88.48% accuracy. Compared to threshold-based systems targeting specific body motion types, and architectures implementing PCA, the proposed BoMI supports 3D motion abilities of different body parts, with different characteristics, using a single architecture. Hence, the results outcomes of this feasibility study are promising. Future work will improve upon the custom hardware used by designing smaller sensor nodes capable of measuring the RFCs of different body parts without hindering free motion. Additionally, confidence-based rejection control methods will be explored in conjunction with the LDA to, hopefully, further improve real-time usability [40]. Then, more participants with various types of disabilities and conditions will be recruited to enrich the existing dataset and make it accessible to the research community in the field of body-machine interaction and human capacity empowerment for the severely disabled.

# References

[1] M. Shibata, C. Zhang, T. Ishimatsu, M. Tanaka, and J. Palomino, “Improvement of a joystick controller for electric wheelchair user,” Modern Mechanical Engineering, vol. 5, no. 4, p. 132, 2015.

[2] T. F. Bastos-Filho et al., “Towards a new modality-independent interface for a robotic wheelchair,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 22, no. 3, pp. 567–584, 2014.

[3] P. Carrington, A. Hurst, and S. K. Kane, “Wearables and chairables: Inclusive design of mobile input and output techniques for power wheelchair users,” in Proceedings of the 32nd annual acm conference on human factors in computing systems, 2014, pp. 3103–3112.

[4] L. NS Andreasen Struijk et al., “Development and functional demonstration of a wireless intraoral inductive tongue computer interface for severely disabled persons,” Disability and Rehabilitation: Assistive Technology, vol. 12, no. 6, pp. 631–640, 2017.

[5] A. Jafari, N. Buswell, M. Ghovanloo, and T. Mohsenin, “A low-power wearable stand-alone tongue drive system for people with severe disabilities,” IEEE transactions on biomedical circuits and systems, vol. 12, no. 1, pp. 58–67, 2018.

[6] J. Meng, S. Zhang, A. Bekyo, J. Olsoe, B. Baxter, and B. He, “Noninvasive electroencephalogram based control of a robotic arm for reach and grasp tasks,” Scientific Reports, vol. 6, p. 38565, 2016.

[7] A. Nijholt, C. S. Nam, and F. Lotte, “Introduction: Evolution of brain–computer interfaces,” in Brain–computer interfaces handbook, CRC Press, 2018, pp. 27–34.

[8] K. D. Katyal et al., “HARMONIE: A multimodal control framework for human assistive robotics,” in Neural engineering (ner), 2013 6th international ieee/embs conference on, 2013, pp. 1274–1278.

[9] A. López, F. Ferrero, D. Yangüela, C. Álvarez, and O. Postolache, “Development of a computer writing system based on eog,” Sensors, vol. 17, no. 7, p. 1505, 2017.

[10] C. Wangwiwattana, X. Ding, and E. C. Larson, “PupilNet, measuring task evoked pupillary response using commodity rgb tablet cameras: Comparison to mobile, infrared gaze trackers for inferring cognitive load,” Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, vol. 1, no. 4, p. 171, 2018.

[11] E. Arbabi, M. Shabani, and A. Yarigholi, “A low cost non-wearable gaze detection system based on infrared image processing,” arXiv preprint arXiv:1709.03717, 2017.

[12] S. Li, X. Zhang, and J. Webb, “3D-gaze-based robotic grasping through mimicking human visuomotor function for people with motion impairments,” IEEE Transactions on Biomedical Engineering, 2017.

[13] A. López, F. Ferrero, D. Yangüela, C. Álvarez, and O. Postolache, “Development of a computer writing system based on eog,” Sensors, vol. 17, no. 7, p. 1505, 2017.

[14] S. Li, T. Fujiura, and I. Nakanishi, “Recording gaze trajectory of wheelchair users by a spherical camera,” in Rehabilitation robotics (icorr), 2017 international conference on, 2017, pp. 929–934.

[15] C. L. Fall et al., “Wireless sEMG-based body–machine interface for assistive technology devices,” IEEE journal of biomedical and health informatics, vol. 21, no. 4, pp. 967–977, 2017.

[16] U. Cote-Allard, C. L. Fall, A. Campeau-Lecours, C. Gosselin, F. Laviolette, and B. Gosselin, “Transfer learning for sEMG hand gestures recognition using convolutional neural networks,” in 2017 ieee international conference on systems, man, and cybernetics (smc), 2017, pp. 1663–1668.

[17] J. Liu, X. Sheng, D. Zhang, J. He, and X. Zhu, “Reduced daily recalibration of myoelectric prosthesis classifiers based on domain adaptation,” IEEE journal of biomedical and health informatics, vol. 20, no. 1, pp. 166–176, 2016.

[18] U. Côté-Allard et al., “Virtual reality to study the gap between offline and real-time emg-based gesture recognition,” arXiv preprint arXiv:1912.09380, 2019.

[19] E. B. Thorp et al., “Upper body-based power wheelchair control interface for individuals with tetraplegia,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 24, no. 2, pp. 249–260, 2016.

[20] F. Abdollahi et al., “Body-machine interface enables people with cervical spinal cord injury to control devices with available body movements: Proof of concept,” Neurorehabilitation and neural repair, vol. 31, no. 5, pp. 487–493, 2017.

[21] S. Chau, S. Aspelund, R. Mukherjee, M.-H. Lee, R. Ranganathan, and F. Kagerer, “A five degree-of-freedom body-machine interface for children with severe motor impairments,” in Intelligent robots and systems (iros), 2017 ieee/rsj international conference on, 2017, pp. 3877–3882.

[22] C. L. Fall et al., “Intuitive wireless control of a robotic arm for people living with an upper body disability,” in Engineering in medicine and biology society (embc), 2015 37th annual international conference of the ieee, 2015, pp. 4399–4402.

[23] C. L. Fall et al., “A multimodal adaptive wireless control interface for people with upper-body disabilities,” 2017 IEEE International Symposium on Circuits and Systems (ISCAS), pp. 1–4, 2017.

[24] C. L. Fall et al., “A multimodal adaptive wireless control interface for people with upper-body disabilities,” IEEE Transactions on Biomedical Circuits and Systems, 2018.

[25] A. Jackowski, M. Gebhard, and R. Thietje, “Head motion and head gesture-based robot control: A usability study,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 26, no. 1, pp. 161–170, 2018.

[26] T. M. Research, “Assistive technology (at) devices market - global industry analysis, size, share, growth, trends and forecast 2017 - 2025,” 2018. https://www.transparencymarketresearch.com/assistive-technology-devices-market.html.

[27] H. Sun, X. Zhang, Y. Zhao, Y. Zhang, X. Zhong, and Z. Fan, “A novel feature optimization for wearable human-computer interfaces using surface electromyography sensors,” Sensors, vol. 18, no. 3, p. 869, 2018.

[28] R. Pi, “Raspberry pi 3,” 2018. https://www.raspberrypi.org/.

[29] A. Campeau-Lecours et al., “Kinova modular robot arms for service robotics applications,” International Journal of Robotics Applications and Technologies (IJRAT), vol. 5, no. 2, pp. 49–71, 2017.

[30] H. Zeng and Y. Zhao, “Sensing movement: Microsensors for body motion measurement,” Sensors, vol. 11, no. 1, pp. 638–660, 2011.

[31] T. Islam, M. S. Islam, M. Shajid-Ul-Mahmud, and M. Hossam-E-Haider, “Comparison of complementary and kalman filter based data fusion for attitude heading reference system,” in AIP conference proceedings, 2017, vol. 1919, p. 020002.

[32] T. R. Farrell and R. F. Weir, “The optimal controller delay for myoelectric prostheses,” IEEE Transactions on neural systems and rehabilitation engineering, vol. 15, no. 1, pp. 111–118, 2007.

[33] U. C. Allard et al., “A convolutional neural network for robotic arm guidance using sEMG based frequency-features,” in Intelligent robots and systems (iros), 2016 ieee/rsj international conference on, 2016, pp. 2464–2470.

[34] L. H. Smith, L. J. Hargrove, B. A. Lock, and T. A. Kuiken, “Determining the optimal window length for pattern recognition-based myoelectric control: Balancing the competing effects of classification error and controller delay,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 19, no. 2, pp. 186–192, 2010.

[35] U. Côté-Allard et al., “Deep learning for electromyographic hand gesture signal classification using transfer learning,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, 2019.

[36] A. Sakai, Y. Minoda, and K. Morikawa, “Data augmentation methods for machine-learning-based classification of bio-signals,” in Biomedical engineering international conference (bmeicon), 2017 10th, 2017, pp. 1–4.

[37] E. J. Rechy-Ramirez and H. Hu, “Bio-signal based control in assistive robots: A survey,” Digital Communications and networks, vol. 1, no. 2, pp. 85–101, 2015.

[38] I. Fratric and S. Ribaric, “Local binary lda for face recognition,” in European workshop on biometrics and identity management, 2011, pp. 144–155.

[39] I. Fratric, “LibSubspace,” 2018. https://github.com/ivanfratric/libsubspace.

[40] E. J. Scheme, B. S. Hudgins, and K. B. Englehart, “Confidence-based rejection for improved pattern recognition myoelectric control,” IEEE Transactions on Biomedical Engineering, vol. 60, no. 6, pp. 1563–1570, 2013.

1. C. L. Fall, U. Côté-Allard, Q. Mascret and B. Gosselin are with the Department of Electrical Engineering, Laval University, Quebec City, QC, Canada. A. Campeau-Lecours and C. Gosselin are with the Department of Mechanical Engineering, Laval University. M. Boukadoum is with the Department of Computer Science of Université du Québec à Montréal. Corresponding author: U. Côté-Allard (email: ulysse.cote-allard.1@ulaval.ca).↩︎

2. Enschede, Netherlands (www.xsens.com/)↩︎

3. Ohio, USA (www.yostlabs.com/)↩︎