Concept Architecture
Natural Language Processing Health in Real-World Evidence and HTA
Natural language processing health refers to computer methods that read the written text of health care and research, such as clinic letters, discharge summaries and trial abstracts, and pull from it facts an analyst can count. For a health economist it matters because many model inputs, including who has a condition and when it was diagnosed, are often recorded in narrative notes rather than in codes. NICE ECD20 (2026), the NICE framework on AI methods for evidence, sets apart non-generative methods, which label or pull out existing text, from generative models that write new text. In health technology assessment two common uses are building cohorts and outcomes from electronic health records and helping reviewers screen and extract from published studies, and in both the output is only as trustworthy as its validation.
Why free text matters for real-world evidence
Clinicians can record a finding as a structured code or as narrative text, and the choice is not random. Ford and colleagues note that codes suit billing and incentive schemes such as the NHS Quality and Outcomes Framework, while text is used for uncertain diagnoses, qualifications and psychosocial problems. A study that defines cases from codes alone may therefore miss patients and, where the missed patients differ from the coded ones, bias its findings.
Their systematic review found 67 studies that used the free text of medical records to detect cases of 41 conditions. Most used rule-based algorithms, and rule-based and machine learning extraction showed no clear difference in accuracy. In the 19 studies that compared approaches directly, adding text to codes raised median sensitivity from 62% to 78% and median area under the ROC curve from 88% to 95%, while the gain in positive predictive value was not statistically significant. For analysts using real-world data, the case definition is itself an estimate with an error rate.
How a clinical text pipeline works
A clinical NLP system usually works in stages. The cTAKES system of Savova and colleagues splits notes into sentences and tokens, tags parts of speech, groups words into phrases and then recognises named entities such as disorders, procedures and drugs. Each entity is mapped to a terminology code and flagged for negation and status, such as family history. Its named entity recognition reached an F-score of 0.715 for exact spans and 0.824 for overlapping spans, so even a purpose-built clinical system misses or misplaces a share of mentions.
Negation is a long-standing problem, since a note reading "no evidence of pneumonia" contains the keyword but describes its absence. Chapman and colleagues built NegEx, a simple regular-expression algorithm, and tested it on 1,235 findings in 1,000 sentences from discharge summaries. In identifying negated findings, NegEx reached a specificity of 94.5% against 85.3% for a simpler baseline and a positive predictive value of 84.5% against 68.4%, while its sensitivity was 77.8% against 88.3%.
Methods have since moved towards learning from data. Devlin and colleagues introduced BERT, a transformer model pre-trained on unlabelled text that reads context on both sides of each word and can be fine-tuned for a new task by adding one output layer. The NICE ECD20 glossary places BERT among non-generative NLP methods. Its contextual vectors are a form of text embedding, whereas a large language model also generates new text, which brings the risk of output that is not in the source.
NLP in evidence synthesis under NICE ECD20
NICE ECD20 (2026) grades AI use as support, semi-automation or full automation, and its positions on NLP sit mostly at the support level. For title and abstract screening in a systematic review, rule-based or statistical NLP may pull relevant verbatim text from each abstract for a human reviewer to weigh. The framework does not regard generative AI as reliable for this job because it can change or drop information, and where AI is used only as support, scores estimating how likely a record is to be included should not set a fixed exclusion cut-off.
The same pattern applies to data extraction, where non-generative NLP can highlight the passages holding each data element so that a reviewer extracts the value, and ECD20 does not currently recommend generative AI as a support tool for extracting text. ECD20 also notes that non-generative NLP has suggested Medical Subject Headings terms for searches for years. Trained text classifiers, the subject of the Classification Task and Non-Generative AI pages, are also used in screening, and ECD20 names Cochrane's randomised controlled trial classifier as a validated and established tool.
NLP in real-world evidence and economic models
ECD20 accepts NLP for drawing information from unstructured data in primary evidence generation, provided the NICE real-world evidence framework (ECD9) is followed. Since its September 2025 update, ECD9 asks that rules for deriving a variable from free text state the context they handle, such as negation and timing. For an algorithm it asks for the model type and version and a validation study that reports agreement between annotators, how the test data differ from the analytic data, metrics such as sensitivity and positive predictive value, and the likely effect of errors.
In an economic evaluation, extracted variables become model inputs. A case definition sets the prevalence used in a budget impact analysis and the number of patients counted in a cost-of-illness study. Ford and colleagues cite a UK study in which the estimated date of diagnosis changed substantially once text was added to codes, which would move any time-to-event input built from it. Such errors are a form of misclassification and information bias. Where AI supports the health economic evaluation itself, for example by suggesting parameter values, ECD20 allows it only as support, with a human checking each suggestion before it enters the model.
Worked example of case detection from codes and text
All numbers in this example are illustrative, and the two sensitivities echo the medians in Ford and colleagues' review. A primary care database holds 100,000 adults, of whom 1,000 have a chronic condition, a prevalence of 1%, and each case costs the health service GBP 2,500 a year.
where is the sensitivity of the case-finding algorithm, is its positive predictive value, is the number of true cases it flags, is the number of true cases it misses and is the number of people without the condition that it flags.
where is the corrected estimate of the number of true cases and is the number of records the algorithm flags.
1. Codes only. The coded algorithm flags 620 true cases and 20 people without the condition, so is 640. Sensitivity is 620 / 1,000 = 0.62 and positive predictive value is 620 / 640 = 0.969.
2. Codes plus NLP on the notes. Adding text flags 780 true cases and 60 people without the condition, so is 840. Sensitivity is 780 / 1,000 = 0.78 and positive predictive value is 780 / 840 = 0.929.
3. Naive prevalence. Counting flagged records gives 640 / 100,000 = 0.0064, or 0.64%, from codes and 840 / 100,000 = 0.0084, or 0.84%, with text, against a true 1.00%.
4. Annual cost. The coded count gives 640 × 2,500 = GBP 1,600,000 and the combined count gives 840 × 2,500 = GBP 2,100,000, against a true GBP 2,500,000. The shortfalls are GBP 900,000 (36%) and GBP 400,000 (16%).
5. Correcting with validation results. For codes, is the 620 true cases flagged, and 620 / 0.62 = 1,000. For codes plus text it is 780, and 780 / 0.78 = 1,000. Both recover the true count, but only because the two measures are exactly right for this database.
6. A validation that does not transfer. Suppose the NLP was validated elsewhere at 0.78 and 0.929, but here it finds only 700 true cases while still flagging 60 people without the condition, so is 760. Applying the external values gives 760 × 0.929 / 0.78 = 905 cases, an undercount of 95, or GBP 237,500 a year.
7. Interpretation. Adding text cut the cost shortfall by more than half at a small loss of positive predictive value, but the correction depends on a local validation. If cases found only in notes are milder than coded ones, the mean cost per case from a coded cohort is also wrong, an error a count correction does not fix.
NLP beside nearby terms
NLP in health is a branch of artificial intelligence in health. It overlaps with Machine Learning in Healthcare without sitting inside it, since rule-based systems such as NegEx learn nothing from data, and deep learning health covers the neural network models now common in clinical NLP. Generative NLP is often grounded in source documents through retrieval-augmented generation, while concepts mapped to an ontology can be linked into a knowledge graph.
Informatics reports precision and recall where medicine reports positive predictive value and sensitivity, and the F-Score combines precision and recall into one number. Ford and colleagues note that specificity is not used in informatics outside biomedicine.
Limits and common misreadings
Clinical text is hard for software to process. Kreimeyer and colleagues point to poor structure, heavy shorthand and specialist vocabulary, and Ford and colleagues note that most text tools are trained on edited text such as newspaper articles. Free text is also harder to de-identify than coded fields, and in about half the studies in Ford's review the algorithm was written for that study alone.
A frequent misreading is that high sensitivity and specificity guarantee a usable case list. Ford and colleagues give the case of a condition with 1% prevalence and an algorithm with 98% sensitivity and 97% specificity. Among 10,000 people, 98 of the 100 with the condition are flagged, as are 3% of the 9,900 without it, or 297 people, so positive predictive value is 98 / 395 = 0.248, or 24.8%.
A keyword count treats negated mentions as positive, which NegEx-style context handling exists to prevent. Human annotation is not a perfect gold standard either, and ECD20 warns of benchmark bias when human outputs are treated as the truth. Swapping non-generative NLP for a generative model in a support role also changes what NICE will accept, since ECD20 does not regard generative AI as reliable for pulling verbatim text to support screening and does not currently recommend it as a support tool for extracting text.
Sources
- Chapman WW, Bridewell W, Hanbury P, Cooper GF, Buchanan BG. A simple algorithm for identifying negated findings and diseases in discharge summaries. Journal of Biomedical Informatics. 2001;34(5):301-310. https://doi.org/10.1006/jbin.2001.1029
- Devlin J, Chang MW, Lee K, Toutanova K. BERT: pre-training of deep bidirectional transformers for language understanding. Proceedings of NAACL-HLT 2019. Association for Computational Linguistics; 2019:4171-4186. https://aclanthology.org/N19-1423/
- Ford E, Carroll JA, Smith HE, Scott D, Cassell JA. Extracting information from the text of electronic medical records to improve case detection: a systematic review. Journal of the American Medical Informatics Association. 2016;23(5):1007-1015. https://doi.org/10.1093/jamia/ocv180
- Kreimeyer K, Foster M, Pandey A, et al. Natural language processing systems for capturing and standardizing unstructured clinical information: a systematic review. Journal of Biomedical Informatics. 2017;73:14-29. https://doi.org/10.1016/j.jbi.2017.07.012
- National Institute for Health and Care Excellence. AI methods for evidence framework (ECD20). Published 9 November 2026. Introduction, primary evidence generation, evidence synthesis and health economic evaluation chapters, and Appendix A. https://www.nice.org.uk/corporate/ecd20
- National Institute for Health and Care Excellence. NICE real-world evidence framework (ECD9). Published 23 June 2022, updated September 2025. Assessing data suitability chapter. https://www.nice.org.uk/corporate/ecd9/chapter/assessing-data-suitability
- Savova GK, Masanz JJ, Ogren PV, et al. Mayo clinical Text Analysis and Knowledge Extraction System (cTAKES): architecture, component evaluation and applications. Journal of the American Medical Informatics Association. 2010;17(5):507-513. https://doi.org/10.1136/jamia.2009.001560
Related Concepts (7)
Library
Publications
2
RobotReviewer: evaluation of a system for automatically assessing bias in clinical trials — Marshall IJ, Kuiper J, Wallace BC, Vol. 23, No. 1, pp. 193-201 ed., 2016 (Journal of the American Medical Informatics Association)
Evaluates RobotReviewer for automated risk of bias assessment of trials, an early non-generative AI tool.
Journal ArticleView source →Using text mining for study identification in systematic reviews: a systematic review of current approaches — O'Mara-Eves A, Thomas J, McNaught J, et al, Vol. 4, No. 1, Article 5 ed., 2015 (Systematic Reviews)
Much-cited review of text mining to find studies for systematic reviews, on which later AI screening work builds. The publisher has issued an erratum to this article.
Journal ArticleView source →
Frequently Asked Questions (6)
What is natural language processing in health?
Natural language processing health, or NLP in health care, uses software to turn free text such as clinic notes into structured data for research and HTA.
Source: Kreimeyer et al. 2017
What understanding of human language does natural language processing in health enable?
The understanding is practical and narrow, since the software finds and labels facts in text instead of grasping meaning as a clinician does. The clinical systems reviewed by Kreimeyer and colleagues generate structured information from unstructured free text, typically by recognising mentions of conditions, procedures or drugs and recording them in a standard form. Context still has to be handled, because a note reading "no evidence of pneumonia" contains the keyword while describing its absence. Kreimeyer and colleagues point to the poor structure, heavy shorthand and specialist vocabulary of clinical text as reasons the task is hard.
Source: Kreimeyer et al. 2017
What does natural language processing in health enable computers to do?
The main gain is that facts recorded only in narrative notes, such as who has a condition, become data an analyst can count. Ford and colleagues reviewed 67 studies that used the free text of medical records to detect cases of 41 conditions, most with rule-based algorithms. In the 19 studies that compared approaches directly, adding text to codes raised median sensitivity from 62% to 78% and median area under the ROC curve from 88% to 95%, while the gain in positive predictive value was not statistically significant. Clinicians tend to use text for uncertain diagnoses, qualifications and psychosocial problems, so codes alone can miss patients.
Source: Ford et al. 2016
What is natural language processing in health applied to?
Two common uses in health technology assessment are building cohorts and outcomes from electronic health records and helping reviewers screen and extract from published studies. For title and abstract screening, NICE ECD20 (2026) accepts rule-based or statistical natural language processing as a support tool that pulls relevant verbatim text from each abstract for a human reviewer to weigh. In data extraction it can highlight the passages holding each data element so that the reviewer extracts the value. The framework also notes that non-generative methods have suggested Medical Subject Headings terms for literature searches for several years.
Source: NICE ECD20 (2026)
What kind of thing is natural language processing in health?
Health NLP belongs to artificial intelligence in health and covers methods ranging from hand-written rules to models learned from data. NegEx, a simple regular-expression algorithm for spotting negated findings, learns nothing from data, so natural language processing overlaps with machine learning without sitting inside it. The NICE ECD20 (2026) glossary separates non-generative methods, which analyse, classify or extract existing text, from generative models that write new text, and it places rule-based methods, statistical methods and BERT in the non-generative group. The split has practical weight, since ECD20 does not regard generative AI as reliable for pulling verbatim text to support screening.
Source: NICE ECD20 (2026)
How does natural language processing in health relate to artificial intelligence in health?
Natural language processing is the branch of artificial intelligence in health that works on written language, such as clinic letters and discharge summaries. When its output feeds real-world evidence for NICE, the reporting expected is set by the real-world evidence framework, ECD9. Since the September 2025 update, ECD9 asks that rules for deriving a variable from free text state the context they handle, such as negation and timing in clinical notes. Where an algorithm does the extraction, the submission should give the model type and version and a validation study reporting agreement between annotators, metrics such as sensitivity and positive predictive value, and the likely effect of model errors on the analysis.
Source: NICE ECD9 (2022, updated 2025)
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 21 Nov 2026
Content version: 1.0.2
Canonical Identity
- Term code
- HS-SS_DH-047
Stable URI · Machine-readable · Resolvable · CC BY 4.0
