Skip to main content
UKPMC Funders Author Manuscripts logoLink to UKPMC Funders Author Manuscripts
. Author manuscript; available in PMC: 2018 May 21.
Published in final edited form as: J Open Res Softw. 2018 Mar 23;6:13. doi: 10.5334/jors.207

InDEx: Open Source iOS and Android Software for Self-Reporting and Monitoring of Alcohol Consumption

Daniel Leightley 1, Jo-Anne Puddephatt 2, Laura Goodwin 2, Roberto Rona 1, Nicola T Fear 1,3
PMCID: PMC5961935  EMSID: EMS77548  PMID: 29795769

Abstract

InDEx is a software package for reporting and monitoring alcohol consumption via a smartphone application. Consumption of alcohol is self-reported by the user, and the app provides a visual representation of drinking behaviour and offers feedback on consumption levels compared to the general population. InDEx is intended as an exemplar app, operating as a standalone smartphone application and is highly customisable for a variety of research domains. InDEx is written in JavaScript, using IONIC framework which is cross-platform and is available under the liberal GNU General Public License (v3). The software is available from GitHub (https://github.com/DrDanL/index-app-public).

Keywords: alcohol, monitoring, smartphone, iOS, Android, IONIC

(1). Overview

Introduction

Self-reported alcohol misuse is high amongst personnel of the United Kingdom (UK) Armed Forces, with the trend continuing after they leave service [1, 5]. More than 50% of those who have left military service meet the criteria for hazardous alcohol use, defined as scoring 8 or more on the Alcohol Use Disorders Identification Test [2, 3]. This prevalence rate is almost double that found in the general population [4]. Most people in the general population underestimate their drinking and do not perceive it as problematic, even when the level of consumption is potentially harmful to health [6]. This pattern is similar among Armed Forces personnel, with less than half of harmful drinkers recognising that they have an alcohol problem [7]. There is a culture of heavy alcohol use in the AF which may be encouraged or maintained by social determinants [8]; therefore, leaving service could provide an opportunity to initiate change in settings with less peer pressure to conform to social norms.

One medium in changing alcohol consumption is using a smartphone application (app). Existing alcohol apps emphasise longer-term health consequences which are seen as remote risks by young drinkers [911], however, a recent meta-analysis suggests that there may be greater benefits to focusing on shorter term consequences in order to encourage individuals to reduce their alcohol consumption [12, 13]. To the authors’ knowledge, we are unaware of any academic studies in this field which have released the source code under Open Source Initiative approved licenses to encourage reuse [14].

Information about Drinking for Ex-serving personnel (InDEx) was developed as a app to enable the self-reporting and monitoring of alcohol consumption in veterans who reside within the UK over a period of 28-days. See Figure 1 for screenshot examples of the InDEx app on a mobile device. InDEx was based on the following requirements:

  • The app should be compatible across modern (released after 2012) Android (Google Inc, Mountain View, California, United States) and iOS (Apple Inc, Cupertino, California, United States) operating systems.

  • The app should be capable of storing data locally and make it retrievable as required by the app.

  • The app should allow users to self-report and record a range of alcoholic drinks (including quantity, who with and where) and offer the ability of recording a ‘Drink Free Day’.

  • The app should be able to collect a range of self-reported measures obtained via in-app questionnaires.

  • The system should provide a simple registration and signup process with minimal data collection.

Figure 1.

Figure 1

Example screenshots captured from the InDEx app.

The objective of this paper is to describe the development of the app. It will provide the research community with an exemplar app for use in other studies, and highlight the key stages to development.

Implementation and architecture

InDEx was developed between October 2016 and March 2017 using JavaScript (ES6), HTML (5) and CSS (3).

Development life-cycle

InDEx used Agile development methodologies [15], with each cycle focusing firstly on the development and secondly on stakeholder/expert user testing (as illustrated in Figure 2). An incremental approach was employed, where each cycle built upon the functionality of the previous with new functionality introduced based on stakeholder/export user feedback. The cycle would not progress until stakeholder feedback on core features had been addressed.

Figure 2.

Figure 2

The Agile development methodology employed during development of the InDEx app.

Core Features

Screening and Normative Feedback: This module consists of two elements. First, at specific periods during the app life-cycle (e.g. day 0, 7, 14, 21 and 28) users are presented with a set of questionnaires (defined by the research team) and responses are logged (screening.js [state: screening]). Secondly, questionnaire responses are analysed to produce an informative visual feedback on alcohol consumption (normative.js [state: normative]).

Alcohol Reporting and Monitoring: This module consists of two elements. First, users are able to log alcohol consumption and ‘Drink Free Days’ (addDrink. js [state: adddrink]). Optional consent is available to obtain GPS location (geolocation.factory.js). Further, users can optionally record information on who they are with and where they are drinking. Second, a range of metrics are generated to provide an overview of current consumption (normative.controller.js [state: tabs/normative]).

Goals: This module enables users to set goal(s) based on implementation intentions [16]; a methodology that empowers the user to form self-regulation strategies in the form of an if-then plan. Users can select a goal (goals.js [state: tabs/goals]) and identify what is the biggest barrier to achieving that goal, Table 1 illustrates goal setting with if-then. Visual feedback is provided to users on progress towards achieving goal(s) and a status on those that have expired.

Table 1.

Example implementation intension goals for InDEx app.

Goal Example if-then

I want to drink less on a night out If other people are encouraging me to have a drink, then I will change my usual drink for a smaller measure
I want to have more drink free days during the week If my partner is drinking at home then I will suggest that we have a set number of days to have a drink this week
I want to drink less overall this week If I’m spending time with friends who drink a lot then I will start with water or a soft drink.

Account Management: This module (account.js [state: tabs/account]) enables users to modify and review personal information (e.g. first name, last name, mobile number), password and app parameters (e.g. automatic log out).

InDEx Implementation

The software is implemented using Drifty Co (Madison, Wisconsin, United States) IONIC Framework version 1, which is a cross-platform framework for web and mobile apps. The software has been implemented as a standalone application and does not require connection to a central service.

Quality control

All functions have been individually tested for correctness to ensure their correct behaviour. Furthermore, all versions of the software underwent rigorous testing by stakeholder/expert users sourced from King’s Centre for Military Health Research and University of Liverpool (n = 17) to ensure software quality and usability.

(2). Availability

Operating system

Development: Windows 7 or above. Mac OS X El Capitan or above.

Production: Compatible on iOS and Android operating systems released after 2012.

Programming language

InDEx is written in JavaScript (ES6), HTML5 and CSS3.

Additional system requirements

None beyond requirements of the operating system and dependencies (listed hereafter).

Dependencies

IONIC Framework version 1 (tested v3.0.0) [17]. All other dependencies are stated within the source code and accessed via a Content Delivery Network (CDN).

List of contributors

This list of authors includes all main contributors. Daniel Leightley led the software development and is its current maintainer.

Software location

Archive

Name: Zenodo

Persistent identifier: https://doi.org/10.5281/zendo.1068121

Licence: GNU General Public License (v3)

Publisher: Daniel Leightley

Version published: 1.0.0

Date published: 29/11/2017

Code repository GitHub

Name: index-app-public

Identifier: https://github.com/DrDanL/index-app-public

Licence: GNU General Public License (v3)

Date published: 29/11/2017

Language

English (UK)

(3). Reuse potential

InDEx (v1.0.0) enables research rapid access and reuse to an exemplar smartphone app for use in alcohol research, but provides the facility to modify the software for uses in other domains. The software has been made freely available to the community to further develop, extend and contribute to the app ecosystem. The GNU General Public License (v3) has been selected to ensure that developments are shared with the community, to the benefit of the community.

Support for modifying and using the software is available through GitHub issues page (https://github.com/DrDanL/index-app-public/issues) and GitHub wiki (https://github.com/DrDanL/index-app-public/wiki).

Supplementary Material

Source Code

Acknowledgements

The authors would like to thank Zoe Chui, Matt Field, Colin Drummond, Toktam Mahmoodi, Norman Jones and Margaret Jones for their contributions to the inception and overall progress of this project.

Funding statement: This study was funded by the Medical Research Council (MR/N028244/2).

Footnotes

Competing Interests

The authors have no competing interests to declare.

References

  • 1.Rona RJ, Fear NT, Hull L, Greenberg N, Earnshaw M, Hotopf M, Wessely S. Mental health consequences of overstretch in the UK armed forces: First phase of a cohort study. Br Med J. 2007;335:603–610. doi: 10.1136/bmj.39274.585752.BE. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Saunders JB, Assland OG, Babor TF, De La Fuente JR. Development of the Alcohol Use Disorders Identification Test (AUDIT): WHO Collaborative Project on Early Detection of Persons with Harmful Alcohol Consumption-II. J Addicition. 1993;88(6):791–804. doi: 10.1111/j.1360-0443.1993.tb02093.x. [DOI] [PubMed] [Google Scholar]
  • 3.World Health Organisation. Global status report on alcohol and health 2014. 2015 [Google Scholar]
  • 4.McManus S, Bebbington P, Jenkins R, Brugha T. Mental Health and Wellbeing in England: Adult Psychiatric Morbidity Survey 2014. Leeds. 2014 [Google Scholar]
  • 5.Rona RJ, Jones M, Fear NT, Hull L, Hotopf M, Wessely S. Alcohol misuse and functional impairment in the UK Armed Forces: A population-based study. Drug Alcohol Depend. 2010 Apr;108(1–2):37–42. doi: 10.1016/j.drugalcdep.2009.11.014. [DOI] [PubMed] [Google Scholar]
  • 6.Garnett C, Crane D, West R, Michie S, Brown J, Winstock A. Normative misperceptions about alcohol use in the general population of drinkers: A cross-sectional survey. Addict Behav. 2015 Mar;42:203–206. doi: 10.1016/j.addbeh.2014.11.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Hines LA, Goodwin L, Jones M, Hull L, Wessely S, Fear NT, Rona RJ. Factors affecting help seeking for mental health problems after deployment to Iraq and Afghanistan. Psychiatr Serv. 2014 Jan;65(1):98–105. doi: 10.1176/appi.ps.004972012. [DOI] [PubMed] [Google Scholar]
  • 8.Jones E, Fear NT. Alcohol use and misuse within the military: A review. Int Rev Psychiatry. 2011;23(2):166–172. doi: 10.3109/09540261.2010.550868. [DOI] [PubMed] [Google Scholar]
  • 9.Garnett C, Crane D, Michie S, West R, Brown J. Evaluating the effectiveness of a smartphone app to reduce excessive alcohol consumption: protocol for a factorial randomised control trial. BMC Public Health. 2016;16(536) doi: 10.1186/s12889-016-3140-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Attwood S, Parke H, Larsen J, Morton KL. Using a mobile health application to reduce alcohol consumption: a mixed-methods evaluation of the drinkaware track & calculate units application. BMC Public Health. 2017;17(394) doi: 10.1186/s12889-017-4358-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Weaver ER, Horyniak DR, BiomedSci B, Jenkinson R, Dietze P, Lim MSC. ‘Let’s get Wasted!’ and Other Apps: Characteristics, Acceptability, and Use of Alcohol-Related Smartphone Applications. JMIR Mhealth Uhealth. 2013;1(1):e9. doi: 10.2196/mhealth.2709. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Connor JP, George SM, Gullo MJ, Kelly AB, Young RM. A Prospective Study of Alcohol Expectancies and Self-Efficacy as Predictors of Young Adolescent Alcohol Misuse. Alcohol Alcohol. 2011;46(2):161–169. doi: 10.1093/alcalc/agr004. [DOI] [PubMed] [Google Scholar]
  • 13.Donoghue K, Patton R, Phillips T, Deluca P, Drummond C. The Effectiveness of Electronic Screening and Brief Intervention for Reducing Levels of Alcohol Consumption: A Systematic Review and Meta-Analysis. J Internet Med Res. 2014;16(6):e142. doi: 10.2196/jmir.3193. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Initiative, O, Open, T and Definition, S. Open source initiative. [Accessed: 08-Nov-2017];2004 At http://www.opensource.org/index.html Accessed [Online]. Available: https://opensource.org/
  • 15.Clinton K. An agile Retrospective. [Accessed: 06-Nov-2017];2008 [Online]. Available: http://www.clintonkeith.com/resources/GDC2008-AnAgileRetrospective.pdf.
  • 16.Gollwitzer PM, Sheeran P. Advances in Experimental Social Psychology. Vol. 38. Academic Press; 2006. Jan 01, Implementation Intentions and Goal Achievement: A Meta-analysis of Effects and Processes; pp. 69–119. [Google Scholar]
  • 17.Drifty Co. Ionic Framework. [Accessed: 10-Nov-2017];2013 [Online]. Available: http://ionicframework.com/

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Source Code

RESOURCES