effect of smartphone app on activity

Conditions: Diabetes Type 2; Hematologic Malignancy

Summary: a smartphone app will be installed on smartphones of patients with type 2 diabetes or hematologic malignancies that do not exercise. the app will send sms messages to encourage exercise. the exercise will be quantified by the smartphone accelerometer and clinical data, including hba1c will be collected.

the aim of the study is to increase patients' physical activities by using a dedicated cellular application that will encourage patients to adhere to their doctor recommendation on a personal basis. primary outcome in diabetic patients: measuring an increase in daily physical activity in cancer patients: improvement of quality of life in correlation with the level of physical activity secondary outcomes in diabetic patients: improved glycemic control as assessed by sequential blood tests for hba1c. the patients will fill quality of life questionnaires (sf36) at recruitment and after 6 months. after 6 months the patients will also fill a questionnaire about their experience of using the app. each recruited patient will have an android based smart phone. each patient will provide: 1. approval to join the experiment 2. age, gender, height 3. telephone number (for sms) length of intervention - at least 6 months per patient. each patient will be randomly assigned into one of two groups, which will specify feedback relative to himself or to others or a weekly reminder to exercise. number of patients: 1. diabetes: 150 patients, of which 50 are controls. 2. cancer: 100 patients, of which 20 are controls. all patients will receive instruction about the importance of physical activity and a personal recommendation for activity level, n sessions of activity per week, and time span per session (i.e., at least 2 hours of walking per week divided to 3 walking sessions per week) patients in the treatment arms will receive at least n (number of commended sessions) messages per week of positive feedback if activity performed or negative feedback if not performed. at the chosen day each week the patient will receive a summary of the exercise for all the week. feedback possible feedback (note - these the the actual feedback messages that the participants will receive, and are therefore in the second person): 1. negative feedback: "you need to exercise to reach your activity goals. please remember to exercise tomorrow". 2. positive feedback: 1. relative to self: "you're exercise level is higher than last week. keep up the good work" 2. relative to others: "you're exercising more than the average person. keep up the good work" 3. control arm: "did you remember to exercise?" technical requirements 1. app - will collect physical activity and send it to a server. app will run in background without need to restart on reboot. 2. server - collects physical activity feedback policies the experiment will have two phases of feedback. phase 1 the investigators begin with no data, so the policy at this stage is as follows: 1. positive feedback will be sent each day if user has surpassed 1/7th of weekly activity that day. 2. negative feedback will be sent every 3 days, if activity hasn't passed 1/7th of activity. each day, with a probability of 0.2, a random decision on feedback will be made. this phase will last approximately 4 weeks. phase 2 using a learning algorithm (see below) the computer will adjust the feedback, and decide daily on the feedback (positive \\ negative \\ none). policy learning the investigators will start with a simple policy learning strategy, and later use more sophisticated methods that will have a state-space representation of the user. the initial algorithm will represent each user at each day using the following attributes: 1. demographics (age and gender) 2. expected versus actual activity level this week (ratio of the two) 3. last feedback given (positive \\ negative) 4. day of the week (we will use week-long cycles). the goal of the algorithm is to give feedback today so as to encourage activity tomorrow. when training the algorithm, the computer will have a feature vector comprising of the attributes above, and a matrix of actions (for day t). the output to be predicted is whether the activity level on the following day (t+1). there can be two types of feedback depending on weekly and daily behaviors: weekly goal not achieved achieved daily goal (on day (t+1)) not achieved 1 1+alpha achieved 1+alpha 1 (alpha\>0) the algorithm will pay a higher penalty if, for example, on a given day the message encouraged activity, but the weekly goal was not achieved compared to if it was. for simplicity, the initial learning algorithm will be linear, until enough data is collected. that is, given a matrix: x = (demographics, expected vs. actual activity, last feedback, day of the week, actions) and a vector showing the amount of activity on the following day, weighted as in the table above, denoted by y, we will learn a vector of weights w such that: x \* w = y. in phase 2 of the project the computer will use other learning algorithms. exploration (random action at a given day) will continue throughout both phases at the same level.

Eligibility criteria:
inclusion criteria: 1. age over 18. 2. diagnosis of diabetes type 2 with hba1c over 6.5% and no regular exercise for arm a. 3. newly diagnosed lymphoma, cll or mm which require chemotherapy for arm b. 4. patients in both arms should hold an android based smartphone. 5. patients must be able to read hebrew. exclusion criteria: 1. unable to legally consent 2. unstable or stable angina pectoris