{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,12,30]],"date-time":"2025-12-30T17:49:45Z","timestamp":1767116985123,"version":"build-2065373602"},"reference-count":31,"publisher":"MDPI AG","issue":"7","license":[{"start":{"date-parts":[[2022,4,6]],"date-time":"2022-04-06T00:00:00Z","timestamp":1649203200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Mobile sensing\u2014that is, the ability to unobtrusively collect sensor data from built-in phone and attached wearable sensors\u2014have proven to be a powerful approach to understanding the behavior, well-being, and health of people in their everyday life. Different platforms for mobile sensing have been presented and significant knowledge on how to facilitate mobile sensing has been accumulated. However, most existing mobile sensing platforms only support a fixed set of mobile phone and wearable sensors which are `built into\u2019 the platform\u2019s generic `study app\u2019. This creates some fundamental challenges for the creation and approval of application-specific mobile sensing studies, since there is little support for adapting the sensing capabilities to what is needed for a specific study.\u00a0Moreover, most existing platforms use their own proprietary data formats and there is no standardization in how data are collected and in what formats. This poses some fundamental challenges to realizing the vision of using mobile sensing in health applications, since mobile sensing data collected across different phones and studies cannot be compared, thus hampering generalizability and reproducibility across studies. This paper presents two software architecture patterns enabling (i) dynamic extension of mobile sensing to incorporate new sensing capabilities, such as collecting data from a wearable sensor, and (ii) handling real-time transformation of data into standardized data formats. These software patterns are derived from our work on CARP Mobile Sensing (CAMS), which is a cross-platform (Android\/iOS) software architecture providing a reactive and unified programming model that emphasizes extensibility. This paper shows how the framework uses the two software architecture patterns to add sampling support for an electrocardiography (ECG) device and support data transformation into the new Open mHealth (OMH) data format. The paper also presents data from a small study, demonstrating the robustness and feasibility of using CAMS for data collection and transformation in mobile sensing.<\/jats:p>","DOI":"10.3390\/s22072813","type":"journal-article","created":{"date-parts":[[2022,4,7]],"date-time":"2022-04-07T21:08:22Z","timestamp":1649365702000},"page":"2813","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":5,"title":["Software Architecture Patterns for Extending Sensing Capabilities and Data Formatting in Mobile Sensing"],"prefix":"10.3390","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1390-8758","authenticated-orcid":false,"given":"Jakob E.\u00a0","family":"Bardram","sequence":"first","affiliation":[{"name":"Department of Health Technology, Technical University of Denmark, DK-2800 Kongens Lyngby, Denmark"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2022,4,6]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"140","DOI":"10.1109\/MCOM.2010.5560598","article-title":"A survey of mobile phone sensing","volume":"48","author":"Lane","year":"2010","journal-title":"IEEE Commun. Mag."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"70","DOI":"10.1109\/MPRV.2016.37","article-title":"The Personal Health Technology Design Space","volume":"15","author":"Bardram","year":"2016","journal-title":"IEEE Pervasive Comput."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"66","DOI":"10.1109\/MPRV.2013.56","article-title":"Smartphones for Large-Scale Behavior Change Interventions","volume":"12","author":"Lathia","year":"2013","journal-title":"IEEE Pervasive Comput."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Lane, N.D., Mohammod, M., Lin, M., Yang, X., Lu, H., Ali, S., Doryab, A., Berke, E., Choudhury, T., and Campbell, A. (2011, January 3\u201326). Bewell: A smartphone application to monitor, model and promote wellbeing. Proceedings of the 5th International ICST Conference on Pervasive Computing Technologies for Healthcare, Dublin, Ireland.","DOI":"10.4108\/icst.pervasivehealth.2011.246161"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Wang, R., Chen, F., Chen, Z., Li, T., Harari, G., Tignor, S., Zhou, X., Ben-Zeev, D., and Campbell, A.T. (2014, January 13\u201317). StudentLife: Assessing mental health, academic performance and behavioral trends of college students using smartphones. Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing, Seattle, WA, USA.","DOI":"10.1145\/2632048.2632054"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"62","DOI":"10.1109\/MPRV.2019.2925338","article-title":"A Decade of Ubiquitous Computing Research in Mental Health","volume":"19","author":"Bardram","year":"2020","journal-title":"IEEE Pervasive Comput."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"e2537","DOI":"10.7717\/peerj.2537","article-title":"The relationship between mobile phone location sensor data and depressive symptom severity","volume":"4","author":"Saeb","year":"2016","journal-title":"PeerJ"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"140","DOI":"10.1109\/JBHI.2014.2343154","article-title":"Smartphone-based recognition of states and state changes in bipolar disorder patients","volume":"19","author":"Muaremi","year":"2015","journal-title":"IEEE J. Biomed. Health Inform."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"e856","DOI":"10.1038\/tp.2016.123","article-title":"Voice analysis as an objective state marker in bipolar disorder","volume":"6","author":"Busk","year":"2016","journal-title":"Transl. Psychiatry"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"1660","DOI":"10.1038\/s41386-018-0030-z","article-title":"Relapse prediction in schizophrenia through digital phenotyping: A pilot study","volume":"43","author":"Barnett","year":"2018","journal-title":"Neuropsychopharmacology"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3422158","article-title":"Mobile and Wearable Sensing Frameworks for mHealth Studies and Applications: A Systematic Review","volume":"2","author":"Kumar","year":"2020","journal-title":"ACM Trans. Comput. Healthc."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"e181","DOI":"10.2196\/jmir.3376","article-title":"Purple: A Modular System for Developing and Deploying Behavioral Intervention Technologies","volume":"16","author":"Schueller","year":"2014","journal-title":"J. Med. Internet. Res."},{"key":"ref_13","unstructured":"Xiong, H., Huang, Y., Barnes, L.E., and Gerber, M.S. (2016, January 12\u201316). Sensus: A cross-platform, general-purpose system for mobile crowdsensing in human-subject studies. Proceedings of the 2016 ACM International Joint Conference on Pervasive and Ubiquitous Computing, Heidelberg, Germany."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"6","DOI":"10.3389\/fict.2015.00006","article-title":"AWARE: Mobile context instrumentation framework","volume":"2","author":"Ferreira","year":"2015","journal-title":"Front. ICT"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"e16","DOI":"10.2196\/mental.5165","article-title":"New tools for new research in psychiatry: A scalable and customizable platform to empower data driven smartphone research","volume":"3","author":"Torous","year":"2016","journal-title":"JMIR Ment. Health"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Hossain, S.M., Hnat, T., Saleheen, N., Nasrin, N.J., Noor, J., Ho, B.J., Condie, T., Srivastava, M., and Kumar, S. (2017, January 6\u20138). mCerebrum: A Mobile Sensing Software Platform for Development and Validation of Digital Biomarkers and Interventions. Proceedings of the 15th ACM Conference on Embedded Network Sensor Systems, (SenSys \u201917), Delft, The Netherlands.","DOI":"10.1145\/3131672.3131694"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"e11734","DOI":"10.2196\/11734","article-title":"RADAR-Base: Open Source Mobile Health Platform for Collecting, Monitoring, and Analyzing Data Using Sensors, Wearables, and Mobile Devices","volume":"7","author":"Ranjan","year":"2019","journal-title":"JMIR Mhealth Uhealth"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"73","DOI":"10.1007\/s41347-019-00095-w","article-title":"Creating a Digital Health Smartphone App and Digital Phenotyping Platform for Mental Health and Diverse Healthcare Needs: An Interdisciplinary and Collaborative Approach","volume":"4","author":"Torous","year":"2019","journal-title":"J. Technol. Behav. Sci."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Bardram, J.E., and Frost, M. (2017). Double-Loop health technology: Enabling socio-technical design of personal health technology in clinical practice. Designing Healthcare That Works: A Sociotechnical Approach, Elsevier.","DOI":"10.1016\/B978-0-12-812583-0.00010-9"},{"key":"ref_20","unstructured":"Buschmann, F., Meunier, R., Rohnert, H., Sommerlad, P., and Stal, M. (1996). Pattern-Oriented Software Architecture. A System of Patterns, John Wiley & Sons."},{"key":"ref_21","unstructured":"Gamma, E., Helm, R., Johnson, R., Vlissides, J., and Patterns, D. (1995). Elements of Reusable Object-Oriented Software, Addison-Wesley."},{"key":"ref_22","unstructured":"Bardram, J.E. (2020). The CARP Mobile Sensing Framework\u2014A Cross-platform, Reactive, Programming Framework and Runtime Environment for Digital Phenotyping. arXiv."},{"key":"ref_23","unstructured":"(2022, February 15). CACHET Research Platform\u2014A Set of Open-Source Software Component and Frameworks for the Development of Mobile Health (mHealth) Applications for Digital Phenotyping. Available online: https:\/\/carp.cachet.dk."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"759","DOI":"10.1126\/science.1196187","article-title":"Open mHealth architecture: An engine for health care innovation","volume":"330","author":"Estrin","year":"2010","journal-title":"Science"},{"key":"ref_25","unstructured":"(2022, February 15). IEEE P1752 Open Mobile Health. Available online: https:\/\/sagroups.ieee.org\/1752\/."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"83","DOI":"10.1109\/MPRV.2018.03367740","article-title":"Earables for Personal-Scale Behavior Analytics","volume":"17","author":"Kawsar","year":"2018","journal-title":"IEEE Pervasive Comput."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Bardram, J.E. (2019, January 10). The CAMS ESense Framework: Enabling Earable Computing for MHealth Apps and Digital Phenotyping. Proceedings of the 1st International Workshop on Earable Computing, (EarComp\u201919), London, UK.","DOI":"10.1145\/3345615.3361137"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Rohani, D.A., Quemada Lopategui, A., Tuxen, N., Faurholt-Jepsen, M., Kessing, L.V., and Bardram, J.E. (2020, January 25\u201330). MUBS: A Personalized Recommender System for Behavioral Activation in Mental Health. Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems, Honolulu, HI, USA.","DOI":"10.1145\/3313831.3376879"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3524886","article-title":"mCardia: A Context-Aware Ambulatory ECG Collection System for Arrhythmia Screening","volume":"3","author":"Kumar","year":"2022","journal-title":"ACM Trans. Comput. Healthc."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Bardram, J.E., Cramer-Petersen, C., Maxhuni, A., Christensen, M.V., B\u00e6kgaard, P., Persson, D.R., Lind, N., Christensen, M.B., N\u00f8rgaard, K., and Khakurel, J. (ACM Trans. Comput. Healthc., 2022). DiaFocus: A Personal Health Technology for Adaptive Assessment in Long-Term Management of Type 2 Diabetes, ACM Trans. Comput. Healthc., submitted.","DOI":"10.1145\/3586579"},{"key":"ref_31","unstructured":"(2022, February 15). Flutter\u2014Google\u2019s Portable UI Toolkit for Building Beautiful, Natively-Compiled Applications for Mobile, Web, and Desktop from a Single Codebase. Available online: https:\/\/flutter.dev."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/7\/2813\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T22:49:14Z","timestamp":1760136554000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/7\/2813"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,4,6]]},"references-count":31,"journal-issue":{"issue":"7","published-online":{"date-parts":[[2022,4]]}},"alternative-id":["s22072813"],"URL":"https:\/\/doi.org\/10.3390\/s22072813","relation":{},"ISSN":["1424-8220"],"issn-type":[{"type":"electronic","value":"1424-8220"}],"subject":[],"published":{"date-parts":[[2022,4,6]]}}}