11 | | |
12 | | |
13 | | == MotivateDuringTherapy == |
14 | | The MotivateDuringTherapy module is a module that can generate messages to motivate prople to continue with their therapy. The algorithm follows the proposal in the paper [1]. The motivation message is chosen depending on the selected language, the PCL (PTSD) trend and the trust of the patient. |
15 | | |
16 | | This package can be included with the following maven code |
17 | | {{{ |
18 | | <repositories> |
19 | | <repository> |
20 | | <id>artifactory.ewi.tudelft.nl</id> |
21 | | <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url> |
22 | | <snapshots> |
23 | | <enabled>false</enabled> |
24 | | </snapshots> |
25 | | </repository> |
26 | | </repositories> |
27 | | |
28 | | <dependencies> |
29 | | <dependency> |
30 | | <groupId>tudelft.mentalhealth</groupId> |
31 | | <artifactId>motivatepersisting</artifactId> |
32 | | <version>1.0.0</version> |
33 | | </dependency> |
34 | | </dependencies> |
35 | | }}} |
36 | | |
37 | | === Examples |
38 | | Various example codes are available |
39 | | |
40 | | |
41 | | * You can download a ready-to-run jar (just double click to run; you need to have java installed) [http://artifactory.ewi.tudelft.nl/artifactory/libs-release/tudelft/mentalhealth/motivatepersisting/1.0.0/motivatepersisting-1.0.0-jar-with-dependencies.jar here] |
42 | | [[Image(https://tracinsy.ewi.tudelft.nl/trac/MentalHealth/raw-attachment/wiki/WikiStart/Screen%20Shot%202018-10-30%20at%202.33.42%20PM.png)]] |
43 | | * The junit tests for the package [https://tracinsy.ewi.tudelft.nl/trac/MentalHealth/browser/MotivateDuringTherapy/src/test/java/tudelft/mentalhealth/motivatepersisting/MotivationalAnswerTest.java here]. |
44 | | * Make your own example using this code snip plus the maven dependencies above |
45 | | |
46 | | {{{ |
47 | | Locale NL = new Locale("nl", "NL"); |
48 | | Situation situation=new Situation(PclTrend.DROPPING, Trust.MEDIUM); |
49 | | String motivation = new MotivationalAnswer(situation, NL).getText(); |
50 | | }}} |
51 | | |
52 | | |
53 | | References |
54 | | [1] Design and Evaluation of Personalized Motivational Messages by a Virtual Agent that assists in Post-Traumatic Stress Disorder Therapy. Myrthe L. Tielman , Mark A. Neerincx, Willem-Paul Brinkman. Copy available [https://tracinsy.ewi.tudelft.nl/trac/MentalHealth/export/066f99c83edf6fabe349412c4718560268931a2d/MotivateDuringTherapy/doc/DesignandEvaluation.docx here] |
| 13 | More info: https://tracinsy.ewi.tudelft.nl/pubtrac/HealthPsychology/chrome/site/wiki.html |
| 14 | [[br]][[br]][[br]][[br]] |