scieee AI-readable full text Open interactive document viewer

PhobiAR, an artefact of augmented reality to support the exposure therapy of specific phobias

Vilas Boas, Raul

Abstract

Phobia is a type of anxiety disorder defined by a persistent and excessive fear of an object or situation. Currently, exposure therapy is the most practiced method to treat phobias, although it comes with limitations. We can reduce these limitations by combining Augmented Reality techniques with exposure therapy. Its benefits are a decrease in costs, versatility of the process, and full control of the procedure by the therapist. As shown in multiple research, Augmented Reality has obtained interesting results in the therapy of psychological disorders serving as a foundation for the development of this project. The recent technological advances in the field also allowed for easier access to Augmented Reality which is accessible to use even in old smartphones. The goal of this Master’s dissertation was to develop an artefact in conjunction with psychologists who treat phobic patients, to create a program to support the therapy of phobias with a gradual exposure system. Their help was essential to understand the most important features needed for the platform. The platform was deployed in the informatics department servers, which could be accessed by everyone that had internet connection. Multiple psychologists were invited to test the platform by following a user guide created and give their technical feedback in the end. The results gathered were positive, which proves the viability of this system as an extension to the current methods by providing comfort and efficiency.

Full text

2 Universidade do Minho Escola de Engenharia Departamento de Informática Raul Vilas Boas PhobiAR, an Artefact of Augmented Reality to support the Exposure Therapy of Specific Phobias December 2020 4 Universidade do Minho Escola de Engenharia Departamento de Informática Raul Vilas Boas PhobiAR, an Artefact of Augmented Reality to support the Exposure Therapy of Specific Phobias Master dissertation Integrated Master in Informatics Engineering Orientador Pedro Rangel Henriques (Ph.D.) Supervisor no local de trabalho Lázaro Vinícius de Oliveira Lima (M.Sc.) December 2020 i AUTHOR COPYRIGHTS AND TERMS OF USAGE BY THIRD PARTIES This is an academic work which can be utilized by third parties given that the rules and good practices internationally accepted, regarding author copyrights and related copyrights. Therefore, the present work can be utilized according to the terms provided in the license bellow. If the user needs permission to use the work in conditions not foreseen by the licensing indicated, the user should contact the author, through the RepositóriUM of University of Minho. License provided to the users of this work Attribution-NonCommercial CC BY-NC https://creativecommons.org/licenses/by-nc/4.0/ ii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not use plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. Raul Vilas Boas ACKNOWLEDGEMENTS Finishing this dissertation would not have been possible without the help of multiple people that I want to say thank you. First, to my family and friends, for providing me with patience and support during my whole academic path. Your persistence allowed me to never give up on my dreams and to reach my goals. To my advisors, Pedro Rangel Henriques, and Lázaro Lima, for all the work in supervising and giving me all the guidance needed. Without it, this work would not have been possible. To the psychologist of our team, Greice Zanine, for all her technical feedback of the project that leads to receiving such positive responses. To the people of the Language Processing laboratory for all their feedback and ideas, but also for always helping me keep motivated to work on this dissertation. To all the ten psychologists that tested our platform and gave their feedback so we could have the results needed to prove the viability of this platform. Additionally, a special thank you to Ana Paula Azevedo for meeting with us and giving her feedback from a different perspective that leads to new interesting ideas to include. iii ABSTRACT Phobia is a type of anxiety disorder defined by a persistent and excessive fear of an object or situation. Currently, exposure therapy is the most practiced method to treat phobias, although it comes with limitations. We can reduce these limitations by combining Augmented Reality techniques with exposure therapy. Its benefits are a decrease in costs, versatility of the process, and full control of the procedure by the therapist. As shown in multiple research, Augmented Reality has obtained interesting results in the therapy of psychological disorders serving as a foundation for the development of this project. The recent technological advances in the field also allowed for easier access to Augmented Reality which is accessible to use even in old smartphones. The goal of this Master’s dissertation was to develop an artefact in conjunction with psychologists who treat phobic patients, to create a program to support the therapy of phobias with a gradual exposure system. Their help was essential to understand the most important features needed for the platform. The platform was deployed in the informatics department servers, which could be accessed by everyone that had internet connection. Multiple psychologists were invited to test the platform by following a user guide created and give their technical feedback in the end. The results gathered were positive, which proves the viability of this system as an extension to the current methods by providing comfort and efficiency. Keywords: Augmented Reality, Virtual Reality, Anxiety disorder, Phobia, WebAR, Gradual Exposure, 3D Models. iv RESUMO A fobia é um tipo de transtorno de ansiedade definido por um medo persistente e excessivo de um objeto ou situação. Atualmente, o terapia de exposição é o método mais praticado para tratar fobias, embora com limitações. Estas limitações são reduzidas combinando técnicas de Realidade Aumentada com a terapia de exposição. Os seus benefícios são uma redução de custos, versatilidade do processo e controle total do procedimento pelo terapeuta. Como foi demostrado em várias pesquisas, a Realidade Aumentada obteve resultados interessantes no tratamento de distúrbios psicológicos, servindo de base para o desenvolvimento deste projeto. Os recentes avanços tecnológicos no campo permitem também um acesso fácil à Realidade Aumentada, acessível para uso mesmo em smartphones antigos. Nosso objetivo é desenvolver um artefato em conjunto com psicólogos que tratam de pacientes fóbicos, para criar um programa para apoiar o tratamento de fobias com um sistema de exposição gradual. A ajuda deles foi essencial para entender os recursos que são mais importantes para a plataforma. A plataforma foi colocada nos servidores do departamento de informática e podia ser acedida por qualquer pessoa que tivesse conexão à internet. Vários psicólogos foram convidados a testar a plataforma seguindo um guião criado e dando seu feedback técnico no final. Os resultados recolhidos foram positivos, o que comprova a viabilidade deste sistema como uma extensão dos métodos atuais providenciando conforto e eficiência. Palavras Chave: Realidade Aumentada, Realidade Virtual, Transtorno de Ansiedade, Fobia, WebAR, Exposição Gradual, Modelos 3D v CONTENTS 1 introduction 1 1.1Motivation 1 1.2Objectives 4 1.3Research Hypothesis 4 1.4Methodology 4 1.5Document Organization 5 2 anxiety disorder:phobia 7 2.1Categories and Types 7 2.2Prevalence and incidence of Specific Phobias 9 2.3Causes and Effects 9 2.4Treatment 10 3 augmented reality 12 3.1Augmented Reality and Virtual Reality 12 3.2Types of Augmented Reality 15 3.3Traditional Methods and AR/VR Treatment 18 3.4Related projects 19 4 phobiar:proposal 23 4.1Artefact Description 23 4.2Examples 24 5 phobiar:implementation 27 5.1Technology Approach 27 5.2AR.js, Augmented Reality library on the Web 28 5.3 3D File Format 29 5.4Blender and 3D Models 29 5.5Markers 32 5.6MongoDB storage 33 5.7Backend 34 5.8Frontend 35 6 phobiar:artefact of ar to treat phobias 37 6.1PhobiAR Overview 37 6.2Demonstration 41 6.3Comparison between different systems 44 7 experiment and discussion 45 vi contents vii 7.1Experiment design 45 7.2User Experiment Results 46 7.3PhobiAR Feedback 50 8 conclusion 51 8.1Work Summary 51 8.2Future Work 53 a 3d models 59 b markers 61 c phobiar screenshots (desktop)62 d phobiar screenshots (phone)68 e phobiar user guide 71 f phobiar form 77 g phobiar feedback 82 1.1. Motivation 2 In recent years, Augmented Reality has become a popular technology and is getting more attention in researches. Therefore, to study the current state of AR in the science community, we used the online research database Scopus to investigate the number of Augmented Reality papers released over the years. In this database, we queried “augmented reality" to search in all the articles titles, abstracts, and keywords between the years 1995 and 2019. This search was conducted on 3January 2020, and it found 25008 documents. After analyzing the results, we created the graph shown in figure 1. In this graph, we can observe that AR documents have been steadily increasing over the years, having a sudden rise in the documents published over the last three years. This serves as an encouragement to work with Augmented Reality to explore and take advantage of this promising technology. Figure 1: Publications about Augmented Reality over the years The same method was applied to evaluate the current state of academic researches on Phobias. Therefore, we queried “phobia" to search in all the articles titles, abstracts, and keywords between the years 1995 and 2019. This search was conducted on 3January 2020, and it produced 21928 results. The graph in figure 2was created based on these results. Considering Phobias is not a recent topic, it had more publication than Augmented Reality in 1995. However, it was surpassed by AR in 2011. Phobias publications had a sudden increase at the beginning of 2000 and have been considered constant in the last years. These 1.1. Motivation 3 results help us realize that Phobias still receives a substantial amount of attention in the science community, which supports our intention to improve its treatment. Figure 2: Publications about Phobias over the years After evaluating the current state of the two main topics of our project, our goal with this project is to use Augmented Reality to complement the traditional methods. We will take advantage of new possible scenarios that AR presents by increasing information in the real world as virtual elements. In this context, the virtual elements would be the Phobia of the patient who seeks treatment. We believe that AR serves as a meeting ground between the phobic not having any contact with the phobia to him having real interaction with it. Furthermore, there’s the possibility to divide the procedure into small steps for the phobic to overcome, providing a more reliable growth between different levels of phobias. The likelihood of the patient to give up would also decrease since it would be less of an impact. In this context, with the technological advancements in Augmented Reality, it emerged the motivation to create a system capable of helping with the treatment of phobias. The main focus of this project is to enhance the techniques that already exist by reducing the cost, making it more accessible, or improving the quality. 1.2. Objectives 4 1.2 objectives The main goal of this master’s work is to build a useful system to assist in the treatment of Specific Phobias. So the objectives are the following: • Study the problem at hand by exploring related works to better understand what has been done about this topic to improve it. This will also provide the knowledge to identify the main problems and work on solutions; • Assemble requirements by doing interviews in conjunction with a psychologist that has experience in treating phobic patient. This provides a more solid foundation on what the system should aim to accomplish; • Implement the system by associating a marker to a phobia, having the possibility to have different markers that represent different stage levels of the phobia, have a preview of the existing models and the possibility for the psychologist to import new models of phobias if needed. It also must be able to create, edit and delete sessions of patients where the user can write notes about their sessions; • Develop a system capable of detecting the user heart rate so the psychologist has more information about the patient condition; • Verification of the system by analyzing its efficiency and collecting results from the experiments with the psychologists. 1.3 research hypothesis It is possible to improve the effectiveness of Phobia treatment by complementing it with Augmented Reality. 1.4 methodology In this project, we’re going to follow the Design Science Research (DSR) methodology. As stated by Von Alan et al. (2004), the solution of a problem is accomplished by building and using an artefact designed to solve the problem. According to Van Aken (2005), the purpose of a design science is to expand the knowledge so that the professionals of the area can use it to solve the problems in their field. To support the development of DSR, Von Alan et al. (2004) established the following guidelines: 1.Design as an Artefact: Creation of an useful and viable artefact. 1.5. Document Organization 5 2.Problem Relevance: A problem domain that the artefact will be proved useful. 3.Design Evaluation: The evaluation of the utility, quality and efficacy of the artefact. 4.Research Contributions : The implementation needs provide a clear contribution in the area by solving a unsolved problem or by solving a solved problem more effectively. 5.Research Rigor : The artefact upon the application must follow rigorous methods in his construction and evaluation. 6.Design as a Search Process : The search for an viable artefact requires using available methods and applying them in a cyclical process until the solution is effective in solving the problem. 7.Communication of Research : The results must be communicated effectively both to a technical audience and to managerial audience. Considering our work is a problem-solving process, we have adapted the seven guidelines into five steps. The first step was to identify and comprehend the problem, which is supporting the exposition treatment of Specific Phobias using Augmented Reality. The next step is to define objectives that would lead to possible solutions to the problem. In this step, we will have the help of a psychologist who will provide their professional opinion of the area so the artefact as the tools needed to accomplished the goal. In the third phase, we will proceed to develop the artefact following the objectives defined in the last step. After having built a prototype of the project, it will be evaluated by the same psychologist to judge its viability. Depending on their observation we might return to step two and add or remove new objectives. The steps two, three and four will remain in a cycle until the artefact is verified by the psychologist. Afterwards, when the product is develop we will test it with multiple psychologist and gather results to prove its viability. Finally, in the last step, we will present the results obtained in the form of a scholarly publication and if possible a professional publication. 1.5 document organization The structure of this document is as follow: the definition of phobias and a description of the methods used to treat them in chapter 2. In chapter 3, it’s explained the concept of Augmented Reality, Virtual Reality and their differences, the types of Augmented Reality, it’s application on the treatment of phobias and related works. Afterwards, in chapter 4, we will described the proposed artefact and give some examples. In chapter 5, we explain all the parts that incorporate in the development of the platform and in chapter 6we will show an overview of the final product with an example. The results and discussion of the user 1.5. Document Organization 6 testing are in chapter 7. Lastly, in chapter 8we conclude the project and show the proposed schedule. 2 ANXIETY DISORDER: PHOBIA Fear is inherent and common in humans. It serves as an adaptive behavior to ensure our survival towards a dangerous situation (Barlow et al.,2017). Various anxiety disorders experience features of excessive fear, anxiety, and related behavioral disturbances. Fear is the emotional response to a real or perceived threat and is frequently correlated with a change of behavior such as fleeing or hiding. Intense fear can lead to a panic attack, which happens to people with anxiety disorders. In contrast, anxiety is the anticipation of a future threat that leads to muscle tension and alertness towards a possible danger (Association et al., 2013). When fear appears in harmless situations, it is no longer adaptable and restricts the life of the person (Barlow et al.,2017). Marks (1969) defined phobia as a special kind of fear that is out of proportion based on the situation, cannot be explained or reasoned away, is not voluntarily controlled, and leads to avoidance of the feared situation. Although they usually recognize that their fear may be exaggerated and unrealistic, since the vast majority of people wouldn’t have that problem, they are not capable of suppressing their fear. Beck et al. (2005) adds that what makes a fear into a phobia is the magnification of the amount of risk in a feared situation and the degree of harm that will come from being in that situation. In the next sections, we will start to distinguish the categories of Phobias, study the prevalence and incidence, describe some causes and effects provoke by them, and the type of treatment used by psychologists. 2.1 categories and types The American Psychiatric Association identifies three categories of phobias: Agoraphobia, Social Anxiety Disorder, and Specific Phobia. Agoraphobia is the fear of being in situations that the phobic thinks as difficult to escape or unsafe. This phobia is identified when an individual fears two or more of the following situations: using public transport, staying in open spaces, being in enclosed spaces, standing in line, being in a crowd, or being outside alone. They fear these situations because they think it might be difficult to escape or that help might be unavailable in case anything unfortunate 7 2.1. Categories and Types 8 happens. This anxiety disorder is diagnosed only if the fear, anxiety, or avoidance is persistent, usually by lasting at least six months or more. It also needs to cause distress or impairment in the social life of the individual. Moreover, when an individual diagnosed with Agoraphobia makes contact with the situations he fears, it almost always provokes fear or anxiety. In the worst cases of Agoraphobia, the person is unable to leave their home and is dependent on others to provide help and assistance (Association et al.,2013). Social Anxiety Disorder, also known as Social Phobia, is characterized by an intense fear of one or more social situations. This fear triggers when the individual is exposed to possible scrutiny since he fears to be negatively evaluated by others. Some examples of these situations are: having a conversation, meeting unfamiliar people, being observed, and giving a speech. An individual diagnosed with this anxiety disorder almost always suffers from fear or anxiety in those social situations. However, the type and intensity of the fear may change in different occurrences. He will also regularly avoid those situations or go through them with intense fear or anxiety. Moreover, this condition will limit the individual’s usual routine reducing his quality of life (Association et al.,2013). Specific Phobia is characterized as fear or anxiety of a specific object or situation. In this anxiety disorder, it is common to have multiple Specific Phobias. Roughly 75% of individuals fear more than one situation or object. Any contact with the phobic object or situations almost always provokes immediate fear or anxiety in the individual. If he is only occasionally anxious about those situations, he would not be diagnosed with Specific Phobia. However, as well as in Social Anxiety Disorder, the intensity of the fear may vary depending on other causes, such as the presence of others, duration of exposure, and dangerous elements. Association et al. (2013) Just until the beginning of the early 1990s, Specific Phobias were called Simple Phobia until it was changed and subdivided into five types. Following the Association et al. (2013) these five types are: •Animal (fear of spiders, insects, dogs) •Natural Environment (fear of heights, storms, water) •Blood-injection-injury (fear of needles, invasive medical procedures) •Situational (aeroplane, elevators, enclosed places) •Other (circumstances that may lead to choking or vomiting, loud sounds or costumed characters) 2.2. Prevalence and incidence of Specific Phobias 9 2.2 prevalence and incidence of specific phobias In Eaton et al. (2018) literature search, they gathered information about the prevalence of specific phobias in adults between 1984 and 2016. The median lifetime prevalence value they got was 7.2%, although these values vary considerably in different countries. For example, in Florence, the value is 1.5%, and in Oslo, Norway is 14.4%. Additionally, low-income countries have a lower prevalence than others. Figure 3shows the first occurrence of a Specific Phobia around different ages. We can see that females have a more tendency to have a Specific Phobia and that the age where it mostly occurs is during childhood, and they persist for several years. Moreover, they could also result in the appearance of other mental disorders, such as anxiety, mood, and substance-use disorders (Eaton et al.,2018). Therefore, understanding how they appear and how to treat them is essential to prevent the manifestation of other disorders Figure 3: Incidence of Specific Phobia by age of first onset (Eaton et al.,2018) 2.3 causes and effects The development of a phobia may occur after a traumatic event that resulted in an unpleasant or harmful experience. For example, if a person is involved in a car accident, he may develop vehophobia, which is the fear of driving. These phobias are usually easier to date since it’s from a specific traumatic event of the person’s life. Other phobias may come from childhood fears the person didn’t outgrow, typical examples are the fear of being alone in the dark 2.4. Treatment 10 or being lost. One possible reason that leads to the person not being able to outgrow the fear, unlike most children, is that the child was able to avoid the feared situation (Beck et al., 2005). Beck et al. (2005) defined three characteristics that occur when a person faces the cause of his fear. The first one is suffering from an unpleasant level of anxiety that leads to symptoms such as a pounding heart, racing pulse, nausea, dizziness, and faintness. The second one is escaping or avoiding the source of the phobia. If he is unable to avoid it, he may overcome the situation or develop chronic anxiety. Finally, the third characteristic is the ability to understand that the fear is excessive, but despite this, he is still incapable to overcome the fear. This understanding that leads the phobic to seek treatment is an important step for them to outgrow the fear. However, the efficiency of the treatment is also as important 2.4 treatment Generally, the people affected by phobias seek treatment because they either realize they suffer in a situation that doesn’t affect others or because they can no longer endure the effects and the restrictions inflicted by the phobia in their life. Although, people who are phobic about certain situations are completely relaxed in other circumstances that provide distress in others. To an observer, the situation may seem harmless, although for the phobic it may be life-threatening (Beck et al.,2005). Exposure therapy is an efficient method to treat specific phobias. In this approach, the psychologist exposes the patient to situations that increase his anxiety levels. This procedure should be performed multiple times and gradually to reduce the phobic responses, through learning processes about what is feared (Sánchez et al.,2019). Using this approach comes with a lot of limitations since it’s not always possible to control, prolong, or repeat the exposure to the fear. Depending on the type of treatment this could also cause moving costs, the discomfort of the patient, and loss of time on the process (Wauke et al.,2004). Among the various ways to put exposure therapy into practice, technology can be used to assist in the treatment by improving quality and safety. Therefore, we can enhance the therapeutic process by simulating this phobic object in a controlled and safe environment (Sánchez et al.,2019). These limitations could decrease if we used virtual tools, such as Augmented Reality since there would not be a need for transportation of the patient and the therapist. Applying this technology also allows the therapist to have full control of the virtual objects and how many times he wants the process to be simulated, without any increase in the cost (Medeiros et al.,2008). Alternatively, there is also another effective treatment for specific phobias called Cognitive behavioral therapy (CBT). This technique, combined with others, helps to change the way 2.4. Treatment 11 the phobic patient views the feared object or situation. CBT accentuates learning to grow a sense of mastery and confidence with your thoughts and feelings as opposed to feeling overwhelmed by them. Therefore by changing unhelpful thoughts, beliefs, and attitudes, it improves their emotional regulation(Beck and Beck,1995). After having a better comprehension of phobias, we have to study Augmented Reality to understand how we can efficiently use it to treat phobias. Therefore, in the next chapter, we will focus on what is AR, what types exist, and how we can apply it in the treatment. 3.3. Traditional Methods and AR/VR Treatment 18 virtual assets when the camera detects it. They are mostly black and white, as we can see in figure 10. Figure 10: Markers examples The Markerless tracking aims to recognize natural elements in the real world, such as human faces or arms, and place the virtual object in that position. Simultaneous Localisation and Mapping (SLAM) is another tracking technique used in Augmented Reality. SLAM denotes the computational method of building or updating a map of an unknown space while simultaneously keeping track of an agent’s location in it. This technique has the advantage of not needing any prior information, such as reference images or 3D models. The limitations of SLAM are a high computational cost to deal with tracking and mapping simultaneously and tracking loss caused by camera movement. However, it has overcome some of these limitations and has improved the tracking over the past ten years (Kim et al.,2018). Finally, we have Hybrid tracking, which consists of combining multiple techniques to improve tracking quality. This method is a good alternative because there are situations where a single tracking method is not enough to provide reliable tracking for AR. For example, sensor-based methods may not produce good results, and vision-based techniques struggle in texture-less surroundings. Hybrid tracking is specifically beneficial in mobile platforms since they are inherently equipped with multiple sensors used for tracking techniques (Kim et al.,2018). After classifying all types of Augmented Reality, it is important to understand and compare the differences between the use of AR versus the traditional methods in the treatment of Phobias. Therefore, the next section will focus on this topic. 3.3 traditional methods and ar/vr treatment As stated by Juan et al. (2005) Virtual Reality and Augmented Reality share some benefits in comparison with the traditional methods as shown in table 1. They contribute to a safer 3.4. Related projects 19 environment for the patient allowing him to feel less anxious and decreasing the possibilities of him giving up on the treatment. In the case of Zoophobia, which is the Specific Phobia to particular animals, the therapist cannot control them. For example, if the patient fears dogs, there is always the possibility that he is attacked by them. This situation could lead to an increased level of phobia. However, using AR ou VR this problem does not happen because the elements are virtual, and therefore they can’t hurt the patient. In another scenario, if the patient fears flying by plane, there is a need for him to travel by one to surpass the phobia. This leads to an increase in cost since traveling by plane is not cheap and also in longer sessions. In AR or VR, the virtual elements appear whenever the therapist wants and also can control when it starts and stops. Additionally, the procedure can be performed multiple times without any increase in the cost. In this type of phobia, there is also the possibility that the patient suffers from discomfort during the session since it requires to do it in a public space. This does not occur with AR or Vr because the therapist can decide where the sessions take place. Table 1: Comparison between the traditional methods and Augmented and Virtual Reality for the treatment of phobias by Juan et al. (2005) Traditional Methods AR and VR Treatment The elements that the patient fear are real and cannot be controlled by the therapist The elements feared are virtual therefore they can be controlled Depending on the type of phobia it may require moving costs and longer sessions The therapist has full control when the virtual objects appear. Also, he can start/stop the program at any time The stimuli produced in are not controlled by the therapist The therapist can simulate the process multiple times without increasing the cost of the procedure There’s no assurance of the safety of the patient during the treatment There is no real threat to the patient since the elements are not real If the treatment requires a public place the patient may suffer discomfort during the session The therapist can choose where the sessions take place After comparing AR with VR, we also need to study some related projects that used these technologies, so we have a better understating of what’s been done and how we can proceed to improve it. 3.4 related projects Medeiros (2006) proposed a collection of Virtual Reality systems to treat phobias such as the fear of tunnels, subways, airplanes, elevators, and buses. Although these types of phobias are not the main focus of our project, understanding how he proceeded and implemented 3.4. Related projects 20 Figure 11: Images of Medeiros (2006) systems to treat tunnel phobia (left image) and buses phobia (right image) this project is beneficial to our project, as we can always take some ideas out of it. Figure 11 it shows two different systems that help the treatment of phobias using VR, one for the fear of tunnels and the other for the phobia of riding a bus. In the first one, virtual cars and people are crossing the street during the path the user takes, making it more realistic. Additionally, inside the tunnel, there is a truck crash at the end to increase the notion of the danger of the patient. In the other image, the person starts by waiting for the bus and then rides on it until it archives his destination. Juan and collaborators Juan et al. (2004) developed a system to treat the fear of cockroaches using marker-based Augmented Reality. They created their 3D model of a cockroach with a modeling tool, and then using ARToolkit 2.65, they created the system seen in Figure 12. Figure 12: Image of (Juan et al.,2004) work The system was capable of: •Appearance of cockroaches: when only one cockroach is selected it appears in the center of the marker, but when there are multiple cockroaches they appear randomly; •Cockroaches movement: cockroaches can move from the starting position, but their movement is repetitive, and it is different for each cockroach; •Increase/reduce size: the cockroaches can have different sizes by zooming in and out. 3.4. Related projects 21 Figure 13: Image of (Lima et al.,2012) system During the treatment, the patient had to use a Head-worn display to see the virtual element, but he still had the presence of the real world. This way, he treats his phobia without having direct contact with a real one. The conclusions that Juan et al. (2004) took were that the system was capable of activating the patient’s anxiety and claims that AR is effective to treat phobias of animals of small sizes. Although this project was successful, it had some disadvantages, there was no gradual evolution of the models, and it requires the use of a head-worn display. Another interesting project is a system to treat arachnophobia created by (Lima et al.,2012) that eliminated some of the disadvantages found in Juan et al. (2004) project. He also used marker base Augmented Reality with the possibility to use a head-worn display. For this, he used Papervision and Flartoolkit to develop his AR application on the internet. Although, to executed it was necessary to install a Flash plugin. The functionalities of Lima et al. (2012) system were: • Registering the information of the patient such as name, birthday, address, complements, and his treatment history; •View and manipulate the virtual spiders using different markers; • Interact with the spiders with the system interface, making it possible to change 3D models and include animations; •Having a gradual evolution of the models by having different realism levels. In figure 13 shows the user choosing the model to be used by selecting the bottoms on the right side, and the left side shows the webcam. In case the marker is positioned in the view of the camera, the 3D model would appear. Besides this, his system could also be used with AR glasses with direct vision. 3.4. Related projects 22 Although this system was an upgrade from the (Juan et al.,2004), we still could improve it by making it accessible to all the devices without any installation by using the internet. Moreover, we could discard the use of a head-worn device making it more comfortable for the patient and retain its portability by using a smartphone. Therefore using this knowledge, in the next chapter, we present the artefact proposal of what we intend to develop to support the treatment of Specific Phobias using Augmented Reality. 4 PHOBIAR: PROPOSAL After studying the state of the art of Phobias and Augmented Reality, this chapter shows a proposal of the artefact that we intend to develop based on all the research done. Additionally, it is also presented an example of using a prototype developed using AR with marker-based tracking. 4.1 artefact description In this project, we are following the Design Science Research methodology, which consists of creating an artefact to solve a problem (Von Alan et al. (2004)). In this context, the problem is to improve the treatment of specific phobias by using Augmented Reality. Therefore, our goal is to develop an artefact capable of providing support for the treatment of phobias using this technology. To accomplish this, we will work in conjunction with a psychologist who treated phobic patients to define which requirements are needed for the artefact to be viable and intuitive. Considering the final product is aimed for them to use during the treatment, their approval is essential for the success of this artefact. Lima et al. (Lima et al. (2012)) in their work applied a gradual exposition method for the treatment of arachnophobia. Their system had eight different levels of spiders. As each level progressed, the level of realism of the spider would also increase. They start with a model that doesn’t resemble a spider and then add features such as textures and animations. This approach encompasses different states in which patients experience different levels of fear. Moreover, it allows for a gradual exposition, which adds small steps to overcome during the treatment, decreasing the possibility of the patient to give up on the treatment. Therefore, we will implement a similar approach to our system. The artefact will use libraries of WebAR, which consist of using Augmented Reality in the browser. This option allows for greater accessibility and an intuitive approach. Furthermore, there is also the option to use Marker-based and Markless options. The schema in Figure 14 was developed to describe the intended result with this project. The schema is divided into two phases: the development and the operation. The first phase is dedicated to the preparation of the session. The psychologist will have access to the 23 4.2. Examples 24 information of the patient in previous sessions. He will also be able to choose which 3D model he wants to load. Additionally, there will be the possibility to import other models if necessary. Other options that he can choose will be the level of realism of the 3D model and the tracking method. After this, the AR artefact is created and is ready to be used in the operation phase. Figure 14: Schema proposal In this phase, the psychologist chooses the equipment that he wants to use. The only requirements needed for the device are a camera and an internet connection. The camera is used to recognize the marker and to provide video. The internet enables access to the artefact. Additionally, the psychologist can add a simple physiological sensor to measure the heart rate of the patient to obtain more information. 4.2 examples In this section, we will demonstrate some examples used using a prototype. These examples will focus on different types of phobias, such as the fear of spiders, cockroaches, rhinoceros beetle, snakes, blood, and syringes. These examples were performed with a laptop in a Web browser. In figure 15, the camera recognizes the HIRO marker and overlays the 3D object of the spider on it. This example was used to cover arachnophobia, which is the fear of a spider. To expand coverage of phobias, we also used a rhinoceros beetle and cockroach models shown in figure 16. These examples were created with the purpose to help the treatment of entomophobia, which is the fear of insects. Both of them follow the same procedure as the spider, although we used a different marker on the cockroach example. 4.2. Examples 25 Figure 15: Example of Augmented Reality using Marker-based tracking Figure 16: Example a rhinoceros beetle (left) and a cockroaches (right) Other examples of phobias that are not from an animal but are still common are hemophobia, which is the fear of blood, and aichmophobia, which is the fear of sharp things. Figure 17 was used to cover these phobias. On the left side, we overlay an image of a pool of blood above the marker, and on the right side, it is a 3D model of a syringe. In figure 18, we present three different levels of snakes from left to right. The first level resembles more a snake toy than a real snake so that the patient understands what it is but without causing any strong reaction. After the psychologist analyses the outcome of the patient interaction with this example, he can then progress the patient towards the next level. In the second level, the snake model already looks like a real snake, but it is small and slim. In both of these examples, the patient can see the marker, which helps him realize that the models are not real. Finally, in level three, the model matches a real rattlesnake, and a square is covering the marker. Both these elements increase the difficulty of this level because the patient can easily associate the 3D model with a real snake and the absence of the marker hinders his perception that it is not a real snake. With this, we can simulate a 4.2. Examples 26 Figure 17: Example blood and a syringe possible progression on the treatment of this type of phobia, where the patient would start on level one and would progress to level three. There are more options that we could add to further expand the levels such as animations and movement. Figure 18: Diferent levels of snakes After deciding the intended result with this project and having a working example we started to develop a complete system with all the necessary features. Therefore, in the next chapter, we are going through every step took explaining what was done to achieve the end result. 5 PHOBIAR: IMPLEMENTATION The central goal of this project is the development of a system capable of helping the treatment of Specific Phobias. As discussed in the last chapter, we created a prototype of the system we intended to build. Therefore, in this chapter, we are going to show the steps and decisions took to progress from the prototype seen towards the final system. 5.1 technology approach In Figure 19, we present a proposal for the architecture of the web platform. The three main components in this architecture are the frontend, the backend, and the database. The frontend presents a dynamic interface to the user, so he can easily access the information or fill forms. The framework chosen was Vue, for the page and interface, and we also use Vuetify for the page design. The back end is responsible for processing requests sent from the front end and respond. The framework used was Node.js. The backend will also incorporate an AR library, AR.js, which is used for the Marker tracking technique. The communication between the frontend and backend is made through HTTP requests and responses. To process these requests, the back end connects to the database and accesses, inserts, updates, or deletes data. MongoDB is used to store user accounts, sessions, markers, and phobias. Input Output HTTP request HTTP responseOutput Data Data AR Library Figure 19: System proposed architecture 27 5.7. Backend 34 5.7 backend The frameworks used are Node.js (Node.js) and Express (Express). Next it is shown a simplified definition of the backend API divided as sessions, markers, phobias. Sessions GET /api/sessions/ Returns the list of the sessions POST /api/sessions/upload Creates a new session DELETE api/sessions/:session_date/:patient Deletes a session PUT api/sessions/:session_date/:patient Changes the information of a session Markers GET /api/markers/:marker/download Download a marker Phobias GET /api/phobias Returns the list of the phobias GET /api/phobias/:phobia Returns the models of a phobia GET /api/phobias/:phobia/:model Returns the levels available of the model Aside from these routes, we also create two routes that will render the sessions. When the user wants to open a session previously created by him, these are the routes used. They received all the information needed, such as the phobia, the model, the level, and the marker. This information is then passed into a Pug file that is rendered using the Ar.js library. The first one is used when the marker that was chosen is a single marker, such as the Hiro marker. The other one is used when the marker ’niveis’ is selected since this one includes five different markers. 5.8. Frontend 35 GET /:phobia/:model/:level/:marker Generate the session based on the information received GET /:phobia/:model/:level/niveis Generate the session based on the information received for the marker ’niveis’ 5.8 frontend The frontend goal is to have an intuitive user interface capable of providing an easy way for the therapist to use the platform. This way, psychologists that are not very used to using these types of technology have an easier time learning it. Vue (Vue) and Vuetify (Vuetify) are the frameworks used to develop PhobiAR frontend. Vue is a JavaScript framework for the development of reactive web frontends. Vuetify is a JavaScript and CSS framework developed for Vue that adds new components with many possible configurations. Additionally, due to the responsive nature of Vue, it allows us to easily adapt the platform to smaller screens with small changes to the original code. The frontend is divided into seven views which are: home.vue , createSession.vue , sessions.vue , models.vue , markers.vue , feedback.vue and about.vue and, each of these views represent a page on the platform. Overall, all the operation available are: •Sessions list and management (Create, Delete, Edit); •Sessions search by patient; •Generate the session; •View the available models; •View and download markers; •Sending feedback; The most simple views are the home.vue and about.vue , which are informative pages about the platform and the team, respectively. Then we have the createSession.vue , this view handles the creation of a session by receiving the necessary information and then sending a post request to the backend to save the session into the database. In this view, the order of the information is picked is important, therefore some bottoms are disabled until the condition is verified. For example, the user cannot choose the level of the model before choosing the model. 5.8. Frontend 36 The next one is the sessions.vue . This view receives all the available sessions from the backend with a get request. Afterward, we process this information so that we can group the sessions by the patient and storing it in an expansion panel. We also created a text field that searches for a patient and filters the sessions by it. For each session, we can generate it redirecting the user to the backend page that renders the sessions and creates it. There is also another alternative to generate the session that is by using a QR code that has the information of the backend URL that renders the session. To create this QR Code we used an API (qrc) that generates it by sending a request to their page with the information that we want in the QR Code in the URL. This was made so the user can easily change from using the computer to the phone. Additionally, we can edit by sending a put request to change the information or delete a session by sending a delete request to the backend. The models.vue is responsible for showing the available models to the user. First, we send a get request to the backend to receive a JSON array with all the information that we need, such as the phobias available, their models, and levels. Then we create an expansion panel with this information and a button that when clicked it renders the chosen level of the model. For viewing it we used a GitHub library (vue-3d-model) created by the user Hujiulong lets you view 3D models in vue. It also allows you to rotate and move the camera so you can see the model from different perspectives and angles. Following after models.vue , we have the markers.vue . In this view, we show the available markers and give the possibility to download any of them. When pressing the download bottom, the user is redirected to a backend page where it prompts the user to where he wants to save the file of the chosen marker. After accepting or declining it, the pages automatically closes. Finally, we have the feedback.vue that is responsible for sending any feedback that the user want to send about the platform. This feedback is saved in a collection on the database so we can later analyze it. Finally, we have the feedback.vue that is responsible for sending any feedback that the user wants to send about the platform. This feedback is saved in a collection on the database so we can later analyze it. In this chapter, we explained all the necessary components of our system. Next, we will show the result with an overview of the PhobiAR website, a working example of the platform, and a comparison between our system and other systems discussed in chapter 3.4 6 PHOBIAR: ARTEFACT OF AR TO TREAT PHOBIAS In this chapter, we are going to show the final result of the Platform PhobiAR by going through every page and explaining what it does. Afterward, we will demonstrate a simple example of the necessary steps to follow to use this tool to its full capacity. 6.1 phobiar overview The PhobiAR website is hosted in https://phobiar-fe.epl.di.uminho.pt/ and the first page that is showed to the user is the home page (see Figure 48 or Figure 55a). On this page we have a brief description of what it is and what it does and, next to it we have a set of images that alternate between them, one is the phobiAR logo and the others are examples of the tool. Additionally, there is a top bar (see Figure 26) that is persistent on every page and allows the user to navigate between the different pages. The available pages are: •Home (with the PhobiAR logo) •Criar Sessão (Create Session) •Sessões (Session) •Modelos (Models) •Marcadores (Markers) •Feedback •About Figure 26: Navigation bar of PhobiAR 37 6.1. PhobiAR Overview 38 Following the order on the navigation bar, after the home page, we have the "Criar Sessão" (Create Session) page (see Figure 49 and Figure 55b). On this page, the user creates the session by filling out the form with all the necessary information. The first step is to write the name of the patient and choose the date in the fields seen in Figure 27. When clicking on the date, it opens a calendar, making it easier to pick a date. Figure 27: Fill with a name and a date The next step is to choose what we want to show in the session and what marker we want to use. There are some conditions when filling this part of the page. The first one is the order required to choose the phobia, the model, and the level because the model is dependent on the phobia and the level is dependent on the model. As we can see in Figure 28, the boxes to choose the model and the level is disabled (The line is dashed) until we pick a phobia. We can only show the available models after knowing the phobia that the user wants, and the same is applied for the level. The other condition is that in case the psychologist picks the marker "niveis" he does not have to choose the model level because that is done automatically. All the model levels will be available when generating the session. Figure 28: Choose a phobia, a model, a level and a marker Finally, we have a text area where the user can write anything he wants about the session (see Figure 29). Afterward, the user can also edit by adding more content or removing. This is the only field that is not mandatory, all the other boxes must be filled for the save bottom to be active. 6.1. PhobiAR Overview 39 Figure 29: Notes and save session bottom The third page available is the Sessões (Sessions) page (see Figure 50 and 56a). This page shows all the patients. When we clicked on them, it expands and shows all their sessions. In Figure 30, we can see a session of a specific patient. Each session has the information of the patient name, date, phobia, model, level, and marker. It also shows the patient notes if it has any. For each session, there are four bottoms that we are going to explain what they do from left to right. First, we have the ’Gerar’ (Generate) bottom that creates this specific session and redirects the user to another page, where, if he shows the marker to the camera, the 3D model will appear above it. Next, we have the bottom that generates the QR Code of the session. Has it was described before in chapter 5.8, the QR Code has the link of the session, and then read the user can navigate to that page. The reason why we decided to make two different ways to generate the sessions is when the psychologist wants to create the session on the computer but wants to use the phone for it. This situation may occur because the computer is better to create the session, but the phone has a better camera and is more portable. Therefore, with the QR Code, the therapist can easily use his phone to read it and generate the session on the phone instead. The QR Code returns the link to the compiled session. The last two bottoms are the edit and delete bottom. The edit bottom lets the user change any field he wants, for example, he can change the model or add notes. The delete bottom deletes the chosen section since there is no way to retrieve the sessions the user is prompt with a warning to see if he wants to delete it. Additionally, we also have a bottom that lets the user create a new session for the selected patient with some fields already filled. Finally, we have a search bar that filters the sessions by a patient. 6.1. PhobiAR Overview 40 Figure 30: Session of a patient The following page is "Modelos" (Models) (see Figure 51 and 56b). The goal of this page to have an easy way to view all the available models on the platform. This way, the therapist can identify which model is best suited for the treatment of a specific patient. The page starts by showing an accordion of the phobias, that when expanded, displays the models. In the same way, the models are also an accordion, that when opened, shows the model levels. Afterward, the user can choose which level of the model he wants to see. Figure 31: Viewing a spider model 6.2. Demonstration 41 In Figure 31, we can see view level one of the models "aranha_teia" and in Figure 52 it shows level five of the model "seringa_evolução". After loading, the user can zoom in/out and rotate the object allowing him to freely view the model. The next page is the "Marcadores" (Markers) page (See Figure 53 and 57a). This page shows the user the available markers (Hiro, Kanji, and "Niveis"). Considering the marker "Niveis" is a group of five different markers, we divided them on this page so the user can differentiate between them. Additionally, we can also download any of these markers. This way, it enables the option to print out the marker, making it is easier to use in the paper during the therapy. Alternatively, if the user is using his phone, he can always open this page on another device and point the camera towards the markers. Figure 32: Markers Examples Finally, we have the Feedback page (see Figure 54 and 57b). The objective of this page is to provide an easy way for the user to give us feedback about the platform. The information that is important to us is any ideas or suggestions, any bugs found, and an overall rating of the platform from one to ten. 6.2 demonstration In this section, we will demonstrate the procedure for a therapist to use this platform efficiently, imagining a scenario where we are treating a patient named Maria that is afraid of snakes (Ophidiophobia). The first step is to have a better understanding of the models provided so the user can choose the best for his needs. Therefore observing all the snake models on the models’ page is advantageous to have great results. Assuming the therapist picked the model "cobra_evolucao" (see Figure 45 because it is the model that has the most gradual evolution of snakes. Additionally, knowing what markers are available is also 6.2. Demonstration 42 essential to use this tool. Therefore, he then proceeds to the markers page to decide which marker he wants to use. After deciding on using the "niveis" marker (see Figure 47) because he can have one for each level of the model, he prints them out. This way, they are always available, and it is easier to use. After all these preparations, the psychologist then needs to create a session for his patient. In figure 33a, he creates a session for the patient Maria, which as ophidiophobia, by choosing a model and a marker. Considering he chooses the marker ’niveis’ we do not have to select a level. Finally, he saves the session. Moving on to the next step, he navigates to the sessions page (See figure 33b) and finds the session he created. (a) Creating a session (b) Finding the session Figure 33: Creating and finding the session He then generates the session by clicking on the button and accepts the permission for the use of the camera. After loading the page, he only has to point the camera to the chosen marker, and the 3D model will appear as seen in figure 34 Afterward, he has the total liberty to do what they want in their therapy using the platform. 6.2. Demonstration 43 Figure 34: Generated session 7.3. PhobiAR Feedback 50 Figure 43: Grouped bar chart of question number 11 of appendix F 7.3 phobiar feedback In the form and the platform, there was a place where the users could write some feedback about anything they thought interesting. In this subsection, we are going to discuss some of the suggestions and ideas gathered from this feedback. All the answers are in the appendix G. The most common suggestion was to improve level 5, making it more realistic. This would be hard to achieve because the more realistic the models are the more complex they are and end up consuming more resources. Therefore, we had to decide on a balance between realism and resource consumption, so it would still be able to run in smartphones. Moreover, creating realistic 3D models take a long time to create, and we did not have any experience with 3D modeling before. Another suggestion related to the models was dividing them into more levels having an increased gradual evolution. Other suggestions focused on ways to keep track of the patient information related to the history of the origin of his phobia, the type of fear, and a description of the physical and psychological reactions of the patient. Although the platform does not support this, the psychologist is free to write what he thinks is essential in the session notes. Lastly, one person suggested the possibility to incorporate a way to count the pulsations of the patient. This would required extra equipment that would go against the focus of this project to be easy and accessible. Although, it would be a great feature to be included. In general, the feedback was insightful and positive, showing that they understood the objective of the platform and approved its viability. 8 CONCLUSION The current chapter closes this dissertation by providing a summary of everything discussed, a validation of the objectives, and a critical view of this work. It discusses what has been achieved with the resulting platform and how it compares to similar projects. Finally, it proposes some new ideas on how this project or others can be continued and improved in the future. 8.1 work summary Phobia is a type of anxiety disorder and is one of the most prevalent mental disorders. There are various different methods to treat this disorder, but the most successful is exposure therapy. Although this approach is effective it comes with some restrictions. Augmented Reality can be a powerful tool to support the exposition treatment of phobias. This technique can provide multiple benefits and decrease some of the limitations of exposure therapy. There is also an increasing amount of researches on Augmented Reality, which served as an encouragement to explore it. This dissertation proposal was submitted at the WorldCIST’20 conference in form of a short paper. It was accepted and published in Springer in a book called Trends and Innovations in Information Systems and Technologies (Boas et al.,2020) that consisted of all the papers accepted in that conference. This helped to prove and consolidate our motivation to progress with this thesis. The state of the art of this dissertation consisted of a study of Phobias and Augmented Reality. An investigation of the categories and types of phobias concluded that our work should focus only on Specific Phobias as it was the only category that would work efficiently with Augmented Reality. We also explored the prevalence and incidence to understand how much of the population is affected by this disorder. The causes, effects, and treatment choices helped to comprehend how a phobia occurs and which treatment method is the most effective for us to replicate using AR. Following this research, it was also studied the difference between Virtual Reality and Augmented Reality that reinforced our decision to use 51 8.1. Work Summary 52 the chosen technology. An extensive investigation of the AR types helped to decide which type would be the most effective to implement with the treatment of phobias. Moreover, a comparison between traditional methods and AR/VR was done to strengthen our motivation to use this technology as it would bring various benefits. Finally, the state of art closes with a summary of related projects previously done that helped to understand what are the features that the project must include. Furthermore, some requirements for this system were discussed by doing interviews with a psychologist with experience in treating people with phobias, so we have another expert opinion. To understand the viability of the project, we also create a schema of the system. In this schema, we separate the system into two phases: the development and the operation. One describes the preparation of the session and the other the use of the artefact. Besides, we also built a prototype of the system with some phobias. The examples focused were the most common types of phobias which are the fear of spiders, snakes, blood, and others. As for the implementation of the platform, a system architecture helped to decide which technologies would be used to achieve the intended result. Additionally, throughout this chapter, every component is explained as well as some decisions taken during the project. The resulting platform is called PhobiAR and was deployed on a server at the University of Minho, allowing everyone who had access to the internet to use it. An overview of the platform is done, explaining every page and its available services. Additionally, a demonstration of the platform is presented, showing how a therapist would use this platform in an imaginary scenery. Afterward, there is also a comparison between the PhobiAR system and the related projects shown beforehand. Verifying the viability of this project is an important step in this dissertation. For this, various psychologists tested and evaluated our platform and provided their technical feedback by responding to a survey. Although the outbreak of COVID-19 hindered the possibility of gathering an extensive group of testers, it was still possible to test the platform with ten psychologists. Based on the very satisfactory results obtained in terms of utility, viability, and applicability we can prove the viability this project as a system that can help the treatment of Specific Phobias. This dissertation proposed various objectives that would be essential to build a beneficial system to support the treatment of Specific Phobias. The first objective was to do a study of the problem by exploring related projects to understand how it could be improved. This way, we would identify the main problems of the treatment of phobias and work on solutions with the use of AR. This was achieved in the chapter related to the state of art. The second objective was to do interviews with a psychologist that had experience in treating phobic patients. For this, we planned multiple sessions where progress was shown to the psychologist on the team, and feedback was provided to add or remove requirements. The next one was implementing multiple functionalities in the system. Most of these features 8.2. Future Work 53 were implemented, such as associating a marker to a phobia, having the possibility to have different markers that represent different stage levels of the phobia have a preview of the existing model. Additionally, it also has session management functionalities being like to create, edit, and delete a session of the patient and add notes about the sessions. However, the possibility for the psychologist to import new models were not implemented because it would be difficult for them to do. This because it must follow be in a specific file format, and the models need to be resized before to be in decent sizes. Another objective that was not achieved was to a developed system capable of detecting the user heart rate. The reason for this was because it would difficult to implement and associate with the platform. Furthermore, it would go against the idea of the proposed system of not needing any additional equipment to work except for a smartphone and internet connection. Finally, the last objective was to validate the systems by analyzing its efficiency and collecting results from the experiments with the psychologists. This verification was done, and the results obtained were mostly positive, as said beforehand. Besides doing this dissertation, there was also another contribution done together with members of the Language Processing laboratory. The full paper was about "OntoJogo: An Ontology for Game Classification" and was published in SeGAH 2020 (Teixeira et al.,2020). This initiative was important to strengthen our team spirit in the laboratory and to gain knowledge in another topic different from the dissertation. 8.2 future work With this project’s conclusion, this section presents a few ideas of possible future additions to the platform proposed. These new ideas appear from the feedback collected from the platform, but also from other specialists from different areas of knowledge. Additionally, Augmented Reality is also an expanding technology that can lead to creating new features. Therefore, future studies could focus on improving the realism level of the last levels. These improvements could help to reach phobic patients that have lighter levels of phobias that the 3D models of PhobiAR would not trigger their anxiety. The gradual evolution of the models could also be improved by having more levels and fewer differences between the models. For example, the first level could be an optical illusion of the phobias. This addiction would further expand the possibilities of the gradual evolution and would allow for more comfortable development of the patient between the models, without taking the risk of having a big evolution in levels. Due to the fact that a system to detect the heart rate of the patients was not developed, it could be an interesting new feature to include in a future project. Moreover, if after the session the therapist could see the evolution of the heart rate it would be an amazing tool to understand the progress of the patient. 8.2. Future Work 54 Other features that could be included in the platform could be adding the possibility to add music to the models. This because AR can be not only focused on visual elements but also on other senses like hearing. Changing the perception that the phobic patient has of the phobia may help him overcome this fear, and music is a great way to achieve this. Lastly, the platform could support multiple languages so it can increase the number of therapists that can use the platform. BIBLIOGRAPHY QR Code Generator. http://goqr.me/api/ , note = Accessed: 2020-09-12, key = QR Code Generator. Fadhil Noer Afif, Ahmad Hoirul Basori, and Nadzari Saari. Vision based tracking technology for augmented reality: A survey. International Journal of Interactive Digital Media,1(1): 46–49,2013. aframe-gltf. Aframe gltf. https://aframe.io/docs/1.0.0/components/gltf-model.html . Accessed: 2020-04-28. AR.js. Ar.js. https://github.com/AR-js-org/AR.js. Accessed: 2020-05-10. AR.js Marker Training. Ar.js marker training. https://jeromeetienne.github.io/AR.js/ three.js/examples/marker-training/examples/generator.html . Accessed: 2020-05- 10. American Psychiatric Association et al. Diagnostic and statistical manual of mental disorders (DSM-5R ). American Psychiatric Pub, 2013. Ronald Azuma, Yohan Baillot, Reinhold Behringer, Steven Feiner, Simon Julier, and Blair MacIntyre. Recent advances in augmented reality. IEEE computer graphics and applications, 21(6):34–47,2001. Ronald T Azuma. A survey of augmented reality. Presence: Teleoperators & Virtual Environments,6(4):355–385,1997. Ronald T Azuma. Making augmented reality a reality. In Applied Industrial Optics: Spectroscopy, Imaging and Metrology, pages JTu1F–1. Optical Society of America, 2017. David H Barlow, Todd J Farchione, Shannon Sauer-Zavala, Heather Murray Latin, Kristen K Ellard, Jacqueline R Bullis, Kate H Bentley, Hannah T Boettcher, and Clair Cassiello- Robbins. Unified protocol for transdiagnostic treatment of emotional disorders: Therapist guide. Oxford University Press, 2017. Aaron T Beck, Gary Emery, and Ruth L Greenberg. Anxiety disorders and phobias: A cognitive perspective. Basic Books, 2005. Judith S Beck and Aaron T Beck. Cognitive therapy: Basics and beyond. Number Sirsi) i9780898628470. Guilford press New York, 1995. 55 BIBLIOGRAPHY 56 Blender. Blender website. https://www.blender.org/. Accessed: 2020-04-28. Raul Vilas Boas, Lázaro Lima, Greice Zanini, and Pedro Rangel Henriques. Artefact of augmented reality to support the treatment of specific phobias. In Álvaro Rocha, Hojjat Adeli, Luís Paulo Reis, Sandra Costanzo, Irena Orovic, and Fernando Moreira, editors, Trends and Innovations in Information Systems and Technologies, pages 181–187, Cham, 2020. Springer International Publishing. ISBN 978-3-030-45691-7. William W Eaton, O Joseph Bienvenu, and Beyon Miloyan. Specific phobias. The Lancet Psychiatry,5(8):678–686,2018. Jochen Ehnes, Koichi Hirota, and Michitaka Hirose. Projected augmentation-augmented reality using rotatable video projectors. In Proceedings of the 3rd IEEE/ACM International Symposium on Mixed and Augmented Reality, pages 26–35. IEEE Computer Society, 2004. Express. Express. https://expressjs.com/. Accessed: 2020-04-19. GLB. Glb file format. https://docs.fileformat.com/3d/glb/. Accessed: 2020-07-14. M. C. Juan, M. Alcaniz, C. Monserrat, C. Botella, R. M. Banos, and B. Guerrero. Using augmented reality to treat phobias. IEEE Computer Graphics and Applications,25(6):31–37, Nov 2005. doi: 10.1109/MCG.2005.143. MC Juan, Cristina Botella, M Alcaniz, R Banos, C Carrion, M Melero, and José Antonio Lozano. An augmented reality system for treating psychological disorders: application to phobia to cockroaches. In Third IEEE and ACM International Symposium on Mixed and Augmented Reality, pages 256–257. IEEE, 2004. KhronosGroup. Khronosgroup. https://github.com/KhronosGroup/glTF . Accessed: 2020- 04-28. Kangsoo Kim, Mark Billinghurst, Gerd Bruder, Henry Been-Lirn Duh, and Gregory F Welch. Revisiting trends in augmented reality research: A review of the 2nd decade of ismar (2008–2017). IEEE transactions on visualization and computer graphics,24(11):2947–2962, 2018. Lázaro Vinícius de Oliveira Lima et al. Sistema para auxílio no tratamento de aracnofobia usando realidade aumentada. 2012. Jessica L Maples-Keller, Brian E Bunnell, Sae-Jin Kim, and Barbara O Rothbaum. The use of virtual reality technology in the treatment of anxiety and other psychiatric disorders. Harvard review of psychiatry,25(3):103,2017. I. M. Marks. Fears and Phobias. New York: Academic Press, 1969. BIBLIOGRAPHY 57 Danielly Medeiros, Wender Silva, Edgard Lamounier Jr, and Marcos Wagner Souza Ribeiro. Realidade virtual não-imersiva como tecnologia de apoio no desenvolvimento de protótipos para reconstituição de ambientes históricos para auxílio ao ensino. In V Workshop de Realidade Virtual e Aumentada–WRVA, volume 21,2008. Gustavo Adolfo Medeiros. Sistema de realidade virtual para tratamento de fobias. Rio de Janeiro: UFRJ,2006. Paul Milgram, Haruo Takemura, Akira Utsumi, and Fumio Kishino. Augmented reality: A class of displays on the reality-virtuality continuum. Telemanipulator and Telepresence Technologies,2351,01 1994. doi: 10.1117/12.197321. MongoDB. Mongodb. https://www.mongodb.com/. Accessed: 2020-05-10. Joseph Newman, David Ingram, and Andy Hopper. Augmented reality in a wide area sentient environment. In Proceedings IEEE and ACM International Symposium on Augmented Reality, pages 77–86. IEEE, 2001. Node.js. Node.js. https://nodejs.org/en/. Accessed: 2020-04-19. Xiuquan Qiao, Pei Ren, Schahram Dustdar, Ling Liu, Huadong Ma, and Junliang Chen. Web ar: A promising future for mobile augmented reality—state of the art, challenges, and insights. Proceedings of the IEEE,107(4):651–666,2019. Liliana Bueno Sánchez, Nathaly Díaz Africano, Daniela Restrepo García, Andrea Solano Gualdrón, and Carlos Gantiva. Realidad virtual como tratamiento para la fobia específica a las arañas: una revisión sistemática. Psychología: Avances de la Disciplina,13(1):101–109, 2019. André Stork and Oliver Bimber. Projection-based augmented reality in engineering applications. In CAD 2002: Corporate Engineering Research, pages 241–248. GI German Informatics Society, 2002. Alexandru Tabusca and Gabriel Garais. Augmented reality-next digital step for the european integrated emergency system. Res. & Sci. Today,13:101,2017. S. Teixeira, R. V. Boas, F. Oliveira, C. Araújo, and P. R. Henriques. Ontojogo: An ontology for game classification. In 2020 IEEE 8th International Conference on Serious Games and Applications for Health (SeGAH), pages 1–8, Aug 2020. doi: 10.1109/SeGAH49190.2020. 9201876. Chai-Fen Tsai, Shih-Ching Yeh, Yanyan Huang, Zhengyu Wu, Jianjun Cui, and Lirong Zheng. The effect of augmented reality and virtual reality on inducing anxiety for exposure therapy: A comparison using heart rate variability. Journal of healthcare engineering,2018, 2018. BIBLIOGRAPHY 58 Joan Ernst Van Aken. Management research as a design science: Articulating the research products of mode 2knowledge production in management. British journal of management, 16(1):19–36,2005. R Hevner Von Alan, Salvatore T March, Jinsoo Park, and Sudha Ram. Design science in information systems research. MIS quarterly,28(1):75–105,2004. Vue. Vue. https://vuejs.org/. Accessed: 2020-08-2. vue-3d-model. Vue-3d-model. https://github.com/hujiulong/vue-3d-model . Accessed: 2020-05-15. Vuetify. Vuetify. https://vuetifyjs.com/en/. Accessed: 2020-08-2. Daniel Wagner and Dieter Schmalstieg. Handheld augmented reality displays. In IEEE Virtual Reality Conference (VR 2006), pages 321–321. IEEE, 2006. Ana Paula T Wauke, RMEM Costa, and Luis Alfredo V de Carvalho. Vesup: O uso de ambientes virtuais no tratamento de fobias urbanas. In IX Congresso Brasileiro de Informática em Saúde, Ribeirao Preto, SP, Brasil,2004. WebGL. Webgl. https://caniuse.com/#feat=webgl. Accessed: 2020-07-13. WebRTC. Webrtc. https://caniuse.com/#feat=stream. Accessed: 2020-07-13. Feng Zhou, Henry Been-Lirn Duh, and Mark Billinghurst. Trends in augmented reality tracking, interaction and display: A review of ten years of ismar. In Proceedings of the 7th IEEE/ACM international symposium on mixed and augmented reality, pages 193–202. IEEE Computer Society, 2008. A 3D MODELS Figure 44: Model serinha_evolucao with five levels 59 66 Figure 53: Markers page Figure 54: Feedback page 67 68 D PHOBIAR SCREENSHOTS (PHONE) (a) Home (b) Create Session Figure 55: Home and create session page 69 (a) Sessions (b) Models Figure 56: Sessions and models page 70 (a) Markers (b) Feedback Figure 57: Sessions and models page E PHOBIAR USER GUIDE The user guide of PhobiAR shared with psychologists explains the platform by going through what every page does, and the procedures that need to be followed during the use of the platform. 71 Guião de utilização da plataforma PhobiAR Descrição Geral: Esta plataforma está a ser elaborada no âmbito de uma tese de mestrado na Universidade do Minho em Engenharia Informática. O tema da tese é Design an Artefact of Augmented Reality to support the Exposure Therapy of Specific Phobias e incide sobre a utilização da Realidade Aumentada para ajudar no tratamento de fobias específicas. Deste modo, a plataforma tem como objetivo providenciar uma forma fácil e intuitiva para os psicólogos conseguirem utilizar a Realidade Aumentada no tratamento de pacientes fóbicos. Não tem como objetivo substituir o tratamento tradicional, mas sim complementá-lo expandindo as suas possibilidades. Com este guião, pretende-se que os psicólogos experimentem a plataforma (na ausência de pacientes) e respondam a um questionário com os seguintes objetivos: • Verificar a utilidade deste projeto no tratamento de fobias; • Avaliar a aplicabilidade da plataforma; • Analisar as dificuldades sentidas na utilização da plataforma; Exemplos: Requisitos: Navegador: Chrome (Computador/Android) ou Safari (IOS) Acesso ao website https://phobiar-fe.epl.di.uminho.pt/ Equipamento necessário: telemóvel ou computador Conceitos: Realidade Aumentada: tecnologia que permite sobrepor elementos virtuais à nossa visão da realidade. Modelo: objeto 3D que representa uma fobia. Nível: uma fase na evolução do modelo Marcador: imagem reconhecida pela câmara que permite sobrepor o objeto 3D no marcador. Descrição das funcionalidades da plataforma: Criar Sessão: Permite criar uma sessão para um paciente associando-lhe uma fobia, modelo, nível e marcador. Na opção do marcador existem 3 hipóteses: ‘hiro’, ‘kanji’ e ‘niveis’. A escolha de ‘hiro’ e ‘kanji’ obriga à definição do nível pretendido. A escolha da opção ‘niveis’ desativa o campo ‘Nivel’ pois este é atribuído automaticamente conforme o número que consta no marcador (1,2,3,4,5). Sessões: Apresenta a lista de sessões agrupadas por paciente. Permite gerar a sessão utilizando o botão ou lendo um QR Code, criar uma nova sessão para o paciente, editar e apagar. Modelos: Permite visualizar os modelos 3D disponíveis na plataforma, bem como movimentar e fazer zoom. Foram criados vários modelos exemplificativos, contudo, face aos objetivos pretendidos, apenas 3 modelos possuem 5 níveis de evolução (aranha_evolucao, cobra_evolucao e seringa_evolucao). Alguns modelos são bastantes pesados, por isso podem demorar mais tempo a carregar. Marcadores: Permite visualizar e transferir os marcadores disponíveis na plataforma. Perguntas Frequentes: • É necessário instalar alguma aplicação? Não, o acesso à plataforma não requer nenhuma instalação estando disponível online. • É necessário imprimir os marcadores? Não é necessário, mas aconselha-se, pois, facilita o procedimento pelo facto de ser mais fácil apontar a câmara ao marcador. Em alternativa, aponte a câmara do telemóvel aos marcadores existentes em https://phobiar-fe.epl.di.uminho.pt/marcadores . • Devo imprimir todos os marcadores? Não, apenas é necessário imprimir os marcadores que pretende usar. Notas: • A plataforma como está em desenvolvimento poderá ter bugs, se encontrar algum por favor descreva-o em https://phobiar-fe.epl.di.uminho.pt/feedback G PHOBIAR FEEDBACK Other feedback receive on the platform from the users. 82 Feedback Feedback 1 Parabéns pelo trabalho! É uma ótima ferramenta que poderá ser utilizada também nos contextos educativos (por exemplo explicar o movimento das placas tectónicas). A minha área não é clínica, pelo que na minha prática não utilizarei muito, mas se adaptada ao contexto educativo pode ser interessante. Na minha opinião é mais fácil utilizar a partir do telemóvel ou tablet, contudo pelo menos eu não consegui ver a cobra numa rotação 360º nem aumentar o zoom como consegui ao explorar os modelos (a experiência foi mais intensa e real ao explorar o modelo no nível 5). Está uma ideia fantástica, a plataforma é intuitiva, mas sugeria a par da descrição dos procedimentos criar um vídeo a explicar como utilizar a plataforma. Continuação de um bom trabalho! Feedback 2 No meu entender, esta plataforma pode ser utilizada no estudo do tratamento de fobias, sendo uma ferramenta de diagnóstico complementar no contexto clínico, no entanto, acrescentaria os seguintes itens: • Poder anotar-se na 1ª sessão, o histórico da origem da sua fobia onde consta-se várias questões para melhor perceber se a sua fobia está associada a outros fatores ou outros estados emotivos, como identificar como perceciona o medo e como o vivencia; • Também integrar se trata de medo (por vezes está relacionado com uma distorção do processo cognitivo e associado ao perigo) ou ansiedade (a resposta emocional é o de aversão); • Estar um item em que se possa anotar, se apresenta um medo recativo (quando apresentam o medo por uma situação ameaçadora real) ou medo cognitivo (só de pensar); • Descrição das reações físicas/psicológicas do paciente; • As imagens apresentadas deveriam ser o mais real possível; • Possibilidade de contabilizar as pulsações (ritmo cardíaco), para poder obter o grau de intensidade (1- nem um pouco, 2- um pouco, 3- moderadamente, 4- bastante e 5- extremamente) da ansiedade/medo, porque ajudaria a medir a ativação do sistema nervoso e no final poder obter um gráfico da evolução do tratamento; Em conclusão, esta plataforma pode contribuir para a identificação dos principais antecedentes e consequentes do medo/Ansiedade e a sua aplicação pode oferecer informações pertinentes sobre como o indivíduo vivencia o seu medo e orientar para estratégias de resolução da fobia. Feedback 3 O programa parece simples de usar e bastante fácil de armazenar informação. No entanto, acho que o look digital de alguns dos objetos poderá não ter efeito em pessoas que apresentem algumas fobias mais "ligeiras". Pergunto-me qual seria a diferença entre ver esta imagem utilizando AR ou uma simples imagem 3D. A minha dúvida vem principalmente do facto de não ser possível "manipular" o objeto no espaço. Sim, é possível pegar na imagem impressa e colocar na mão do paciente e pedir para que este olhe para a imagem como se fosse o objeto na sua mão. Em casos mais intensos isto poderá ser o primeiro passo até conseguir transitar para algo mais "real". Acho o conceito bastante interessante e com possibilidade de ter grande utilidade para tratamento em casos severos. Penso só que o grafismo poderá ter que ser tornado mais realista em alguns casos e talvez ser acrescentado algum tipo de animação para que não sejam objetos estáticos. Feedback 4 Pensar em ter mais níveis dentro de cada dimensão e procurar ter modelos mais realistas, inclusive modelos reais, dado que em determinados casos, o "desenho" não despoleta a desregulação emocional e/ou o mal-estar. Bom trabalho e boa iniciativa! ^_^ Feedback 5 Adorei conhecer este projeto! Acho que é efetivamente daquelas respostas que em muito enriquece o terreno da intervenção! Fiquei fã deste trabalho e ponderaria investir nesta ferramenta uma vez ficando disponível! Não desista deste trabalho por favor, é uma necessidade para os técnicos! Feedback 6 Aplicabilidade da ferramenta é muito boa. Agrega ao trabalho realizado pelo profissional e contribui com a exposição de forma segura durante o tratamento. Sugiro aprimorar cada vez mais o nível de realismo, bem como adicionar novos objetos fóbicos.