# Design of a Code-Maker Translator Assistive Input Device with a Contest Fuzzy Recognition Algorithm for the Severely Disabled

Authors: Chung-Min Wu; Jyun-Slan Liou
Journal: Mathematical Problems in Engineering
 (2015)

---

## Abstract

This study developed an assistive system for the severe physical disabilities, named “code-maker translator assistive input device” which utilizes a contest fuzzy recognition algorithm and Morse codes encoding to provide the keyboard and mouse functions for users to access a standard personal computer, smartphone, and tablet PC. This assistive input device has seven features that are small size, easy installing, modular design, simple maintenance, functionality, very flexible input interface selection, and scalability of system functions, when this device combined with the computer applications software or APP programs. The users with severe physical disabilities can use this device to operate the various functions of computer, smartphone, and tablet PCs, such as sending e-mail, Internet browsing, playing games, and controlling home appliances. A patient with a brain artery malformation participated in this study. The analysis result showed that the subject could make himself familiar with operating of the long/short tone of Morse code in one month. In the future, we hope this system can help more people in need.


---

## Body

## 1. Introduction

The majority of users employ either the keyboard or the mouse to access a computer and its functions. Nowadays there exists a myriad of assistive mechanisms which mimic the functions of these input devices for individuals with severe disabilities. These include inductive tongue computer interface [1], eye-controlled device [2], head-controlled device [3, 4], infrared-controlled devices [5, 6], voice-controlled device [7], and physiological signals assistive device (such as Electrooculogram (EOG) switch [8–10], Electromyography (EMG) switch [11–13], and Electroencephalogram (EEG) [14–20]). However, many assistive input devices provide a mode of switch scanning in which one master unit follows the sequence check status of the slave unit for the input of text characters, and this tends to be rather slow.Morse code is a powerful alternative for access to augmentative and alternative communication (AAC) devices and computer; this is useful for people who can spell and who can only use one switch, where they activate it for a short or a long time or use two switches and where one represents dots and the other dashes. The dots and dashes are used to represent letters of the alphabet. The difficulty most commonly encountered by users is the requirement to conform to the standard long to short tone ratio of 3 : 1 prescribed in standard Morse code. In 2002, the author Dr. Wu presented the fuzzy Morse code recognition algorithm [21, 22] in a single-chip microprocessor that can trace the user’s operating time and automatically adjust the threshold value between long and short elements of Morse code in a real time. At the same time, he made a Morse code text input system (McTin) [23, 24] for the people with severe disabilities (such as quadriplegic) to operate the computer. McTin still has some disadvantages which need to be improved; these disadvantages are the following: first, the input interface only fits mechanical switches, second, when the user is operating the Morse code, McTin cannot provide the sound feedback, third, the fuzzy recognition algorithm can update to improve the recognition rate, and, forth, McTin needs multiline to connect with computer.In order to improve the above McTin disadvantages, this study presents a code-maker translator assistive input device (CMTAID), which utilizes a contest fuzzy recognition algorithm and Morse codes encoding providing the keyboard and mouse functions for users with severe disabilities to access a standard personal computer, smartphone, and tablet PC.


## 2. Methods and Implementation

This study presents code-maker translator assistive input device (CMTAID) which includes three parts that are assistive input switches, a contest fuzzy recognition algorithm in microprocessor, and product design.


### 2.1. Assistive Input Switch

Morse code assistive input interface can use various input modes but just needs to provide the binary output; due to a variety of different diseases, patients should design a suitable assistive input interface; this study is divided into two kinds of input interfaces that are passive and active input interfaces, respectively. The passive switch which is based on mechanical switches that can provide simple binary output (on/off); McTin applies this kind of input interface for spinal cord injury subjects through mouth to use, that is, mouth controlled nipple switch [23]. The active switch is based on sensors, such as utilizing light, sound, and the other analog signal as the signal source. In this paper, we will present an active infrared sensor switch for the patients whose hands functions have not been fully degraded and they can choose it for use. By using an LED which produces light at the same wavelength as what the sensor is looking for, you can look at the intensity of the received light. When an object is close to the sensor, the light from the LED bounces off the object and into the light sensor (Figure 1). This results in a large jump in the intensity, which we already know can be detected using a threshold. This study combines the light sensor with a comparator of the operational amplifier (OPA) to provide a binary output; the OPA reference voltage value can set up the reflected distance of IR light detected by sensor. In order to avoid the multitrigger from the unstable IR reflected signal, we designed a circuit of inverting Schmitt trigger with reference voltage to increase the stability of the special IR switch. At the same time we consider a problem of the user’s operating habit; we designed two modes to operate this switch: one is object present to change the trigger state and the other is no object present to change the trigger state. Additionally, this study is using the 555-oscillator IC to design the feedback sound of Morse code (dot and dash) for the severe disabilities to learn Morse code more easily and an external speaker output block. The appearance of special IR switch is shown in Figure 2. Although this study presents the use of a special IR switch for the input of Morse codes, the form of the input device can be modified to suit the particular requirements of users with different degrees of physical disability [13, 25].Figure 1
The action theory of IR sensor.Figure 2
The special IR switch.


### 2.2. Contest Fuzzy Recognition Algorithm

Morse code consists of a series of long (dash) and short (dot) tones separated by periods of silence (space). Standard Morse code specifies a ratio of 3 : 1 for duration of the long to short elements (tone or silence). If there is a significant variation in this ratio over the input of a Morse code transmission, most recognition systems struggle to identify the input elements correctly. In practice, many users with disabilities experience great difficulty in maintaining a stable input rate and pattern. CMTAID employs the contest fuzzy recognition algorithm (CFRA, Figure3) to trace the tendencies of a particular user when the long or short elements are generated and then modifies the threshold value (T
k) which distinguishes the two elements accordingly. In other words, T
k is an adjusted recognition level that follows the user’s typing speed by CFRA. Figure 3(a) is the structure of the CFRA; this structure fits to trace the variation of the duration time of assistive switch pressed/released. l
k is the time of long element, which is the duration time of the assistive switch pressed or released. l
y
k is the fuzzy time value of long element. Similarly, s
k is the time of short element and s
y
k is the fuzzy time value of short element. The symbol LSR refers to the ratio between long and short elements of Morse code. In Figure 3(b), the I
k is the input signal, the t
1, t
2, t
3, and t
4 are the duration times of the assistive switch pressed, and the s
t
1, s
t
2, and s
t
3 are the duration times of the assistive switch released. When the released times are all smaller than T
k, the Morse code sequences will combine and convert it to a significant character “f” by CMTAID and translator to the PC, smartphone, and tablet PC through the USB HID interface that is generated by arduino.Figure 3
The contest fuzzy recognition algorithm.
(a)
(b)The recognition procedure is described as below.Step 1 (contest region recognition).
Consider the following.IfI
k
>
T
k
∗
(
1
+
σ
) then I
k belongs in long element region (l
k).
Else ifI
k
<
T
k
∗
(
1
-
σ
) then I
k belongs in short element region (s
k).
ElseI
k belongs in unclear region.
Here,σ is the standard deviation of T
k.Step 2 (fuzzy adjustment).
Consider the following.IfI
k belongs in long or short element region then one has the following.
Use one-node fuzzy algorithm [21, 23] to calculate the l
y
k and s
y
k value and then to modify T
k.
For example, the prediction errore
k, an input to the fuzzy algorithm, is created by the difference between l
k and l
y
k
-
1, such that(1)
e
k
=
l
k
-
l
y
k
-
1
.
In the fuzzy algorithm, a linguistic fuzzy rule is utilized to calculate modified errore
k
′. Five linguistic parameters are as follows: LN, negative large; SN, negative small; ZE, zero; SP, positive small; LP, positive large.
Fuzzy rule 1: ife
k is LN then e
k
′ is LN (typing highest speed).
Fuzzy rule 2: ife
k is SN then e
k
′ is SN (typing high speed).
Fuzzy rule 3: ife
k is ZE then e
k
′ is ZE (typing normal speed).
Fuzzy rule 4: ife
k is SP then e
k
′ is SP (typing slow speed).
Fuzzy rule 5: ife
k is LP then e
k
′ is LP (typing lowest speed).
The output variable (e
k
′) of fuzzy recognition is by the center of gravity method in (2), where the variable G
i is the membership grade of the ith premise in the inference rule and C
i is the center value of the ith conclusion in inference rule:(2)
e
k
′
=
∑
i
=
1
n
G
i
C
i
∑
i
=
1
n
C
i
.
Based on the values ofe
k
′ and l
y
k
-
1, the predictive output l
y
k is updated by(3)
l
y
k
=
l
y
k
-
1
+
e
k
′
.
The same goes for the short element in the same derivation.
Else, calculate the middle point (mp) betweenl
y
k and s
y
k and compare it with the I
k to classify the I
k belonging in long/short element region:(4)
mp
=
s
y
k
+
l
y
k
-
s
y
k
2
.
IfI
k > mp then I
k belongs in long element region;
Else,I
k belongs in short element region.Step 3 (T
k modification).
Consider(5)
T
k
=
l
y
k
+
LSR
∗
s
y
k
4
.


### 2.3. Product Design

The product design of CMTAID as shown in Figure4(a) shows the front panel of the CMTAID, which has two kinds of input socket and a speed adjustment switch. The phone jack input socket provides a connection point for the mechanical type switch that is a passive input switch. The USB micro-B input socket provides a connection point for the sensor type switch that is an active input switch. The speed adjustment switch allows modifying the operating speed of the device (i.e., initial threshold value of fuzzy algorithm) for users with different degrees of disability. A maximum of ten discrete speed levels (i.e., 0~9) is available, where a higher speed level corresponds to a slower typing speed. The user is free to change the speed by pushing the “+” or “−” button. Figure 4(b): the CMTAID incorporates eight indicator lights within its top panel, that is, Keyboard (“KB”), Mouse (“MS”), Training (“TR”), Shift, Ctrl, Alt, Caps Lock (“Caps”), and one-key/two-key input mode (“2”). This arrangement provides the user with a simple means of ascertaining the current state of the device. Figure 4(c) is a back cover. Figure 4(d) clearly illustrates the only one USB micro-B output socket required for connection to a PC in the keyboard-mode, mouse-mode, and practice-mode.Figure 4
The product design of CMTAID.
(a)
(b)
(c)
(d)


## 2.1. Assistive Input Switch

Morse code assistive input interface can use various input modes but just needs to provide the binary output; due to a variety of different diseases, patients should design a suitable assistive input interface; this study is divided into two kinds of input interfaces that are passive and active input interfaces, respectively. The passive switch which is based on mechanical switches that can provide simple binary output (on/off); McTin applies this kind of input interface for spinal cord injury subjects through mouth to use, that is, mouth controlled nipple switch [23]. The active switch is based on sensors, such as utilizing light, sound, and the other analog signal as the signal source. In this paper, we will present an active infrared sensor switch for the patients whose hands functions have not been fully degraded and they can choose it for use. By using an LED which produces light at the same wavelength as what the sensor is looking for, you can look at the intensity of the received light. When an object is close to the sensor, the light from the LED bounces off the object and into the light sensor (Figure 1). This results in a large jump in the intensity, which we already know can be detected using a threshold. This study combines the light sensor with a comparator of the operational amplifier (OPA) to provide a binary output; the OPA reference voltage value can set up the reflected distance of IR light detected by sensor. In order to avoid the multitrigger from the unstable IR reflected signal, we designed a circuit of inverting Schmitt trigger with reference voltage to increase the stability of the special IR switch. At the same time we consider a problem of the user’s operating habit; we designed two modes to operate this switch: one is object present to change the trigger state and the other is no object present to change the trigger state. Additionally, this study is using the 555-oscillator IC to design the feedback sound of Morse code (dot and dash) for the severe disabilities to learn Morse code more easily and an external speaker output block. The appearance of special IR switch is shown in Figure 2. Although this study presents the use of a special IR switch for the input of Morse codes, the form of the input device can be modified to suit the particular requirements of users with different degrees of physical disability [13, 25].Figure 1
The action theory of IR sensor.Figure 2
The special IR switch.


## 2.2. Contest Fuzzy Recognition Algorithm

Morse code consists of a series of long (dash) and short (dot) tones separated by periods of silence (space). Standard Morse code specifies a ratio of 3 : 1 for duration of the long to short elements (tone or silence). If there is a significant variation in this ratio over the input of a Morse code transmission, most recognition systems struggle to identify the input elements correctly. In practice, many users with disabilities experience great difficulty in maintaining a stable input rate and pattern. CMTAID employs the contest fuzzy recognition algorithm (CFRA, Figure3) to trace the tendencies of a particular user when the long or short elements are generated and then modifies the threshold value (T
k) which distinguishes the two elements accordingly. In other words, T
k is an adjusted recognition level that follows the user’s typing speed by CFRA. Figure 3(a) is the structure of the CFRA; this structure fits to trace the variation of the duration time of assistive switch pressed/released. l
k is the time of long element, which is the duration time of the assistive switch pressed or released. l
y
k is the fuzzy time value of long element. Similarly, s
k is the time of short element and s
y
k is the fuzzy time value of short element. The symbol LSR refers to the ratio between long and short elements of Morse code. In Figure 3(b), the I
k is the input signal, the t
1, t
2, t
3, and t
4 are the duration times of the assistive switch pressed, and the s
t
1, s
t
2, and s
t
3 are the duration times of the assistive switch released. When the released times are all smaller than T
k, the Morse code sequences will combine and convert it to a significant character “f” by CMTAID and translator to the PC, smartphone, and tablet PC through the USB HID interface that is generated by arduino.Figure 3
The contest fuzzy recognition algorithm.
(a)
(b)The recognition procedure is described as below.Step 1 (contest region recognition).
Consider the following.IfI
k
>
T
k
∗
(
1
+
σ
) then I
k belongs in long element region (l
k).
Else ifI
k
<
T
k
∗
(
1
-
σ
) then I
k belongs in short element region (s
k).
ElseI
k belongs in unclear region.
Here,σ is the standard deviation of T
k.Step 2 (fuzzy adjustment).
Consider the following.IfI
k belongs in long or short element region then one has the following.
Use one-node fuzzy algorithm [21, 23] to calculate the l
y
k and s
y
k value and then to modify T
k.
For example, the prediction errore
k, an input to the fuzzy algorithm, is created by the difference between l
k and l
y
k
-
1, such that(1)
e
k
=
l
k
-
l
y
k
-
1
.
In the fuzzy algorithm, a linguistic fuzzy rule is utilized to calculate modified errore
k
′. Five linguistic parameters are as follows: LN, negative large; SN, negative small; ZE, zero; SP, positive small; LP, positive large.
Fuzzy rule 1: ife
k is LN then e
k
′ is LN (typing highest speed).
Fuzzy rule 2: ife
k is SN then e
k
′ is SN (typing high speed).
Fuzzy rule 3: ife
k is ZE then e
k
′ is ZE (typing normal speed).
Fuzzy rule 4: ife
k is SP then e
k
′ is SP (typing slow speed).
Fuzzy rule 5: ife
k is LP then e
k
′ is LP (typing lowest speed).
The output variable (e
k
′) of fuzzy recognition is by the center of gravity method in (2), where the variable G
i is the membership grade of the ith premise in the inference rule and C
i is the center value of the ith conclusion in inference rule:(2)
e
k
′
=
∑
i
=
1
n
G
i
C
i
∑
i
=
1
n
C
i
.
Based on the values ofe
k
′ and l
y
k
-
1, the predictive output l
y
k is updated by(3)
l
y
k
=
l
y
k
-
1
+
e
k
′
.
The same goes for the short element in the same derivation.
Else, calculate the middle point (mp) betweenl
y
k and s
y
k and compare it with the I
k to classify the I
k belonging in long/short element region:(4)
mp
=
s
y
k
+
l
y
k
-
s
y
k
2
.
IfI
k > mp then I
k belongs in long element region;
Else,I
k belongs in short element region.Step 3 (T
k modification).
Consider(5)
T
k
=
l
y
k
+
LSR
∗
s
y
k
4
.


## 2.3. Product Design

The product design of CMTAID as shown in Figure4(a) shows the front panel of the CMTAID, which has two kinds of input socket and a speed adjustment switch. The phone jack input socket provides a connection point for the mechanical type switch that is a passive input switch. The USB micro-B input socket provides a connection point for the sensor type switch that is an active input switch. The speed adjustment switch allows modifying the operating speed of the device (i.e., initial threshold value of fuzzy algorithm) for users with different degrees of disability. A maximum of ten discrete speed levels (i.e., 0~9) is available, where a higher speed level corresponds to a slower typing speed. The user is free to change the speed by pushing the “+” or “−” button. Figure 4(b): the CMTAID incorporates eight indicator lights within its top panel, that is, Keyboard (“KB”), Mouse (“MS”), Training (“TR”), Shift, Ctrl, Alt, Caps Lock (“Caps”), and one-key/two-key input mode (“2”). This arrangement provides the user with a simple means of ascertaining the current state of the device. Figure 4(c) is a back cover. Figure 4(d) clearly illustrates the only one USB micro-B output socket required for connection to a PC in the keyboard-mode, mouse-mode, and practice-mode.Figure 4
The product design of CMTAID.
(a)
(b)
(c)
(d)


## 3. Results and Discussion

### 3.1. Code-Maker Translator Assistive Input Device

Figure5 is photographs of CMTAID finished product, the volume size of CMTAID is 6.1
∗
3
∗
1.9 cm3, Figure 5(a) is CMTAIDs on the view, Figure 5(b) is rear view, and Figure 5(c) is front view; details can refer to Figure 4. Photographs of the CMTAID with special IR switch of left hand are presented in Figure 5(d). The extra assistive switch provides another input selection for trainer or subject such as general mechanical switch and special nipple switch [23, 24].Figure 5
CMTAID finished product (a) on the view, (b) rear view, (c) front view, and (d) CMTAID with special IR switch.
(a)
(b)
(c)
(d)


### 3.2. Fuzzy Performance Testing

This section presents the recognition analysis for two algorithms: sliding fuzzy [24] and contest fuzzy by using human-typed data. There are twenty-five human-typed data sets: fifteen data sets typed by wireless experts and the other ten data sets typed by a teenager with cerebral palsy. Tables 1 and 2 show the mean value (mean) and standard deviation (std) of long and short elements of Morse code. Tone refers to the press time of switch and silence refers to the release time of switch. As shown in these tables, the mean value and the standard deviation for the disabled person are much larger than those for the expert. Figures 6 and 7 are the recognition results for the expert and the disabled person by two algorithms. In Figure 6, the average recognition rates of the expert data are very high for two algorithms (99.6% of sliding fuzzy, 99.9% of contest fuzzy). In Figure 7, the average recognition rates of the disabled person are 98.6% for sliding fuzzy and 99.27% for contest fuzzy. In order to observe the improving recognition rate of Morse code, we took the data set 3 of expert to describe the result of recognition that is shown in Figure 8. Figures 8(a) and 8(b) are the same silent sequences of Morse code by expert; the symbol definitions are as follows: the ordinate refers to the Morse code time length in millisecond (ms); the abscissa refers to the number of Morse code sequence; “+” refers to the long element (dash or long-silence); “∙” refers to the short element (dot or short-silence); “−·” refer to the predictive threshold; the green circle refers to the error recognition points; blue circle refers to the result of recognition by contest fuzzy algorithm. Except for improving the recognition rate of assistive input device, the operation time of algorithm is needed to be considered, so we compare the operation time of two fuzzy algorithms with MATLAB simulation in the same computer. Figure 9 shows that the whole recognition operation time of ten data sets by sliding fuzzy is 2.376 seconds and contest fuzzy is 1.837 seconds. This result has proved that contest fuzzy algorithm is more suitable to recognize the unstable patterns typed by the disabled person.Table 1
The data analysis for experts.
Data set number
Tone
Silence
Short
Long
Short
Long
Mean
std
Mean
std
Mean
std
Mean
std
1
62.87
8.47
249.45
29.78
128.68
15.22
445.86
164.37
2
71.88
6.77
274.45
26.09
130.41
18
559.82
177.05
3
98.84
17.56
262.71
33.1
117.58
22.62
302
159.81
4
56.74
10.85
304.1
47.35
124.3
35.6
603.45
169.88
5
91.93
14.22
259.4
27
113.22
15.53
335.04
149.73
6
60.58
10.65
318.42
44.81
129.75
29.03
783.28
224.62
7
102.32
15.11
364.68
36.01
177.09
25.5
550.3
138.57
8
59.7
13.24
197.48
33.88
86.66
22.27
378.26
147.53
9
68.01
7.51
255.63
25.41
143.59
16.8
647.52
247.16
10
51.95
11.5
238.3
48.46
184.31
24.51
763.53
248.85
11
55.22
7.6
279.45
43.22
182.16
28.02
1000.07
419.19
12
58.71
13.82
250.23
40.25
138.66
25.58
550.2
237.73
13
55.51
8.37
241.55
49.32
159.39
24.45
926.6
488.86
14
99.43
16.59
262.71
33.1
117.58
22.62
302.01
159.84
15
102.32
15.11
364.68
36.01
177.09
25.5
550.3
138.57
Unit: msecTable 2
The data analysis for a teenager with cerebral palsy.
Data set number
Tone
Silence
Short
Long
Short
Long
Mean
std
Mean
std
Mean
std
Mean
std
1
158
80.3
613.21
137.94
418.48
158.11
2723.53
1007.94
2
110.74
62.18
637.69
182.93
421.8
176.71
2437.77
895.92
3
103.4
57.29
670.1
186.52
479.45
193.42
2561.39
1010.02
4
78.68
52.29
812.47
198.37
467.88
133.24
1835.87
652.86
5
75.14
34.72
732.89
161.04
455.09
91.6
1454.77
487.14
6
73.32
31.47
633.92
136.1
532.96
105.07
1687.11
610.46
7
124.91
60.79
755.13
212.61
375.91
74.27
1442.94
691.59
8
139.36
68.05
969.13
255.58
336.25
111.65
1531.45
478.45
9
138.76
66.53
759.89
198.28
337.34
91.7
1755.19
771.86
10
103.4
57.29
681.69
179.9
474.98
178.31
2561.44
1009.98
Unit: msecFigure 6
The recognition rates of expert data by two algorithms.Figure 7
The recognition rates of the disabled person by two algorithms.Figure 8
Comparing the recognition result of two algorithms.
(a)
Sliding fuzzy recognition
(b)
Contest fuzzy recognitionFigure 9
The result of algorithm operation time by MATLAB simulation.


### 3.3. Applications

CMTAID is a bridge device between the user and application devices (computer, smartphone, and tablet PC) that can support the Operating System (OS) of Microsoft (Win8, Win7, WinXP,…, etc.) and Google Android 2.0~4.2.2. In computer, we connect with cable USB-A male to USB micro-B male; in smartphone or tablet PC we need select the fit OTG (On to Go) line to connect with them. Then, we can use any apps on PC, smartphone, and tablet PC through operating the CMTAID. Here, app is an abbreviation forapplication. An app is a piece of software. It can run on the Internet, on your computer, or on your phone, or other electronic devices.


### 3.4. Case Study

The proposed device has been tested successfully by three individuals with severe spinal cord injuries (C1–C3), which have resulted in their inability to make any functional movements other than those involving their heads. Figure10 is the one of them; she can operate the computer, tablet PC, and communication with others through the CMTAID, after two months of training. She types the English letters from “a” to “z” and averages 58.3 seconds. Now, this study is still training the other kinds of severe disabilities; there are two spinal cord injuries (C5–C7), two cerebral palsy cases, and one cerebral artery malformation. They never learned Morse code, but all are interested to learn how to operate CMTAID and they gradually progress. In this paper, we presented the learning condition of the subject with a brain artery malformation. Due to the autonomy movement capability of the cerebral artery malformation patient is very weak, we designed the operation training course once a week for subject and collected the operation data, which were the operation time of the user using the IR assistive switch to input Morse code. Figure 11 is the statistics results of the recognition rate of four training actions, which are practicing of the signal short/long tone for ten times, respectively, and two consecutive long/short tones for five times, respectively. There are eight data sets collected, the data analysis showed that the mean value and standard deviation are 0.67
±
0.25 seconds for single short tone, 0.62
±
0.23 seconds for two consecutive short tones, 2.39
±
1.05 seconds for single long tone, and 1.71
±
0.68 seconds for two consecutive long tones, and they have the best accuracy rate in the sixth week. The analysis results showed that the subject who never learned Morse code can make himself familiar with operating of the long/short tone of Morse code in two months, and he/she can control the basic movements of the mouse; then as long as the subject continued to practice, he/she will be able to successfully use CMTAID to control computers, smartphones, and tablet PCs.Figure 10
The subject with severe spinal cord injuries.Figure 11
The recognition rate statistics results of the four actions.


## 3.1. Code-Maker Translator Assistive Input Device

Figure5 is photographs of CMTAID finished product, the volume size of CMTAID is 6.1
∗
3
∗
1.9 cm3, Figure 5(a) is CMTAIDs on the view, Figure 5(b) is rear view, and Figure 5(c) is front view; details can refer to Figure 4. Photographs of the CMTAID with special IR switch of left hand are presented in Figure 5(d). The extra assistive switch provides another input selection for trainer or subject such as general mechanical switch and special nipple switch [23, 24].Figure 5
CMTAID finished product (a) on the view, (b) rear view, (c) front view, and (d) CMTAID with special IR switch.
(a)
(b)
(c)
(d)


## 3.2. Fuzzy Performance Testing

This section presents the recognition analysis for two algorithms: sliding fuzzy [24] and contest fuzzy by using human-typed data. There are twenty-five human-typed data sets: fifteen data sets typed by wireless experts and the other ten data sets typed by a teenager with cerebral palsy. Tables 1 and 2 show the mean value (mean) and standard deviation (std) of long and short elements of Morse code. Tone refers to the press time of switch and silence refers to the release time of switch. As shown in these tables, the mean value and the standard deviation for the disabled person are much larger than those for the expert. Figures 6 and 7 are the recognition results for the expert and the disabled person by two algorithms. In Figure 6, the average recognition rates of the expert data are very high for two algorithms (99.6% of sliding fuzzy, 99.9% of contest fuzzy). In Figure 7, the average recognition rates of the disabled person are 98.6% for sliding fuzzy and 99.27% for contest fuzzy. In order to observe the improving recognition rate of Morse code, we took the data set 3 of expert to describe the result of recognition that is shown in Figure 8. Figures 8(a) and 8(b) are the same silent sequences of Morse code by expert; the symbol definitions are as follows: the ordinate refers to the Morse code time length in millisecond (ms); the abscissa refers to the number of Morse code sequence; “+” refers to the long element (dash or long-silence); “∙” refers to the short element (dot or short-silence); “−·” refer to the predictive threshold; the green circle refers to the error recognition points; blue circle refers to the result of recognition by contest fuzzy algorithm. Except for improving the recognition rate of assistive input device, the operation time of algorithm is needed to be considered, so we compare the operation time of two fuzzy algorithms with MATLAB simulation in the same computer. Figure 9 shows that the whole recognition operation time of ten data sets by sliding fuzzy is 2.376 seconds and contest fuzzy is 1.837 seconds. This result has proved that contest fuzzy algorithm is more suitable to recognize the unstable patterns typed by the disabled person.Table 1
The data analysis for experts.
Data set number
Tone
Silence
Short
Long
Short
Long
Mean
std
Mean
std
Mean
std
Mean
std
1
62.87
8.47
249.45
29.78
128.68
15.22
445.86
164.37
2
71.88
6.77
274.45
26.09
130.41
18
559.82
177.05
3
98.84
17.56
262.71
33.1
117.58
22.62
302
159.81
4
56.74
10.85
304.1
47.35
124.3
35.6
603.45
169.88
5
91.93
14.22
259.4
27
113.22
15.53
335.04
149.73
6
60.58
10.65
318.42
44.81
129.75
29.03
783.28
224.62
7
102.32
15.11
364.68
36.01
177.09
25.5
550.3
138.57
8
59.7
13.24
197.48
33.88
86.66
22.27
378.26
147.53
9
68.01
7.51
255.63
25.41
143.59
16.8
647.52
247.16
10
51.95
11.5
238.3
48.46
184.31
24.51
763.53
248.85
11
55.22
7.6
279.45
43.22
182.16
28.02
1000.07
419.19
12
58.71
13.82
250.23
40.25
138.66
25.58
550.2
237.73
13
55.51
8.37
241.55
49.32
159.39
24.45
926.6
488.86
14
99.43
16.59
262.71
33.1
117.58
22.62
302.01
159.84
15
102.32
15.11
364.68
36.01
177.09
25.5
550.3
138.57
Unit: msecTable 2
The data analysis for a teenager with cerebral palsy.
Data set number
Tone
Silence
Short
Long
Short
Long
Mean
std
Mean
std
Mean
std
Mean
std
1
158
80.3
613.21
137.94
418.48
158.11
2723.53
1007.94
2
110.74
62.18
637.69
182.93
421.8
176.71
2437.77
895.92
3
103.4
57.29
670.1
186.52
479.45
193.42
2561.39
1010.02
4
78.68
52.29
812.47
198.37
467.88
133.24
1835.87
652.86
5
75.14
34.72
732.89
161.04
455.09
91.6
1454.77
487.14
6
73.32
31.47
633.92
136.1
532.96
105.07
1687.11
610.46
7
124.91
60.79
755.13
212.61
375.91
74.27
1442.94
691.59
8
139.36
68.05
969.13
255.58
336.25
111.65
1531.45
478.45
9
138.76
66.53
759.89
198.28
337.34
91.7
1755.19
771.86
10
103.4
57.29
681.69
179.9
474.98
178.31
2561.44
1009.98
Unit: msecFigure 6
The recognition rates of expert data by two algorithms.Figure 7
The recognition rates of the disabled person by two algorithms.Figure 8
Comparing the recognition result of two algorithms.
(a)
Sliding fuzzy recognition
(b)
Contest fuzzy recognitionFigure 9
The result of algorithm operation time by MATLAB simulation.


## 3.3. Applications

CMTAID is a bridge device between the user and application devices (computer, smartphone, and tablet PC) that can support the Operating System (OS) of Microsoft (Win8, Win7, WinXP,…, etc.) and Google Android 2.0~4.2.2. In computer, we connect with cable USB-A male to USB micro-B male; in smartphone or tablet PC we need select the fit OTG (On to Go) line to connect with them. Then, we can use any apps on PC, smartphone, and tablet PC through operating the CMTAID. Here, app is an abbreviation forapplication. An app is a piece of software. It can run on the Internet, on your computer, or on your phone, or other electronic devices.


## 3.4. Case Study

The proposed device has been tested successfully by three individuals with severe spinal cord injuries (C1–C3), which have resulted in their inability to make any functional movements other than those involving their heads. Figure10 is the one of them; she can operate the computer, tablet PC, and communication with others through the CMTAID, after two months of training. She types the English letters from “a” to “z” and averages 58.3 seconds. Now, this study is still training the other kinds of severe disabilities; there are two spinal cord injuries (C5–C7), two cerebral palsy cases, and one cerebral artery malformation. They never learned Morse code, but all are interested to learn how to operate CMTAID and they gradually progress. In this paper, we presented the learning condition of the subject with a brain artery malformation. Due to the autonomy movement capability of the cerebral artery malformation patient is very weak, we designed the operation training course once a week for subject and collected the operation data, which were the operation time of the user using the IR assistive switch to input Morse code. Figure 11 is the statistics results of the recognition rate of four training actions, which are practicing of the signal short/long tone for ten times, respectively, and two consecutive long/short tones for five times, respectively. There are eight data sets collected, the data analysis showed that the mean value and standard deviation are 0.67
±
0.25 seconds for single short tone, 0.62
±
0.23 seconds for two consecutive short tones, 2.39
±
1.05 seconds for single long tone, and 1.71
±
0.68 seconds for two consecutive long tones, and they have the best accuracy rate in the sixth week. The analysis results showed that the subject who never learned Morse code can make himself familiar with operating of the long/short tone of Morse code in two months, and he/she can control the basic movements of the mouse; then as long as the subject continued to practice, he/she will be able to successfully use CMTAID to control computers, smartphones, and tablet PCs.Figure 10
The subject with severe spinal cord injuries.Figure 11
The recognition rate statistics results of the four actions.


## 4. Conclusions

In this study, we design a sound feedback IR input interface, Morse code assistive input device with contest fuzzy recognition algorithm and finished product, named “code-maker translator assistive input device (CMTAID).” In summary, this assistive input device has seven features that are small size, easy installing, modular design, simple maintenance, functionality, very flexible input interface selection, and scalability of system functions, when this device combined with the computer applications software or APP programs. The contest fuzzy recognition algorithm can really improve the accuracy of recognized the unstable Morse code and increase signal recognition speed to achieve the purpose of real-time identification. The case study presented within this study has indicated that a two-month training period with one supervised session per week is sufficient to enable the user to operate the CMTAID independently. Based upon the experiences of the present training team during the training period, this study has modified some of Morse codes in order to simplify the operating procedure. The modified Morse look-up tables are provided in the Appendix of this study such that others may share the current authors’ experiences. In the future, we hope this device can help more people in need.



---

*Source: 780849-2015-08-26.xml*