1 | | blabla |
| 1 | == MotivateDuringTherapy == |
| 2 | 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. |
| 3 | |
| 4 | This package can be included with the following maven code |
| 5 | {{{ |
| 6 | <repositories> |
| 7 | <repository> |
| 8 | <id>artifactory.ewi.tudelft.nl</id> |
| 9 | <url>http://artifactory.ewi.tudelft.nl/artifactory/libs-release</url> |
| 10 | <snapshots> |
| 11 | <enabled>false</enabled> |
| 12 | </snapshots> |
| 13 | </repository> |
| 14 | </repositories> |
| 15 | |
| 16 | <dependencies> |
| 17 | <dependency> |
| 18 | <groupId>tudelft.mentalhealth</groupId> |
| 19 | <artifactId>motivatepersisting</artifactId> |
| 20 | <version>1.0.0</version> |
| 21 | </dependency> |
| 22 | </dependencies> |
| 23 | }}} |
| 24 | |
| 25 | === Examples |
| 26 | Various example codes are available |
| 27 | |
| 28 | |
| 29 | * 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] |
| 30 | [[Image(https://tracinsy.ewi.tudelft.nl/trac/MentalHealth/raw-attachment/wiki/WikiStart/Screen%20Shot%202018-10-30%20at%202.33.42%20PM.png)]] |
| 31 | * The junit tests for the package [https://tracinsy.ewi.tudelft.nl/trac/MentalHealth/browser/MotivateDuringTherapy/src/test/java/tudelft/mentalhealth/motivatepersisting/MotivationalAnswerTest.java here]. |
| 32 | * Make your own example using this code snip plus the maven dependencies above |
| 33 | |
| 34 | {{{ |
| 35 | Locale NL = new Locale("nl", "NL"); |
| 36 | Situation situation=new Situation(PclTrend.DROPPING, Trust.MEDIUM); |
| 37 | String motivation = new MotivationalAnswer(situation, NL).getText(); |
| 38 | }}} |
| 39 | |
| 40 | |
| 41 | References |
| 42 | [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] |