Biomedical Natural Language Processing
Natural Language Processing in Health and Biomedical Informatics
Natural language processing (NLP) is the use of computational methods to analyze, interpret, and generate human language. In health care and biomedical research, NLP is especially valuable because a large amount of clinically meaningful information is stored as free text rather than in structured databases.
Health-related text sources include:
Clinical notes and discharge summaries
Scientific and biomedical literature
Health news
Online patient and caregiver communities
Social media posts and reviews
Messages and discussions containing symptoms, treatments, or health experiences
NLP can transform these texts into structured information that supports biomedical knowledge discovery, clinical care, public health surveillance, and predictive modeling.
Text as a Source of Biomedical Knowledge
Clinical Notes
Clinical notes contain information about patients that may not appear in structured electronic health record fields. A single note can include:
Patient demographics
Medical history
Procedures and surgeries
Medications
Symptoms
Diagnoses and disorders
Allergies
Family history
Temporal information about past events
Clinician judgments and uncertainty
Clinical text is often difficult for computers to process because it is not written in ordinary conversational English. It contains:
Abbreviations such as
HPIfor history of present illnessAcronyms such as
CABGfor coronary artery bypass graftingSentence fragments
Compressed descriptions
Specialty-specific terminology
Missing grammatical elements
Implicit references to time and clinical status
For example, a note might describe a 77-year-old man with hypertension, coronary artery disease, and a coronary artery bypass procedure performed in 1988. To interpret this correctly, an NLP system must determine:
The patient’s age and sex
Which conditions are present
Which procedure occurred
When the procedure occurred
Whether the information refers to the current patient
Whether the condition is active, historical, suspected, or negated
Clinical notes therefore contain rich information, but extracting that information requires more than simple keyword matching.
Biomedical and Scientific Literature
Scientific articles are more structured than clinical notes. They commonly contain sections such as:
Background
Methods
Results
Conclusions
This structure can help NLP systems identify the role of a passage. However, scientific literature remains challenging because it contains:
Complex syntactic structures
Long sentences
Technical terminology
Detailed relationships between concepts
Claims that may depend on evidence, uncertainty, or experimental conditions
At large scale, NLP can help researchers search, classify, summarize, and compare thousands or millions of publications.
Health News
Health news is an important way that scientific findings reach the public. However, it often presents information with a particular editorial slant. NLP can help analyze health news for:
Trends in reported diseases and treatments
Claims about health risks
Scientific misinformation
Biased framing
Potentially misleading health claims
Fake or unreliable news
A health news article may report that vitamin B12 is associated with increased cancer risk. Determining whether the claim accurately reflects scientific evidence requires more than identifying the words “vitamin B12” and “cancer.” The system may need to examine the source, wording, evidence, causal claims, and degree of certainty.
Online Health Communities and Social Media
Patients, caregivers, and health consumers exchange information in online communities. These sources can reveal:
Symptoms and treatment experiences
Emotional responses
Patient concerns
Informal health vocabulary
Perceptions of disease and treatment
Awareness of symptoms or conditions
Discussions of recovery or disease progression
Online communities often develop their own abbreviations and linguistic registers. For example:
“Reggie” may mean regression of a tumor.
“NED” may mean no evidence of disease.
A person unfamiliar with the community might misinterpret these terms or fail to recognize their medical significance. NLP systems must therefore account for domain-specific and community-specific language.
Applications of NLP in Health Care
Automated Clinical Coding
Automated coding maps information in clinical notes to standardized diagnosis codes. A typical task involves:
Taking a clinical document, often a discharge summary
Comparing its content with a large diagnostic taxonomy
Identifying the most likely diagnosis codes
Returning several likely codes for billing or clinical representation
This is a difficult classification problem for two main reasons:
The input is free text rather than structured data.
The output may contain multiple labels selected from a very large hierarchy.
Earlier ICD-9 systems contained approximately 15,000 codes. ICD-10 includes more than 65,000 codes, making automated classification even more challenging. An NLP system must identify not only the disease terms but also their context, specificity, and clinical relevance.
Cohort Detection
Cohort detection identifies patients who meet particular clinical criteria. For example, researchers may want to find every patient with peripheral arterial disease in an electronic health record.
Structured data such as diagnosis codes, laboratory results, and medications can help, but clinical notes are often essential because:
Diagnoses may be mentioned without being coded.
Historical conditions may appear only in narrative text.
Clinicians may describe symptoms or evidence supporting a condition.
Structured fields may be incomplete or inaccurate.
NLP allows researchers to search clinical notes for relevant diseases, symptoms, procedures, and contextual evidence. Combining structured and unstructured data generally produces more accurate cohorts than relying on either source alone.
Clinical Decision Support
Clinical decision support systems provide alerts, recommendations, or reminders during patient care. NLP can extract information from clinical notes that is absent from structured electronic health record fields.
Examples include:
Detecting allergies documented only in narrative notes
Identifying dangerous drug–drug interactions
Preventing prescription of a medication to which a patient is allergic
Finding historical conditions that could affect current treatment
Incorporating symptoms or clinical observations into decision rules
A patient’s structured allergy list may be incomplete because older allergies or relevant details were recorded in notes instead. NLP can recover this information and make it available to decision-support systems.
Patient Record Summarization and Data Exploration
Health records may contain decades of longitudinal information. NLP can summarize these records by identifying:
Major clinical problems
Diagnoses and symptoms
Procedures and treatments
Important changes over time
Relationships between events in the patient’s history
A record summarization system can combine NLP with interactive visualization. Clinicians can then explore the patient’s timeline rather than reading every note individually.
This type of tool is intended to support—not replace—clinical review. Its value lies in helping clinicians locate relevant information more efficiently.
Exploration of Online Health Communities
NLP can help researchers analyze large collections of posts written by patients, caregivers, or health consumers. A system may:
Identify medically relevant terms using named entity recognition.
Normalize different expressions of the same concept.
Count or compare term usage.
Build networks showing which concepts frequently co-occur.
Visualize the themes and relationships discussed in the community.
For example, an autism-related discussion community may use terms associated with symptoms, therapies, medications, and communication difficulties. A network representation can show which concepts are discussed together and reveal the community’s concerns or interests.
Possible users of this analysis include:
Public health researchers studying health communication
Clinicians examining patient concerns
Researchers investigating treatment perceptions
Organizations assessing awareness of disorders and symptoms
Topic Modeling
Topic modeling is an unsupervised method that discovers recurring themes in a large collection of documents without requiring predefined labels.
A topic model identifies groups of words that tend to appear together. Each document is treated as a mixture of topics, with different topics contributing to different degrees.
For example, a corpus of scientific publications might produce topics involving:
RNA and DNA
Genetic sequencing
Proteins
Evolution
Disease mechanisms
The researcher can then examine how topics relate to one another. A correlated topic model may show that a genetics topic frequently occurs alongside topics involving sequencing or proteins.
Topic modeling is useful for:
Exploring very large document collections
Identifying themes in scientific literature
Discovering patterns in clinical notes
Understanding discussions in online communities
Generating hypotheses before conducting more targeted analysis
Topic modeling is primarily an exploratory tool. Its output should not automatically be interpreted as a literal summary or a verified factual representation of the entire corpus.
Tracking Topics Over Time
Topic modeling can also reveal how themes change historically. For example, a researcher can examine how frequently a topic associated with oxygen appears in scientific publications across many decades.
This can reveal:
The rise or decline of scientific interests
Changes in terminology
Periods of increased attention to a topic
Relationships between historical research themes
The resulting trends represent salient patterns in the data, not necessarily the complete meaning or importance of the topic in every document.
Public Health Surveillance
NLP can support surveillance by analyzing publicly available social media, news, and review data.
One example is identifying possible foodborne illness linked to a restaurant. A system may need to determine:
Whether a person became ill
Whether the illness followed eating
Which symptoms were reported
Whether the timing is consistent with foodborne illness
Which restaurant or location may be involved
This is a complex information-extraction task because the relevant evidence may involve multiple events and relationships.
Social media creates additional challenges:
Information may be spread across a conversation.
Pronouns may refer to people or locations mentioned earlier.
Important facts may not occur in a single post.
The writer may use informal or ambiguous language.
The system may need to resolve coreference and infer relationships.
Health surveillance systems such as interactive disease-monitoring maps can combine news and other public data sources to identify:
Diseases being discussed
Geographic locations associated with reports
Potential outbreaks
Emerging health concerns
High-Throughput Phenotyping
High-throughput phenotyping identifies clinical conditions or patient characteristics across very large populations.
Instead of building one highly specialized method for one disease, researchers may want to identify many diseases or phenotypes at once. These methods can combine:
Clinical text
Laboratory test results
Medications
Diagnosis codes
Other electronic health record data
For example, evidence for type 2 diabetes might include disease-related language in clinical notes, relevant laboratory results, and diabetes medications.
High-throughput phenotyping often resembles topic modeling because it can use unsupervised methods to discover patterns associated with clinical conditions. The discovered patterns can then be interpreted as phenotypes.
For lupus, for example, a model might associate the condition with antimalarial medications. This association can provide evidence that the model has identified a clinically meaningful phenotype.
Predictive Analytics
NLP can use language to predict future events or behaviors.
Predicting Behavior in Online Communities
Researchers can analyze discussions about depression and determine whether a user is likely to later participate in suicide-watch discussions. Linguistic indicators may include:
Particular words
Changes in language over time
Syntactic patterns
Expressions of hopelessness or distress
References to self-harm or suicide
Such models may support early identification of risk, although prediction must be handled carefully because linguistic evidence is probabilistic and may be misinterpreted.
Predicting Clinical Outcomes
NLP can also predict adverse or future clinical outcomes, such as progression of chronic kidney disease.
A predictive model may identify topics in clinical notes that are associated with:
Increased risk of disease progression
Lower risk or potentially protective factors
Changes in clinical status over time
Interpretability is especially important in health care. Clinicians need to understand which concepts or patterns contributed to a prediction, both to evaluate the model and to generate hypotheses for further investigation.
Why Language Is Difficult for Computers
Regular expressions can identify simple, predictable strings, but they cannot adequately represent the complexity of human language. NLP systems require richer models because language exhibits ambiguity, variability, and vagueness.
These properties occur at multiple linguistic levels, including:
Word structure and morphology
Lexical meaning
Syntax
Discourse
Pragmatics
Ambiguity
Ambiguity occurs when an expression has more than one possible interpretation.
Syntactic Ambiguity
Consider the headline:
“San Jose cops kill man with a knife.”
The phrase “with a knife” can be interpreted in at least two ways:
The cops used a knife to kill the man.
The man had a knife when the cops killed him.
This is an example of prepositional phrase attachment ambiguity. A parser must decide whether “with a knife” modifies the noun phrase “man” or the phrase referring to the police action.
Humans may use common sense to prefer one interpretation, but both interpretations are grammatically possible.
Lexical Ambiguity
Clinical text often contains abbreviations with multiple meanings. For example:
“CA in mother, breast CA.”
In this context:
The first “CA” may mean California.
The second “CA” may mean cancer, specifically breast cancer.
In another clinical context, “CA” could mean calcium.
The correct interpretation depends on surrounding words and the domain.
Variability and Paraphrasing
Variability means that the same meaning can be expressed in many different ways.
For example, the following expressions may refer to the same condition:
Diabetes mellitus type 2
Type 2 diabetes
T2DM
However, “diabetes” alone may be underspecified because it does not indicate whether the condition is type 1 or type 2. The system may need contextual information to determine the intended meaning.
Syntactic variability also creates difficulty:
John loves Mary.
Mary is loved by John.
The man named John loves Mary.
These sentences use different grammatical structures but convey essentially the same relationship. NLP systems must recognize that different surface forms can represent the same underlying concept.
Context and Meaning
The meaning of a word depends heavily on the context in which it appears. The same word can have different associations in different communities.
The Word “Drug”
In a general parenting forum, “drug” may co-occur with terms such as:
Alcohol
Marijuana
Substance abuse
Illegal or illicit substances
In an autism discussion community, “drug” may be associated with medications and treatments used by children on the autism spectrum.
The word itself is unchanged, but its surrounding terms reveal different meanings. Modern NLP methods often represent a word through the words that commonly occur near it. These co-occurrence patterns provide a computational approximation of context.
The Word “Language”
In a general parenting community, “language” may refer to:
Foul language
Bilingual language
General communication issues
In an autism community, “language” may refer to:
Symptoms involving language development
Communication difficulties
Speech-related therapies
This demonstrates why a dictionary definition alone is insufficient for understanding text. Meaning must be inferred from the domain, surrounding words, and broader discussion.
Vagueness and Uncertainty
Vagueness occurs when language does not specify an exact value, boundary, or truth status. Clinical and online health language frequently contains vague or uncertain statements.
Temporal Vagueness
Consider:
“MI three days ago”
“MI three weeks ago”
Here, “MI” means myocardial infarction.
“Three days ago” generally refers to a relatively precise time. In contrast, “three weeks ago” may refer approximately to 19, 20, or 21 days earlier rather than exactly 21 days.
This matters because NLP systems may be used to:
Construct patient timelines
Study disease progression
Analyze adverse drug reactions
Predict future clinical events
A system should represent both the event and the uncertainty of its timing. It should not automatically treat every approximate time expression as an exact date.
Attribution and Epistemic Uncertainty
Consider:
“Paul thinks that John loves Mary.”
The sentence does not establish that John loves Mary as a fact. It establishes only that Paul believes or thinks that John loves Mary.
The system must distinguish among:
A fact asserted as true
A fact attributed to another person
A suspected or uncertain fact
A fact explicitly denied
Clinical text contains similar constructions. For example:
“Patient denies smoking.”
This does not necessarily prove that the patient has never smoked. It records that the patient denies smoking, which is a statement about the patient’s report or the clinician’s documentation.
Online health discussions also frequently contain uncertainty:
“I think this is happening.”
“Could this be a symptom?”
“My doctor suspects…”
An NLP system should preserve the uncertainty rather than converting an uncertain statement into a definite fact.
Sarcasm, Humor, and Nonliteral Language
Consider a social media statement:
“I just ate a bowl of Xanax for breakfast.”
The sentence is grammatically well formed, and “Xanax” is correctly recognized as a medication. However, the statement may be:
Sarcastic
Humorous
Exaggerated
A literal report of misuse
A figurative way of saying that the person took a large amount
A surveillance system must recognize that the literal interpretation may not be reliable. Understanding tone, intent, and nonliteral language remains a major NLP challenge.
Major Approaches in Health NLP
Information Extraction
Information extraction converts free text into structured representations of entities, attributes, and relationships.
Named Entity Recognition
Named entity recognition identifies meaningful spans of text and assigns them categories. In a sentence such as:
“Patient should come back if severe facial rash occurs.”
An NLP system may identify:
“Facial rash” as a disorder
“Severe” as a severity modifier
“If” as an indicator of conditionality
The disorder may also be linked to a standardized medical concept in a terminology such as the Unified Medical Language System (UMLS).
Clinical Modifiers
Recognizing a disease name is not enough. A clinically useful system must also capture modifiers such as:
Normalization: Mapping different expressions to a standard terminology concept
Negation: Determining whether the condition is absent
Subject: Determining who has or experiences the condition
Attribution: Determining who stated or reported the condition
Uncertainty: Identifying suspected or possible conditions
Progression or course: Determining whether a condition is worsening, improving, or recurring
Severity: Identifying terms such as mild, moderate, or severe
Conditionality: Recognizing that an event may occur only under a specified condition
Body location: Identifying the anatomical site affected
The phrase “facial rash” contains both a disorder and a body-location modifier. The conditional wording indicates that the patient does not necessarily have a rash; the sentence describes what should happen if one develops.
Avoiding False Entity Interpretations
A medical term may appear in a context where it does not describe a patient’s disorder. For example:
“The patient goes to the HIV clinic.”
“HIV” is a disease-related term, but in this sentence it identifies a clinic rather than asserting that the patient has HIV. The system must consider the surrounding phrase and the function of the term.
Typical Information-Extraction Pipeline
A clinical information-extraction system may use the following stages:
Tokenization: Divide the text into words, symbols, and other units.
Part-of-speech tagging: Assign grammatical categories to tokens.
Shallow parsing: Identify important phrases, especially noun phrases.
Candidate entity detection: Find phrases that may correspond to medical concepts.
Terminology mapping: Link phrases to concepts in a medical lexicon or ontology.
Sequence labeling: Determine the beginning, continuation, and end of multiword entities.
Modifier detection: Identify negation, uncertainty, severity, temporality, subject, and other attributes.
Structured representation: Store the extracted information in a form usable for search, analysis, or decision support.
Sequence-labeling methods identify multiword entities by assigning labels to individual tokens. For instance, a system may identify the beginning of “coronary artery disease,” continue labeling the entity across the phrase, and stop when the phrase ends.
Annotation and Schema Design
Many information-extraction systems depend on manually annotated training data. Human annotators label entities and modifiers according to a predefined schema.
A useful annotation schema should be:
Consistent
Reliable
Clinically meaningful
General enough to apply to multiple texts
Detailed enough to capture important distinctions
Researchers must evaluate whether annotators agree and whether the schema can be applied reliably to new documents.
Terminologies, Lexicons, and Ontologies
Clinical NLP relies heavily on:
Lexicons: Lists of words and expressions
Terminologies: Organized collections of medical concepts and labels
Ontologies: Formal representations of concepts and relationships
The UMLS is a large resource for linking clinical expressions to standardized concepts. However, a terminology may not cover every language variety in the target corpus.
A terminology designed for formal clinical text may perform poorly on:
Patient forums
Caregiver discussions
Social media
Text messages
Informal health conversations
This creates a vocabulary mismatch. NLP can help expand or adapt terminologies by discovering new expressions, abbreviations, and community-specific language.
Probabilistic Topic Models
Probabilistic topic models are unsupervised methods that identify groups of words that tend to occur together.
A document is represented as a mixture of latent topics. A topic is not a directly observed category; it is inferred from word co-occurrence patterns.
For example, one topic may contain words related to:
Genetics
Evolution
Disease
Researchers then interpret the topic based on the words with the highest probabilities.
Topic modeling is useful for exploratory analysis because it does not require researchers to define all possible categories in advance. It can reveal unexpected themes in:
Scientific publications
Electronic health records
Online health communities
Large collections of clinical notes
However, topics require human interpretation. A topic model identifies statistical patterns, not necessarily clinically validated concepts.
Evaluation of Health NLP Systems
Evaluation depends on the purpose of the system.
Task-Based Evaluation
For an application such as disease-progression prediction, evaluation asks whether the system correctly predicts which patients will progress.
Relevant measures may assess:
Correct predictions
Missed cases
False alarms
Ranking of high-risk patients
Performance across different patient groups
Intrinsic Evaluation
Core NLP components such as named entity recognition are often evaluated against gold-standard annotations created by human experts.
The system’s output is compared with the annotated reference to determine how accurately it identifies:
Entity boundaries
Entity types
Normalized concepts
Negation
Temporal information
Other clinical modifiers
A common measure is the F-measure, which combines precision and recall. The appropriate performance level depends on:
The task
The corpus
The terminology
The language style
The target population
The evaluation annotations
For example, a clinical named entity recognition system might achieve an F-measure of approximately 85 on clinical notes but only approximately 40 on an autism-related online community. The difference reflects the mismatch between the terminology and the language of the corpus, not merely the quality of the underlying algorithm.
Benchmarking Challenges
Health NLP has historically had less standardized benchmarking than some other NLP and machine-learning fields. Contributing factors include:
Privacy restrictions
Difficulty sharing clinical text
Differences among institutions
Specialized terminology
Limited access to large annotated corpora
The field has increasingly developed de-identified datasets, shared annotations, common evaluation metrics, and community challenges. These resources allow research groups to compare methods on the same texts and standards.
Current Developments in NLP
Neural and Deep Learning Methods
Neural networks have significantly changed NLP research by improving the representation of language and the ability to model complex dependencies.
Improved Language Models
Modern language models learn contextual representations of words. Rather than assigning one fixed representation to a word, they can represent its meaning differently depending on surrounding words.
This is important for handling:
Ambiguous terms
Domain-specific meanings
Long contexts
Different writing styles
Multiple senses of an abbreviation
Neural models can also represent sequences of words or characters, allowing systems to learn patterns that are not obvious from isolated tokens.
Improved Sequence Models
Recurrent neural networks and related sequence models can be applied to:
Named entity recognition
Medical concept extraction
Clinical event detection
Relation extraction
Temporal interpretation
They can capture long-distance dependencies in text, meaning that a word may be interpreted using information appearing much earlier or later in a sentence or document. Character-based models can also help with spelling variation, abbreviations, and previously unseen terms.
Mixed-Modality Learning
Health data frequently combines multiple modalities, such as:
Text and medical images
Text and laboratory results
Text and medications
Text and diagnosis codes
Text and demographic information
Models that integrate these sources can make better predictions or interpret clinical situations more accurately than models using text alone.
For example, a clinical note may suggest a disease, while laboratory results and medication information provide supporting or contradictory evidence. Combining the modalities produces a more complete representation of the patient.
Adversarial and Reinforcement Learning
Newer machine-learning approaches include:
Adversarial neural networks, which train models through competing objectives and can improve robustness or representation learning
Reinforcement learning, which learns through feedback and may support sequential decision-making or interactive language systems
These methods are still developing but have begun to contribute to NLP research.
Privacy and De-Identification
Health NLP must address privacy because text may contain sensitive information about patients, writers, and other individuals.
Public Online Data
Many studies use publicly available sources such as:
Public health forums
Public social media posts
Public reviews
Public discussion communities
Public availability does not eliminate ethical responsibilities. Researchers must still consider:
Whether users expected their data to be analyzed
Whether individuals could be reidentified
Whether quotations could reveal identities
Whether data can legally and ethically be redistributed
Whether private messages or restricted content are excluded
Data Distribution
Researchers may be able to analyze a public dataset without having the right to redistribute it. Permission may be needed from:
The individuals who created the data
The organization hosting the community
The institution responsible for monitoring or governing the data
Data-sharing policies vary across institutions and projects.
De-Identification
De-identification removes or obscures information that could identify a person. Techniques may target:
Names
Addresses
Dates
Locations
Phone numbers
Medical record numbers
Other identifying details
Both research and commercial de-identification tools exist. However, de-identification is not uniform across institutions. Some organizations permit distribution of de-identified text, while others prohibit redistribution even after identifiers have been removed.
De-identified clinical corpora and publicly available health-community datasets support method development, but privacy protections remain essential throughout collection, analysis, storage, and publication.
Key Takeaways
NLP enables computers to extract and analyze clinically meaningful information from large collections of free text.
Health text appears in many genres, including clinical notes, scientific articles, news, social media, and patient communities.
Important applications include automated coding, cohort detection, clinical decision support, summarization, topic modeling, surveillance, phenotyping, and predictive analytics.
Language is difficult to process because it is ambiguous, variable, vague, context-dependent, and sometimes nonliteral.
Clinical NLP must represent more than disease names; it must also capture negation, uncertainty, attribution, timing, severity, conditionality, subject, and body location.
Terminologies and ontologies are essential but may not cover informal or community-specific language.
Topic models support unsupervised exploration but do not automatically produce verified factual interpretations.
Evaluation must be tied to the task, corpus, terminology, and reference annotations.
Neural networks improve contextual language representations, sequence modeling, multimodal learning, and the handling of long-distance dependencies.
Privacy, de-identification, ethical use, and responsible data distribution are central requirements for health NLP.
NLP remains an active research field with applications in biomedical discovery, disease characterization, behavior analysis, public health, and improved patient care.

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