The Amazon tool no doctors know about — but could change everything

Dr. Matt, MBBS BSc
Jun 30, 2019 · 6 min read

Amazon has come a long way since it started with book sales out of Jeff Bezos’ garage. The tech giant is investing heavily in its online capabilities and amazon web services is by far the biggest provider of cloud computing services. This is of little interest to most doctors. However, the companies recent foray into the field of healthcare, Amazon Comprehend Medical, is a tool that few doctors have heard of, but could change every aspect of our practice.

Image for post
Image for post

Amazon Comprehend Medical is a natural language processing service (you don’t need to worry about the details) designed to help medical practitioners extract useful medical information from unstructured (prose) text. Basically, it can read text, and extract useful information from it.

What it does

Image for post
Image for post

Amazon Comprehend Medical will take any unstructured text and return it in a useful structured format. The service will extract medications (with their doses), medical conditions, tests, treatments, procedures, anatomy and protected health information and return it in a format in which it can be analysed as below.

Image for post
Image for post

This is not new, but the approach that amazon has taken means anybody can use this service. You need no prior computer science knowledge, and not a line of code in sight (at least for simpler implementations of the service).

What can you use it for?

Extracting usable information from unstructured text has always been a challenge — and considering this is how most medical information is stored it has hampered research and deep learning within this field. Until now!

Using Amazon’s service any medical practitioner can extract important information from text and analyse it for relationships between content. I have listed possible use cases below, but the list is far from exhaustive.

Does it work

I wanted to challenge the service by writing in pure prose using some terms that may be difficult to detect. I settled on using a clinic letter and wrote the following mock letter to feed into the service:

Thank you for your referral for Ms Jane Dow, a 42 year old lady, to my Endocrinology clinic today. You referred her to my clinic due to increased anxiety and a swelling within her neck. You found an increased T4 level with depressed TSH.

Ms Jane Dow has been suffering with ongoing anxiety and difficulty sleeping. In addition to this, she has noted an increased sensitivity to heat with excessive perspiration. On examination of Ms Dow I noted an increased heart rate at approximately 105 bpm. There is a large nodular goitre anterolaterally to the left of her neck. It is not hot to touch and does not move on swallow. There is no exophthalmos.

Ms Dow reports that her Mother suffered from thyroid dysfunction, though she is unsure of the exact diagnosis and whether this was a hyper- or hypothyroid condition.

I will arrange for Ms Dow to have further blood tests including thyroid stimulating immunoglobulin, stimulating hormone receptor antibody and anti-thyroid peroxidase antibody. I will also arrange an ultrasound thyroid scan.

I have started Ms Dow on Propranolol 10mg TDS to control her current symptoms until a definitive diagnosis is found.

Yours Sincerely,
Dr Smith

And here is what Amazon Comprehend Medical returned:

Image for post
Image for post
Image for post
Image for post

So yes, it definitely works, to an impressive degree of accuracy. I was impressed with the ability of the system to detect phrases such as ‘increased sensitivity to heat’ as a symptom. Also by its ability to detect the link between frequency and symptom. For example, increased heart rate is a symptom but it has also correlated this to 105 bpm within the same phrase. I deliberately used abbreviations such as T4 instead of thyroxine, and again, the service had no problems detecting this.

One criticism I have, which you may have already spotted, is it’s inability to separate entities such as family history. In the document I have stated that the patients’ Mother has a thyroid condition, however, you can see that the service has only detected the diagnosis, and not its relation to the patients Mother.

Despite this, the analysis is impressive and is undoubtedly at a point to use in industry level projects and research.

How can you use it

Amazon Medical Comprehend is part of the Amazon Web Services toolkit. To start using the service today you simply need to sign up for an account, which you can do here.

Image for post
Image for post

Once signed up you can begin using all amazons web services straight away. There is no monthly fee for Amazon Comprehend Medical, you pay only for what you use. More information on costings for the service can be found here (they vary depending on which API you use). Simply, it is charged per unit of 100 characters at a rate of $0.01 per unit. So analysing a 10,000 word document would cost as little as $1.00.

It is worth noting that in the first 3 months of your subscription there is a free tier of 25k units of text (2.5M characters). Meaning you can analyse 2.5 million characters in the first 3 months, completely free. To put that in context, the average novel is approximately 200,000 characters, so you’re unlikely to run out quickly, unless you have a very large dataset.

Analysing audio and images

It is often the case that your data is not in an a format you can directly analyse, especially in healthcare. Perhaps you have letters that have been scanned into a database, so losing text data. Or maybe you have hours of audio content you want to analyse. By combining with other amazon services you can solve most of these issues with minimum effort.

In Summary

Amazon Comprehend Medical service is likely to revolutionise the way we interact with data, and has implications that span all aspects of healthcare.

There is no better time to start experimenting with this service, as its implementation is relatively new and there will be many use cases for such a tool that have yet to be discovered.

I will post an example application for those interested in integrating this tool into there applications in the near future, make you sure you follow Doctors in Tech to get notified on all our content.

Doctors in Tech

Technology is changing the face of healthcare.

Dr. Matt, MBBS BSc

Written by

Medical Doctor | Medical Technology | Neurology | Published Researcher | While I have your attention, you may as well scroll down.

Doctors in Tech

Technology is changing the face of healthcare. In this publication we discuss the latest healthcare technologies, as well as bringing you coding tutorials that you can use to innovate and research today.

Dr. Matt, MBBS BSc

Written by

Medical Doctor | Medical Technology | Neurology | Published Researcher | While I have your attention, you may as well scroll down.

Doctors in Tech

Technology is changing the face of healthcare. In this publication we discuss the latest healthcare technologies, as well as bringing you coding tutorials that you can use to innovate and research today.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store