Rapid Prototyping of Virtual Reality Cognitive Exercises in a Tele-Rehabilitation Context
Abstract
:1. Introduction
2. Related Works
- Image-based technologies, which have been used in videoconferencing or for monitoring and diagnosis purposes.
- Sensor-based technologies, which use tilt switches, accelerometers or gyroscopes to sample and measure movements in a three-dimensional space.
- Virtual environments that use virtual reality to elicit specific movements from the patient.
3. NU!Reha Platform
- Neurological, in the context of brain injuries, with the aim to recover impaired cognitive skills and/or enhancing residual ones.
- Geriatric, not only for pathological but even physiological aging, in order to preserve the functions.
- Attention: its role is to select, filter and activate relevant information for the goal, choose necessary activities and discard the useless ones that would only end up saturating the cognitive system and waste efficiency. Specifically, you can find activities aimed at:
- ‒
- Selective attention includes all those processes that involve the possibility of ignoring meaningless information and allow you to select only the necessary one, focusing on it.
- ‒
- Sustained Attention allows you to pay attention for an extended period of time.
- ‒
- Divided attention is the ability to pay attention to multiple tasks and process information from two different channels.
- Attentional shifting involves alternating between two attentional focuses: you don’t have to pay attention to them at the same time, but you need to switch quickly from one to the other when the task requires to do it.
- Memory is a complex function by which subject is able to acquire, preserve and reuse knowledge. In particular:
- ‒
- Short-term memory is the ability to retain for short periods of time (10–30 s.) the information just collected; it is characterized by capacity and time limits.
- ‒
- Working memory stores and processes information while performing cognitive tasks, so it allows us to keep information in memory and to manipulate it at once.
- ‒
- Long-term memory allows us to keep an indefinite amount of information for an equally indefinite time, therefore even for a lifetime.
- Executive functions are a set of related but distinct skills necessary for an intentional, targeted and problem-solving action [27]. In particular:
- ‒
- Categorization is the ability to organize information by capturing the essential characteristics, sorting and giving a meaning to our experiences.
- ‒
- Inhibition is the ability to inhibit previously learned responses and to control the interference effect of distracting stimuli.
- ‒
- Cognitive flexibility is the ability to change behavioral patterns based on received feedback.
- ‒
- Planning is the ability to imagine how to reach a goal and what steps must be taken to get to it.
- ‒
- Emotional self-regulation is the ability to recognize and manage one’s emotions.
The Architecture of NU!Reha Service
- Upload HTML exercises on cloud and save input variables in the database. The format exported by Unity is WebGL since it is fully integrated with web standards.
- Configuration and customization through input variables of previously loaded exercises to make a list.
- Execution of exercise with the possibility to manage input and output variable through database connection. All exercises use a script that manages the I/O variable, this script opens a connection to the REST server of NU!Reha via HTTP protocol. In the case of Input variables the connection gets results in JSON format, each tuple obtained is stored as an instance of a specially created class. In the case of output ones, all variables contained in exercise scripts are read and shown to the developer in the form of check-boxes to allow the selection and consequently the saving into the database through consecutive attempts in case the first one or subsequent fails.
4. Advanced Unity Techniques
4.1. Graphics Settings
4.2. Polygonal Complexity and Texture
4.3. Compiler Optimizations
- Without any kind of compression, the project has a large memory occupation and requires a considerable amount of time and bandwidth to be downloaded. Because of this difficulty, we decided not to choose this option.
- Gzip, the project is compressed using the famous algorithm designed by Jean-loup Gailly, widely used in Unix systems and published for the first time in 1992
- Brotli, a compression algorithm born in 2013 and developed by Google. This algorithm is particularly efficient when it has to compress texts.
- ASM, the “legacy” mode. The JavaScript code is optimized and exported in bytecode through the JavaScript interpreter.
- Web Assembly streaming permits us to export the code in binary format and does not require any parsing since it is ready to run. The code is also compressed to save additional space. Its execution speed is almost comparable to what we would have achieved natively using machine code.
4.4. The Obtained Results
- WebGL 2.0 with Gzip and Web Assembly Streaming
- WebGL 2.0 with Gzip without Web Assembly Streaming
- WebGL 2.0 with Brotli and Web Assembly Streaming
- WebGL 2.0 with Brotli without Web Assembly Streaming
- WebGL 1.0 with Gzip and Web Assembly Streaming
- WebGL 1.0 with Gzip without Web Assembly Streaming
- WebGL 1.0 with Brotli and Web Assembly Streaming
- WebGL 1.0 with Brotli without Web Assembly Streaming
5. The Demo Exercises
- explanation of the task that the user has to perform, both in a textual and auditory way.
- objects randomly appear in the room during the execution of the exercises, as shown in Figure 4; if the user correctly clicks on one of them, there is a positive audio reinforcement and the object rotates and disappears. Whereas only a negative audio reinforcement is returned if the object is in the right context, which means a user failure.
- feedback on the results is expressed with some stars and based on the ratio between the total number of clicks and the number of correct objects found. The score is expressed in such a way so that the patient does not feel frustrated even if she/he obtained a bad score. Moreover, phrases have been added to encourage the patient to keep on doing exercises in order to improve.
6. Conclusions and Future Works
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
API | Application Programming Interface |
AT | Assistive Technology |
CNS | Central Nervous System |
CPU | Central Processing Unit |
GPU | Graphic Processing Unit |
HTTP | Hyper Text Transfer Protocol |
ICF | International Classification of Functioning, Disability and Health |
I/O | Input/Output |
JSON | JavaScript Object Notation |
OS | Operating System |
RAD | Rapid Application Development |
RAM | Random Access Memory |
REST | Representational State Transfer |
RGI | Realtime Global Illumination |
UV | Represent the u,v graphic coordinates |
VR | Virtual Reality |
VRAM | Video Random Access Memory |
References
- Resnick, M. Learn to code, code to learn. EdSurge News, 8 May 2013; p. 1. [Google Scholar]
- Muita, K.; Westerlund, M.; Rajala, R. The evolution of rapid production: How to adopt novel manufacturing technology. IFAC PapersOnLine 2015, 48, 32–37. [Google Scholar] [CrossRef]
- Zampolini, M.; Todeschini, E.; Guitart, M.; Hermens, H.; Ilsbroukx, S.; Macellari, V.; Magni, R.; Rogante, M.; Marchese, S.; Vollenbroek Hutten, M.; et al. Tele-rehabilitation: Present and future. Annali Dell’Istituto Superiore di Sanità 2008, 44, 125–134. [Google Scholar] [PubMed]
- Gervasi, O.; Magni, R.; Zampolini, M. Nu!RehaVR: Virtual reality in neuro tele-rehabilitation of patients with traumatic brain injury and stroke. Virtual Real. 2010, 14, 131–141. [Google Scholar] [CrossRef]
- Roque, R.V. OpenBlocks: An Extendable Framework for Graphical Block Programming Systems. Ph.D. Thesis, Massachusetts Institute of Technology, Cambridge, MA, USA, 2007. [Google Scholar]
- Maloney, J.; Resnick, M.; Rusk, N.; Silverman, B.; Eastmond, E. The scratch programming language and environment. ACM Trans. Comput. Educ. TOCE 2010, 10, 1–15. [Google Scholar] [CrossRef]
- MIT AppInventor. Available online: https://appinventor.mit.edu (accessed on 1 September 2020).
- Travis, J.; Kring, J. LabVIEW for Everyone: Graphical Programming Made Easy and Fun; Prentice Hall: Upper Saddle River, NJ, USA, 2007. [Google Scholar]
- ICF Reference and Tools. Available online: https://www.who.int/classifications/icf/en/ (accessed on 1 September 2020).
- McCue, M.; Fairman, A.; Pramuka, M. Enhancing quality of life through telerehabilitation. Phys. Med. Rehabil. Clin. 2010, 21, 195–205. [Google Scholar] [CrossRef] [PubMed]
- Cantagallo, A. Teleriabilitazione e Ausili. La Tecnologia in Aiuto Alla Persona con Disturbi Neuropsicologici: La Tecnologia in Aiuto Alla Persona con Disturbi Neuropsicologici; FrancoAngeli: Milano, Italy, 2014. [Google Scholar]
- Jack, D.; Boian, R.; Merians, A.S.; Tremaine, M.; Burdea, G.C.; Adamovich, S.V.; Recce, M.; Poizner, H. Virtual reality-enhanced stroke rehabilitation. IEEE Trans. Neural Syst. Rehabil. Eng. 2001, 9, 308–318. [Google Scholar] [CrossRef] [PubMed]
- Peretti, A.; Amenta, F.; Tayebati, S.K.; Nittari, G.; Mahdi, S.S. Telerehabilitation: Review of the state-of-the-art and areas of application. JMIR Rehabil. Assist. Technol. 2017, 4, e7. [Google Scholar] [CrossRef] [PubMed]
- Huberty, J.L.; Ransdell, L.B.; Sidman, C.; Flohr, J.A.; Shultz, B.; Grosshans, O.; Durrant, L. Explaining long-term exercise adherence in women who complete a structured exercise program. Res. Q. Exerc. Sport 2008, 79, 374–384. [Google Scholar] [CrossRef]
- Lange, B.; Flynn, S.M.; Rizzo, A. Game-based telerehabilitation. Eur. J. Phys. Rehabil. Med. 2009, 45, 143–151. [Google Scholar] [PubMed]
- Simonetti, M.; Perri, D.; Amato, N.; Gervasi, O. Teaching Math with the Help of Virtual Reality. In Computational Science and Its Applications—ICCSA 2020; Gervasi, O., Murgante, B., Misra, S., Garau, C., Blečić, I., Taniar, D., Apduhan, B.O., Rocha, A.M.A.C., Tarantino, E., Torre, C.M., et al., Eds.; Springer International Publishing: Cham, Switzerland, 2020; pp. 799–809. [Google Scholar]
- Willer, B.; Corrigan, J.D. Whatever it takes: A model for community-based services. Brain Inj. 1994, 8, 647–659. [Google Scholar] [CrossRef]
- Zampolini, M.; Magni, R.; Gervasi, O. An X3D Approach to Neuro-Rehabilitation. In Computational Science and Its Applications—ICCSA 2008; Gervasi, O., Murgante, B., Laganà, A., Taniar, D., Mun, Y., Gavrilova, M.L., Eds.; Springer: Berlin/Heidelberg, Germany, 2008; pp. 78–90. [Google Scholar]
- Gervasi, O.; Fortunelli, M.; Magni, R.; Perri, D.; Simonetti, M. Mobile Localization Techniques Oriented to Tangible Web. In Computational Science and Its Applications—ICCSA 2019; Misra, S., Gervasi, O., Murgante, B., Stankova, E., Korkhov, V., Torre, C., Rocha, A.M.A., Taniar, D., Apduhan, B.O., Tarantino, E., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 118–128. [Google Scholar]
- Gervasi, O.; Magni, R.; Ferri, M. A Method for Predicting Words by Interpreting Labial Movements. In Computational Science and Its Applications—ICCSA 2016; Gervasi, O., Murgante, B., Misra, S., Rocha, A.M.A., Torre, C.M., Taniar, D., Apduhan, B.O., Stankova, E., Wang, S., Eds.; Springer International Publishing: Cham, Switzerland, 2016; pp. 450–464. [Google Scholar]
- Gervasi, O.; Magni, R.; Riganelli, M. Mixed Reality for Improving Tele-rehabilitation Practices. In Computational Science and Its Applications—ICCSA 2015; Gervasi, O., Murgante, B., Misra, S., Gavrilova, M.L., Rocha, A.M.A.C., Torre, C., Taniar, D., Apduhan, B.O., Eds.; Springer International Publishing: Cham, Switzerland, 2015; pp. 569–580. [Google Scholar]
- Costantini, A.; Gervasi, O.; Zollo, F.; Caprini, L. User Interaction and Data Management for Large Scale Grid Applications. J. Grid Comput. 2014, 12, 485–497. [Google Scholar] [CrossRef]
- Perri, D.; Sylos Labini, P.; Gervasi, O.; Tasso, S.; Vella, F. Towards a Learning-Based Performance Modeling for Accelerating Deep Neural Networks. In Computational Science and Its Applications—ICCSA 2019; Misra, S., Gervasi, O., Murgante, B., Stankova, E., Korkhov, V., Torre, C., Rocha, A.M.A., Taniar, D., Apduhan, B.O., Tarantino, E., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 665–676. [Google Scholar]
- Mariotti, M.; Gervasi, O.; Vella, F.; Cuzzocrea, A.; Costantini, A. Strategies and systems towards grids and clouds integration: A DBMS-based solution. Future Gener. Comput. Syst. 2018, 88, 718–729. [Google Scholar] [CrossRef]
- Biondi, G.; Franzoni, V.; Gervasi, O.; Perri, D. An Approach for Improving Automatic Mouth Emotion Recognition. In Computational Science and Its Applications—ICCSA 2019; Misra, S., Gervasi, O., Murgante, B., Stankova, E., Korkhov, V., Torre, C., Rocha, A.M.A., Taniar, D., Apduhan, B.O., Tarantino, E., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 649–664. [Google Scholar]
- Franzoni, V.; Biondi, G.; Perri, D.; Gervasi, O. Enhancing Mouth-Based Emotion Recognition Using Transfer Learning. Sensors 2020, 20, 5222. [Google Scholar] [CrossRef] [PubMed]
- Isquith, P.; Gioia, G.; Espy, K. Executive Function in Preschool Children: Examination through Everyday Behavior. Dev. Neuropsychol. 2004, 26, 403–422. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Device | Year | Operative System / Browser Web | WebGL 2.0 Gzip No Stream | WebGL 2.0 Gzip WAS | WebGL 2.0 Brotli No Stream | WebGL 2.0 Brotli WAS |
---|---|---|---|---|---|---|
Asus Zenfone 5 | 2018 | Android 9 Chrome 85 | 00:20:21 | 00:17:05 | 00:14:27 | 00:16:10 |
Amazon Fire HD 8 | 2017 | Fire OS 6 Chrome 84 | 00:20:00 | 00:20:43 | 00:21:59 | 00:12:63 |
Samsung Galaxy Tab E | 2015 | Android 4.4.4 Chrome 81 | No webGL2.0 | No webGL2.0 | No webGL2.0 | No webGL2.0 |
Huawei MediaPad M5 lite | 2019 | Android 8 Chrome 84 | 00:45:36 | 00:45:67 | 00:42:54 | 00:28:87 |
Samsung Galaxy S7 | 2016 | Android 8 Chrome 84 | 00:08:99 | 00:06:52 | 00:09:26 | 00:06:07 |
Samsung Galaxy S4 Active | 2013 | Android 5.01 Chrome 85.0.4 | No webGL2.0 | No webGL2.0 | No webGL2.0 | No webGL2.0 |
DESKTOP CUSTOM | 2014 | Windows 10 Chrome 84 | 00:02:44 | 00:01:98 | 00:02:83 | 00:01:65 |
Asus GL502VM | 2018 | Windows 10 Chrome 84 | 00:02:90 | 00:02:14 | 00:02:78 | 00:01:82 |
Hp prodesk 400 g1 | 2013 | Ubuntu 18.04 Firefox 79 | 00:03:04 | 00:02:64 | 00:03:48 | 00:02:23 |
DESKTOP CUSTOM | 2012 | Windows 10 Firefox 79 | 00:08:10 | 00:08:71 | 00:08:14 | 00:07:31 |
Redmi Note 8 Pro | 2019 | Android 10 Chrome 84 | 00:22:21 | 00:14:34 | 00:23:07 | 00:16:54 |
Acer Swift SF314-52 | 2018 | Windows 10 Firefox 79 | 00:15:13 | 00:14:37 | 00:14:46 | 00:12:30 |
Honor 8 | 2016 | Android 10 Chrome | 00:19:20 | 00:19:09 | 00:21:26 | 00:15:17 |
HP-PC ProBook 450 G6 | 2018 | Manjaro Chromium | 00:11:78 | 00:10:16 | 00:09:45 | 00:09:01 |
ASUS H81M-D R2.0 | 2015 | Mint 20 Mozilla Firefox | 00:11:94 | 00:10:29 | 00:09:71 | 00:10:13 |
MacBookPro 14.2 | 2017 | macOS 10.15 Safari | No webGL2.0 | No webGL2.0 | No webGL2.0 | No webGL2.0 |
Device | Year | Operative System / Browser Web | WebGL 1.0 Gzip No Stream | WebGL 1.0 Gzip WAS | WebGL 1.0 Brotli No Stream | WebGL 1.0 Brotli WAS |
---|---|---|---|---|---|---|
Asus Zenfone 5 | 2018 | Android 9 Chrome 85 | 00:14:72 | 00:17:92 | 00:13:57 | 00:09:51 |
Amazon Fire HD 8 | 2017 | Fire OS 6 Chrome 84 | 00:18:75 | 00:12:51 | 00:20:07 | 00:12:62 |
Samsung Galaxy Tab E | 2015 | Android 4.4.4 Chrome 81 | 01:31:88 | 01:05:34 | 01:35:25 | 01:01:57 |
Huawei MediaPad M5 lite | 2019 | Android 8 Chrome 84 | 00:26:71 | 00:33:68 | 00:31:73 | 00:26:54 |
Samsung Galaxy S7 | 2016 | Android 8 Chrome 84 | 00:09:47 | 00:06:70 | 00:08:42 | 00:05:71 |
Samsung Galaxy S4 Active | 2013 | Android 5.01 Chrome 85.0.4 | 00:18:57 | 00:15:86 | 00:24:32 | 00:15:65 |
DESKTOP CUSTOM | 2014 | Windows 10 Chrome 84 | 00:02:55 | 00:01:81 | 00:02:55 | 00:01:25 |
Asus GL502VM | 2018 | Windows 10 Chrome 84 | 00:02:96 | 00:01:92 | 00:02:91 | 00:01:82 |
Hp prodesk 400 g1 | 2013 | Ubuntu 18.04 Firefox 79 | 00:03:15 | 00:02:48 | 00:03:55 | 00:01:98 |
DESKTOP CUSTOM | 2012 | Windows 10 Firefox 79 | 00:08:37 | 00:07:56 | 00:06:92 | 0:05:62 |
Redmi Note 8 Pro | 2019 | Android 10 Chrome 84 | 00:18:37 | 00:12:02 | 00:11:30 | 00:19:08 |
Acer Swift SF314-52 | 2018 | Windows 10 Firefox 79 | 00:11:57 | 00:10:36 | 00:11:50 | 00:13:32 |
Honor 8 | 2016 | Android 10 Chrome | 00:14:50 | 00:27:15 | 00:18:14 | 00:22:58 |
HP-PC ProBook 450 G6 | 2018 | Manjaro Chromium | 00:11:59 | 00:09:79 | 00:10:09 | 00:09:45 |
ASUS H81M-D R2.0 | 2015 | Mint 20 Mozilla Firefox | 00:10:28 | 00:11:57 | 00:08:92 | 00:08:54 |
MacBookPro 14.2 | 2017 | macOS 10.15 Safari | No webGL1.0 | No webGL1.0 | No webGL1.0 | No webGL1.0 |
Device | Year | Operative System / Browser Web | WebGL 2.0 Brotli WAS | WebGL 1.0 Brotli WAS |
---|---|---|---|---|
Asus Zenfone 5 | 2018 | Android 9 Chrome 85 | 00:16:10 | 00:09:51 |
Amazon Fire HD 8 | 2017 | Fire OS 6 Chrome 84 | 00:12:63 | 00:12:62 |
Samsung Galaxy Tab E | 2015 | Android 4.4.4 Chrome 81 | No webGL2.0 | 01:01:57 |
Huawei MediaPad M5 lite | 2019 | Android 8 Chrome 84 | 00:28:87 | 00:26:54 |
Samsung Galaxy S7 | 2016 | Android 8 Chrome 84 | 00:06:07 | 00:05:70 |
Samsung Galaxy S4 Active | 2013 | Android 5.01 Chrome 85.0.4 | No webGL2.0 | 00:15:65 |
DESKTOP CUSTOM | 2014 | Windows 10 Chrome 84 | 00:01:65 | 00:01:25 |
Asus GL502VM | 2018 | Windows 10 Chrome 84 | 00:01:82 | 00:01:82 |
Hp prodesk 400 g1 | 2013 | Ubuntu 18.04 Firefox 79 | 00:02:23 | 00:01:98 |
DESKTOP CUSTOM | 2012 | Windows 10 Firefox 79 | 00:07:31 | 00:05:62 |
Redmi Note 8 Pro | 2019 | Android 10 Chrome 84 | 00:16:54 | 00:19:08 |
Acer Swift SF314-52 | 2018 | Windows 10 Firefox 79 | 00:12:30 | 00:13:32 |
Honor 8 | 2016 | Android 10 Chrome | 00:15:17 | 00:22:58 |
HP-PC ProBook 450 G6 | 2018 | Manjaro Chromium | 00:09:01 | 00:09:45 |
ASUS H81M-D R2.0 | 2015 | Mint 20 Mozilla Firefox | 00:10:13 | 00:08:54 |
MacBookPro 14.2 | 2017 | macOS 10.15 Safari | No webGL2.0 | No webGL1.0 |
Project | Size in MB |
---|---|
WebGL 1.0 Gzip | 9965 |
WebGL 1.0 Gzip WAS | 9967 |
WebGL 1.0 Brotli | 8189 |
WebGL 1.0 Brotli WAS | 8189 |
WebGL 2.0 Gzip | 10,454 |
WebGL 2.0 Gzip WAS | 10,455 |
WebGL 2.0 Brotli | 8560 |
WebGL 2.0 Brotli WAS | 8564 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Perri, D.; Fortunelli, M.; Simonetti, M.; Magni, R.; Carloni, J.; Gervasi, O. Rapid Prototyping of Virtual Reality Cognitive Exercises in a Tele-Rehabilitation Context. Electronics 2021, 10, 457. https://doi.org/10.3390/electronics10040457
Perri D, Fortunelli M, Simonetti M, Magni R, Carloni J, Gervasi O. Rapid Prototyping of Virtual Reality Cognitive Exercises in a Tele-Rehabilitation Context. Electronics. 2021; 10(4):457. https://doi.org/10.3390/electronics10040457
Chicago/Turabian StylePerri, Damiano, Martina Fortunelli, Marco Simonetti, Riccardo Magni, Jessica Carloni, and Osvaldo Gervasi. 2021. "Rapid Prototyping of Virtual Reality Cognitive Exercises in a Tele-Rehabilitation Context" Electronics 10, no. 4: 457. https://doi.org/10.3390/electronics10040457
APA StylePerri, D., Fortunelli, M., Simonetti, M., Magni, R., Carloni, J., & Gervasi, O. (2021). Rapid Prototyping of Virtual Reality Cognitive Exercises in a Tele-Rehabilitation Context. Electronics, 10(4), 457. https://doi.org/10.3390/electronics10040457