== MotivateDuringTherapy == get copy of the source code: {{{svn checkout http://tracinsy.ewi.tudelft.nl/pub/svn/HealthPsychology/MotivateDuringTherapy}}} 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. This package can be included with the following maven code {{{ artifactory.ewi.tudelft.nl http://artifactory.ewi.tudelft.nl/artifactory/libs-release false tudelft.healthpsychology motivatepersisting 1.0.0 }}} === Examples Various example codes are available * You can download a ready-to-run jar [http://artifactory.ewi.tudelft.nl/artifactory/libs-release/tudelft/healthpsychology/motivatepersisting/1.0.0/motivatepersisting-1.0.0-jar-with-dependencies.jar here] (just double click to run; you need to have java installed) * Click on the picture below to run the app in your browser [[Image(https://tracinsy.ewi.tudelft.nl/pubtrac/HealthPsychology/raw-attachment/wiki/MotivateDuringTherapy/screenshot.png, link=http://webswing.ewi.tudelft.nl/motivateduringtherapy/)]] * The junit tests for the package [https://tracinsy.ewi.tudelft.nl/pubtrac/HealthPsychology/browser/MotivateDuringTherapy/src/test/java/tudelft/mentalhealth/motivatepersisting/MotivationalAnswerTest.java here]. * Make your own example using this code snip plus the maven dependencies above {{{ Locale NL = new Locale("nl", "NL"); Situation situation=new Situation(PclTrend.DROPPING, Trust.MEDIUM); String motivation = new MotivationalAnswer(situation, NL).getText(); }}} References [1] Tielman M.L,. Neerincx, M.A., Brinkman, W.P. (2019) Design and Evaluation of Personalized Motivational Messages by a Virtual Agent that Assists in Post-Traumatic Stress Disorder Therapy, Journal of Medical Internet Research, 21(3):e9240 ( [https://www.jmir.org/2019/3/e9240/ paper] | [https://data.4tu.nl/repository/uuid:3396c380-6102-4043-9693-847a3e482e03 data and analysis script] )