Mr Jones sits down in front of you and removes from his bag a sheaf of printed web pages. Trying to appear composed, you studiously ignore the stack of papers and look straight at him. ‘How can I help you today? ’
‘Well, doctor, it’s just that I was looking on the internet and they suggested I come in and see you …’ [he looks bashful] ‘… it’s just I’ve been having difficulty swallowing and the weight’s been dropping off me. The internet suggested it might be …’ [he hesitates] ‘… something nasty.’
Two weeks later you open your correspondence. This time, the internet was right.
Searching the internet for health advice is undoubtedly fraught with potential complications as well as rewards, but have you ever stopped to think about the technology behind these searches and what other implications it might have for your practice?
MACHINE LEARNING
Only 9% of the UK population have heard of machine learning, but 89% recognise at least one of its uses.1 From fraud detection on your credit card to voice recognition software such as Siri, we are surrounded by intelligent machines. Each time a search term is entered into Google it uses complex algorithms to determine the most appropriate results. These rules are not programmed explicitly by humans but developed iteratively over time by the machine itself. The machine is learning from our behaviour — which results we choose to click on, how long we stay on an individual page — and is constantly refining its own search algorithms as a result of these feedback loops.
Unsurprisingly, it is difficult to mimic the action of the human brain’s 86 billion neurones to any significant degree, and the much hyped artificial intelligence that might produce robotic doctors is a long way off. The closest technology has come so far is in the use of artificial neural networks, composed of a complex system of inputs and outputs (see Figure 1). The repeated activation of connections strengthens their bond, applying differing weights to the various contacts. As hidden layers are added, the networks’ complexity intensifies, their ability to learn increases, and they become known as ‘deep’ neural networks. The deeper these networks, the more difficult it becomes for those on the outside to understand what is happening inside the ‘black box’ of hidden layers. Although this is a legitimate concern, it is important to remember that there is precedent in medicine for improving health without fully understanding the mechanism of action of the tools being used, for instance, lithium in bipolar disorder.2
Figure 1. Diagrammatic representation of artificial neural networks.
In evaluating machine learning we must remember that the comparator is real-world clinical care, performed by fallible humans supported by general guidelines that can be difficult to apply to an individual patient. Of course, over-reliance on data can lead to errors, as it does not take into account the nuances of the consultation.3 Concerns about deskilling of professionals through use of machine learning can be weighed against the potential to mechanise mundane repetitive work, reduce errors, and free up time for patient interaction — the true heart of general practice.
Rather than concentrating on the negative aspects of this technology, we should focus on how machine learning could enhance primary care; specifically here we explore the impact it might have on prevention, diagnosis, and management.
PREVENTION
Three examples, from very different spheres of medicine, illustrate the potential impact of machine learning in the prevention of disease and the promotion of health. Reinforcement learning (active learning from observed behaviours) can develop personalised text messages that improve levels of physical activity, recognising that individuals respond to encouragement in different ways.4
Personalised parameters are also generated by Sentrian™, a system using machine learning to prevent hospital admissions. In patients at risk of avoidable admission it collects information from simple wearable sensors to detect changes suggesting deterioration and then contacts a clinician. This type of technology could revolutionise the community-based care of individuals with serious and complex health needs.
Predicting disease can also aid personalised prevention; recently a neural network improved accuracy of prediction of cardiovascular events over 10 years by 3.6% compared with standard criteria.5 The top 10 predictor variables for the neural network were very different from those of the standard algorithm and included severe mental illness and corticosteroid use, factors that have since been introduced into the latest QRISK®3 calculator.6
DIAGNOSIS
A ground-breaking study showed that machine learning can classify skin cancers with the accuracy of a dermatologist.7 The neural network was trained using 129 450 images of 2032 different skin diseases; the only inputs were the pixels from the images and the disease labels. The resultant system was able to classify melanomas versus benign naevi at least as accurately as dermatologists. There is great scope for similar technology in other areas of health care where rich data are central to diagnosis, such as detecting diabetic eye disease from retinal photographs.8
It is not only in classification of disease that machine learning has been applied; it has also been utilised in case identification. A systematic review showed that analysis of free text in healthcare records by machine learning techniques increases case detection significantly compared with analyses based on recorded codes.9 Embedding software for these algorithms into our clinical systems, providing automatic surveillance partnered with continual learning, could help identify cases across many areas of disease. However, given the relatively low incidence of new disease in primary care,10 it is likely that prompts will have a high false-positive rate, so software developers and clinicians will have to work together to avoid alert fatigue.11
MANAGEMENT
Mobile apps are beginning to utilise the vast amount of ‘exhaust data’ available from your mobile phone. Ginger.io uses information such as the number of text messages sent or how often you leave your house to monitor symptoms of depression. Using machine learning, the algorithm identifies usual personal routines and alerts the user (or pre-arranged healthcare providers) when there is deviation. This approach of analysing divergence from normal behaviour can also be applied to medication management systems. One such system, which learns to detect statistical outliers, can constantly survey electronic records for potential drug errors, for instance, when a patient on NSAIDs develops a high creatinine, and provides alerts for the clinician.12
Machine learning is not only being used by doctors, but also by patients. Ada is one of many apps exploiting it to provide relevant information to patients on the likely cause of their symptoms and subsequent management accompanied by links to NHS Choices. This technology does not aim to replace primary care management of chronic disease, nor provide emergency care, but it does have the potential to enhance self-care.
THE FUTURE
Machine learning already permeates many areas of our life. Health care is not immune from this and nor should we hope to be, as this technology has enormous potential to improve patient outcomes. Instead of being fearful of machines usurping our roles, we should embrace their ability to enhance the care we provide and appreciate the time they can create for doctors to focus on what makes them truly indispensable — human contact.
Notes
Provenance
Commissioned; externally peer reviewed.
Funding
Sarah F Moore is a locally funded Academic Clinical Fellow in a position approved by the UK National Institute for Health Research (NIHR). David J Llewellyn is supported by the Halpin Trust and he and William Hamilton are supported by the UK NIHR Collaboration for Leadership in Applied Health Research and Care South West Peninsula (PenCLAHRC). The views expressed in this article are those of the authors and not necessarily those of the NHS, the NIHR, or the Department of Health.
- © British Journal of General Practice 2018