How Natural Language Processing Could Help Pinpoint Adverse Drug Reactions

Natural language processing is pushing humans and machines ever closer to seamless conversation. Here’s how.

Written by Stephen Gossett
Published on Oct. 04, 2019
How Natural Language Processing Could Help Pinpoint Adverse Drug Reactions

 

Cancer is debilitating enough on its own. A host of common side effects and potential complications only makes things worse.

When Dr. Bernice Kwong realized that many patients at her supportive oncology clinic regularly visited online forums seeking information on and advice for treatment-caused conditions like hair loss and skin rashes, she wondered if there were any way physicians could use the wealth of data on those networks to more quickly discover potential adverse drug reactions.

The study she designed with six co-authors employed a tool that teased out cognitive relationships from patients’ online testimonials using natural language processing (NLP), a subcategory of artificial intelligence in which computers are pushed to analyze and “understand” large amounts of spoken or written language. Called DeepHealthMiner, the tool analyzed millions of posts from the Inspire health forum and yielded promising results.

Dr. Kavita Sarin, an assistant professor of dermatology at Stanford University Medical Center and one of the study's co-authors, told Built In that besides detecting common drug reactions associated with various cancer medications, "we could actually detect them on online health forums earlier than they were published in medical literature."

Because the NLP-analyzed forums reflected understood drug-reaction associations, the study helped confirm the power of technology to monitor drug safety. It also uncovered a “rare, missed adverse drug reaction” that was hiding in plain sight on cancer-support message boards for more than a decade: loss of sweating.

While the condition can be serious, Sarin said, it's not often obvious. 

"A single institution or single physician will not see enough patients to actually be able to detect that that’s a significant adverse reaction.”

While the study merely helped establish the efficacy of NLP in gathering and analyzing health data, its impact could prove far greater if the U.S. healthcare industry moves more seriously toward the wider sharing of patient information. 

“If the United States had a broader electronic medical records sharing, it would open the avenue for natural language processing and deep learning on those medical records,” Sarin said.

For now, though, drug side effects often go undetected until after the medication has gone to market. In fact, nearly a third of drugs approved by the FDA between 2001 and 2010 and made available to the public were discovered to have major safety issues, according to researchers at the Yale School of Medicine. Applied to large datasets of medical testimony, NLP could help solve that problem — and unlock potentially major quality-of-life discoveries in the process.

 

natural language processing drug reaction

Applications that learn and adapt from interactions with human beings face a tricky challenge: human beings. We can be fickle and random, and some of us are outright saboteurs. The most infamous example of the latter is certainly the public reception of Microsoft’s AI chatbot Tay. Unveiled on Twitter and a few messaging apps in March of 2016, it took all of one day of human interaction for Tay to sink from sunny optimist (sample tweet: “humans are super cool”) to a spewer of hateful vitriol. Mama always said: Ugly in is ugly out. 

There’s also some evidence that so-called "recommender systems," which are often assisted by NLP technology, may exacerbate the digital siloing effect.

“The decisions made by these systems can influence user beliefs and preferences, which in turn affect the feedback the learning system receives — thus creating a feedback loop,” researchers for Deep Mind wrote in a recent study. And like that, another echo chamber is born.

One of NLP's most obvious limitations is also frequent among humans: missing the point. Gone are the days of interfaces that literalize colloquial phrases like “he’s on fire” or (eww) “pick your brain,” but getting machines and humans on the same idiosyncratic wavelength isn't easy. Take Shakespeare, for example. Microsoft recently ran nearly 20 of the Bard’s plays through its Text Analytics API. The application charted emotional extremities in lines of dialogue throughout the tragedy and comedy datasets. Unfortunately, the machine reader sometimes had a trouble deciphering comic from tragic — and not in a “don’t know whether to laugh or cry” way.

“The algorithm couldn’t work out whether Hamlet’s mad ravings were real or imagined, whether characters were being deceptive or telling the truth,” a Microsoft reporter wrote. “That meant that the AI labelled events as positive when they were negative, and vice-versa. The AI believed The Comedy of Errors was a tragedy because of the physical, slapstick moments in the play.”

The use of NLP, particularly on a large scale, also has attendant privacy issues. For instance, researchers in the above mentioned Stanford study looked at only public posts with no personal identifiers, according to Sarin, but other parties might not be so ethical. And though increased sharing and AI analysis of medical data could have major public health benefits, patients have little ability to share their medical information in a broader repository.

From the perspective of job security, of course, some NLP shortcomings can seem like saving graces — reminders that even the most advanced chatbot can't render a medical diagnosis, that the most accurate language translation requires human eyes and that Shakespeare scholars won’t soon be automated out of academia.

Which isn't to negate the impact of natural language processing. More than a mere tool of convenience, it's driving serious technological breakthroughs.

As Sarin said of her NLP-powered research, “It’s really just the tip of the iceberg.”

Images via Shutterstock.

Hiring Now
PagerDuty
Cloud • Information Technology • Machine Learning • Software • Automation