Abstract
Personalised interventions which optimise the balance of physical activity (PA), sleep and sedentary behaviour (i.e., time use) in the 24-h day may be more effective than one-size-fits-all approaches. We present an interactive app to personalise 24-h time use based on individuals’ health and sociodemographic characteristics. Analyses used cross-sectional data from 53,057 UK Biobank participants. Average daily time use was measured using 7-day accelerometry data and expressed as a 24-h composition using isometric log-ratio transformation. Five cognitive composites were derived from web-based tests. Regularized linear regression examined the relationship between 24-h time-use composition and cognition, with sociodemographic and health characteristics as additional predictors. Model estimates were used to estimate optimized cognition based on the interaction of 24-h time-use composition and personal characteristics. Our ‘ideal day’ app delivers personalised 24-h time-use recommendations tailored to individual characteristics. We demonstrate that personalisation of time-use interventions can be achieved in real time using open-source software.
Similar content being viewed by others
Data availability
The data that support the findings of this study are available from the UK Biobank but restrictions apply to the availability of these data, which were used under licence for the current study, and so are not publicly available.
Code availability
The underlying code for the data preparation, cleaning, analysis and diagnostics for this study is freely accessible on GitHub and can be accessed via this link (https://github.com/tystan/ukbb-cog-lasso) in addition to the ‘ideal day’ interactive personalisation tool hosted at https://arena2024.shinyapps.io/ideal-day/ with the associated underlying code also freely accessed on GitHub too (https://github.com/tystan/ideal-day).
References
Harvey, A. et al. The future of technologies for personalised medicine. N. Biotechnol. 29, 625–633 (2012).
Holtermann, A. et al. 24-Hour physical behavior balance for better health for all: “the sweet-spot hypothesis”. Sports Med. - Open 7, 98 (2021).
Dumuid, D. et al. Goldilocks Days: optimising children’s time use for health and well-being. J. Epidemiol. Community Health 76, 301 (2022).
Dumuid, D. et al. Your best day: An interactive app to translate how time reallocations within a 24-hour day are associated with health measures. PLoS ONE 17, e0272343 (2022).
Sommerlad, A. & Mukadam, N. Evaluating risk of dementia in older people: a pathway to personalized prevention? Eur. Heart J. 41, 4034–4036 (2020).
Livingston, G. et al. Dementia prevention, intervention, and care: 2024 report of the Lancet standing Commission. Lancet 404, 572–628 (2024).
Dumuid, D. et al. The “Goldilocks day” for children’s skeletal health: compositional data analysis of 24-hour activity behaviors. J. Bone Miner. Res. 35, 2393–2403 (2020).
Huque, M. H. et al. A critical review and classification of dementia risk assessment tools to inform dementia risk reduction. J. Prev. Alzheimer’s. Dis. 12, 100333 (2025).
Mellow, M. L. et al. ‘Small Steps’ towards improving 24-hour time-use behaviours to decrease the risk of dementia: protocol for a personalised, web-based randomised controlled trial in community-dwelling older adults. BMJ Open. 15, e105643 (2025).
Sudlow, C. et al. UK Biobank: an open access resource for identifying the causes of a wide range of complex diseases of middle and old age. PLOS Med. 12, e1001779 (2015).
Chang, W. et al. shiny: Web Application Framework for R. R package version 1.13.0.9000, https://shiny.posit.co/.
Blake, H. T. et al. Co-design of a digital 24-hour time-use intervention with older adults and allied health professionals. Front. Digit. Health. https://doi.org/10.3389/fdgth.2025.1544489 (2025).
Zahran, S. et al. Optimal levels of sleep, sedentary behaviour, and physical activity needed to support cognitive function in children of the early years. BMC Pediatr. 24, 735 (2024).
Tolosana-Delgado, R., Arya, E., Khodadadzadeh, M. & Boogaart, K. On Machine Learning Algorithms and Compositional Data (2019).
Collins, A. M. et al. 24-Hour time use and cognitive performance in late adulthood: results from the Investigating Gains in Neurocognition in an Intervention Trial of Exercise (IGNITE) study. Age Ageing 54, afaf072 (2025).
Mellow, M. L. et al. Should we work smarter or harder for our health? A comparison of intensity and domain-based time-use compositions and their associations with cognitive and cardiometabolic health. J. Gerontology: Ser. A 79, glae233 (2024).
Dumuid, D. et al. Does APOE ɛ4 status change how 24-hour time-use composition is associated with cognitive function? An exploratory analysis among middle-to-older adults. J. Alzheimer’s. Dis. 88, 1157–1165 (2022).
Mellow, M. L. et al. Cross-sectional associations between 24-hour time-use composition, grey matter volume and cognitive function in healthy older adults. Int. J. Behav. Nutr. Phys. Act. 21, 11 (2024).
Mellow, M. L. et al. Twenty-four-hour time-use composition and cognitive function in older adults: cross-sectional findings of the ACTIVate study. Front. Hum. Neurosci. https://doi.org/10.3389/fnhum.2022.1051793 (2022).
Wu, Y. et al. Analysis of the 24-h activity cycle: an illustration examining the association with cognitive function in the Adult Changes in Thought study. Front. Psychol. https://doi.org/10.3389/fpsyg.2023.1083344 (2023).
Balbim, G. M. et al. The association of the 24-hour activity cycle profiles with cognition in older adults with mild cognitive impairment: a cross-sectional study. J. Gerontology: Ser. A 79, glae099 (2024).
Mellow, M. L. et al. How are combinations of physical activity, sedentary behaviour and sleep related to cognitive function in older adults? A systematic review. Exp. Gerontol. 159, 111698 (2022).
Erickson, K. I., Donofry, S. D., Sewell, K. R., Brown, B. M. & Stillman, C. M. Cognitive Aging and the Promise of Physical Activity. Annu. Rev. Clin. Psychol. 18, 417–442 (2022).
Singh, B. et al. Effectiveness of exercise for improving cognition, memory and executive function: a systematic umbrella review and meta-meta-analysis. Brit. J. Sports Med 59, 866–876 (2025).
Coelho, L. et al. The association between sedentary behavior and cognitive ability in older adults. Aging Clin. Exp. Res. 32, 2339–2347 (2020).
Maasakkers, C. M. et al. The association of sedentary behaviour and cognitive function in people without dementia: a coordinated analysis across five cohort studies from COSMIC. Sports Med. 50, 403–413 (2020).
Olanrewaju, O., Stockwell, S., Stubbs, B. & Smith, L. Sedentary behaviours, cognitive function, and possible mechanisms in older adults: a systematic review. Aging Clin. Exp. Res. 32, 969–984 (2020).
Lo, J. C., Groeger, J. A., Cheng, G. H., Dijk, D.-J. & Chee, M. W. L. Self-reported sleep duration and cognitive performance in older adults: a systematic review and meta-analysis. Sleep. Med. 17, 87–98 (2016).
Gildner, T. E., Liebert, M. A., Kowal, P., Chatterji, S. & Snodgrass, J. J. Associations between sleep duration, sleep quality, and cognitive test performance among older adults from six middle income countries: results from the Study on Global Ageing and Adult Health (SAGE). J. Clin. sleep. Med. 10, 613–621 (2014).
Devore, E. E., Grodstein, F. & Schernhammer, E. S. Sleep duration in relation to cognitive function among older adults: a systematic review of observational studies. Neuroepidemiology 46, 57–78 (2016).
Ross, R. et al. Canadian 24-hour movement guidelines for adults aged 18–64 years and adults aged 65 years or older: an integration of physical activity, sedentary behaviour, and sleep. Appl. Physiol. Nutr. Metab. 45, S57–S102 (2020).
Miatke, A. et al. The association between reallocations of time and health using compositional data analysis: a systematic scoping review with an interactive data exploration interface. Int. J. Behav. Nutr. Phys. Act. 20, 127 (2023).
Castro, C. B. et al. Multi-domain interventions for dementia prevention—a systematic review. J. Nutr. Health Aging 27, 1271–1280 (2023).
Livingston, G. et al. Dementia prevention, intervention, and care: 2020 report of the Lancet Commission. Lancet 396, 413–446 (2020).
Walmsley, R. et al. Reallocation of time between device-measured movement behaviours and risk of incident cardiovascular disease. Br. J. Sports Med. 56, 1008 (2022).
Dumuid, D. et al. Compositional data analysis for physical activity, sedentary time and sleep research. Stat. Methods Med. Res. 27, 3726–3738 (2017).
Palarea-Albaladejo, J. & Martín-Fernández, J. A. zCompositions — R package for multivariate imputation of left-censored data under a compositional approach. Chemometr. Intell. Lab. Syst. 143, 85–96 (2015).
Martín-Fernández, J. A., Hron, K., Templ, M., Filzmoser, P. & Palarea-Albaladejo, J. Model-based replacement of rounded zeros in compositional data: Classical and robust approaches. Comput. Stat. Data Anal. 56, 2688–2704 (2012).
Park, D. C. & Reuter-Lorenz, P. The adaptive brain: aging and neurocognitive scaffolding. Annu. Rev. Psychol. 60, 173–196 (2009).
Harvey, P. D. Domains of cognition and their assessment. Dialogues Clin. Neurosci. 21, 227–237 (2019).
Campbell, T. & Cullen, B. Estimating the effect of physical activity on cognitive function within the UK Biobank cohort. Int. J. Epidemiol. 52, 1592–1611 (2023).
R: A language and environment for statistical computing (R Foundation for Statistical Computing, 2023).
Friedman, J. H., Hastie, T. & Tibshirani, R. Regularization paths for generalized linear models via coordinate descent. J. Stat. Softw. 33, 1–22 (2010).
Yuan, M. & Lin, Y. Model selection and estimation in regression with grouped variables. J. R. Stat. Soc. Ser. B: Stat. Methodol. 68, 49–67 (2006).
Breheny, P. & Huang, J. Group descent algorithms for nonconvex penalized linear and logistic regression models with grouped predictors. Stat. Comput. 25, 173–187 (2015).
Hastie, T., Tibshirani, R. & Friedman, J. H. The Elements of Statistical Learning: Data Mining, Inference, and Prediction 2nd edn (Springer, 2009).
Martín-Fernández, J.-A., Daunis i Estadella, J. & Mateu-Figueras, G. On the interpretation of differences between groups for compositional data. SORT: Stat. Oper. Res. Trans. 39, 231–252 (2015).
Acknowledgements
This research has been conducted using the UK Biobank Resource under Application Number 62254. The study was funded by a National Health and Medical Research Council 2022 Medical Research Future Fund Effective Treatments and Therapies grant (application ID: 2022954). A.S. was supported by a Dementia Australia Research Foundation Henry Brodaty Mid-Career Fellowship. D.D. was supported by an Australian Research Council (ARC) Discovery Early Career Award (DECRA; DE230101174). T.S. was supported by a Hospital Research Foundation grant (C-PJ-008-Transl-2020) awarded to A.S. and D.D. The funders played no role in study design, data collection, analysis or interpretation of data, or the writing of this manuscript. We wish to acknowledge the wider Small Steps team for their contribution to the co-design of the digital interface, detailed elsewhere.
Author information
Authors and Affiliations
Contributions
M.M. conceptualized the study, supported data analysis, and prepared the manuscript. T.S. conceptualized the study, conducted data analysis and contributed to manuscript development. T.O. and A.M. contributed to manuscript development. A.S. led the co-design of the app interface, conceptualized the study, and contributed to manuscript development. D.D. conceptualized the study, supported data analysis, and prepared the manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Mellow, M.L., Stanford, T.E., Olds, T. et al. An interactive tool to personalise 24-hour activity, sitting and sleep prescription for optimal health outcomes. npj Digit. Med. (2026). https://doi.org/10.1038/s41746-026-02542-4
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41746-026-02542-4


