This is the source repo of the MentalHealth project. This project contains papers, databases and implementations of procedures described in the papers. git clone https://tracinsy.ewi.tudelft.nl/MentalHealth Code here is in Java. The rationale is that this is currently by far the most popular programming language (13% in dec2017). [[]] == 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.mentalhealth motivatepersisting 1.0.0 }}} === Examples Various example codes are available * 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] [[Image(https://tracinsy.ewi.tudelft.nl/trac/MentalHealth/raw-attachment/wiki/WikiStart/Screen%20Shot%202018-10-30%20at%202.33.42%20PM.png)]] * The junit tests for the package [https://tracinsy.ewi.tudelft.nl/trac/MentalHealth/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] 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]