Introduction

The potential of digital mental health to increase access to high-quality and evidence-based mental healthcare continues to inspire investment, innovation, and progress. Whether measured by more than 10,000 mental health-related apps directly available for download today (Torous and Roberts 2017), exponential rise in academically published papers (Firth et al. 2016), or millions of dollars invested (Safavi et al. 2019), the field is clearly rapidly advancing (Hilty et al. 2017). Yet, actual uptake of mental health apps by patients (Fleming et al. 2018; Noel et al. 2018) and clinicians (Schueller et al. 2016) remains low. This may be because the pace of innovation has pushed the digital mental health field ahead of national regulations for medical devices (McNiel and Binder 2018), medical-legal standards (Hilty et al. 2018a, b; Hsin and Torous 2018), privacy laws (Glenn and Monteith 2014), and even clinical evidence (Bhugra et al. 2017). A fitting and often referenced metaphor for this space is the ‘wild west’ (Anthes 2016), which captures the tension between expansion and innovation versus standards and reproducible evidence. While bringing order, trust, and clinical evidence into this space will happen, no single solution or correct approach exists (Torous and Haim 2018). One such approach is to focus on apps not as specific tools but rather customizable platforms to support both patient and clinician communities.

In this paper, we explore development of the LAMP (Learn Assess Manage and Prevent) platform as an example of co-designing an app and its supporting software ecosystem (platform) to meet the intersecting needs of clinical/research and patient/consumer communities. While the app may be the most visible part of any software platform, ensuring that there is a platform to support that app with storing, accessing, sharing, and analyzing the data is often overlooked when designing, supporting, and maintaining healthcare apps. And while many apps are built for a single purpose or to enable a single study, here we focus on creating tools to support diverse studies research as well as clinical care use cases. In order to create a platform designed for flexibility instead of an app created for a single purpose, we assembled a diverse team reflecting the input and experience of patients, clinicians, family members, researchers, app developers, designers, and donors. This paper explores the motivation, development, current progress, and next steps for the LAMP project. Its purpose is not to claim a solution but rather share our team’s experiences and efforts to spark conversation about new approaches, encourage others to build off and improve on our work, and engage new stakeholders to join in the evolving digital health community.

Unmet Needs for the Digital Mental Health Field

Our project aimed to bridge three unmet needs around digital health platforms: (1) the need for translational apps with clinical relevance, (2) the need for open and reusable app platforms, and (3) the need to capture new types of data about interactions with the device, such as speed of answering questions, called metadata.

A first challenge is the need for health apps to offer proven clinical benefit to patients. Today numerous mental health apps exist both in the consumer and research space. The sheer volume and ease of availability of the over 10,000 patient facing apps does not equate to quality (Torous and Roberts 2017). Numerous review papers continue to raise caution about consumer apps offering interventions for depression (Firth et al. 2017a), bipolar disorder (Nicholas et al. 2015), anxiety disorders (Firth et al. 2017b), and more. As reflected in a constantly expanding Wikipedia page (“Mobile phone based sensing software” 2019), apps that do not offer interventions but offer real-time capture of environmental context with smartphone sensors (e.g., GPS, call/text logs), sometimes collectively referred to as digital phenotyping (Torous et al. 2016), can help track patient progress over time, identify triggers for relapse, and help quantify functional outcomes like sleep, physical activity, and social engagement (Mohr et al. 2017). Yet, few apps seek to bridge sensors/digital phenotyping and interventions, delivering both in a single platform able to detect risk and respond to it in real time. Thus, we sought to build an app platform, LAMP, that would prove translational between basic clinical studies, experimental therapeutics, and measurement-based care by offering resources for patients, researchers, and clinicians.

A second challenge of the digital health space is that very few are truly accessible, editable, and reusable. The hallmark of science is reproducibility and the simplicity of sharing app code should make this highly feasible. However, the vast majority of apps today are scientific black boxes that are not transparent in how they collect data, analyze results, or share insights. Companies rightfully argue that they cannot be asked to give up their intellectual property when asked for such details. Even apps that are open source with their code freely shared on websites like GitHub are challenging to implement and edit without a strong technical background. Academics note that their funding cycles make it impossible to maintain open platforms, especially when frequent and costly app updates are necessary to keep up with technology changes (De Grood et al. 2016). The resulting situation is likely millions of lines of redundant code, replicating the same sensor functions over and over, and a lack of replicable science. Thus, we aimed to create a platform with complete transparency by using open source code from existing projects where possible and ensuring our focus remained on using the app platform as a mechanism to facilitate innovative research and care. A tangible step in this direction was our reliance on the easily accessible and free resources offered by Open mHealth (“Open mHealth” 2019).

A third challenge lies in using app platforms to explore new data. While many are able to collect active data (surveys) and passive data (sensors), fewer offer metadata. Metadata may be described as data related to how a person completes a survey or cognitive test (e.g., time on each question or target). Sometimes referred to as ‘digital exhaust,’ this metadata offers advantages of passive data, such as high volume of automatic data collection, but with less ethical challenges (e.g., tap time compared to passive data of GPS coordinates of a person’s home) and more clinical relevance and actionability (e.g., knowing someone spent 1 min to answer a single question about suicide is a clear indication to further explore). For illnesses like schizophrenia, where impaired cognition is a primary source of disability (Tandon et al. 2010), and others like depression, where cognitive deficits are often present but overlooked (Gotlib and Joormann 2010), the potential of monitoring cognition via digital device is appealing. Numerous studies in mental health with participants using smartphones have collected active and passive data, but research has paid less attention to metadata and even less on cognition (Moore et al. 2017). Thus, capturing metadata is a focus of our efforts and is therefore reflected in the design of the LAMP platform.

Unmet Needs for Patient Perspectives

While the needs for app platforms from a clinical and research perspective evolve, patients and users have equally pressing needs for these new digital tools. Using guided survey research (Torous et al. 2018), focus groups, structured interviews, and clinical experience with apps in the mental health care settings, we sought early and continuous input from patients on the platform. It became clear that, just as no one therapy or medication works for all patients, no one app will ever meet all needs. But across diverse patient groups and settings, we noted from three core themes present at all stages of the app development: (1) trust, (2) control, and (3) community.

First, patients explained a need for trust. They wanted to ensure that their data remained under their control and would only be accessed by them, their healthcare team, or the clinical study team, which is consistent with prior research (Di Matteo et al. 2018). Violations of trust, such as the recent experiences from the highly visible Cambridge Analytica to the less visible world of data brokers selling patient data (Glenn and Monteith 2014), are thus important to acknowledge and design against. Desired features to promote trust included both the ability to delete data directly from the app at any time and easily remove the app from the phone if desired. Patients also wanted assurance that their data would be kept secure and confidential.

Second, patients noted that they wanted to be in control of the app, including the ability to customize it to their goals and preferences and not feel surveilled or monitored without consent. This need is consistent with prior qualitative and survey research regarding patient perspectives on mental health apps (de Alva et al. 2015; Ancker et al. 2015). Desired features included an ability to customize questions/surveys, control what sensor data is collected, alter the frequency of all assessments/pop-up reminders, and change the color and language of the app.

Community was the third theme and refers to the patient’s concern that the app not isolate them or their care. Rather, patients report their wish for a tool that may be used to strengthen their relationship with their clinical team. They want to connect and share experiences with others while contributing data to science. Prior research findings overwhelmingly assert that apps alone may not provide sufficient emotional support (de Alva et al. 2015). Therefore, future shared decision-making research in digital health may improve patient management of health and personal relationships.

LAMP Overview

The intersection of these three themes of (1) trust, (2) control, and (3) community with the need for digital health tools to be (1) transparent, (2) data driven, and (3) translational guided the development of the app in our ongoing study, and future clinical plans as outlined in Fig. 1.

Fig. 1
figure 1

Intersection of patient input and clinical input guiding app design, study, and use

The initial design and piloting of the platform occurred over a one-and-a-half-year period, (supported by a grant from the Natalia Mental Health Foundation to MSK and JT and a BIDMC Department of Neurology grant to CL and JT). We utilized multiple iterations of the patient facing app called LAMP (Android and Apple) database, portals, and middleware software. During this process, we worked closely with a custom software developer, Zco Corporation, to iterate on the app’s concept and build out its various functions. Here, we present the current functional version with the goal of explaining how we balanced clinical, research, and patient needs.

We named the app LAMP, which is an acronym for “Learn,” “Assess,” “Manage,” and “Prevent,” to embody the key shared goals of patients and clinicians as well as the translational nature of the platform. The flexibility in use comes from the customizability of each of the four features of the app. The app is customized for each research study via a portal. Data can be accessed from the app itself or the portal as shown in Fig. 2.

Fig. 2
figure 2

The LAMP app can be customized via a portal and resulting data accessed from the app itself or the portal

LAMP currently offers a suite of features for both sensor and data collection as well as tools for symptom management and usability. The L–“Learn” tab is a way to provide app users with relevant articles and tips regarding their disorder. These are customizable by every study or clinician and can be uploaded, edited, and updated via a website portal. The L tab also includes information about the app and what the collected data is used for. The A–“Assess” tab has been a current focus of development for initial studies and thus contains more features. This A tab can be divided into active data (e.g., surveys, cognitive tests, and self-tagging of social/physical space) and passive data (e.g., GPS and fitness data, metadata about screen taps, and the ability to integrate more sensors in the future). Figure 3 offers a schematic of different data streams that can be customized to each study. The goal is to capture and assess symptoms in the context of both environment such as location and physical activity such as steps or sedentary behavior.

Fig. 3
figure 3

A schematic of the data capture/assessment features of LAMP

The M–“Manage” tab currently includes one management tool to help users focus on core symptom management across many health conditions including sleep, mood, and anxiety as well as specialized ones for schizophrenia including coping with hallucinations. We aim to expand this section by developing more tools with patient input as part of ongoing work. Finally, the P–“Prevent” tab shares data back with users directly on the app and offers gamified tasks to enhance resilience (e.g., mindfulness) and motivate engagement. Selected screenshots featuring the Learn, Assess, Manage, and Prevent tabs of the LAMP app are shown in Fig. 4.

Fig. 4
figure 4

Screenshots of select features of LAMP across the four domains of Learn, Assess, Manage, and Prevent

Transparency

As a research tool, we sought for LAMP to meet the three core principles of the Belmont Report of respect for persons, beneficence, and justice (Belmont Report 1978). But we also sought to ensure the app embodies a transparent approach in use cases outside of research such as clinical care.

Trust is a theme inherently linked to transparency. The iterative design process for creating the app helped build trust as patients witnessed our team’s responsiveness to their ideas. Working with our patient advisory panel, focus groups, survey research, and feedback from presentation, we updated the app over ten times in 2018 to ensure that all relevant ideas were implemented. Explaining the mission of LAMP, our commitment to protect their data, and assurance to never sell the app was well received. While all but one current LAMP study involves in-person and face-to-face meetings with the research team to help set-up and explain the app, the potential of any app platform also includes remote and scalable use. Thus, at the initial login, we created a quiz feature to help remote users assess their understanding of LAMP and how the app works. Data is owned by the patient or used with consent and permission in approved clinical studies. To further engender trust, we provided the opportunity for patients to review their own data as well as their ability to signal the research team to delete their data directly from the app. Because it can be challenging to interpret the data collected by the app, we created a visual portal to allow patients to interact with their own data and better understand what is collected.

Control is a theme that we addressed with patients to ensure that LAMP was customizable and adapted to their needs. Many mental health apps, even very popular ones, may not be usable by those with serious mental illnesses like major depression (Sarkar et al. 2016) or schizophrenia spectrum disorders. Working with patients and researchers, we adapted the app to be more engaging and usable. An example of co-design with patients and researchers includes the evolution of the neurocognitive trail-making test from the initial version, where the user is instructed to draw lines on the screen, to a later version without lines, and a current version with jewels replacing circles (see Fig. 5). This not only allows for their control of the app’s functionality, but also provides transparency in its development and functions. Other features built into the app allow users to change the background color, set the language from English to either Mandarin, Brazilian Portuguese, or Spanish, change the scheduling of notifications (apart from those scheduled in a study protocol), and send error reports/feedback at any time.

Fig. 5
figure 5

Adaption of a modified trail test from connecting the dots (left), to tapping the dots (middle) to tapping jewels where the shape now determines order (right)

Community was the third guiding theme. Digital health efforts like LAMP involve numerous communities including patients, researchers, software developers, regulators, payers, and other stakeholders. For researchers and software developers, we have posted all of our code for the app, dashboard, and database online for free and publically at https://lamp.digital/and shared under an Open Source License. While others can access LAMP, it currently offers most value to researchers given its nascency. Thus, to expand, we have worked to ensure that the software developer community can easily access, edit, and augment LAMP. By creating an application program interface (API), it is easy for others to copy, adapt, connect, and modify our code to augment our version or create their own (Prlić and Procter 2012). Finally, to engage the clinician communities, we have created dashboards that help summarize clinical data in a manner that may offer value in a patient appointment. We are currently working to implement a patient portal where users can access their data in a customized format to suit their needs and interest.

Data Driven

Another important goal of LAMP is to collect meaningful data. While many apps are able to collect novel types of data including active, passive, and metadata, we sought to futureproof LAMP by also allowing it to easily integrate with other apps and devices like the Apple Watch and Android Google Fit.

Trust is critical for any new data collection tool in healthcare, especially new digital data streams. Given that many mobile app studies correlating sensors to metrics like mood have failed to replicate (Asselbergs et al. 2016; Rohani et al. 2018), we are cautious to make any claims about this data. Instead, our team is committed to building trust through conducting rigorous, fully reproducible research on all LAMP data streams including surveys, sensors, and cognitive tests. Trust in this digital work also involves technical measures to protect data. LAMP uses industry standard encryption protocols that protects data even if the phone is lost. Data is encrypted in transit and on a secure server and we utilize new technologies like docker containers to prevent state leakage as an example of continuous efforts to integrate new data security features.

Control of data is as important as security. By placing the user in control of the data, we ensure that the right control is with the right person. A user can use the app but decide not to grant it access to certain data streams such as GPS or fitness information. As mentioned above, a user can ask that all their data be deleted at any time directly from the app, offering a high level of control over data. We also designed the data structures of LAMP to reflect proper control of the data as shown in Fig. 6. In this research configuration, a researcher has access to one or more studies, and each of those studies has access to one or more participants, who have access to one or more types of data the app has collected. By building this hierarchy into the app data, the organization of the data supports control by its very structure.

Fig. 6
figure 6

Data types and hierarchy for LAMP data

Community regarding LAMP data means using the right data to support the right relationships. Focusing first on the data, we share Jupyter Notebooks that contain our code for processing and visualizing the data (https://lamp.digital/). For researchers, we created a dashboard that offers the ability to analyze data in R or Python by running scripts either directly on study data in the cloud or on downloadable datasets. By making these resources available to the community, we hope advances in methods will develop for translating raw data into clinically meaningful insights. While sharing patient-specific data is often not permissible or ethical, we designed the data structure in LAMP for scalability and interoperability. The system can be used in multiple research studies with the same expected output, regardless of input data.

Figure 7 demonstrates how different activities in a cognition and symptom monitoring study can be uploaded and compiled together in a clear, concise format. Thus, as others add custom surveys to capture data that matters to them and add novel cognitive tests, the same underlying data structure can be utilized and ensures data compatibility even with older versions and assessments. With these community features in place, we hope LAMP data will offer a vibrant community for researchers and developers. We acknowledge that we have not yet focused on using LAMP data to form a patient-focused community that could, for example, share such data towards fostering peer support or matching patients with those who have similar experiences as their own. As the initial pilot studies of the app conclude, we plan to reach out to local patient organizations to explore new use cases and new features. Given that social support is one of the key drivers of app engagement (Torous et al. 2018b), patient communities will be necessary to lead that effort.

Fig. 7
figure 7

The unified data structure of LAMP is designed to facilitate analysis of assessment data

We have also created and posted an application program interface (API) (https://lamp.digital/) which makes it easy for others to work with LAMP data in a standardized way and integrate it into their own app. While we are still developing and adding to LAMP, we believe making it available in its current state allows others to replicate our work, advance upon it, develop new use cases, and innovate to their customized needs. Thus, we believe the project can keep pace with the rapid advances and innovations in digital health.

Translational

While the data generated by LAMP, and other health apps, is useful, we believe the true potential of smartphone apps is their ability to serve as a translational device to improve clinical outcomes. We designed LAMP as a tool that both patients and clinicians will use together in diagnostic assessments, monitoring, and interventions. We explicitly refer to LAMP as a tool since the potential of the app comes not from the underlying software, but rather the people using it.

Establishing trust for any new clinical tool is a process that relies on reproducible research findings and clinical utility. Thus, our team is embarking on several LAMP studies at this time as well as sharing the app with diverse teams. For example, researchers in an anesthesiology department (JP and AT) are investigating the L–“Learn” features of LAMP in a study to educate patients about perioperative surgery recovery and anesthesia. A research team in China is focusing on A–“Assess” with ongoing research to analyze the cognitive data assessed by the app and if it may help predict conversion to schizophrenia from the prodrome. Researchers at Boston University (DF and EW) are assessing the relationship between fluctuations in cognition and factors such as mood, motivation, and social isolation. In collaboration with a research team in Canada (led by SG), the Beth Israel Deaconess Medical Center psychiatry team (JT, HW, PH, AV, MK) is conducting an ongoing study that aims to assess cognitive data gathered from LAMP and compare them to gold standard measures in depression or schizophrenia. The Beth Israel Deaconess Medical Center neurology team (CL, HT) is studying whether cognitive symptoms and metadata from LAMP may correlate with clinical decline in patients with early symptoms of Alzheimer’s disease.

As a tool, LAMP was designed to offer control to patients and clinicians. We envision use cases where the clinician and patient can together determine what they may wish to track—be it physical activity, cognition, custom survey questions, or social engagement—and quickly customize LAMP to collect only the data necessary and clinically relevant. Likewise, as more interventions are built out by various teams, a range of digital interventions will be available for selection as needed. The initial intervention in LAMP was informed by patient experience at Cambridge Health Alliance, a large primary care/hospital system where mental health clinicians share mobile app resources with patients to augment and extend in-person clinical services (see ‘Assess’ in Fig. 4).

The goal is not to use all the features of LAMP but instead use the right ones for the right patient. Towards this goal, we are piloting a digital mental health clinic to better understand what is the right way to help patients and clinicians customize the app in the most clinically effective manner. We have already created a suite of data visualization software to help patients and clinicians understand their data and assess the value of information collection (see Fig. 8). While data visualization of digital health data remains a nascent area, good visual representations can spark a clinically relevant conversation and allow new insights (Torous and Roux 2017).

Fig. 8
figure 8

A screenshot of sample LAMP data, created by for sharing using no clinical data, visualized on the web portal

Community is central to LAMP and reflects using the app to strengthen the therapeutic alliance between patients and clinicians. While technology may help patients with self-management, the low engagement rates with most self-help apps speak to the challenges for stand-alone apps (Mueller et al. 2018). LAMP includes traditional elements to augment engagement such as awarding points for completion of app activities and spinning a wheel to win prizes (see Fig. 9 below). Clinician engagement is also a challenge, especially at a time where burnout is increasingly associated with excessive technology use related to electronic medical records (Domaney et al. 2018). One of the chief reasons for failure of digital health tools remains low uptake on the clinical side (Gagnon et al. 2015), but by using LAMP as a tool not to isolate patients or clinicians, but rather to strengthen their alliance, we see a brighter potential for LAMP.

Fig. 9
figure 9

Gamified elements of LAMP

Future Directions for LAMP

Digital Psychiatry Clinic

At the digital psychiatry clinic starting in March 2019, we will use LAMP to augmented care as shown below in Fig. 10. To not overburden either the patient or clinician with issues around technology in the appointment (Hilty et al. 2018b), the digital clinic will employ a new staff member: a digital navigator. While the concept of a digital navigator is relatively new (Ben-Zeev et al. 2015), the digital clinic for mental health is even more nascent. The digital navigator will serve as a liaison between the digital data and information generated by the app, on demand support for any technology set up or issues, and the team member responsible for remote monitoring of the data. With further experience, the role may be modified but the initial iteration of the digital clinic will feature LAMP and the digital navigator in these roles that are intended to support a strong therapeutic alliance where it matters the most. As digital clinics evolve and build evidence, practice models and competencies will be a next step in dissemination (Hilty et al. 2019).

Fig. 10
figure 10

Schematic of the Digital Clinic

Youth Mental Health

Use of LAMP via a digital clinic has high potential for care in both youth mental health and underserved patient groups. Fewer than half of young people have access to evidence-based mental health care, including high-income countries such as the USA (Patel et al. 2018). With the onset of nearly three quarters of mental disorders occurring before age 24 (Kessler et al. 2005), there may be unique opportunities to leverage this increasing use of digital technology for detecting risk factors for mental illness, facilitating referral, and delivering targeted digital interventions for these young individuals. The application of digital phenotyping early in life could yield necessary insights to understand risk factors for mental illness, as well as the precise timing of the onset of problematic symptoms earlier than existing clinical diagnostic approaches.

Underserved Patient Groups

There is considerable evidence supporting the feasibility, acceptability, and initial clinical effectiveness of digital mental health interventions across diverse low- and middle-income countries (Naslund et al. 2017). Use of LAMP to capture real-time assessments and signals to create a user’s digital phenotype could trigger the delivery of other digital resources directly through the smartphone platform to support an at-risk individual. This could include various forms of immediate support tailored to an individual’s needs at that moment, such as preventing relapse, offering self-help activities, or motivation to overcome problem behaviors or low mood. Furthermore, the digital platform could send real-time alerts to non-specialist health providers, such as community health workers or other lay providers, who make up the predominant health care workforce in many lower resource settings. This direct connection to a non-specialist health provider can support the integration of the digital platform into the existing health system. The true potential for open source and shareable digital platforms such as LAMP may be realized in low-resource settings, where health systems are heavily under-resourced and fragmented, and where the demand for evidence-based mental health services is greatest.

Conclusion

The Institute of Medicine defines a learning healthcare system as one in which “science, informatics, incentives, and culture are aligned for continuous improvement and innovation, with best practices seamlessly embedded in the delivery process and new knowledge captured as an integral by-product of the delivery experience (McGinnis et al. 2007). Just like a learning healthcare system is itself a sociotechnical system that relies on new technologies to help gather and analyze data and multidisciplinary teams to implement change, we view LAMP as a sociotechnical system that relies on both technology and people. The healthcare system will continue to adapt, as will the technology and capabilities of apps, but the intersection between patient needs for digital health (i.e., trust, control, community) and clinical research needs for digital health (i.e., transparent, data driven, translational) will likely remain constant. The intersection of diverse individuals and teams who helped create LAMP embodies the synergies and collaborative advancements we hope LAMP may now share with others. Realizing there is always room for improvement and more perspectives, we hope others will adapt, expand, and augment LAMP to meet the needs of their own healthcare systems, clinicians, and patients.