Mathematical Problems in Engineering
Volume 2015 (2015), Article ID 780849, 10 pages
http://dx.doi.org/10.1155/2015/780849

Research Article

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

Chung-Min Wu¹ and Jyun-Slan Liou²

¹Department of Computer and Communication, Kun Shan University, No. 195, Kunda Road, YongKang District, Tainan City 710-03, Taiwan
²Department of Electronic Engineering, Kun Shan University, No. 195, Kunda Road, YongKang District, Tainan City 710-03, Taiwan

Received 20 August 2014; Accepted 16 December 2014

Academic Editor: Stephen D. Prior

Copyright © 2015 Chung-Min Wu and Jyun-Slan Liou. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

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.

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, Figure 3) to trace the tendencies of a particular user when the long or short elements are generated and then modifies the threshold value () which distinguishes the two elements accordingly. In other words, 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. is the time of long element, which is the duration time of the assistive switch pressed or released. is the fuzzy time value of long element. Similarly, is the time of short element and 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 is the input signal, the , , , and are the duration times of the assistive switch pressed, and the , , and are the duration times of the assistive switch released. When the released times are all smaller than , the Morse code sequences will combine and convert it to a significant character “” by CMTAID and translator to the PC, smartphone, and tablet PC through the USB HID interface that is generated by arduino.

(a)

(b)

Figure 3: The contest fuzzy recognition algorithm.

The recognition procedure is described as below.

Step 1 (contest region recognition). Consider the following.

 If then belongs in long element region (). Else if then belongs in short element region (). Else belongs in unclear region.  Here, is the standard deviation of .

Step 2 (fuzzy adjustment). Consider the following.

 If belongs in long or short element region then one has the following.

 Use one-node fuzzy algorithm [21, 23] to calculate the and value and then to modify . For example, the prediction error , an input to the fuzzy algorithm, is created by the difference between and , such that

 In the fuzzy algorithm, a linguistic fuzzy rule is utilized to calculate modified error . Five linguistic parameters are as follows: LN, negative large; SN, negative small; ZE, zero; SP, positive small; LP, positive large. Fuzzy rule 1: if is LN then is LN (typing highest speed). Fuzzy rule 2: if is SN then is SN (typing high speed). Fuzzy rule 3: if is ZE then is ZE (typing normal speed). Fuzzy rule 4: if is SP then is SP (typing slow speed). Fuzzy rule 5: if is LP then is LP (typing lowest speed). The output variable () of fuzzy recognition is by the center of gravity method in (2), where the variable is the membership grade of the th premise in the inference rule and is the center value of the th conclusion in inference rule:

 Based on the values of and , the predictive output is updated by

 The same goes for the short element in the same derivation.

 Else, calculate the middle point (mp) between and and compare it with the to classify the belonging in long/short element region:

 If > mp then belongs in long element region;

 Else, belongs in short element region.

Step 3 ( modification). Consider

2.3. Product Design

The product design of CMTAID as shown in Figure 4(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.

(a)

(b)

(c)

(d)

Figure 4: The product design of CMTAID.

3. Results and Discussion

3.1. Code-Maker Translator Assistive Input Device

Figure 5 is photographs of CMTAID finished product, the volume size of CMTAID is  cm³, 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].

(a)

(b)

(c)

(d)

Figure 5: CMTAID finished product (a) on the view, (b) rear view, (c) front view, and (d) CMTAID with special IR switch.

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: msec

Table 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: msec

Figure 6: The recognition rates of expert data by two algorithms.

Figure 7: The recognition rates of the disabled person by two algorithms.

(a) Sliding fuzzy recognition

(b) Contest fuzzy recognition

Figure 8: Comparing the recognition result of two algorithms.

Figure 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 for application. 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. Figure 10 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 seconds for single short tone, seconds for two consecutive short tones, seconds for single long tone, and 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.

Appendix

Refer to CMTAID Morse Code Table, available at http://biolab.ele.ksu.edu.tw/biolab/images/CMTAID%20Morse%20code%20Table.pdf.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

The current authors gratefully acknowledge the support provided to this study by the Ministry of Science and Technology, Taiwan, under Contracts MOST 103-2627-E-006-001 and MOST 103-2218-E-218-002.

References

L. N. S. A. Struijk, “An inductive tongue computer interface for control of computers and assistive devices,” IEEE Transactions on Biomedical Engineering, vol. 53, no. 12, pp. 2594–2597, 2006.

S. S. Liu, A. Rawicz, S. Rezaei et al., “An eye-gaze tracking and human computer interface system for people with ALS and other locked-in diseases,” Journal of Medical and Biological Engineering, vol. 32, no. 2, pp. 111–116, 2012.

Y.-L. Chen, “Application of tilt sensors in human-computer mouse interface for people with disabilities,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 9, no. 3, pp. 289–294, 2001.

E. F. LoPresti, D. M. Brienza, and J. Angelo, “Head-operated computer controls: effect of control method on performance for subjects with and without disability,” Interacting with Computers, vol. 14, no. 4, pp. 359–377, 2002.

D. G. Evans, R. Drew, and P. Blenkhorn, “Controlling mouse pointer position using an infrared head-operated joystick,” IEEE Transactions on Rehabilitation Engineering, vol. 8, no. 1, pp. 107–117, 2000.

Y.-L. Chen, F.-T. Tang, W. H. Chang, M.-K. Wong, Y.-Y. Shih, and T.-S. Kuo, “The new design of an infrared-controlled human-computer interface for the disabled,” IEEE Transactions on Rehabilitation Engineering, vol. 7, no. 4, pp. 474–481, 1999.

M.-C. Su and M.-T. Chung, “Voice-controlled human-computer interface for the disabled,” Computing & Control Engineering Journal, vol. 12, no. 5, pp. 225–230, 2001.

R. Barea, L. Boquete, M. Mazo, and E. López, “System for assisted mobility using eye movements based on electrooculography,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 10, no. 4, pp. 209–218, 2002.

C.-M. Wu, C. Y. Chuang, M.-C. Hsieh, and S.-H. Chang, “An eye input device for persons with the motor neuron diseases,” Biomedical Engineering: Applications, Basis and Communications, vol. 25, no. 1, Article ID 1350006, 9 pages, 2013.

J. Hori, K. Sakano, M. Miyakawa, and S. Yoshiaki, “Eye movement communication control system based on EOG and voluntary eye blink,” in Computers Helping People with Special Needs: Proceedings of the 10th International Conference, ICCHP 2006, Linz, Austria, July 11–13, 2006, K. Miesenberger, J. Klaus, W. L. Zagler, and A. I. Karshmer, Eds., vol. 4061 of Lecture Notes in Computer Science, pp. 950–953, Springer, Heidelberg, Germany, 2006.

H.-J. Park, S.-H. Kwon, H.-C. Kim, and K.-S. Park, “Adaptive EMG-driven communication for the disabled,” in Proceedings of the IEEE Engineering in Medicine and Biology 21st Annual Conference and the Fall Meeting of the Biomedical Engineering Society (1st Joint BMES/EMBS), vol. 1, October 1999.

P. Shenoy, K. J. Miller, B. Crawford, and R. P. N. Rao, “Online electromyographic control of a robotic prosthesis,” IEEE Transactions on Biomedical Engineering, vol. 55, no. 3, pp. 1128–1135, 2008.

M. R. Ahsan, M. I. Ibrahimy, and O. O. Khalifa, “EMG signal classification for human computer interaction: a review,” European Journal of Scientific Research, vol. 33, no. 3, pp. 480–501, 2009.

R. Palaniappan, R. Paramesran, S. Nishida, and N. Saiwaki, “A new brain-computer interface design using fuzzy ARTMAP,” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 10, no. 3, pp. 140–148, 2002.

M. A. Lebedev and M. A. L. Nicolelis, “Brain-machine interfaces: past, present and future,” Trends in Neurosciences, vol. 29, no. 9, pp. 536–546, 2006.

N. Birbaumer, “Brain-computer-interface research: coming of age,” Clinical Neurophysiology, vol. 117, no. 3, pp. 479–483, 2006.

C. Guger, A. Schlögl, C. Neuper, D. Walterspacher, T. Strain, and G. Pfurtscheller, “Rapid prototyping of an EEG-based brain-computer interface (BCI),” IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 9, no. 1, pp. 49–58, 2001.

R. Sitaram, N. Weiskopf, A. Caria, R. Veit, M. Erb, and N. Birbaumer, “fMRI brain-computer interfaces,” IEEE Signal Processing Magazine, vol. 25, no. 1, pp. 95–106, 2008.

C.-T. Lin, F.-C. Lin, S.-A. Chen, S.-W. Lu, T.-C. Chen, and L.-W. Ko, “EEG-based brain-computer interface for smart living environmental auto-adjustment,” Journal of Medical and Biological Engineering, vol. 30, no. 4, pp. 237–245, 2010.

C.-W. Chen, C.-C. K. Lin, and M.-S. Ju, “Hand orthosis controlled using brain-computer interface,” Journal of Medical and Biological Engineering, vol. 29, no. 5, pp. 234–241, 2009.

C.-M. Wu and C.-H. Luo, “Morse code recognition system with fuzzy algorithm for disabled persons,” Journal of Medical Engineering & Technology, vol. 26, no. 5, pp. 202–207, 2002.

C.-M. Wu, C.-H. Luo, S.-W. Lin et al., “Morse code recognition system with adaptive fuzzy algorithm for the disabled,” Journal of Medical and Biological Engineering, vol. 22, no. 4, pp. 205–210, 2002.

C. M. Wu, Morse code-based mouth controlled input device with fuzzy recognition for the severe spinal cord injuries [Ph.D. thesis], Department of Electrical Engineering, National Cheng Kung University, 2004.

C.-M. Wu, C.-H. Luo, and S.-W. Lin, “Mouth-controlled text input device with sliding fuzzy algorithm for individuals with severe disabilities,” Biomedical Engineering: Applications, Basis and Communications, vol. 22, no. 3, pp. 223–237, 2010.

C. M. Wu and S. C. Chen, “The fuzzy schmitt trigger algorithm regulates physiological action signals for disabilities auxiliary input devices,” in Proceedings of the IEEE/SICE International Symposium on System Integration (SII '13), MP2-I.3, pp. 620–623, December 2013.