Biomedical Natural Language Processing


Biomedical Natural Language Processing

Anna
Welcome back. Today we’re exploring natural language processing, or NLP, in health and biomedical research. NLP is about helping computers work with human language, especially the enormous amount of text found in clinical records, scientific literature, health news, and online communities.

Michael
And health text is especially interesting because it is both abundant and difficult. A clinical note may contain abbreviations, missing dates, medications, symptoms, procedures, and diagnoses all mixed together. Scientific papers are more structured, but they still use complex sentences and specialized terminology.

Anna
Exactly. Consider a clinical note that says something like, “77-year-old male with history of hypertension, coronary artery disease, status post CABG in 1988.” A person familiar with medicine can interpret that as a male patient of a particular age, with certain conditions and a past coronary artery bypass graft. A computer has to identify each fact, understand the abbreviations, and represent when the procedure happened.

Michael
The kind of text matters too. Biomedical literature usually has recognizable sections such as background, methods, results, and conclusions. Health news has its own style and may present scientific findings with a particular slant. Online patient communities add informal language, community-specific abbreviations, and sometimes strong emotional signals.

Anna
A breast cancer community gives a good example. Someone might say they are glad another person found “reggie” and hope she does not consume for the “two-to-one NED.” In that community, “reggie” means regression of a tumor, while “NED” means no evidence of disease. NLP needs to understand both the medical meaning and the community’s special vocabulary.

Michael
And once that language is understood, the system might identify positive sentiment while also extracting the clinically important fact that a tumor had regressed. That shows why NLP is not simply keyword searching. It has to connect expressions to concepts and interpret them in context.

Anna
Let’s move through the major applications. One classic clinical application is automated coding. The input is often a discharge summary or another clinical note, and the system predicts diagnosis codes that represent the visit or support billing.

Michael
This is a difficult classification problem because the input is free text and the label space is huge. ICD-9 had roughly 15,000 codes, while ICD-10 has more than 65,000. The system may need to select several likely codes from a very large, hierarchical taxonomy.

Anna
Another important application is cohort detection. Suppose researchers want to identify every patient in an electronic health record who has peripheral arterial disease. Structured fields can help, but the relevant evidence may appear only in clinical notes, so NLP can be critical for finding the right population.

Michael
NLP also supports clinical decision support. An alert might need to detect a dangerous drug interaction or prevent a prescription for a patient with a particular allergy. Structured EHR fields are useful, but allergies and other important information may be documented in narrative notes rather than in the structured section.

Anna
That is especially important for older or less consistently maintained information. An allergy may be mentioned in a note but missing from the structured record. NLP can bring that narrative information into the logic of a decision-support system.

Michael
A fourth application is data exploration. Clinicians and researchers may have decades of notes for one patient or millions of documents across a population. NLP can identify major problems and organize information into timelines or interactive visualizations.

Anna
For example, a patient-record summarization system can process more than twenty years of longitudinal notes, identify primary problems, and help physicians explore the patient’s history over time. The goal is not just to extract one fact, but to make a large record understandable.

Michael
Data exploration also applies to online communities. In autism-spectrum-disorder forums, researchers can identify named entities in posts and visualize which terms occur together. That can reveal how parents discuss treatments, symptoms, and communication issues.

Anna
Topic modeling is another exploratory technique. Instead of specifying the themes in advance, the method discovers clusters of words that frequently occur together. Applied to more than a century of Science articles, it can reveal topics such as DNA, RNA, sequencing, and proteins, along with relationships between those topics.

Michael
Those topics can also be examined over time. For instance, researchers can track how prominently a term such as “oxygen” appears across the history of a journal. But this is exploratory: the topics and salient terms are not necessarily a literal or complete summary of everything in the corpus.

Anna
NLP contributes to public-health surveillance as well. Researchers can analyze sources such as Twitter, Yelp, and news reports to identify possible disease events or food-borne illness. A Yelp review might mention that someone became sick after eating at a restaurant, but extracting that conclusion requires more than finding the word “sick.”

Michael
The system may need to identify the symptoms, connect them to eating, determine their timing, and decide whether the restaurant could be the suspected source. On social media, the necessary information may also be spread across several messages, requiring the system to resolve references and follow a conversation.

Anna
HealthMap illustrates a related surveillance goal: combining publicly discussed information about diseases with location information. The system must determine which disease is being discussed and where the reported cases or concerns are located.

Michael
Another application is high-throughput phenotyping. The aim is to identify many health conditions across a large patient cohort, potentially all at once rather than developing a separate method for each disease. These approaches can combine text with laboratory tests, medications, and diagnosis information.

Anna
For example, a system might infer evidence of type 2 diabetes from observations across a patient record. In another example, it might identify that antimalarial medications are associated with lupus, which is clinically sensible because antimalarials can be used to treat lupus.

Michael
Predictive analytics is a further area of application. In online mental-health communities, researchers have examined whether language used in depression-related subreddits can help predict movement toward suicide-watch communities within six months. Linguistic features such as word choice and syntax may provide predictive signals.

Anna
In clinical records, predictive models can examine the progression of chronic kidney disease. Some models learn topics in clinical notes together with temporal patterns, identifying groups of words associated with increased or decreased risk. Interpretation matters here, because clinicians need to understand the learned signals rather than receive only an unexplained prediction.

Michael
So why can’t we simply use regular expressions? Regular expressions are useful for matching expected character patterns, but language is ambiguous, variable, and vague. These problems appear at many linguistic levels, from individual words to syntax and discourse.

Anna
Ambiguity means that the same expression can support more than one interpretation. In the headline “San Jose cops kill man with a knife,” the phrase “with a knife” could describe the weapon used by the cops or the man who had the knife. A computer must determine how that phrase attaches to the rest of the sentence.

Michael
Clinical abbreviations create similar problems. In “CA in mother, breast CA,” the first “CA” may mean California, while the second means cancer, specifically breast cancer. CA can also mean calcium, so the system needs context to select the appropriate meaning.

Anna
Language is also variable because people express the same idea in many ways. “Diabetes mellitus 2,” “diabetes,” and “T2DM” may refer to type 2 diabetes, although the word “diabetes” alone does not specify type 1 or type 2. NLP may need to normalize these different forms to one concept while using context to resolve underspecification.

Michael
Syntactic variation creates the same challenge. “John loves Mary,” “Mary is loved by John,” and “The man named John loves Mary” have different structures but convey the same relationship. A useful system must recognize that paraphrased sentences can express equivalent information.

Anna
Context can change the meaning of an otherwise identical word. In a general parenting forum, “drug” may be associated with illicit substances, alcohol, or substance abuse. In an autism community, it may be associated with medications used as treatments. The surrounding words help define the intended meaning.

Michael
The same applies to “language.” In a general parenting forum, it may refer to foul language or bilingual language. In an autism community, it may be connected to symptoms, communication difficulties, or therapies. Modern language models therefore try to represent words through the contexts in which they occur.

Anna
Language can also be vague and require reasoning. Take “MI three weeks ago” and “MI three days ago,” where MI means myocardial infarction. A system has to identify the event, interpret the temporal expression, and place the event on a patient timeline.

Michael
Even the time expression may not be exact. “Three days ago” may indicate approximately three days, while “three weeks ago” could refer to nineteen, twenty, or twenty-one days earlier. That uncertainty matters when studying timelines, adverse drug reactions, or future outcomes.

Anna
Another issue is uncertainty about whether a statement is true. In “Paul thinks that John loves Mary,” the sentence reports Paul’s belief, not a confirmed fact that John loves Mary. Clinical language has similar patterns: “The patient denies smoking” records a denial, but it does not establish with certainty whether the patient smokes.

Michael
Systems also need to recognize humor and sarcasm. If someone tweets that they ate a bowl of Xanax for breakfast, the medication name may be easy to identify, but the statement may be exaggerated, humorous, or sarcastic rather than a literal report. Treating every extracted statement as a verified fact could lead to serious misunderstanding.

Anna
One major approach in health NLP is information extraction, especially named entity recognition. In “Patient should come back if severe facial rash occurs,” a system might identify “facial rash” as a disorder, map it to a medical terminology such as UMLS, recognize “severe” as a modifier, and interpret “if” as indicating a condition rather than a confirmed diagnosis.

Michael
Other modifiers may include negation, uncertainty, the subject of the disorder, disease progression, severity, conditional status, and affected body location. The system must also avoid false interpretations, such as treating “HIV clinic” as evidence that the patient has HIV merely because the term appears in the sentence.

Anna
Building these systems usually involves annotated text. Researchers define what should be extracted, create annotations, assess whether different annotators agree, and test whether the schema works across types of information. The resulting model can then process new text and identify entities together with their modifiers.

Michael
A clinical NLP pipeline may begin with tokenization, then part-of-speech tagging and shallow parsing to identify noun phrases. It can map phrases such as “obesity” and “coronary artery disease” to terminology concepts, while also recognizing that one is a family history and the other is negated.

Anna
Many current named-entity systems use sequence labeling. They examine words in sequence, marking the beginning of an entity and continuing through the words that belong to it. This allows the system to build a multiword entity such as “coronary artery disease” rather than treating each word independently.

Michael
Terminologies and ontologies are central to this work, but they have limitations. UMLS is extensive and well suited to clinical and technical language, yet online communities and Twitter use informal expressions that may not appear in it. NLP can help expand or adapt the vocabulary to the language of a particular corpus.

Anna
A contrasting approach is probabilistic topic modeling, including latent Dirichlet allocation. Instead of requiring detailed labels in advance, it identifies groups of words that tend to co-occur and treats documents as mixtures of topics. Researchers can then interpret those topics as being related to genetics, evolution, disease, or another theme.

Michael
Evaluation depends on the task. For a disease-progression model, task-based evaluation asks whether the system accurately predicts which patients will progress. For core NLP methods, researchers often need gold-standard annotations and intrinsic measures to compare the system’s output with trusted human labels.

Anna
There is no single typical error rate. Performance depends on the task, the corpus, and the terminology. A named-entity system might achieve around 85 F-measure on clinical notes but only around 40 F-measure when the same kind of system is applied to an autism community, where the language differs substantially.

Michael
That is why shared, de-identified benchmark datasets and common evaluation metrics are valuable. They allow different research groups to compare methods on the same texts and annotations. Health NLP has made progress in this area, although privacy concerns make benchmarking more difficult than in some other fields.

Anna
Recent developments include neural networks and deep-learning approaches. Better language models can represent words in context, as well as sequences of words or even sequences of characters. This is useful when terminology varies or when the spelling and form of a term carry information.

Michael
Neural sequence models, including recurrent neural networks, are also promising for tasks such as named entity recognition. They can capture richer and longer-distance dependencies than some earlier approaches, including conditional random-field-based systems.

Anna
Another important direction is learning from mixed modalities, such as text combined with images, laboratory tests, or other patient data. Bringing these sources together can improve understanding and prediction because the text is interpreted alongside structured clinical evidence.

Michael
Researchers are also investigating methods such as adversarial neural networks and reinforcement learning for NLP. Together, these developments reflect a broader goal: not only extracting information from text, but connecting language to other forms of evidence and useful actions.

Anna
We should close with privacy. Work involving online communities, social media, and clinical records must respect the people who wrote the text or are described by it. Many studies use publicly available datasets, but public availability does not automatically mean researchers can freely redistribute the data.

Michael
Researchers may need permission from the people or organizations responsible for an online community, and institutions differ in what they allow after de-identification. There are both research and commercial de-identification tools, as well as publicly available de-identified clinical corpora, but privacy practices remain institution-specific.

Anna
The central message is that language is pervasive, valuable, and difficult to process automatically. Ambiguity, variation, vagueness, uncertainty, and context all complicate interpretation, especially in health care.

Michael
Yet NLP already supports coding, cohort detection, decision support, summarization, surveillance, phenotyping, exploration, and prediction. It remains an active research field, both for improving core language methods and for using biomedical text to discover knowledge, characterize disease and behavior, and improve care.

Ask anything
We've read this whole study set, so questions about it get the best answers.