Abstract
In this paper, we aim to improve existing health recommender systems by defining relevant contextual and motivational variables to recommend physical activities and collect appreciation feedback. Current health recommenders do not sufficiently include users’ context and motivational theory when personalizing health suggestions. To bridge these gaps, we conducted a 21-day longitudinal user study with 36 participants using our Android app with collected sensor data and Ecological Momentary Assessments to collect daily activities, mood, and motivation. This study resulted in a dataset of 724 activities. Two approaches to determine feature relevance were followed: variable importances analysis on 40 input variables, and statistical analysis of mean differences in outcome variables across contexts. Our findings suggest recommending activity duration, intensity, location, and type by incorporating: company, situation (e.g., free time or work), happiness, calmness, energy level, physical complaints, and motivation. As such, we propose opportunities for future health recommenders to integrate these data with contextual pre-filtering techniques, extended with our suggestions for automatically collected weather, location types, step count, and time. We also propose to use mood and motivation as appreciation feedback to focus on user well-being and boost motivation.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Data availability
The datasets generated and analyzed during the current study are not publicly available due to privacy restrictions because they contain sensitive personal data, but are available in restricted form from the corresponding author on reasonable request.
References
Ainsworth, B., Haskell, W., Herrmann, S., et al.: 2011 compendium of physical activities: a second update of codes and met values. Med. Sci. Sports Exerc. 43(8), 1575–1581 (2011). https://doi.org/10.1249/MSS.0b013e31821ece12
Alcaraz-Herrera, H., Cartlidge, J., Toumpakari, Z., et al.: Evorecsys: evolutionary framework for health and well-being recommender systems. User Model. User-Adap. Inter. (2022). https://doi.org/10.1007/s11257-021-09318-3
Althoff, T., Sosič, R., Hicks, J.L., et al.: Large-scale physical activity data reveal worldwide activity inequality. Nature 547(7663), 336–339 (2017). https://doi.org/10.1038/nature23018
Asselbergs, J., Ruwaard, J., Ejdys, M., et al.: Mobile phone-based unobtrusive ecological momentary assessment of day-to-day mood: an explorative study. J. Med. Internet Res. 18(3), e72 (2016). https://doi.org/10.2196/jmir.5505
Austin, P.C., Merlo, J.: Intermediate and advanced topics in multilevel logistic regression analysis: multilevel logistic regression. Stat. Med. 36(20), 3257–3277 (2017). https://doi.org/10.1002/sim.7336
Baltrunas, L., Amatriain, X.: Towards time-dependant recommendation based on implicit feedback (2009)
Baltrunas, L., Ricci, F.: Experimental evaluation of context-dependent collaborative filtering using item splitting. User Model. User-Adap. Inter. 24(1–2), 7–34 (2014). https://doi.org/10.1007/s11257-012-9137-9
Biddle, S.J., Ciaccioni, S., Thomas, G., et al.: Physical activity and mental health in children and adolescents: an updated review of reviews and an analysis of causality. Psychol. Sport Exerc. 42, 146–155 (2019). https://doi.org/10.1016/j.psychsport.2018.08.011
Breiman, L.: Random Forests. Mach. Learn. 45(1), 5–32 (2001). https://doi.org/10.1023/A:1010933404324
Brocherie, F., Girard, O., Millet, G.: Emerging environmental and weather challenges in outdoor sports. Climate 3, 492–521 (2015). https://doi.org/10.3390/cli3030492
Caspersen, C., Powell, K., Christenson, G.: Physical activity, exercise, and physical fitness: definitions and distinctions for health-related research. Public Health Rep. 100, 126–131 (1985)
Cheung, K.L., Durusu, D., Sui, X., et al.: How recommender systems could support and enhance computer-tailored digital health programs: a scoping review. Digit. Health 5, 1–19 (2019). https://doi.org/10.1177/2055207618824727
Cid, L., Monteiro, D., Teixeira, D., et al.: The behavioral regulation in exercise questionnaire (breq-3) portuguese-version: Evidence of reliability, validity and invariance across gender. Front Psychol. (2018). https://doi.org/10.3389/fpsyg.2018.01940
Costa, A., Heras, S., Palanca, J., et al.: Using argumentation schemes for a persuasive cognitive assistant system. In: Criado Pacheco, N., Carrascosa, C., Osman, N., et al. (eds.) Multi-Agent Systems and Agreement Technologies, vol. 10207, pp. 538–546. Springer International Publishing, Cham (2017). https://doi.org/10.1007/978-3-319-59294-7_43
De Croon, R., Van Houdt, L., Htun, N.N., et al.: Health recommender systems: systematic review. J. Med. Internet Res. (2021). https://doi.org/10.2196/18035
Deci, E., Ryan, R.: Self-determination theory: a macrotheory of human motivation, development, and health. Can. Psychol. Psychol. Can. 49, 182–185 (2008). https://doi.org/10.1037/a0012801
Dharia, S., Eirinaki, M., Jain, V., et al.: Social recommendations for personalized fitness assistance. Pers. Ubiquit. Comput. 22, 245–257 (2018). https://doi.org/10.1007/s00779-017-1039-8
Drieskens, S., Gisle, L., Charafeddine, R., et al.: Gezondheidsenquête 2018: Levensstijl. Samenvatting van de resultaten. Tech. rep, Sciensano (2018)
El Haouij, N., Poggi, J.M., Ghozi, R., et al.: Random forest-based approach for physiological functional variable selection for driver’s stress level classification. Stat. Methods Appl. 28(1), 157–185 (2019). https://doi.org/10.1007/s10260-018-0423-5
Feltz, D., Kerr, N., Irwin, B.: Buddy up: The kohler effect applied to health games. J. Sport Exer. Psychol. 33, 506–526 (2011). https://doi.org/10.1123/jsep.33.4.506
Fukuoka, Y., Lindgren, T.G., Mintz, Y.D., et al.: Applying natural language processing to understand motivational profiles for maintaining physical activity after a mobile app and accelerometer-based intervention: the mPED randomized controlled trial. JMIR Mhealth Uhealth 6(6), e10,042 (2018). https://doi.org/10.2196/10042
Gao, M., Kortum, P., Oswald, F.: Psychometric evaluation of the use (usefulness, satisfaction, and ease of use) questionnaire for reliability and validity. Proc. Human Factors Ergon. Soc. Ann. Meet. 62, 1414–1418 (2018). https://doi.org/10.1177/1541931218621322
Gasparetti, F., Aiello, L., Quercia, D.: Personalized weight loss strategies by mining activity tracker data. User Model. User-Adap. Inter. 30, 447–476 (2020). https://doi.org/10.1007/s11257-019-09242-7
Gerovasili, V., Agaku, I.T., Vardavas, C.I., et al.: Levels of physical activity among adults 18–64 years old in 28 European countries. Prev. Med. 81, 87–91 (2015). https://doi.org/10.1016/j.ypmed.2015.08.005
Heck, R.H., Thomas, S.L., Tabata, L.N.: Multilevel and Longitudinal Modeling with IBM SPSS, 2nd edn. Routledge, New York (2013). https://doi.org/10.4324/9780203701249
Hors-Fraile, S., Rivera, O., Schneider, F., et al.: Analyzing recommender systems for health promotion using a multidisciplinary taxonomy: a scoping review. Int. J. Med. Inform. 114, 143–155 (2018). https://doi.org/10.1016/j.ijmedinf.2017.12.018
Hussein, T., Linder, T., Gaulke, W., et al.: Hybreed: a software framework for developing context-aware hybrid recommender systems. User Model. User-Adap. Inter. 24, 121–174 (2014). https://doi.org/10.1007/s11257-012-9134-z
Kamphorst, B., Klein, M., Wissen, A.: Autonomous E-coaching in the wild: Empirical validation of a model-based reasoning system. pp. 725–732 (2014)
Kim, H.Y.: Statistical notes for clinical researchers: Chi-squared test and Fisher’s exact test. Restor. Dent. Endod. 42(2), 152 (2017). https://doi.org/10.5395/rde.2017.42.2.152
Liao, Y., Skelton, K., Dunton, G., et al.: A systematic review of methods and procedures used in ecological momentary assessments of diet and physical activity research in youth: An adapted strobe checklist for reporting ema studies (cremas). J. Med. Internet Res. (2016). https://doi.org/10.2196/jmir.4954
Markland, D., Tobin, V.: A modification to the behavioural regulation in exercise questionnaire to include an assessment of amotivation. J. Sport Exer. Psychol. 26, 191–196 (2004). https://doi.org/10.1123/jsep.26.2.191
Mehrabian, A.: Pleasure-arousal-dominance: a general framework for describing and measuring individual differences in Temperament. Curr. Psychol. 14(4), 261–292 (1996). https://doi.org/10.1007/BF02686918
Mertens, S., Herberz, M., Hahnel, U.J.J., et al.: The effectiveness of nudging: a meta-analysis of choice architecture interventions across behavioral domains. Proc. Natl. Acad. Sci. 119(1), e2107346,118 (2022). https://doi.org/10.1073/pnas.2107346118
Miyamoto, S., Henderson, S., Young, H., et al.: Tracking health data is not enough: A qualitative exploration of the role of healthcare partnerships and mhealth technology to promote physical activity and to sustain behavior change. JMIR Mhealth Uhealth 4, e5 (2016). https://doi.org/10.2196/mhealth.4814
Mullan, E., Markland, D.A., Ingledew, D.K.: A graded conceptualisation of self-determination in the regulation of exercise behaviour: Development of a measure using confirmatory factor analytic procedures. Pers. Individ. Differ. 23, 745–752 (1997). https://doi.org/10.1016/S0191-8869(97)00107-4
Nahum-Shani, I., Smith, S.N., Spring, B.J., et al.: Just-in-time adaptive interventions (JITAIs) in mobile health: key components and design principles for ongoing health behavior support. Ann. Behav. Med. 52(6), 446–462 (2018). https://doi.org/10.1007/s12160-016-9830-8
Ndulue, C., Oyebode, O., Iyer, R.S., et al.: Personality-targeted persuasive gamified systems: exploring the impact of application domain on the effectiveness of behaviour change strategies. User Model. User-Adap. Inter. 32(1–2), 165–214 (2022). https://doi.org/10.1007/s11257-022-09319-w
Norman, G.: Likert scales, levels of measurement and the “laws’’ of statistics. Adv. Health Sci. Educ. Theory Pract. 15, 625–32 (2010). https://doi.org/10.1007/s10459-010-9222-y
Nurmi, J., Knittle, K., Ginchev, T., et al.: Engaging users in the behavior change process with digitalized motivational interviewing and gamification: Development and feasibility testing of the precious app. JMIR Mhealth Uhealth 8(1), e12,884 (2020). https://doi.org/10.2196/12884
Odić, A., Tkalčič, M., Tasič, J.F., et al.: Predicting and detecting the relevant contextual information in a movie-recommender system. Interact. Comput. 25(1), 74–90 (2013). https://doi.org/10.1093/iwc/iws003
Op den Akker, H., Jones, V., Hermens, H.: Tailoring real-time physical activity coaching systems: a literature survey and model. User Model. User-Adap. Inter. 24(5), 351–392 (2014). https://doi.org/10.1007/s11257-014-9146-y
Pekár, S., Brabec, M.: Generalized estimating equations: a pragmatic and flexible approach to the marginal GLM modelling of correlated data in the behavioural sciences. Ethology 124(2), 86–93 (2018). https://doi.org/10.1111/eth.12713
Pelliccia, A., Sharma, S., Gati, S., et al.: 2020 ESC Guidelines on sports cardiology and exercise in patients with cardiovascular disease: The Task Force on sports cardiology and exercise in patients with cardiovascular disease of the European Society of Cardiology (ESC). Eur. Heart J. 42(1), 17–96 (2020). https://doi.org/10.1093/eurheartj/ehaa605
Penedo, F., Dahn, J.: Exercise and well-being: a review of mental and physical health benefits associated with physical activity. Curr. Opin. Psychiatry 18, 189–193 (2005). https://doi.org/10.1097/00001504-200503000-00013
Phan, W.M.J., Amrhein, R., Rounds, J., et al.: Contextualizing interest scales with emojis: implications for measurement and validity. J. Career Assess. 27(1), 114–133 (2019). https://doi.org/10.1177/1069072717748647
Polignano, M., Narducci, F., de Gemmis, M., et al.: Towards emotion-aware recommender systems: an affective coherence model based on emotion-driven behaviors. Expert Syst. Appl. 170(114), 382 (2021). https://doi.org/10.1016/j.eswa.2020.114382
Pontin, F., Lomax, N., Clarke, G., et al.: Socio-demographic determinants of physical activity and app usage from smartphone data. Soc. Sci. Med. 284(114), 235 (2021). https://doi.org/10.1016/j.socscimed.2021.114235
Rabbi, M., Pfammatter, A., Zhang, M., et al.: Automated personalized feedback for physical activity and dietary behavior change with mobile phones: a randomized controlled trial on adults. JMIR Mhealth Uhealth 3, e42 (2015). https://doi.org/10.2196/mhealth.4160
Ricci, F., Rokach, L., Shapira, B. (eds.): : Recommender Systems Handbook. Springer, US, New York, NY, (2022). https://doi.org/10.1007/978-1-0716-2197-4
Russell, J.A.: A circumplex model of affect. J. Pers. Soc. Psychol. 39(6), 1161–1178 (1980). https://doi.org/10.1037/h0077714
Ryan, R., Deci, E.: Self-determination theory and the facilitation of intrinsic motivation, social development, and well-being. Am. Psychol. 55, 68–78 (2000). https://doi.org/10.1037/0003-066X.55.1.68
Saint-Maurice, P.F., Troiano, R.P., Bassett, D.R., et al.: Association of daily step count and step intensity with mortality among US adults. JAMA 323(12), 1151 (2020). https://doi.org/10.1001/jama.2020.1382
Smyth, B., Lawlor, A., Berndsen, J., et al.: Recommendations for marathon runners: on the application of recommender systems and machine learning to support recreational marathon runners. User Model. User-Adap. Inter. (2021). https://doi.org/10.1007/s11257-021-09299-3
Stamatakis, E., Gale, J., Bauman, A., et al.: Sitting time, physical activity, and risk of mortality in adults. J. Am. Coll. Cardiol. 73, 2062–2072 (2019). https://doi.org/10.1016/j.jacc.2019.02.031
Sun, S., Pan, W., Wang, L.L.: A comprehensive review of effect size reporting and interpreting practices in academic journals in education and psychology. J. Educ. Psychol. 102(4), 989–1004 (2010). https://doi.org/10.1037/a0019507
Sylvia, L.G., Bernstein, E.E., Hubbard, J.L., et al.: Practical guide to measuring physical activity. J. Acad. Nutr. Diet. 114(2), 199–208 (2014). https://doi.org/10.1016/j.jand.2013.09.018
Þórarinsdóttir, H., Faurholt-Jepsen, M., Ullum, H., et al.: The validity of daily self-assessed perceived stress measured using smartphones in healthy individuals: cohort study. JMIR mHealth uHealth 7(8), e13,418 (2019). https://doi.org/10.2196/13418
Turrisi, T.B., Bittel, K.M., West, A.B., et al.: Seasons, weather, and device-measured movement behaviors: a scoping review from 2006 to 2020. Int. J. Behav. Nutr. Phys. Act. 18(1), 24 (2021). https://doi.org/10.1186/s12966-021-01091-1
Verikas, A., Gelzinis, A., Bacauskiene, M.: Mining data with random forests: a survey and results of new tests. Pattern Recogn. 44(2), 330–349 (2011). https://doi.org/10.1016/j.patcog.2010.08.011
Wagner, A.L., Keusch, F., Yan, T., et al.: The impact of weather on summer and winter exercise behaviors. J. Sport Health Sci. 8(1), 39–45 (2019). https://doi.org/10.1016/j.jshs.2016.07.007
Wang, S., Zhang, C., Kröse, B., et al.: Optimizing adaptive notifications in mobile health interventions systems: reinforcement learning from a data-driven behavioral simulator. J. Med. Syst. 45(12), 102 (2021). https://doi.org/10.1007/s10916-021-01773-0
Wanner, M., Goetschi, T., Martin-Diener, E., et al.: Active transport, physical activity, and body weight in adults a systematic review. Am. J. Prev. Med. 42(5), 493–502 (2012). https://doi.org/10.1016/j.amepre.2012.01.030
Wilson, P., Rodgers, W., Loitz, C., et al.: “it’s who i am... really!’ the importance of integrated regulation in exercise contexts1. J. Appl. Biobehav. Res. 11, 79–104 (2006). https://doi.org/10.1111/j.1751-9861.2006.tb00021.x
World Health Organization: WHO guidelines on physical activity and sedentary behaviour. World Health Organization (2020a)
World Health Organization: World health statistics 2020: monitoring health for the SDGs, sustainable development goals. World Health Organization (2020b)
Young, D.R., Hivert, M.F., Alhassan, S., et al.: Sedentary behavior and cardiovascular morbidity and mortality: a science advisory from the American heart association. Circulation 134, e262–e279 (2016). https://doi.org/10.1161/CIR.0000000000000440
Zheng, Y., Burke, R., Mobasher, B.: The role of emotions in context-aware recommendation. Decis. RecSys. 45, 45 (2013). https://doi.org/10.13140/2.1.2660.1769
Author information
Authors and Affiliations
Contributions
Ine Coppens wrote the main manuscript text and prepared all the figures. All authors reviewed the manuscript.
Corresponding author
Ethics declarations
Conflict of interest
This study was funded by Ghent University.
Ethical approval
The research was approved by the Ethical Committee of the Faculty of Psychology and Educational Sciences of Ghent University (https://www.ugent.be/pp/en/research/ec) on the 25th of October, 2021.
Accordance
The methods of this study were carried out in accordance with the relevant guidelines and regulations, as discussed with the Ethical Committee and Data Protection Officers of Ghent University.
Informed consent
All participants were older than 18 years and provided their informed consent before they were granted access to the app, and thereby the study.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix A Selected questions from the behavioural regulation in exercise questionnaire (BREQ)
To keep the app user friendly, a selection of questions from the BREQ was chosen. However, some questions of the same BREQ construct are almost exactly the same (e.g., “I exercise because others say I should” and “I exercise because other people say I should” in external regulation (Cid et al. 2018)). Therefore, we chose two questions per construct, based on avoiding similar questions, and with their internal consistency checked using Cronbach’s alpha. This resulted in the following 12-item questionnaire:
-
Amotivation: “I don’t see why I should have to exercise”, and “I think that exercising is a waste of time” (Markland and Tobin 2004)
-
External regulation: “I exercise because others say I should”, and “I feel under pressure from others to exercise” (Wilson et al. 2006)
-
Introjected regulation: “I feel guilty when I don’t exercise”, and “I feel a failure when I haven’t exercised” (Wilson et al. 2006)
-
Identified regulation: “I value the benefits of exercise”, and “It’s important to me to exercise regularly” (Wilson et al. 2006)
-
Integrated regulation: “I consider exercise to be a part of my identity”, and “I consider exercise a fundamental part of who I am” (Wilson et al. 2006)
-
Intrinsic regulation: “I exercise because it’s fun”, and “I enjoy my exercise sessions” (Wilson et al. 2006)
Appendix B Data preprocessing criteria
Participants were informed about the study criteria at the beginning of the study. Based on these criteria, the following 25 participants were excluded during data preprocessing of the collected data:
-
The pre- and post-test questionnaires should be filled in: 20 participants failed to fill in the post-test questionnaire
-
21 different days of one or more submits should be sent between the 1st of November, 2021 and the end of the first week of December, 2021: 1 participant submitted until the 11th of December which was too late
-
Of those 21 days, there should be no more than two consecutive days with a submit without any PA (because every kind of PA counts, such as walking in the supermarket): 4 participants submitted data with the option “no activities performed today” more than two consecutive days
This preprocessing resulted in 36 participants who met our criteria. For these participants, their submitted data points were also preprocessed following these steps (with the amount of affected data points in parentheses):
-
Remove “no activities performed today” data point if this was submitted on the same day when a PA record of that same user was also submitted (49)
-
Remove data point if submitted less than 30 s after previous submit of that same user (3)
-
Outliers for step count: if the majority of the detected step counts of a participant does not have a value, we assume a malfunctioning accelerometer and mark all step counts of that participant as missing (3 participants)
-
Outliers for PA duration were determined based on the 99.5 percentile, resulting in three data points to be removed: one with a duration of 15 h, and two with a duration of 23 h (3 points in total)
-
Remove data points with manually typed PA types involving only sedentary activities, since these are not classified as PA by World Health Organization (2020a): “reading” (5), “Zoom conversation” (4), and “date” (1)
Removal of these data points resulted in a total of 1427 valid submits. Since people could type their activities themselves, spelling errors were adjusted and remaining PA types were manually re-categorized:
-
“Walking” for manually entered “went shopping” (2), “groceries” (3), “shopping” (1), and “going to a market” (1)
-
“Padel” for manually entered “padellen” (1), and “paddelen” (1)
-
“Fitness” for manually entered “Exercise in gym” (2), “gym” (8), and “eliptical” (2)
-
“Weight training” for manually entered “Lifting (fitness)” (10)
-
“Dancing” for manually entered “dancing (latin and ballroom)” (7), and “dance workout” (1)
-
“Workout” for manually entered “Exercising” (1)
-
“Active socially” for manually entered “chiro geven” (3), and “scouts” (1) (both Dutch names of youth organizations)
The resulting 21 PA types with their corresponding total amount of instances were: Walking (314), Cycling (142), Dancing (35), Running (43), Swimming (2), Cleaning (58), Boxing (4), Power training (8), Football (1), Yoga (20), Weight training (15), Fitness (22), Workout (10), Working (4), Gardening (10), Padel (6), Horseback riding (2), Active socially (4), Stretching (20), Squash (1), and Bootcamp (3).
Appendix C Random forest classifier hyperparameters
The resulting most optimal hyperparameters for all four Random Forest Classifiers were:
-
n estimators: 617
-
min samples split: 5
-
min samples leaf: 10
-
max features: ‘auto’
-
max depth: 3
-
bootstrap: False
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Coppens, I., De Pessemier, T. & Martens, L. Connecting physical activity with context and motivation: a user study to define variables to integrate into mobile health recommenders. User Model User-Adap Inter 34, 147–181 (2024). https://doi.org/10.1007/s11257-023-09368-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11257-023-09368-9