Approach to machine learning for extraction of real-world data variables from electronic health records
Paper · 2023 · Blythe J. S. Adamson, Michael Waskom, Auriane Blarre et al.
Summary
An electronic health record can contain the answer to a research question without offering a field that a researcher can use. A pathology report may describe the type of cancer, a scanned laboratory report may contain a biomarker result, and a visit note may explain when a patient stopped an oral treatment. To study these details across a population, researchers need to turn information recorded in different places and formats into consistently defined variables. Adamson and colleagues describe how they used machine learning to do that in oncology.
The authors start with values that trained clinical experts have already collected by reviewing patient charts. These values give the automated system examples of what to extract. For each variable, clinicians choose terms that can lead directly to the relevant documentation. Software searches for those terms, reads the surrounding sentences, and identifies dates where applicable. The extraction procedure uses context to distinguish, for example, a statement that cancer is advanced from a statement denying it. Its task is to recover what the chart documents. It leaves future events and undocumented clinical facts outside the task.
The examples center on non–small cell lung cancer (NSCLC), the first cancer setting in which the authors developed these applications. The paper reports that 10 extractors produced 20 research variables. These covered initial and advanced or metastatic diagnoses and their dates, stage, histology, smoking history, primary surgery, biomarker results and their dates, and oral treatments and their timing. For non-squamous histology in patients with NSCLC, the authors report sensitivity of 96% and positive predictive value of 94% against expert chart review. The first figure describes how often extraction recovered cases that reviewers had assigned to that category. The second describes how often reviewers agreed with an assignment made by the extractor.
The authors also point to studies that reran selected oncology analyses using automatically extracted variables in place of expert-reviewed values and reached similar conclusions. Those studies address whether the variables can serve a particular research purpose when used together. The paper itself provides a methods overview, selected examples, and a limited account of numerical performance. Its clearest result is that an automated procedure trained on expert review can recover several kinds of documented oncology information, with the strength of the evidence varying by variable and intended use.
Deep dive: Approach to machine learning for extraction of real-world data variables from electronic health records
Adamson and colleagues explain how they turn oncology notes and reports into structured research data and check the results against expert chart review. · about 34 minutes to read
The problem and its context
Why the chart and the research dataset differ
A clinical record is assembled as a patient receives care. A clinic visit can leave a note and a set of vital signs. Testing can produce both a structured entry and a report filed as a document. A patient or a member of the care team can communicate information that later matters to a study. Adamson and colleagues are interested in what happens when a researcher asks for a consistently defined answer across these records. The chart may be detailed enough to answer the question, but someone still has to identify the relevant evidence, decide which event it describes, and put the answer in a form that can be analyzed.
The paper distinguishes information stored in pre-defined fields from information stored in documents. The structured part of the database includes such items as visits, diagnosis codes, medication orders, and medication administrations. The unstructured part includes visit narratives, pathology reports, and scans of laboratory reports. The difference concerns how a researcher can get at the information. A report saved as a scan can have a consistent layout and be easy for a clinician to read, yet its contents may still be unavailable to someone querying database fields. Recovering a defined item from material like this is a problem in information extraction.
Some structured values are useful proxies, meaning researchers can use them as indirect indicators of the event they actually care about. A cancer diagnosis code, for example, can help locate charts of interest because codes are recorded for billing. But defining a diagnosis and its date requires an account of which recorded evidence qualifies under the study's definition. The paper therefore uses a cancer code as part of the entry criteria for a broad cohort while treating diagnosis extraction as a separate task. The code helps locate possible cases. The diagnosis variable records what the relevant clinical documentation supports.
Oral therapy shows another way the chart can frustrate a simple lookup. A medication order tells a researcher something was prescribed. A treatment history can also depend on when the patient began the drug, when it was held, and when it was discontinued. The authors explain that oral prescriptions are frequently filled outside the clinic, and that visit notes or patient communications can contain information needed to establish the timeline. For this use, a long list of prescriptions and a set of documented treatment intervals represent different things. The interval requires evidence about the patient's course of care in addition to the name of the drug.
These examples explain why the paper treats curation as part of the research method. Real-world data are the information assembled from settings such as routine clinical care. Real-world evidence is what researchers can establish by analyzing such data. Before analysis can support a conclusion, the input variables need definitions that can be applied consistently across patients. The paper identifies several dimensions of quality that matter, including how recent and complete the data are, whether the source of an item can be traced, and how well the data represent a population relevant to the question. Recovering more text-derived variables can improve clinical detail. It still leaves researchers to decide what those variables measure and which patients they describe.
What expert review supplied
The authors call the work done by a trained reviewer abstraction. An abstractor examines a chart, follows the policies for a particular clinical variable, and enters the value supported by the record. In the process the paper describes, oncology nurses and tumor registrars can consider multiple forms of documentation. Medical oncologists oversee the program, and audits help monitor how consistently abstractors apply the rules. The software used in review also links curated values back to their supporting documents so that someone can revisit the source.
The rules are important because familiar clinical words can conceal several possible definitions. A variable for surgery can refer to a procedure intended to remove the primary tumor, while a broader search for surgery might pick up any operation mentioned in the chart. A variable for smoking history can ask whether the patient ever smoked, with a separate outcome when the evidence is insufficient. The abstractor's answer reflects the definition and the documented history together. In this paper, the automated procedure is trained to approximate that work for selected variables.
Expert review had already provided considerable clinical depth. The authors say that data had been manually abstracted for more than 300,000 people with cancer to build disease-specific research databases. They also describe millions of patients in their database whose unstructured records had yet to be curated at that depth. Their example of the labor involved is explicitly hypothetical. If defining a variable required 30 min of review for each patient, the paper estimates that 100 full-time abstractors would need more than 7 years to cover 3 million patients. This illustrates the scale of the review problem. It is separate from the paper's evidence about how quickly any of the extraction procedures ran.
The pressure to update variables adds to the pressure to cover more patients. As biomarkers and treatments change, a dataset that was adequate for an earlier question may lack fields for a new one. Patients with a particular combination of disease characteristics and treatment can also be too few for some research questions, especially if only a subset of their charts has been reviewed. The authors' interest in automation is therefore about the range of questions a curated dataset can support, as well as the number of charts that can be processed.
Earlier approaches and the case for transparency
The paper situates its work among prior efforts to obtain clinical facts and timelines from notes. Its cited examples include research on locating events in longitudinal clinical documentation, identifying metastatic recurrence, and finding treatment intervals. An earlier effort by the authors and their colleagues defined drug intervals from clinical notes, prescriptions, and communications. Their biomarker work also had an earlier version that used regularized logistic regression, a statistical classification approach whose fitted parameters are constrained during training. The paper draws on these lines of work to explain a common development process across several variables.
The paper also names related problems it sets aside. An alert meant to support a clinical decision during care has a different objective from a variable built for retrospective research. Predicting a future health event, mapping laboratory entries into a common vocabulary, and selecting a patient cohort with automated assistance are also distinct problems in the authors' account. The approach described here starts with documentation that already exists and asks which value it supports under a pre-defined rule.
A second reason for writing the paper was to explain the curation process to people who use the resulting data. The authors cite guidance from the United Kingdom's National Institute for Health and Care Excellence that calls for clear descriptions of how variables are obtained from unstructured records, whether by people or by software. A researcher evaluating a study needs to understand both the clinical meaning of its variables and how they were produced. The paper responds by describing where the evidence comes from, how expert labels guide development, and how the authors judge whether the resulting values are usable in research.
The method, step by step
Define the variable and establish a reference
The authors begin by identifying a variable that is useful in retrospective oncology research, is inconsistently available from claims or structured record fields, and has enough reliable expert-reviewed examples to support development. These criteria make the choice practical as well as clinical. If reviewers have already applied a clear definition across many charts, developers can use the answers to train an extractor and assess where it departs from the reference. If the definition is vague or the labeled examples are scarce, more powerful text processing leaves those problems unresolved.
A label is the reference value taken from expert abstraction. A class is an answer the variable is allowed to take. A yes-or-no question about metastatic diagnosis has a different output from a histology variable with several unordered classes. Cancer stage has an ordering, and a treatment date calls for a date value. The paper treats the clinical fact and its associated date as related outputs that can be obtained together, separately, or in a sequence where an earlier output informs a later one.
The distinction between label and input matters. The expert's answer provides feedback during development. The material examined by the extractor comes from the chart. An expert may establish the answer by reading documents across the patient's history, while the automated procedure receives selected pieces of text and features derived from them. The task is to learn which documented clues lead to the same variable value the reviewer assigned. Once the authors describe a value as fully extracted, its assignment comes from the automated procedure, which can include rules, without individual confirmation by an abstractor.
From oncology chart documents to a research variable
The steps in order.
Find text that can answer the question
Clinical experts make a list of terms and phrases for each target variable. For histology, the authors give examples of terms that name the concept or a possible cell type. They exclude terms for treatments or tests from which histology could merely be inferred. This restriction puts part of the clinical definition into the search itself. A therapy might be associated with a particular tumor type, but a sentence about that therapy can enter a different discussion from a pathology statement identifying the tumor.
The computer searches relevant unstructured documents for sentences that match the clinical vocabulary. For PDFs, faxes, and scans that contain text as an image, optical character recognition makes written characters available as searchable text. The next step concerns language. Detecting the target word tells the system where to look. Interpreting its surrounding words helps decide whether the clinician affirmed the finding, denied it, or mentioned it as a possibility. The paper describes this use of natural language processing.
The sentence-level search is a way to select evidence from records that can run to hundreds of pages. It gives the extractor a manageable piece of language while preserving more of the clinical statement than a list of matched keywords would. A term associated with advanced disease can appear in a sentence that explicitly denies advancement. Similarly, a stage label can appear in a chart that includes reassessment and mentions different stages. In each case, the target word is useful for finding text. Its interpretation depends on the statement around it and, for the stage example, sometimes on which point in the patient's history the statement describes.
Where the task requires dates, the document processing also identifies dates associated with the selected sentences. The method encodes features intended to represent the wording, the document structure, and the chronology. The paper describes this general representation without giving a feature specification for every variable. Its examples show why there is a temporal component. The event of interest might be a diagnosis, the return of a test result, or the start of a medication. A date that appears near a clinical term still has to be interpreted in relation to that particular event.
The source of a useful sentence can vary by task. For smoking, the authors say relevant sentences were most often in the social history portion of encounter notes. For biomarker results, a laboratory report can hold the actual result, while a visit note can hold the clinician's interpretation. For oral treatment, a visit note can describe a start or interruption relevant to the treatment interval. The method therefore combines a shared way of processing documents with evidence selection geared to the clinical question.
Fit the extractor to what the reviewers found
The paper describes the usual division into training, validation, and test data. On the training set, the procedure reads the selected chart information, produces an answer or score, and receives feedback based on the expert label. Its adjustable parameters change in response to errors. The purpose is to fit the association between the documentation and the variable definition across many labeled examples. The authors select these examples from disease-specific or broader cancer cohorts according to the intended application.
The validation set contains patients whose data were kept out of training. The developers use validation metrics and individual error review to judge candidate approaches. This can lead to changes in search terms, document processing, or the choice of architecture. For example, if a review of mistakes points to the words around a term as crucial to interpreting it, developers can evaluate a way of representing that context. If the filtering step fails to supply the relevant sentence, improving the subsequent classifier alone would leave that case unresolved. These are different sources of error, even when they lead to the same wrong output.
Among the architectures considered are long short-term memory networks, gated recurrent units, and BERT. The paper illustrates the first of these, often abbreviated LSTM. In its explanation, words are processed in sequence. An internal state carries information from earlier in the sentence, so a later word is interpreted in light of what the system has already read. The illustration shows a bidirectional arrangement that forms contextual representations of the words. For the paper's clinical example, the earlier expression of negation can influence how a term about advanced disease is interpreted. A useful representation of that term thus depends in part on the words surrounding it.
The authors use the architectures as options for particular extraction problems. Their procedure includes comparing validation performance and inspecting mistakes before choosing which candidate to keep. The account gives the reader a reason for using methods that can process sentence context. It provides no universal assignment of an architecture to each type of clinical variable, and it treats the composition and quality of the labeled data as major influences on performance.
Turn scores into patient-level values
For classification, the paper describes scores between 0 and 1 for the possible classes. One way to obtain a discrete answer is to pick the class with the highest score. Another is to impose a threshold on the score for a class. In notation, the threshold rule described in the paper is:
s(c) > τ
Here, s(c) is the score assigned to class c for the case under consideration. The symbol τ is the threshold chosen for the decision, and > means that the score must exceed it for that class to be assigned under this rule. The paper gives 0.5 as a natural default threshold for binary variables. It also explains why developers might choose a different cutoff empirically, depending on the distribution of the classes and the relative consequences of the two kinds of error.
An extractor can encounter several statements with different implications for the same output. The authors give the example of a patient whose cancer is being restaged. A record can contain more than one plausible stage, and uncertainty about the reassessment can leave multiple classes with moderate scores. A highest-score rule would still choose a value. A threshold can be used to require stronger support before making an assignment. The paper also describes deferral to an abstractor as an option for uncertain cases. A value settled by that route belongs to a process with human review, while the fully automated values discussed here receive their assignments from extraction.
The paper distinguishes scoring evidence from producing a value for a patient. A document can be evaluated for whether it contains a particular type of evidence, as in biomarker reporting. A later part of the procedure can determine the corresponding result and date. For diagnosis, separate extractors can be linked so that the output of an earlier step becomes an input to the next. The authors use this arrangement to reduce conflicting assignments among related diagnosis variables. This is a reason to design the handoff between tasks, even when each one can be described on its own.
Adapt the workflow to the clinical variable
For diagnosis, the authors work with initial, advanced, and metastatic disease and the dates associated with those events. The extraction tasks use longitudinal documentation, which can include statements written at different moments about different milestones. The paper describes separate extractors for related diagnosis variables and illustrates the metastatic diagnosis and date workflow conceptually. The distinction between identifying an event and placing it on a timeline matters here. Even a correct identification of metastatic disease does not, on its own, establish the date that belongs in a study variable.
Stage and histology illustrate different ways a variable can be shared across cancers. The NSCLC stage application was designed to capture the main stage, I-IV, and substages A-C. Because the authors found that stage is documented in similar ways across solid tumors, they also trained a version using patients with several cancers. For hematologic cancers, the paper describes extracting applicable staging information while recognizing that some of these diseases use concepts such as risk stratification and that metastatic disease is inapplicable. The appropriate target depends on which clinical system is relevant to the cancer.
The NSCLC histology application assigns an unordered category. Its categories distinguish non-squamous disease, squamous disease, and NSCLC whose histology is left unspecified. The paper explains that the possible tumor cell types vary across cancers. For that reason, the authors used separate histology extractors for different cancers at the time of the work. This is a difference in the definition of the possible answers as much as a difference in how clinicians write about them. Reusing a text-processing approach and keeping the same answer categories are separate choices.
For smoking, the variable asks about lifetime history. The application described in the results returns a history of smoking, no history, or an unknown value. Its training data include patients with multiple kinds of cancer. The authors emphasize the value of encounter notes that contain a social history, along with access to relevant clinical reports. Here the variable keeps insufficient evidence separate from an explicitly documented negative history. That distinction is important when the output is meant to describe what can be established from the chart.
For surgery, the authors target a primary procedure undertaken with the intent of removing the primary tumor. This gives the extractor a more specific question than whether any operation is mentioned. Documentation may originate at a hospital or outpatient facility and reach the oncology record in unstructured form. Expert-extracted surgery labels were available in some disease cohorts. The authors found the documentation similar enough across cancers to develop an application for surgery status and date that could be used more broadly.
For biomarker testing, one step identifies documents that contain results. The next recovers the biomarker, the result, and when the result was returned. The authors describe processing reports from different laboratories as well as clinician interpretations in notes. Separating document identification from result extraction also lets the procedure represent multiple observations for the same patient. A person may be tested again or at another facility. Keeping the dates allows a researcher to ask what result was available around a defined milestone rather than treating biomarker status as a single undated entry.
The paper gives PD-L1 staining as an example of a result requiring a distinct quantitative output. It prints the known categories as <1%, 1%– 49%, and ≥49%, with an additional unknown category. The printed categories overlap at 49%, so the paper leaves the treatment of that boundary unclear. The example nonetheless shows how the task differs from extracting a verbal result such as positive or negative. The extractor must recover a reported amount and translate it into the pre-defined representation for analysis.
For oral therapy, oncology clinicians define which drug names are relevant to the particular cancer. The procedure uses three distinct extractors to produce the oral-treatment variables. Across the workflow, the important outputs are the drug and the start and end of the documented treatment span. Visit notes can help identify starts and holds during a hospitalization, while prescriptions and communications supply other evidence about the treatment course. The authors train for both ends of the interval because they are needed in common research designs. A system that found a drug name reliably could still be insufficient for a study if it could not locate the documented boundaries of treatment.
Evaluate each kind of agreement
The paper states its performance measures in words. The formulas below express those definitions for a binary comparison of a target class with all other values. This is also how the authors describe checking a single class of a multicategory variable. For example, a histology evaluation can ask whether a record is assigned to the non-squamous category and treat the other outcomes as outside that category.
Sensitivity = TP / (TP + FN)
TP counts patients assigned to the target class by both expert review and extraction. FN counts patients assigned to that class by expert review whose extracted value falls outside it. The slash denotes division, the plus sign adds the counts, and the parentheses group the denominator. Sensitivity is also called recall. It begins with the people the experts identified and asks what share the extractor recovered.
PPV = TP / (TP + FP)
PPV stands for positive predictive value, also called precision. TP again counts agreed assignments to the target class, and FP counts assignments to that class by extraction that the expert reference places outside it. The slash divides by the sum in parentheses. PPV starts from the extracted positives and measures how often those assignments agree with the reference.
Specificity = TN / (TN + FP)
TN counts patients placed outside the target class by both methods. FP counts patients whom expert review places outside the class but whom extraction assigns to it. The slash divides by the sum in parentheses. Specificity asks how frequently the extractor leaves a patient outside the class when the abstractor does so.
NPV = TN / (TN + FN)
NPV stands for negative predictive value. TN counts agreement on being outside the target class, and FN counts expert positives that extraction leaves outside the class. The slash divides by the sum in parentheses. The starting group here is the set of patients with an extracted assignment outside the class.
Accuracy = (TP + TN) / (TP + TN + FP + FN)
TP and TN count agreement on positive and negative assignments, respectively. FP and FN count the two directions of disagreement. The plus signs add the counts and the parentheses group them. Dividing the sum of agreements by the total gives accuracy for the binary comparison. For a variable with multiple classes, the paper also defines overall accuracy by exact agreement on the assigned value.
F1 = 2 × S × P / (S + P)
F1 is the harmonic mean of sensitivity and positive predictive value. S denotes sensitivity and P denotes positive predictive value. The factor 2 is part of the harmonic mean of these measures, × means multiplication, and the slash divides by the sum inside the parentheses. The authors describe maximizing this score as a way of selecting a threshold that balances sensitivity and PPV for a binary task. That balance is useful in development. A particular research use can still place more weight on one kind of error.
Experiments and results
The source population and the comparison
The study used the nationwide Flatiron Health database of de-identified electronic health records. The database is longitudinal, meaning that it contains records from different points in a patient's care. At the time of the work it covered roughly 280 US cancer practices and ~800 distinct sites of care. The paper describes the mix of community and academic practices as broadly reflecting US care patterns, while noting that the mix varies by cancer. These figures characterize the data source. They do not give the size of the training or test sample used for the reported histology result.
The broad cross-tumor cohort required a cancer code from ICD-9 or ICD-10 and an eligible clinic encounter on or after 1 January 2011. The paper uses evidence such as recorded vital signs, treatment administration, or laboratory testing to identify an encounter. This gives the general cohort a documented contact with care in addition to a qualifying code. The authors then draw on disease-specific or mixed-cancer labeled data depending on the variable they are developing. The broad cohort definition and the availability of a reference label therefore answer different questions about which patients are represented in a particular evaluation.
For final evaluation the authors describe a held-out test set, meaning records excluded from training and validation during development. They use expert-abstracted labels as the reference. The evaluation framework includes overall performance, performance within subgroups, quantitative analysis of errors, and replication of downstream research analyses. Depending on the use, an evaluation can draw on one or more of these approaches. The held-out comparison measures recovery of the reference values on new examples, while a replication can examine what happens when extracted variables are combined in an analysis.
The practical comparator throughout the paper is technology-assisted expert abstraction. The authors mention billing codes as a historical proxy for diagnosis and say their precision can be lower than 50%, depending on the disease. This observation motivates looking in the clinical text. The paper supplies no matched numerical comparison between those codes and the extractors for the same diagnosis task and test population. It also mentions earlier logistic regression work on biomarker extraction without reporting a head-to-head score for it in the evaluation described here.
The reported histology result
The paper says that 10 extractors produced 20 variables for research and uses NSCLC as its main setting for examples. Its numerical illustration of class-level performance concerns non-squamous histology in patients with NSCLC. Sensitivity was 96%, so the figure describes agreement among patients whose reference value was already non-squamous. PPV was 94%, so that figure describes agreement among patients for whom extraction returned non-squamous. The paper gives no sample count or named split for this particular estimate. Its methods describe held-out testing as the general procedure for final performance assessment.
Agreement on non-squamous histology in NSCLC by starting group
Agreement is high whether the comparison starts from expert-positive cases or cases called positive by the extractor.
The numbers
| System or setting | agreement % |
|---|---|
| Positive by expert abstraction, sensitivity | 96% |
| Positive by automated extraction, PPV (this paper) | 94% |
The chart uses the same class and reference for both views. The denominators differ. The sensitivity row tells a reader how much of the expert-defined group was recovered, while the PPV row tells a reader how much of the extracted group the experts would also include. Higher values are desirable for both purposes. The two bars describe the same extraction application from different directions and cannot rank competing architectures. In particular, they provide no accuracy figure for the full histology variable and no separate estimate for its other categories.
The numbers are useful when thinking about what a research analyst asks of a variable. An analyst who wants a cohort defined by extracted non-squamous histology cares about the proportion of included patients whose chart review supports inclusion. An analyst who wants to recover as many expert-identified patients in that group as possible cares about missed cases. The paper reports metrics aligned with both questions for this example. It does not show whether the disagreements cluster in a particular subgroup or how they would affect a specific analysis of the histology variable.
What the other application results establish
The other examples mainly establish the form and scope of the outputs. The authors report extracting dates alongside initial, advanced, and metastatic diagnoses. They describe an application for solid-tumor stage that draws on multiple cancer types and an application that handles staging information for some hematologic cancers. They also describe smoking history and primary surgery outputs that can be used across cancer types. These accounts identify what the authors were able to curate and where they used broader or narrower definitions. They give little numerical basis for comparing performance among those tasks.
For biomarkers, the paper reports development and deployment of extraction for results and result dates. The result can come from a laboratory report, including one stored as a scan, or from a clinical interpretation in a note. Recovering the name, result, and date makes it possible to represent serial testing in a patient record. In the treatment example, extracting the drug and its interval produces a form of data suited to studying the timing of oral therapies. Those features add clinical detail beyond a simple flag for whether a word or drug is mentioned in a chart.
The paper uses fictional records in its figures to illustrate the input and output. In the table illustration, extracted variables and manually curated variables have the same appearance and can be used in the same way as table fields. This is a result about the representation of the output. A date column generated by extraction can occupy the same role in an analysis as a date column produced by chart review. Whether the two give similar findings depends on how frequently the underlying values agree, what kinds of errors occur, and which parts of the analysis depend on those values.
From a correct field to a similar study result
The paper reports related work in which automated extraction reached error rates similar to manual review for some tasks. It also points to oncology replication studies that used extracted variables in place of manually abstracted ones. The cited examples include a study of overall survival in relation to biomarkers and a comparison of treatment effectiveness in metastatic NSCLC. The authors say that replications using several extracted variables reached similar results and conclusions in the cases examined. The paper gives this as supporting evidence for particular uses, without presenting the underlying estimates for each comparison.
Replication addresses a question that is difficult to settle from sensitivity and PPV alone. A retrospective analysis may use diagnosis to determine eligibility, stage to characterize patients, and dates to decide which events fall within the study period. An error in a single field can matter greatly if it changes cohort inclusion. At the same time, individual disagreements can coexist with similar study estimates when the analysis is relatively insensitive to those disagreements. Repeating the same analysis with differently curated data tests the effect of the substitution on the result researchers ultimately report.
The paper's numerical evidence is therefore concentrated in a specific histology example, while its account of utility is broader and rests partly on the cited research. The two levels of evidence answer complementary questions. The example gives the magnitude of agreement in each direction for one class. The replication evidence concerns whether selected collections of variables can support selected analyses. The authors' descriptions of the remaining applications establish which outputs they built and some of the settings in which they used them.
What the ablations show
The paper reports no formal ablations, meaning comparisons that remove or change an individual component under the same evaluation conditions, and instead describes validation, individual error review, comparisons of intended use across cancers, and replications of downstream analyses.
What development comparisons tell us
The authors say they compared architectures and used validation results to choose an approach for each variable. Their error reviews could also lead them to revise the search vocabulary or the way the documents were processed. This describes a development process in which several parts of the system can change as the authors learn what causes mistakes. It leaves the contribution of individual components unresolved. The paper supplies no common evaluation showing how much sentence filtering, chronology, or a particular architecture contributed to the final histology result.
The LSTM example illustrates the value of carrying context from one word to another. The contrast between a mention of advanced disease and a denial of advanced disease shows the kind of distinction the architecture is intended to capture. The illustration explains how contextual interpretation could help. It is neither a measurement of how frequently such cases occur nor a comparison of performance with context removed. The design rationale is specific, while the size of its effect remains open.
The linked diagnosis workflow offers another design-level observation. The authors say that passing one output into the next step helped avoid conflicting assignments and improved overall accuracy in their experience. They give no separate figures for linked and independent versions on a common set of patients. The finding as reported concerns the authors' experience with coordinating outputs. The paper does not quantify how frequently diagnosis assignments conflicted before linking, or how often a mistake in one step carried forward to another.
What the cross-cancer examples tell us
A useful comparison in the paper is the different degree of reuse for stage, histology, smoking, and surgery. Stage in solid tumors gave the authors a reason to train across cancer types because the relevant documentation was similar. Histology gave them a reason to keep separate applications because the set of cell types differed by cancer. Smoking history and surgery could be formulated in a way the authors found applicable to broader groups. These examples explain how the researchers decided where a shared definition and a shared extraction approach were plausible. They do not compare shared and separate training under fixed conditions.
The authors also describe prior work on diagnosis in rare cancers, where fewer labels are available. They say that generic token replacement and leave-one-out validation helped them examine and improve generalization with few or no training labels from the target disease. Generic replacement is meant to reduce dependence on particular words by substituting a more general representation. Leaving one disease out examines what happens when the target is kept apart while the procedure learns from the other diseases. The paper reports these techniques as promising for that setting without supplying disease-by-disease test sizes, scores, or a controlled estimate of the effect of each technique.
These examples also clarify what generalization means in different parts of the paper. Holding out patients asks whether the procedure recovers values from patients unseen during development. Using a different cancer type asks whether it can handle a different clinical category or way of documenting it. The former can be evaluated within an established application. The latter can require a new definition, a broader training cohort, or both. The authors' decisions about stage and histology reflect that distinction.
What the research comparisons tell us
The authors emphasize subgroup evaluation because a favorable overall result can coexist with weaker performance in a group important to a particular study. Their framework therefore calls for looking at strata, such as groups defined by cancer characteristics, when relevant to the intended use. Quantitative error analysis can also direct attention to which variables are wrong and under what circumstances. The paper explains why these checks matter and states that stage and histology evaluations are conducted by category and, as appropriate, by cancer type. It does not publish a set of subgroup estimates from which to determine the size or direction of disparities.
The downstream replications are the closest comparison to replacing an entire part of the research workflow. The change is the source of the variables: extraction in one version and expert abstraction in the other. Similar findings in the cited examples support the use of the extracted variables for those analyses. Such a comparison leaves the internal reasons for success unresolved. It tests the resulting data in combination, which is precisely what makes it relevant to an analyst, and it does not isolate the effect of document selection, temporal features, or any particular architecture.
Limitations
Limits the authors state
The authors say that variable-level performance estimates are interpretable for cohorts similar to the test population. Cancer type and disease stage can be part of that similarity. This is their stated reason for omitting detailed results for most variables. The histology example is explicitly about the non-squamous class among patients with NSCLC. The broader claims about successful curation have to be read with that distinction in mind, since a variable's performance on a particular test set and its usefulness across several diseases are different kinds of claims.
The authors also say that development and deployment were confined to a US population. They think that suitable architectures may transfer across national borders, while emphasizing the need to train again on local data for the best performance. This is a stated geographic limit. The paper gives no evaluation in another country from which to determine how much performance would change or how much local data would be enough. Even if the clinical variable is defined the same way, the material available in the chart can differ from what supported training.
Document layout can set a separate limit. The authors use microsatellite instability, or MSI, as an example of a result reported in varied formats. One format places the result on a graphic scale. A process built to find and interpret sentences can read text recovered from an image, provided that the words are recoverable as text. The position of a mark on a scale is a different form of evidence. The paper identifies this as a case where relying on text interpretation makes the relevant clinical detail difficult to extract.
Another limit follows from the task definition. The procedures extract information documented in the record available to them. The authors exclude inference of missing information and prediction of future clinical events from the work described. An unknown value or a missed result can therefore reflect several circumstances, including unavailable documentation or difficulty recognizing evidence that is present. For a researcher, an empty field has to be interpreted in light of the curation definition and the source material. It does not establish that a test or clinical event never happened.
Finally, the authors identify the volume and quality of expert labels as a major advantage of their setting. The development process depends on prior chart review, standard policies, and clinical oversight. The authors funded and carried out the work within the organization that originated the data. Access for replication is subject to license or permission. The paper thus describes a process backed by a substantial existing investment in abstraction, with limited access to the underlying records for independent reproduction.
Limits visible in the evaluation
The reported histology values leave uncertainty about the breadth and precision of the estimate. The paper supplies no sample size for that comparison, no uncertainty interval, and no breakdown of errors by other histology categories or subgroups for that example. A reader can understand how each measure is defined, but cannot tell how stable the estimate would be in a smaller subgroup, or whether the same range of documentation was represented across practices. The database's overall size cannot fill in these details about evaluation on a particular variable.
Expert abstraction is a clinically informed reference, and the paper documents efforts to make it reliable. It remains a reading of the available chart. High agreement demonstrates that extraction can reproduce those assignments. A separate evaluation would be needed to establish how those values correspond to clinical events that were missing from, ambiguously described in, or incorrectly recorded in the chart. This matters especially when a downstream analysis treats a date or category as ground truth about care. Both approaches can start from the same incomplete record.
Dates deserve particular care. A chart can provide the evidence needed to identify the right clinical event without making its timing equally easy to establish. In the oral therapy example, a prescription and a later note can bear on different parts of the treatment interval. For a biomarker, the target date is when a result was returned. The paper describes those targets and the outputs but reports no distribution of date errors. A reader therefore cannot estimate from this paper how tightly the extracted timelines match the abstracted ones, or how discrepancies would affect a study that depends on the order of events.
There is also a distinction between producing consistent outputs and obtaining independent confirmation. A linked diagnosis procedure may be useful because related values should fit together. If an early output is wrong, a dependent later step can inherit the mistake. That is a possibility arising from the described design, rather than an error rate measured in the paper. The authors' account of reduced conflict provides a reason to use linked stages, but no comparison isolates the tradeoff between agreement among outputs and propagation of an earlier error.
The paper's discussion of scale is supported by the large source database, the manual-review workload it describes, and the range of applications developed. It does not report a measured run time, cost comparison, or amount of reviewer time saved for the workflows. The hypothetical calculation about chart review makes clear why automation was attractive. It leaves the operational cost of selecting terms, maintaining extractors, validating changes, and handling cases with ambiguous documentation outside the numerical evidence.
What the findings support for research use
The authors argue that broader curation creates an opportunity to include patients whose experiences are otherwise less visible in oncology research. The study shows how richer variables could be built from existing records and describes why this matters when the patient groups of interest are small. It presents no direct estimate of how much an analysis became more representative or how much bias was reduced after extraction. More complete variables and more representative study populations are plausible benefits whose size depends on which patients, documents, and endpoints are available.
The authors also anticipate that generative approaches may make it easier to bring more of a record's context to bear on a complex task and to depend less on extensive expert labeling. They discuss hospital-course condensation in connection with earlier work on summarization. This is a discussion of possible directions. The procedures evaluated in the paper use task-specific evidence selection and structured outputs. Their performance estimates cannot establish how a generative approach would compare at assigning categories or dating events.
Ultimately, the evidence is strongest when kept at the level at which it was collected. The paper reports a specific agreement result for a histology class and describes other variables that were successfully produced. The cited replications add evidence for particular analyses that used several variables together. An additional application, population, or way of documenting the clinical event can change what needs to be checked. That is why the paper places the intended research question alongside the usual metrics of extraction quality.
What came after
Adamson and colleagues establish a narrow test for using software on clinical text. The system is given a defined variable to recover, expert-reviewed values provide a reference, and selected downstream analyses can test what changes when those values are substituted. The later citing works address related questions about the use of GPT in healthcare and for clinical notes. Their stated scopes differ from the retrospective oncology curation task, which matters when considering what could carry over from one evaluation to another.
Dash and colleagues study GPT-3.5 and GPT-4 for real-world information needs in healthcare delivery. That scope concerns support for information needs, while Adamson and colleagues focus on producing a defined tabular value from existing chart evidence. Both concern the practical use of software to handle clinical information, but the output named by Dash and colleagues' title is support for a healthcare information task. The citation establishes a connection between the studies. It does not establish that the later evaluation used the same oncology records, reproduced the extraction workflow, or measured agreement on the variables described here. Evaluation of GPT-3.5 and GPT-4 for supporting real-world information needs in healthcare delivery
Altalla's later work concerns evaluation of GPT in a clinical-note setting. This brings the subject closer to the kind of source material Adamson and colleagues process, since notes are one place their extractors find evidence on diagnosis, smoking history, and oral treatment. The connection is at the level of the document type and the question of evaluation. The citation gives no basis for attributing a particular extraction task, benchmark, numerical result, or reuse of Adamson and colleagues' methods to the later work. Altalla's clinical-note evaluation
Across these studies, clinical information is the common setting. The unit of evaluation depends on the task. A researcher can judge whether an extracted histology field agrees with expert review, whether a set of extracted fields preserves the result of an oncology analysis, or whether a system supports an information need during healthcare delivery. Adamson and colleagues give concrete definitions and selected evidence for the first two questions. The later citations show the paper being read alongside a wider set of clinical text evaluations, with methodological continuity beyond that connection left unestablished.
Cite
Cite as Blythe J. S. Adamson, Michael Waskom, Auriane Blarre, Jonathan Kelly, Konstantin Krismer, Sheila Nemeth, James Gippetti, John James Ritten, Katherine Harrison, George Ho, Robin Linzmayer, Tarun Bansal, Samuel Wilkinson, Guy Amster, Evan Estola, Corey M. Benedum, Erin Fidyk, Melissa Estévez, Will Shapiro and Aaron Benjamin Cohen. 2023. Approach to machine learning for extraction of real-world data variables from electronic health records. Frontiers in Pharmacology.
@inproceedings{adamson2023approach,
title = {{Approach to machine learning for extraction of real-world data variables from electronic health records}},
author = {Blythe J. S. Adamson, Michael Waskom, Auriane Blarre, Jonathan Kelly, Konstantin Krismer, Sheila Nemeth, James Gippetti, John James Ritten, Katherine Harrison, George Ho, Robin Linzmayer, Tarun Bansal, Samuel Wilkinson, Guy Amster, Evan Estola, Corey M. Benedum, Erin Fidyk, Melissa Estévez, Will Shapiro and Aaron Benjamin Cohen},
booktitle = {Frontiers in Pharmacology},
year = {2023},
doi = {10.3389/fphar.2023.1180962},
url = {https://doi.org/10.3389/fphar.2023.1180962}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/adamson-2023-approach-machine-learning-extraction-real/