The Revival of the Notes Field: Leveraging the Unstructured Content in Electronic Health Records
Paper · 2019 · Michela Assale, Linda Greta Dui, Andrea Cina et al.
Summary
A discharge letter can tell a clinician what happened to a patient and still be difficult to search across an entire hospital registry. The details may sit inside a paragraph, appear under different headings, or be expressed in local shorthand. Assale and colleagues ask which of those details a hospital can recover with natural language processing when its records are in Italian and it has limited material for training. They combine a review of earlier clinical work with experiments using records from an Italian orthopedic teaching hospital. Their question is practical. How far can a hospital get with the documents, labels, and computing resources it already has?
The experiments start with spelling. A procedure that looks for rare words close in spelling to common ones found 774 misspelled words, with medical vocabulary prominent among the recurring errors. For discharge letters, the authors used labeled sentences from the Galeazzi hospital to learn which part of a letter a sentence belongs to. Giving the target section more representation during training improved classification on held-out Galeazzi material. The intended transfer to San Siro, another hospital in the same group, remained mostly unevaluated. For named entity recognition, the authors adapted an Italian text-processing system to identify diseases, drugs, and quantities in clinical histories. Accuracy on those labels was 0.88 when training retained the original categories and 0.89 when it concentrated on the new ones. With the original labels counted in the evaluation, accuracy was 0.74 and 0.18, respectively.
The authors also translated Italian patient comments to test two approaches to sentiment analysis. A method based on the sentiment of words and phrases reached 0.72 accuracy for detecting negative comments, compared with 0.63 for a classifier trained on tweets. A separate experiment used structured registry data to predict whether disability would improve after surgery for a herniated disc. Naïve Bayes trained with the original class proportions offered the best combination of the measures the authors considered. The review also covers automated patient cohort selection, which the hospital experiments leave open.
The paper makes the clearest case for tasks whose outputs can be checked directly, such as a corrected spelling, an assigned section, or a tagged drug name. Those outputs answer different questions from whether a patient is at risk or meets a trial criterion. A drug mention may refer to a discontinued treatment, and a negative comment may concern hospital cleaning. The study shows what can be recovered from local records with modest preparation and where further validation would be needed before using those outputs in care.
Deep dive: The Revival of the Notes Field: Leveraging the Unstructured Content in Electronic Health Records
How an Italian hospital study cleaned clinical notes, sorted discharge letters, extracted medical terms, and tested sentiment in patient comments. · about 37 minutes to read
The problem and its context
Why details in a record are hard to retrieve
The paper starts from a difference in how hospitals record information. A coded diagnosis or a response in a fixed questionnaire field is available in a form that software can query directly. A description in a clinical history or a discharge letter must first be interpreted. People writing those documents are typically trying to record a course of care or communicate with another practitioner. They can use different expressions for the same condition, refer to earlier events, or leave the meaning of an abbreviation to the reader. These choices are often perfectly legible to the people doing the work. They make it harder to find the same information consistently across records.
The authors place this difficulty under the heading of data variety. Electronic records bring together coded entries, narrative documents, and other kinds of information. The amount of data matters, but so do the languages, formats, and levels of detail in which the information arrives. The paper mentions the frequently repeated conjecture that 80 percent of electronic health record data is unstructured and notes that it is unproven. The practical case for working on notes comes from what clinicians and patients write in them. A brief comment can qualify a structured answer, and a narrative can supply the sequence of events behind a diagnosis or treatment.
The authors also give a reason for comparing narrative and structured fields. Records intended for recall or handover can preserve details that get simplified or classified differently in coded data. They may therefore help identify discrepancies, including errors in coding. A narrative has its own reliability problems, though. Two caregivers can use different expressions for the same observation, a term can be misspelled, and a fact can appear in several places with different qualifications. Reading manually lets a reviewer use context, but the work takes time and reviewers can make different judgments. Automation promises to reduce that burden if the output can be checked against a reference appropriate to the task.
The local setting shapes the paper's questions. The Istituto Ortopedico Galeazzi, abbreviated IOG, is a teaching hospital in northern Italy that specializes in musculoskeletal disorders. The authors describe a center performing nearly 5,000 surgeries yearly, many involving hip or knee replacement or the spine. Its DataReg registry brings admission, discharge, and transfer data together with follow-up information reported by patients and with narrative material such as surgical diary entries and discharge letters. The coexistence of these fields lets the researchers start with different inputs for different questions. A patient comment supplies words for a sentiment experiment, while a postoperative score can supply a defined outcome for a separate prediction experiment.
What earlier work treated as solvable
The authors conduct a narrative review. They search mainly through Google Scholar using combinations of terms for clinical records, notes, automated coding, language processing, and related tasks. They concentrate on work from the preceding 5 years, with older publications included where relevant, and emphasize journals in clinical and biomedical informatics. Earlier reviews already covered the field broadly. This one selects applications that seemed feasible with limited infrastructure and potentially useful in the near term. Conversational systems and automated transcription are outside its focus, and it gives only brief attention to some of the more demanding work on building detailed patient profiles.
For data quality, an immediate question is what to count as the same thing. A record may contain redundant versions of a measurement. An abbreviation may have more than one interpretation even when the spelling is correct. The study the authors discuss by Joopudi and colleagues uses the surrounding words to distinguish senses such as myasthenia gravis and milligrams for mg. That work addresses a different problem from repairing a mistyped word. The surface form of an ambiguous abbreviation can be valid in each context, so a rule that rewrites the abbreviation everywhere would throw away the distinction the system needs to recover.
Other studies in the review treat the production of reliable labels as a data-quality problem in its own right. Knake and colleagues describe guidelines for deciding which value to record when a parameter appears in multiple places and when to fall back on manual review. Marcheggiani and Sebastiani examine disagreements between the annotator supplying training labels and the annotator supplying the test reference. In their setup, the tendency to omit annotations during training hurt performance, while the tendency to add annotations did not produce a statistically significant decline. Another workflow reviewed by the authors uses automatic suggestions as a first pass for humans to correct. These are different ways to make linguistic annotation consistent enough to serve as evidence.
A study of redundancy or a study of spelling operates on the text the hospital has already collected. Some improvements can instead be made at entry time. The review distinguishes suggestions that help writers finish an expression, corrections offered as they type, and changes that reduce duplicate entry. The hospital's spelling experiment takes the retrospective route. It works from the repeated forms that appear in the registry and uses those repetitions to find likely variations. This setting favors a procedure that can be applied with local word lists and reviewed by hand before its substitutions are trusted.
What a clinical mention can establish
The review uses information extraction for a family of tasks that turn some part of prose into an explicit output. The output might be a labeled span, a medical code assigned to a document, or a relation between written concepts. A dictionary can help recognize a familiar expression. Rules can specify forms to look for and conditions under which to accept them. Machine learning can use labeled examples to learn recurring patterns. The review of clinical extraction by Wang and colleagues found heavy use of rules in the literature they examined. The hospital studies use rules and learned classifiers where each fits the available data.
Clinical extraction frequently requires a distinction between mentioning a condition and asserting that a patient has it. The paper discusses NegEx, which uses cues to identify negated findings, and DEEPEN, which also considers the grammatical relationship between a cue and a concept. The relevance of that relationship is easiest to see in a sentence that names several conditions. The appearance of a negative cue somewhere in the sentence leaves open which condition it modifies. The review also describes work on temporality. A useful output may need to record whether an event happened in the past, is planned for the future, or recurs at some frequency. The name of the event only supplies part of the answer.
Other reviewed examples show why clinical context affects the value of automation. Li and colleagues combined learned extraction and rules to link medications to their attributes and compare the resulting mentions with structured discharge prescriptions. Their workflow could produce candidate matches and potential discrepancies because it did more than find medication names. In infection surveillance, one study discussed by Assale and colleagues identified temporal labeling as a frequent reason for errors. Another had difficulty transferring language patterns into a real-time surveillance setting. The review also describes work on opioid-related records that used a hybrid approach, letting automatic retrieval narrow the material for a person to review. Those applications place different demands on the output and on the cost of missing a relevant passage.
Automated coding is a neighboring task. The authors discuss attempts to map narrative records into terminologies such as UMLS and classifications such as ICD and SNOMED. A code can support a query across documents that use different words for a condition. Choosing that code requires deciding which concept the passage expresses and, in some systems, using relationships among the available labels. The reviewed work by Perotte and colleagues illustrates that document classification can exploit a hierarchy of diagnoses. Other studies attend to how words and document sections are segmented. The Galeazzi discharge experiment addresses an earlier structural question. It tries to determine which part of a letter a sentence belongs to, which could make later searches or extraction more focused.
Sentiment, outcomes, and searches for eligible patients
The review treats sentiment as a possible source of information about the patient's circumstances or the tone of a clinical note. Earlier work includes lexicon-based approaches, which assign scores to recognized expressions, and approaches that learn patterns from labeled text. The paper discusses a study by McCoy and colleagues that used the sentiment of discharge notes to examine readmission risk. It also describes prediction studies using more direct evidence, such as diagnoses, medications, procedures, and previous measurements. The paper observes that much of the work on clinical prediction it reviewed did not use sentiment. Recovering negative language from a comment and demonstrating that it adds predictive value are separate empirical questions.
For the hospital experiment, the object of a comment is an especially important distinction. Complaints about the accommodation can matter for understanding the service, while comments about recovery may matter to someone following up on a patient's health. Even within service comments, complaints about scheduling or cleanliness differ from what patients say about information, examinations, or nurse availability. The paper treats topic and sentiment as separate annotation decisions. This gives a negative label an interpretable setting and makes it possible to ask how frequently different topics attract different kinds of comments.
Cohort selection extends the problem from passages and comments to groups of patients. A researcher may need to identify records satisfying a particular set of inclusion and exclusion criteria. The authors review work that used free text alongside codes to find evidence relevant to such decisions, including studies on hepatocellular cancer and type 2 diabetes. Some work also processes the wording of the criteria themselves. EliXR, for example, uses medical coding and syntactic analysis to help produce a partially structured representation of eligibility requirements. The point of the comparison is that useful evidence can be hard to query on either side. A requirement can be written as prose, and the record that might satisfy it can also be written as prose. The paper reviews this use of clinical language processing without attempting a local cohort-selection experiment.
The method, step by step
The empirical work consists of separate procedures, each matched to an output the authors could try to evaluate. Spelling correction produces a candidate substitution. Discharge-letter classification produces a section assignment for a sentence. Entity recognition produces a category for a span of text. Sentiment detection produces a score that can be used to flag a comment. The postoperative experiment begins with structured fields and produces a prediction about improvement. Some procedures share preprocessing steps, particularly the work on spelling and discharge letters. The paper does not feed all of their outputs into a common prediction system.
Find likely typos from the local vocabulary
The spelling procedure starts with tokenization, which breaks the text into units that can be counted and compared. Here the units of interest are words. The authors remove numbers, common words on a stopword list, and non-ASCII symbols. They associate the symbols with encoding changes during transfer into DataReg. The result is a working vocabulary for this correction experiment. The same cleaning choices would have different consequences in a task where the numbers themselves were the intended output, such as recognizing a quantity.
The authors count words over the available documents and examine the distribution of their frequencies. They take the words associated with the 80% area of the frequency curve as the pool of presumed correct forms. This is a frequency-based assumption about the corpus. It gives commonly used local medical language a way to enter the pool even when a general dictionary would be incomplete. The authors consult an Italian vocabulary and a medical vocabulary for the rarer words. A rare form that appears in either vocabulary can be plausible by itself. A form without that support becomes a candidate for a typo.
Each candidate then has to be matched to a plausible intended word. The authors first consider Levenshtein distance. This is a count of the edits needed to turn one string into another, with insertion, deletion, and substitution among the allowed operations. At distance 1 a candidate can be matched by adding, removing, or changing a letter. An adjacent pair of letters typed in reverse order is an awkward case for that operation set. The authors choose Damerau–Levenshtein distance so the adjacent swap can qualify as a single edit. This makes it possible to catch a transposition while keeping the candidate search narrow. The paper illustrates the reason for caution with hypothyroidism and hyperthyroidism, which are medically distinct despite their similar spelling.
A person reviews the proposed matches to remove misleading associations. The paper gives the example of mmol and pmol, where a short character distance is compatible with valid but different units. When a candidate has multiple retained matches, the more frequent form supplies the replacement. The authors keep inflected words in the form in which they occur. Applying lemmatization at this point would collapse forms to a dictionary headword. The observed endings can be relevant to whether a candidate and a frequent word differ by a small edit, so the authors preserve them for this task. Frequency helps choose among possible replacements without evaluating the meaning of a specific sentence.
Learn the sections of a discharge letter
The discharge-letter task begins with a difference between two hospitals. San Siro had discharge material stored in undivided database fields. Galeazzi had letters from the hip and knee specialty whose sections could supply labels. The idea was to use the Galeazzi examples to learn what the contents of each section look like and apply that learning to material stored as a single block. In the evaluated setup, the reference labels and the held-out sentences both came from Galeazzi.
The authors split the Galeazzi sections at punctuation and assign the resulting units their existing section labels. Whole sentences and shorter fragments can both arise from such a split. The procedure uses available punctuation and avoids the additional work of grammatical analysis. It then applies tokenization and the cleaning steps described for earlier work, including removal of common words and correction of identified errors. This use of existing section labels gives the authors examples without requiring a fresh decision about every training sentence.
Classifying sentences from discharge letters
The steps in order.
Doc2Vec represents a piece of text by a vector, a list of numerical features learned from text. Here the item represented is the sentence or fragment obtained from a section. The classifier receives this representation together with the known section membership during training. The method learns a separate binary decision for each section of interest. In one such decision, membership in pharmacological therapy is positive and membership in any of the other sections is negative. The same arrangement is repeated for the other targets. The reported evaluation is about these individual decisions, without specifying a procedure for reconciling conflicting assignments when the classifiers are used together on a whole letter.
The data are divided into training and test material at an 80:20 ratio. The authors begin with the original class proportions and then create an alternative training condition in which the target class makes up at least 40% of the examples. In each case the test material keeps its original proportions. The paper uses logistic classification through the R package Glmnet. A fitted classifier produces a score for the target category, and the evaluation examines how well that score ranks the target sentences across possible cutoffs.
During training the authors use 10-fold cross-validation. The training examples are divided into parts, a fit made using some parts is checked against the held-out part, and the held-out role rotates. The paper describes this as a way to reduce variance and describes the sampling in the package as stratified, so target-class representation is kept more consistent across folds. The test set is distinct from this internal resampling. The comparison asks whether giving the target section more weight through the composition of the training material helps on held-out text with the original prevalence.
Teach the system to find clinical entities
A discharge-section label says what sort of material a sentence contains. An entity label identifies an expression within a passage. The authors are interested in diseases, drugs, and quantities in the clinical histories used by Endocrinology and Rheumatology. General-purpose processing can already identify some kinds of entities, but the clinical labels require examples of the vocabulary and writing style used in these histories. The authors considered Stanford CoreNLP and Tint before choosing SpaCy for its support for adapting a previously trained system.
This process is called transfer learning. The starting system already has parameters learned from earlier text, and the clinical training changes how it uses what it learned. The paper describes SpaCy's chosen architecture as a neural network with an attention mechanism and explains the adaptation in terms of replacing the final training layer with a customized one. The earlier Italian training material was drawn from editions of the newspaper Gazzetta dell’Alto Adige. The hospital histories provide examples of a different genre and of the target labels. The experiment asks whether a limited set of annotated examples can redirect the system toward the expressions the hospital wants.
The authors annotate 400 texts for training and 50 for testing. They use brat and the BILUO convention to mark entity spans. The letters identify the beginning, interior, or last token of a span, a token that forms a complete entity on its own, or a token outside an entity. The span label gives the category, while the token markers establish its extent. An annotated quantity or disease can contain several words. The convention makes it possible to distinguish errors about what an expression denotes from errors about where it starts or ends.
The authors compare continued training that includes both the existing and the clinical labels with training that concentrates on the clinical labels. This comparison concerns catastrophic forgetting, the loss of an earlier capability after further training on a narrower task. A system trained on the old and new categories receives examples intended to maintain both. A system trained on the clinical categories alone can use all its supervised feedback for those categories. The authors use 250 training iterations for the condition intended to retain the old labels and 100 for the condition that permits forgetting, reporting faster convergence in the latter.
Evaluation begins with confusion matrices, which organize reference labels and predicted labels so that correct assignments and confusions can be examined. The authors use All for entities outside the clinical categories of interest and Null for material without a tag. One scoring view treats All and Null alike, because both are outside the task of finding diseases, drugs, and quantities. In the broader view, an old category can still count as an entity that the system should recognize. The comparison therefore changes with the intended use of the tagger. A reader who needs additional categories has a different standard of success from a reader who only needs the clinical spans selected for this experiment.
Use patient comments to test sentiment detection
The comment study begins with human judgments about topic and sentiment. The authors distinguish comments about outcomes from comments about satisfaction. They subdivide the satisfaction category into hospitality and nursing, using the latter for the clinical side of service as described in the paper. People rating the comments could assign positive, neutral, or negative sentiment. The analysis excludes cases with no comment. The researchers use these judgments to describe the topics and to build a reference for testing automatic detection of negative sentiment.
The agreement among the 3 raters is summarized by Krippendorff alpha, an agreement measure that accounts for the agreement expected by chance. The authors report 0.69 for the labeling exercise and use the mode, the most frequent judgment, as the final label. The automatic task then combines the positive and neutral labels into a single comparison category. In this binary setup, sensitivity refers to finding the negative comments. Specificity refers to leaving the positive or neutral ones unflagged. The annotation also preserves the original topic labels for analyzing how comments were distributed.
Both automatic approaches start by translating the Italian comments into English with the Google Translate API. The reasons are specific to the resources chosen for the experiments. The VADER sentiment library uses English expressions and the separately labeled tweet corpus is also in English. Translation makes both resources available for testing on the comments. It introduces an additional transformation between the patient's wording and the score, and both approaches share that transformation.
The first approach scores the words and adjacent word pairs using VADER. The authors use the example not improved to explain why a pair can carry a different sentiment from its component words. The procedure produces a continuous score from -1 to +1. A score less than zero counts as negative. The authors also examine how accuracy, sensitivity, and specificity change as the cutoff moves. The fixed cutoff supplies the condition under which the headline performance measures are reported.
The second approach learns from previously labeled tweets. The words are tokenized, stopwords are removed, and forms are reduced to lemmas. The authors use a bag of words, which represents the comment through its terms and their weights, with TF-IDF weighting. This gives greater emphasis to terms that are informative in a document relative to their occurrence across the collection. A neural network is trained on the resulting features from the tweets. The chosen maximum is 1,000 iterations and the step setting is 0.001. Its output ranges from 0 to 1 and the selected cutoff is 0.5.
The patient comments are the test material for both methods. VADER is already available as a scoring resource, and the learned classifier gets its training labels from the tweets. The investigators do not fit the sentiment methods on the patient comments or tune the cutoffs against them. The cutoff sweeps reveal the behavior of the metrics across decision thresholds. In the main comparison, the researchers use the fixed cutoffs and score the predictions against the human labels.
Predict recovery from structured inputs
The postoperative study uses registry data about spinal surgery. The authors focus on patients treated for herniated discs. They describe them as a relatively homogeneous group and choose the 3 months assessment because improvement can stabilize by then. The outcome is based on the Oswestry Disability Index, abbreviated ODI, which measures disability. On the scale described in the paper, 0 corresponds to the best condition and 100 to total disability. The prediction is about whether the change from the preoperative measurement clears the minimum clinically important improvement, defined in the study as at least 11.5 points.
The inputs include other questionnaire scores collected before surgery and structured answers about the surgical procedure. The latter come from Spine Tango forms and contain details such as techniques, comorbidity, and the condition being treated. The authors also consider demographic and procedural variables, including age at surgery, body mass index, duration, and the month of surgery. They encode the checkbox responses with indicator variables and treat single-choice responses as categorical values. With Weka, they compare different representations of these inputs, including discretizing continuous quantities or expanding categorical responses into indicator variables.
The authors divide the data in a 75:25 training-to-test ratio. In one condition they use a random split with the original distribution. In the other they undersample the more common training class, meaning that some of its available examples are removed to make the classes more evenly represented. The test material keeps the original class proportions. Standardization, normalization, and removal of outliers are performed after splitting, to avoid letting information from the held-out cases influence the fitted preparation of the training data.
For variable selection, the authors first remove attributes with correlation above 0.95. They then use Weka's WrapperSubsetEval with a decision-tree-based procedure to look for a useful subset of features. Missing values account for below 5% of the data. The researchers choose imputation, which fills in missing entries, because follow-up and undersampling already limit the number of usable cases. They use a nearest-neighbor procedure with the following setting.
K = 1
K is the number of neighboring records used in the imputation. The equality specifies that a single neighbor is used. The authors then consult the surgical reports manually to check the imputed entries. The reports serve as a check on data preparation in this experiment. Their prose is not an input to the postoperative classifier.
The team compares random forests, support vector machines, and Naïve Bayes. A random forest combines decision trees, a support vector machine learns a boundary between classes, and Naïve Bayes bases its decision on class probabilities inferred from the observed features. The support vector machine uses a polynomial kernel, which lets it fit a boundary through a transformed representation of the inputs. The reported random forest settings use 10 features and 350 trees. The authors retain the software defaults for Naïve Bayes.
Hyper-parameters are settings chosen before a fit, such as the number of trees. The authors choose them through cross-validation in the training material because the amount of data makes a separate tuning set costly. They describe a final 5-fold cross-validation procedure designed to keep at least 10 samples in each fold. They compare sensitivity for patients who did not improve and the area under the receiver operating characteristic curve. That choice follows the practical question they pose. A classifier should recognize the less frequent cases for which insufficient improvement is a concern, and its performance should also be judged across possible cutoffs.
Experiments and results
Spelling findings in the clinical histories
The authors report 774 misspelled words identified with Damerau–Levenshtein distance. They summarize the most frequent findings using the intended word, the number of variant spellings attributed to it, and the frequency of the observed errors. Their incidence measure compares the number of occurrences of the typo variants with the number of correctly spelled occurrences of the same intended word. This denominator matters. It expresses how frequently the erroneous forms occur relative to the usual form of a particular word, and each term can therefore have a different incidence even when the number of erroneous occurrences is similar.
The table on the Endocrinology and Rheumatology histories includes terms such as Prednisone, Polimialgia, and Osteoporosi. The authors observe that frequent errors concentrate in medical language. Terms in that vocabulary can carry much of the information a later search or classifier is trying to use. Normalizing an accepted variant can bring occurrences of the same intended expression together. The experiment measures the identification of variants and the errors found during review. It gives no downstream score for a search or classification system run with and without those replacements.
Manual inspection led to the rejection of 3.4% of the reported words as false positives. This measures a feature of the proposed matches: people checking the output judged a portion of the suggestions invalid. It gives no estimate of how many typos remained among words the system never proposed. Inspection also changes what can be claimed for automation. The reported procedure uses automatic generation to reduce the search space, with human judgment supplied for the difficult associations.
Classifying discharge-letter sentences at Galeazzi
The authors give a breakdown of the labeled fragments produced from the Galeazzi hip and knee letters. The clinical history section contributed 8,293 sentences, and the rehabilitation program contributed 4,778. The diagnosis-specific treatment and pharmacological therapy sections provided 3,098 and 3,553 phrases, respectively. The remaining material was grouped as Others, with 48,232 sentences. These counts characterize the source sections before the alternative training conditions. They show why the original proportions can leave the target section substantially less common than the combined comparison material.
The metric is AUROC, the area under the receiver operating characteristic curve. The curve traces the rate of correctly retrieved target examples against the rate of false alarms as the cutoff moves. Its area measures how well the scores distinguish members of the section from other material over the range of cutoffs. It does not pick a cutoff at which to deploy the classifier. Comparing the original and balanced training sets by AUROC lets the authors study ranking performance while testing against the same natural distribution of target and comparison examples.
The plotted results cover the clinical fields in the hip and knee letters. The authors report that the balanced training condition performed better on the sentence classification task even though it used less training data. They compare the performance in broad terms to the earlier work by Tan and colleagues, which identified lumbar spine imaging findings and used rules in its preprocessing. The two exercises use different documents and prediction targets, so the comparison is an indication of the level of performance the authors regard as plausible with a simpler local pipeline. No common benchmark was run between those systems.
The test data came from IOG. The few letters available from San Siro could show the form of the material the authors wanted to process, but they were insufficient for an extensive target-site evaluation. Accordingly, the comparison of balancing conditions supports a claim about Galeazzi section assignments. Whether those assignments remain accurate on San Siro letters was the motivating question for transfer and remained unresolved.
Entity recognition under narrow and broad scoring
The clinical entity experiment starts with an inspection of the basic SpaCy system and then compares the two adapted versions on the annotated Endocrinology and Rheumatology test material. The version trained to retain previous categories and the version trained to concentrate on the clinical labels provide the principal comparison. The paper presents confusion matrices for these adapted versions and reports accuracy, sensitivity, and specificity in its evaluation. Here sensitivity measures how often instances of a target category are found, and specificity measures how frequently material outside a target category is correctly left out. Accuracy summarizes agreement with the reference under the current scoring definition.
When only disease, drug, and quantity labels matter, the two adapted versions reach similar aggregate accuracy. Treating the other entities and the absence of an entity as equivalent gives an accuracy of 0.88 for training with retention and 0.89 for training focused on the clinical labels. This is the case in which credit depends on usefulness for the selected extraction task. A mistake involving an old category matters if it causes loss of a clinical tag or a spurious clinical tag.
Accuracy on clinical entity labels in the Endocrinology and Rheumatology test histories
Training only on the clinical labels gives slightly higher accuracy when those labels define the task.
The numbers
| System or setting | Accuracy |
|---|---|
| Training with original labels retained | 0.88 |
| Training focused on clinical labels (this paper) | 0.89 |
When the reference distinguishes the previous entity categories from untagged material, overall accuracy is 0.74 for training with retention and 0.18 for the focused training. The broader scoring rule puts a cost on losing labels that the narrow rule groups together. The paper describes the focused system as having forgotten the original categories. Material outside the clinical targets is either left untagged or assigned to one of those targets. Thus the wider result provides a check on what was lost during adaptation, even when the original tags had limited usefulness for the immediate clinical task.
Accuracy with original and clinical entity labels scored in the Endocrinology and Rheumatology test histories
Keeping the original labels in training preserves much higher accuracy when the evaluation includes them.
The numbers
| System or setting | Accuracy |
|---|---|
| Training with original labels retained (this paper) | 0.74 |
| Training focused on clinical labels | 0.18 |
These scores concern the annotation task on the selected clinical histories. The point of identifying a drug and a quantity is to make those spans available as structured pieces of information. Accuracy at this level leaves open whether the quantity belongs to that drug, whether the drug is currently used, and whether the disease expression refers to an affirmed diagnosis. The experiments treat those interpretation steps as further work.
Negative sentiment in translated comments
The paper first examines the human labels. It distinguishes the balance between satisfaction and outcome comments from the distribution of sentiment among topics within satisfaction. For the comparison involving satisfaction and outcome comments, it reports the following test statistic.
χ² = 5.424
χ² is the chi-square statistic for the distribution comparison. The value summarizes the departure from the proportions evaluated by the test. The authors report a p-value of 0.066 and describe the difference as statistically nonsignificant. The p-value is the probability, under the null comparison, of a result at least as extreme as the one observed. The result describes the labeled comments the researchers analyzed and does not establish equal prevalence in other collections or over time.
For the comparison within satisfaction, the paper reports a second statistic.
χ² = 10.123
χ² again denotes the chi-square statistic, here for the reported comparison of the satisfaction subcategories. The accompanying p-value is 0.006. The authors report an imbalance toward negative comments for hospitality and more positive responses for nursing. This analysis concerns distributions in the human labels, before the comparison of automatic sentiment detection. It illustrates why the topic distinction is relevant when interpreting comments as potential alerts.
In the binary test on translated patient comments, VADER reaches accuracy of 0.72, sensitivity of 0.71, and specificity of 0.75. The tweet-trained classifier reaches accuracy of 0.63, sensitivity of 0.66, and specificity of 0.61. The comparison includes both positive and neutral comments in the group that should remain unflagged. The word- and phrase-based method has the higher reported value on each measure at the chosen cutoffs.
Negative sentiment detection accuracy on translated patient comments
The word and phrase scoring method has higher accuracy on the patient comments.
The numbers
| System or setting | Accuracy |
|---|---|
| Classifier trained on tweets | 0.63 |
| VADER word and phrase scoring (this paper) | 0.72 |
The paper also reports correlation between the predicted score and the labeled sentiment. The value is 0.58 for the word-based method and 0.19 for the tweet-trained method. Correlation describes how strongly the score and the reference sentiment vary together. The accuracy, sensitivity, and specificity describe the outcome after applying a cutoff. Both descriptions favor the word-based method here. Neither measure uses a later clinical event as the reference, so these results speak to identifying perceived negative sentiment in a text and not to identifying a complication.
Postoperative improvement from structured records
The disc herniation cohort includes 42 patients classified as not improved and 189 classified as improved at the 3 months assessment. The paper expresses the class distribution as 18% not improved and 82% improved. These are outcome labels derived from the ODI change threshold. In evaluation, the less frequent outcome of insufficient improvement is the positive class. Sensitivity therefore measures how frequently a patient in that group is recognized by the classifier, even though the positive label in everyday language might suggest the opposite outcome.
The authors also use AUROC because sensitivity alone can reward an approach that flags many patients. A high rate of positive predictions would catch many cases of insufficient improvement and could generate many false alarms as well. AUROC gives a view of discrimination over thresholds. The authors explain that, for the intended decision, missing someone at risk of failing to improve could matter more than following up on someone who ultimately improves. The measures help assess a possible tradeoff. The study does not estimate the effects or costs of a follow-up intervention itself.
The feature selection procedure ranks the presence of degenerative disease as an additional condition, conservative treatment lasting more than 12 months, relief of peripheral pain as a purpose of surgery, use of rigid spinal stabilization, and the preoperative ODI score among the most prominent inputs. The ranking reflects the feature selection procedure in this dataset. It identifies information the classifier can use in predicting the recorded outcome. It does not establish a causal relationship between a procedure or condition and recovery.
The paper compares sensitivity and AUROC for the balanced and original-proportion versions of each classifier family. Its figure summarizes the averages and confidence intervals from cross-validation. Considering the two measures together, the authors select Naïve Bayes trained with the original class proportions. Their account identifies the winning setup without giving exact scores for the individual plotted settings in the written results. The result establishes the authors' choice among the tested configurations for this structured-data experiment. It does not compare predictions from coded inputs with predictions from the same inputs augmented by narrative notes or sentiment scores.
What the ablations show
Changing class representation can help or hurt
The paper reports comparisons of training and evaluation choices, without a formal component-by-component ablation of the text pipelines. The comparison for discharge letters holds the classifier family and the test distribution in place while changing the training representation of the target section. Performance improves with the balanced training material even though it contains fewer examples. In this sentence-classification setup, giving the target category greater representation was more helpful than retaining all the examples available under the original distribution. The experiment evaluates a change in the composition and size of the training material together. It cannot identify the independent effect of each.
The postoperative comparison also includes balanced and original-proportion training. The strongest joint result for sensitivity and AUROC comes from the original-proportion Naïve Bayes condition. The authors suggest that undersampling discarded too much training information. They also suggest that the largely categorical character of the selected inputs may have suited Naïve Bayes. Both interpretations remain explanations proposed by the authors. The study does not hold sample size fixed while varying class proportions or isolate the effect of the categorical inputs while keeping every other choice in place.
The two findings apply to different units of observation. The classification of letters draws on sentences or fragments, whereas the postoperative question draws on cases with a measured patient outcome. They also use different input representations and classifier families. A training rule that helps one problem can have a different effect when each available record is harder to replace. The paper uses this comparison to explain why balancing should be evaluated within the target task and judged with the intended performance measures.
Changing the labels changes what counts as a success
The entity experiment varies what the system sees during adaptation, then evaluates the consequences under different definitions of correctness. Training that concentrates on the clinical labels improves the narrow aggregate result slightly. If older entity categories are part of the intended output, including them during training protects performance. The measured loss is large under the broader definition, which recognizes the distinction between an older entity type and untagged material. The narrow definition hides that loss by design, because those two kinds of output are outside its target categories.
This is a comparison of complete training conditions. The condition that includes previous labels uses more iterations, and the authors attribute the shorter run for focused training to faster convergence. The results show what happened with those chosen settings. They cannot determine the separate effects of the label inventory and the number of iterations. The strongest inference is about the behavior of the final adapted systems under the reported scoring rules. The focused version can serve a narrow category inventory, and the retention version provides substantially better coverage under the broader one.
The confusion matrices also matter because a discarded category can affect the remaining labels in different ways. The classifier can leave the span untagged or assign it to a category the clinician does care about. The second action can produce extra disease, drug, or quantity flags. Viewing recognition through both the targeted performance measures and the confusion matrices exposes this distinction. A single aggregate accuracy number cannot show where the missing categories went.
What changes when the sentiment test excludes neutral comments
The sentiment comparison evaluates two kinds of resource transfer. One transfers a scoring lexicon and phrase handling to translated comments. The other transfers patterns learned from tweets. Both are applied to the same patient comments at their respective fixed cutoffs. The word-based method wins on the reported measures for that task. The paper attributes some of the tweet classifier's difficulty to the language of tweets and to the fact that its training corpus supplies positive and negative examples without neutral ones. These are plausible properties of the transfer problem. The main comparison varies the training source and the underlying scoring procedure together, so it cannot quantify the contribution of each difference.
The authors do report a restricted test relevant to that explanation. When they test the tweet-trained method only on the positive and negative comments, it reaches accuracy of 85%. The original accuracy of 0.63 came from a test in which positive and neutral comments both had to be distinguished from negatives. The restricted condition removes the kind of comment absent from tweet training. It shows how strongly the reported outcome depends on the test population. It also changes the mixture of examples used to measure accuracy, so it does not demonstrate that the same classifier will work at that level on an ordinary mix of comments.
The cutoff curves examine a different choice. They show how sensitivity, specificity, and accuracy respond when the score required for a negative flag changes. This analysis can reveal whether an apparent strength at one threshold is accompanied by weak performance elsewhere. The paper preserves the original cutoffs for its main comparison and uses the curves to describe the tradeoffs. There is no test of a cutoff selected prospectively to match the capacity of staff reviewing alerts.
What the spelling inspection can diagnose
The move from Levenshtein distance to Damerau–Levenshtein distance is motivated by a concrete error type. An adjacent swap should qualify during a narrow edit search if that search is meant to catch ordinary transpositions. The paper explains the decision and reports the resulting corrections. It does not compare how many accepted corrections each distance would yield on the same annotated set. The explanation establishes the scope of the search operations, and the inspection identifies examples of candidate matches that still need judgment.
The rejected matches clarify where adding more local knowledge could help. Distinct units, abbreviations, or acronyms can be close to familiar strings without being errors. A dictionary that includes more of these forms can protect them at the candidate-selection stage. The paper discusses that as a possible improvement. Its manual review describes the failure mode under the chosen vocabulary and does not measure the effect of an expanded dictionary. This distinction is especially important when the output might change a clinical record rather than tag a copy for research.
Limitations
Limits identified by the authors
For spelling correction, the authors acknowledge the reach of the single-edit search. A mistake that requires more edits can remain untouched. They assume that such cases are less frequent, but the paper does not estimate their prevalence from a fully annotated reference. Ambiguous forms also survive the basic comparison of strings. A correctly spelled expression can have several interpretations in Italian, and the intended sense depends on its use. The correction procedure gives a practical way to repair some forms while leaving that larger question of interpretation open.
The authors also recognize false positives in the spelling suggestions. They propose enriching the dictionaries with more clinical units and shorthand. Phonetic techniques discussed in the paper may catch other kinds of spelling mistakes, and the authors note differences between the kinds of errors likely in Italian and English. Their own procedure relies on visual similarity between written strings. It therefore has a narrow account of what makes two forms plausible variants even before the reviewer considers medical meaning.
For discharge letters, the authors identify the small supply of San Siro documents as the main empirical limit. Similarities in vocabulary and style between the two hospitals might make transfer possible. The authors point out that differences in templates or documentation guidelines can still matter. A target section may have a predictable wording at Galeazzi because of a local template, and a different hospital may use that wording elsewhere. Held-out Galeazzi performance is evidence about the origin hospital. Estimating performance for San Siro would require enough labeled material from the intended destination.
For entity recognition, the authors emphasize the difference between newspaper Italian and clinical Italian, and the loss of the earlier categories when adapting solely to the new ones. They also identify negation as unfinished work, especially with flexible sentence constructions and double negatives. A system can correctly label the span denoting a disease even when the note says the disease is absent. Further work would also have to link drugs, quantities, and diseases to one another. Independent tags give a starting point for that work, while a usable clinical representation often needs the links among them.
The sentiment experiments depend on translation. The authors propose evaluating its impact and testing resources originally created in Italian, ideally with neutral examples where training labels are used. They also point out that both methods capture the positive or negative associations of ordinary language. Medical significance can have a different scale. A drug associated with a serious disease need not have negative lexical sentiment, and a patient's intense dissatisfaction with hospitality can have little bearing on the severity of a condition. The authors propose resources that better represent this distinction. Their experiments use human sentiment labels as the reference and leave the clinical interpretation for future work.
For postoperative prediction, limited follow-up and the reduced sample under undersampling constrain how much material is available to fit and tune a classifier. The authors also note the difficulty of comparing their predictor with other studies because the groups use their own data. A similar sensitivity or AUROC on a different cohort may reflect different criteria for inclusion, a different definition of improvement, or different available predictors. The literature comparisons give context for what the local study attempts. They do not establish a common performance ranking across institutions.
Limits apparent from the evaluation setup
The spelling study measures the candidates it can find. Its review makes it possible to count rejected suggestions. Without a reference inventory of both common and rare typos across the source material, the evidence cannot establish how much of the error burden is removed. The assumption that frequent forms are correct is convenient, yet a recurrent incorrect form could fall into the accepted part of the distribution. In the opposite direction, a valid rare term may be proposed for correction if neither dictionary covers it. Manual inspection protects the decisions actually reviewed, while the scale of the remaining problems stays unknown.
For discharge-letter classification, the reported split is described through the available text. The paper does not establish that every sentence from a particular letter or patient stayed together on one side of the split. That detail affects how to interpret a sentence-level test. If portions of a letter or closely repeated template language occur in training and test material, classifying a held-out sentence can be easier than structuring a wholly new letter. The reported evaluation also gives limited information about how the independent binary decisions would be merged into one assignment per sentence, including cases in which more than one section receives a strong score.
The entity results use a held-out collection of 50 annotated clinical histories. The study shows adaptation within the specialties that supplied the texts. It gives less information about accuracy for a new specialty, a revised annotation guideline, or a hospital with different phrasing. Furthermore, the reported contrast between accuracy with and without the older categories changes the scoring question. Readers comparing the numbers need to keep the category inventory in view. The narrow score characterizes the hospital's chosen extraction target, and the broader score characterizes retention of previous behavior.
In the sentiment work, agreement among annotators supports the use of a shared reference, but the mode can hide disagreements about ambiguous comments. A comment could describe improved mobility and poor communication in the same passage. The study's use of a final topic and a final sentiment supports a tractable comparison. It leaves open how well the methods handle passages in which different judgments are justified for different parts. The reported results also give no prospective measure of the fraction of alerts that would merit clinical attention or how often working staff would need to review them.
The outcome experiment provides a local test of whether structured measurements and procedure details can support prediction of insufficient improvement. The timing of the inputs matters to any proposed application. A predictor intended for use before a procedure could use preoperative questionnaires, while fields completed during or after the operation may only be available later. The paper includes both sorts of information and does not validate a specific clinical decision point. It also leaves open how much predictive performance would change when evaluating a later cohort or a different hospital. Those questions are distinct from choosing among the classifier configurations compared on the available records.
Finally, the local experiments describe feasibility task by task. The paper's review motivates an eventual connection among better text quality, information extraction, and decision support. Its own measurements follow individual outputs rather than that whole chain. The spelling exercise gives no measured gain in entity recognition, and the sentiment exercise gives no measured gain in prediction of disability or complications. Likewise, reviewed work on eligibility supports the rationale for cohort selection without a local eligibility test. The strongest claims concern the quality of the specific classifications and extractions the authors evaluated.
What came after
The documented research record for this article does not identify a later study that directly extends these experiments. The follow-on work described by the authors is prospective. For text extraction, they point toward resolving negation and linking quantities and diseases to the appropriate drug mentions, so that a record search could use relationships as well as individual terms. For patient comments, they propose testing Italian sentiment resources and evaluating the effect of translation. For discharge letters, the outstanding test is whether a section classifier trained at Galeazzi works on a substantial, independently labeled collection from San Siro. Each direction would answer a question left open by the original experiment, and the paper treats them as work still to be done.
Cite
Cite as Michela Assale, Linda Greta Dui, Andrea Cina, Andrea Seveso and Federico Cabitza. 2019. The Revival of the Notes Field: Leveraging the Unstructured Content in Electronic Health Records. Frontiers in Medicine.
@inproceedings{assale2019revival,
title = {{The Revival of the Notes Field: Leveraging the Unstructured Content in Electronic Health Records}},
author = {Michela Assale, Linda Greta Dui, Andrea Cina, Andrea Seveso and Federico Cabitza},
booktitle = {Frontiers in Medicine},
year = {2019},
doi = {10.3389/fmed.2019.00066},
url = {https://doi.org/10.3389/fmed.2019.00066}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/assale-2019-revival-notes-field-leveraging-unstructured/