Markup: A Web-Based Annotation Tool Powered by Active Learning
Paper · 2021 · Samuel Dobbie, Huw Strafford, William Owen Pickrell et al.
Summary
A clinic letter can tell a reader what medicine a patient takes, how much they take, and how often they take it. Recording those details in a form that can be searched or analyzed requires someone to find the relevant passage and decide how to represent what it says. Expert time limits how much text can be processed this way. Dobbie and colleagues developed Markup, an open-source application that lets annotators select passages, record details in a project-specific format, and review suggestions as they work. The paper demonstrates the approach on prescriptions in clinic letters, a task that calls for both identifying relevant text and recording several distinct facts about it. That combination illustrates what the authors mean by complex linguistic annotation.
Markup divides prescription suggestion into separate tasks. A Random Forest classifier looks for sentences likely to contain a prescription. A word-level recurrent network then turns the text of a candidate sentence into proposed attribute values, such as a drug name, dose strength, or frequency. The annotator can accept, edit, or reject the proposal and can add a prescription that Markup missed. The suggestion process starts with training examples generated from user-defined templates. In the prescription study, the authors used 50 synthetic sentences to initialize the sentence classifier and 50,000 synthetic examples with corresponding outputs to train the attribute converter. A separate feature searches a standard or custom terminology for entries resembling a selected phrase and lets the annotator attach an entry to the annotation.
To compare assisted and manual work, four experienced annotators each processed two sets of 25 pseudonymised clinic letters. They used Markup in both conditions and switched methods between sets. The paper reports a 14.2% reduction in annotation time with assistance, corresponding to 11.01 min in the authors’ aggregate comparison. It reports a change of 0.02 in mean pairwise F-measure, a measure of agreement between annotators. The results paragraph calls this an increase, while the comparison table and discussion describe a decrease. In a separate comparison across 25 letters, feedback from one annotator reduced incorrect suggestions from N = 106 to N = 50, while correct suggestions went from N = 66 to N = 68.
The study shows how synthetic examples and editable suggestions can support a defined task on real clinical text. Its time result concerns a workflow in which experienced people review suggestions and fill gaps manually. The authors also describe using Markup during work on epilepsy and plastic surgery letters, and using the resulting annotations to build and test extraction applications. The paper gives a quantitative comparison for prescription annotation. It also identifies practical limits, including a delay in generating attributes, restricted document formats, limited support for group work, and terminology suggestions that depend on the written resemblance between phrases.
Deep dive: Markup: A Web-Based Annotation Tool Powered by Active Learning
Markup helps people annotate clinical letters with editable prescription suggestions and links from selected text to standard terminology. · about 33 minutes to read
The problem and its context
A readable letter still needs interpretation
A clinical letter is written so that another person can understand what happened in a consultation. It may describe symptoms, history, diagnoses, risks, outcomes, and treatment in connected prose. A reader can follow those details where they occur in the letter. For a study that needs to find the same kind of information across many letters, the details need an explicit representation. A passage about a prescription might have to yield separate entries for the medicine, the dose, the frequency, and any further instructions. A structured record makes those parts accessible individually and keeps them associated with the passage from which the annotator obtained them.
Doing this by hand involves several judgments. The annotator must recognize that a sentence contains a prescription, select the extent of the relevant text, assign a category, and determine which parts of the phrase answer the questions the project asks. A sentence may state several details together, while a project may require each detail in its own field. The reader also has to deal with the way a term appears in the document. The authors give examples of misspellings, abbreviations, and phrases that express a familiar concept in everyday wording. A project may want to retain the original passage and also associate it with a standard term. That pairing preserves what the document says and gives downstream software a consistent value to work with.
The paper treats this conversion as part of a larger research process. Once experts have annotated documents, the resulting records can be used to develop and check software that extracts information from other text. A gold-standard dataset, in the authors’ framing, gives the extraction system examples to learn from and gives researchers a reference for validation. The need for a reference remains even when the process of creating annotations is assisted. The task is a form of information extraction within natural language processing.
The time cost matters because the judgments frequently require domain knowledge. The authors cite an earlier study in which an experienced annotator averaged 15–30 min on a document containing 41 data elements. Those figures describe the work cited in the introduction. The Markup experiment uses its own sets of clinic letters and its own timing comparison. The citation sets up the practical problem: collecting more examples can require substantial specialist labor even when each document is short. For a team working on a particular clinical question, the effort of preparing the data may determine how much of the available text enters the study.
Prescriptions make this problem concrete. When a sentence contains a medicine and instructions about its use, a system can be right about the presence of a prescription while supplying the wrong strength or leaving the directions blank. Conversely, an annotator may know exactly how to represent the information once the relevant sentence has been brought to their attention. Finding the passage and filling the fields are distinct kinds of work. The authors use that distinction to explain where suggestions could help and why a tool that only points to a likely passage still leaves work for the annotator.
What earlier tools already supported
The paper describes an established set of annotation tools. The brat system allows users to mark entities, record attributes such as whether an entity is negated, and indicate relationships between entities. An entity in this context is a category assigned to some selected text. An attribute records something about the instance of that category. An annotation schema defines which categories and fields are available in a particular project. These capabilities let a team capture more detail than highlighting alone, and brat’s standoff format gives the markings a representation separate from the document text.
Some tools the authors discuss can annotate against an existing ontology. Examples include Knowtator and the Human Oracle Suite of Tools, which can be extended. For the purposes of the paper, an ontology supplies recognized terms and associated information that can be attached to a chosen passage. In medicine, the authors use the Unified Medical Language System, or UMLS, as their example. An annotator who recognizes a concept in a misspelled or unusually phrased passage can record the source span and select the corresponding standard entry. That adds a normalization decision to the annotation workflow.
Other tools addressed the need for several people to annotate as part of a common project. The authors describe systems that can set up shared annotation schemas and support the calculation of agreement across annotators or sessions. The paper mentions TeatTat and Marky in this connection. Its account of distributed annotation also includes WebAnno.
The authors distinguish between software used from a browser and software that requires components to be installed locally. They cite Anafora as an example of the shift toward web-based access. For the clinical work that motivates Markup, local operation also has a specific purpose. Teams may be working with documents that must stay within an organization or on a designated machine. A browser interface and a standalone deployment can serve different practical needs even when annotators use the same controls to select text and record its attributes.
From prepared suggestions to feedback during annotation
The paper groups earlier forms of machine assistance into pre-annotation and active learning. Pre-annotation makes suggestions available for review on the basis of an existing source of training information. The Rapid Text Annotation Tool is the authors’ example of an approach that learns from an annotated gold-standard corpus. Its relevance to Markup is the review workflow: some of the first pass through a document can be done in advance, so that annotators spend part of their time checking proposed entries.
With active learning as described in this paper, the suggestions can change after the tool receives information from an annotator’s decisions. The authors identify INCEpTION and ezTag as examples of tools that already use interactive assistance. They describe INCEpTION as using uncertainty sampling in a setup trained from a gold-standard corpus to help propose spans and assign categories. In that setting, uncertainty sampling uses the system’s uncertainty to guide which cases it seeks labels for. The paper describes ezTag’s interactive mode as able to begin with a pretrained tagger or string matching, without requiring the user to supply training data for that mode.
These precedents frame the authors’ contribution. The paper says that earlier suggestion systems commonly concentrate on finding or categorizing entities, often leaving the annotator to complete the associated fields. Finding a reference to a prescription is part of named entity recognition as Markup applies it. Producing the drug name, strength, frequency, and other directions as separately editable values is an additional operation. That extra operation gives the proposed entry a structure an annotator can inspect field by field. It also carries its own error and delay, because a sentence that was correctly flagged still has to be interpreted. The paper situates the proposal in relation to named entity recognition.
The authors also draw on a review of biomedical annotation tools that identifies accurate pre-annotation as a priority. The connection is practical. A proposal can save time if it captures work the annotator would otherwise do from scratch. It can cost time if the annotator must read it, discover the error, and correct or dismiss it. The Markup design brings both considerations into the same workflow. It gives the annotator a structured candidate, keeps manual annotation available, and uses feedback to adapt the suggestions. The synthetic training procedure is intended to make that workflow available before the project has compiled a large corpus of annotated documents.
The method, step by step
From the document to an exportable annotation
A Markup session begins with the text and a description of what the annotator is supposed to record. The text comes from plaintext documents. The description comes from a configuration file in brat standoff format, which can be made with Markup’s configuration editor. The configuration supplies the entities and their attributes. In a clinical project, it gives the interface enough information to present the fields that belong to a prescription or to another type of clinical finding. The paper illustrates the configuration editor with epilepsy and seizure categories. That illustration concerns the setup of the interface. The trained suggestion process demonstrated in the study concerns prescriptions.
A session can contain several documents. If annotated versions already exist, Markup can load the corresponding .ann files and display the annotations for the relevant document. That makes review and re-annotation part of the same workflow as initial capture. A project can also supply an ontology during setup. The choices about categories and attributes come from the annotation configuration, while the ontology supplies terms and identifiers that can be attached to particular entries. An annotation can therefore have the structure defined by the project and also carry a standard identifier chosen from a terminology.
The interface gives the document, the configuration controls, and the annotation list their own areas. The selected document occupies the central panel. The configuration panel on the left supplies the entity choices, attribute fields, and ontology suggestions and contains the controls for adding and exporting annotations. The panel on the right lists saved annotations and proposed ones. The saved entries are grouped so that the annotator can return to them and inspect what was recorded. Color in the document shows which passages have been annotated and associates each mark with its entity category.
For a manual annotation, the user selects the relevant passage and chooses an entity. Markup displays the attributes defined for that choice. For example, the annotator working on a prescription can concentrate on the fields the project has made available for prescriptions. The interface also accepts free text for attributes, so the annotator can enter a value that the configuration did not anticipate. The category gives the record its structure, while free text gives the annotator a way to capture wording or values outside a pre-defined list.
The placement of an existing annotation does not prevent another annotation from covering some or all of the same passage. This is useful when a region supports more than one entry or when a relevant detail sits within a larger phrase. Each saved entry can be inspected through the list or by hovering over the marked text. Selection in the annotation panel also exposes editing and deletion. The separation between a span on the screen and an entry in the list matters whenever several markings share a region. The annotator needs to be able to inspect the attributes of the particular entry they intend to modify.
At the end of the session, Markup exports brat standoff annotations. Keeping the record separate from the plaintext gives other software a way to use the annotations without treating the colored document display as the data. The authors name the General Architecture for Text Engineering as one example of external software that can use the exported form. They make Markup available through the getmarkup.com website and publish the standalone application in the samueldobbie/markup repository. The web interface and the standalone distribution support the same basic work of opening text, adding records, and exporting the result.
How a suggested prescription reaches the annotator
The prediction workflow starts with the task the project wants to support. In the study, an eligible sentence contains a prescription, and the output needs to capture its associated details. Markup screens the sentences in the open document for that kind of content. If a sentence is selected, a separate component reads it to produce the attribute values. At that point Markup can offer the structured proposal to the person working on the letter.
How Markup generates and revises prescription suggestions
The steps in order.
The sentence screening is done by a Random Forest classifier in the active learner. Its job is to discriminate between sentences that contain a prescription and sentences that do not. In this application, the classifier’s decision determines which sentences pass to the next stage. It therefore has a direct effect on the reading burden. A relevant sentence that it overlooks must still be found during the human pass through the document. An irrelevant sentence that it advances can yield a proposal that the annotator has to inspect. The classifier solves the problem of selecting candidates. The attributes of those candidates are produced elsewhere in the workflow.
The converter is a word-level sequence-to-sequence network built using Long Short-Term Memory, or LSTM. Sequence-to-sequence here describes a change from the word sequence in a sentence to an output sequence representing the requested attributes. Working at word level means that the input to this conversion is organized around words. The purpose is to recover details from the phrasing of the sentence and place them in the appropriate fields. In the case demonstrated, the requested details are medication information. The intended output is a usable proposal within the annotation interface, with several values the annotator can inspect and edit.
This separation gives a useful way to trace an error. If a sentence containing a prescription never reaches the converter, there may be no suggestion for the annotator to review. Where a sentence does reach the converter, the proposal could still omit a detail or put the wrong text in a field. Even a plausible-looking set of attributes can come from an irrelevant sentence. Looking only at the finished proposal can make these failure points hard to distinguish. The paper describes the division of labor in the design, and the experiment measures the resulting workflow. It gives substantially less evidence about where individual errors arose.
The user can accept, edit, or reject a proposed entry. Acceptance keeps an entry the user judges suitable. Editing can preserve useful parts of a proposal while changing the rest. Rejection lets the user discard a proposal that does not belong in the completed annotation. The paper describes feedback from these interactions as a way to adjust later suggestions and explicitly measures a comparison with and without input to the active learner. It gives the interaction options and the purposes of the two prediction components. Details of the feedback-to-update procedure, such as the timing of individual updates and how each edit is represented during learning, are left unspecified.
Suggestions concern the document in view. The annotator still has access to the document text, to any annotations already present, and to the controls for recording an entry directly. The screenshots showing live annotation and review use a synthetic letter prepared by a clinician to resemble clinical writing. The timed comparison uses pseudonymised clinic letters. Those examples have different purposes: the illustrated letter shows the controls and the shape of the proposals, while the clinic-letter comparison tests how the assisted workflow performs on the task the authors chose.
Creating the synthetic training material
The data generator lets a project author describe patterns in sentences before a collection of manually annotated documents is available. The author defines sentence templates with fields whose values can vary. The generator can draw possible values from a selected subset of UMLS concepts, from arbitrary strings, or from numeric ranges. These sources cover different kinds of field. A term can come from a controlled vocabulary, a string can supply project-specific wording, and a range can vary a quantity. Resampling the templates with different attribute values produces a collection of examples from a set of patterns.
For the active learner, the team generated 50 seed examples for distinguishing prescription sentences from other sentences. Of these, 25 were positive examples containing a prescription and 25 were negative examples without one. The labels needed for this part of training are about sentence membership in the target class. The training sentences for the classifier did not need full target outputs describing the drug, dose, and directions. The positive and negative split supplies the distinction the classifier is meant to learn at startup.
The attribute converter received 50,000 synthetic training examples. Each came with a target output, because the task is to recover the values expressed by a sentence. When the generator fills the fields of a template, it has access to the values used to construct the text. That is how it can supply the expected attributes with the input sentence. The converter’s training data therefore contain the association between wording and field values that the sentence classifier’s data do not have to supply.
Both components began without real-world training data. The annotation sessions subsequently exposed the active learner to decisions made on real clinic letters. The distinction between initial training and later feedback helps explain what the comparison tests. The authors demonstrate that the tool can start offering structured suggestions on clinical text after preparation with templates, and that interaction can change the suggestions encountered during annotation. The templates still require the project author to decide which sentence forms and attributes to represent. Where a real letter uses constructions the templates do not cover well, it remains the annotator’s job to make the necessary judgment.
The counts also describe different kinds of evidence available to the system. The 50 seed sentences give examples of the distinction between presence and absence of a prescription. The 50,000 conversion examples give paired sentences and desired attributes. Their number describes the generated training material. The paper does not quantify how broadly the templates cover ways of writing a prescription. A template with many possible terms or values can yield many examples with the same basic sentence structure. The evaluation on clinic letters is important because it moves beyond the controlled circumstances in which the synthetic sentences were constructed.
Finding a standard term for a selected span
Markup can also look up standard terminology for a passage the annotator has selected. The paper motivates this feature with clinical wording that may be misspelled or expressed differently from the vocabulary used for analysis. Its examples include a misspelling of focal epilepsy and a phrase about a patient breaking an arm. The standard entries illustrated are focal epilepsy and broken arm. The paper also gives ADR and adverse drug reaction as an example of the desired correspondence between a written abbreviation and a full term. The discussion cautions that the implemented search is unlikely to recover that kind of acronym expansion from spelling resemblance alone.
The search can use a supplied custom ontology or a preloaded resource such as UMLS. For the custom option, the paper specifies a plaintext list in which each line consists of a term and its code separated by a tab. When the chosen resource requires permission, Markup supports authentication through the UMLS authentication interface. This is access to the terminology. The authors discuss accounts for storing and sharing annotation projects as a separate application feature, which Markup lacked at the time of the paper.
The lookup first compares the selected wording with entries in the chosen vocabulary. To give misspelled forms a chance to match, it represents strings using fixed-length pieces of characters, called n-chars in the paper. The length is what the letter n denotes. Comparing pieces can preserve evidence of resemblance when part of a word is mistyped. The method looks at pieces of the string to find potential entries, so the relevant resemblance is between written forms. There is also a manual query option for a case in which the annotator wishes to supply a search phrase independently of the text selection.
Markup uses SimString to make this comparison practical over the vocabulary. SimString builds a database from the character representations of the terms. A selection made in the document becomes a query against that database. The system filters the terms first and computes cosine similarity against the candidates that remain. Cosine similarity measures the alignment of the representations of the query and each term. Terms that meet the similarity requirement remain eligible. The paper describes the order of these operations and leaves the character-piece length and numerical threshold unspecified.
For display, the eligible terms are ordered by Levenshtein distance from the query. This distance describes how many character changes are needed to turn one string into the other, using operations such as inserting, deleting, or substituting a character. The terminology lookup thus has a stage that finds candidates with sufficient resemblance and a stage that orders the resulting choices. The article names both measures and describes their use in prose. It gives no equations specifying them.
The dropdown gives the annotator a choice about which mapping, if any, belongs with the annotation. If the annotator accepts one, the details associated with the chosen entry, including its identifier, can be stored with the annotation. This is a separate judgment from deciding whether a sentence contains a prescription. A passage can be worth annotating even when the proposed terminology matches are poor. The lookup also applies to ordinary selections during manual work, so it is available beyond the prescription suggestion workflow.
Operating on clinical documents
The paper reports that the interface was developed in React and TypeScript, with a Python backend using Flask. For the hosted arrangement, it describes encrypting communications with HTTP over TLS. For sensitive material or cases in which organizational rules restrict where documents can go, the authors recommend using a local installation and server. The comparison of active learning and manual annotation used the local version on standalone machines. That detail establishes the setting of the reported timing and keeps the comparison within the deployment mode the authors considered suitable for the clinic letters.
During development, the authors used de-identified and anonymised clinic letters to check the application’s outputs. Clinicians and data analysts gave feedback while using Markup on letters concerning epilepsy and plastic surgery. The paper also describes re-annotation as definitions changed. This connects the interface controls to a real project concern: the fields a team wants to capture can become clearer after reviewers begin using them. Loading existing annotations, inspecting their values, and making further entries give the project a way to continue work after its definitions have been revised.
Experiments and results
The comparison used the same application in both conditions
The prescription study compared manual annotation with annotation assisted by predictions. Its baseline was manual work in Markup. The comparison therefore concerns what changes when the reviewer has the suggestion workflow available, with the rest of the application in use on both sides. The authors did not run a timed competition with the other tools discussed in the paper. Those tools establish the design context. The manual workflow establishes the experimental baseline.
Four experienced annotators worked through two sets of 25 pseudonymised clinic letters. They were responsible for documenting each prescription’s drug name, dose strength, how often it should be taken, and any additional instructions. Each annotator worked on one set manually and on the other with predictions. In the assisted condition, the reviewer could accept, change, or reject a proposed annotation. The reviewer was instructed to add a prescription manually when Markup failed to supply a valid suggestion for it. The time measure thus includes human review and the work of filling gaps. It measures the complete annotation task specified by the authors.
On set 1, annotators 1 and 2 worked manually and annotators 3 and 4 used suggestions. On set 2, the assignments were reversed. This arrangement lets both methods be used on each set and lets every participant experience both conditions. It also keeps a participant from doing the same letter set twice merely to obtain a time for each method. The authors explain that prior familiarity with a document can make a manual pass quicker. They also designed the swap to reduce the influence of one set being intrinsically more difficult to annotate than the other.
The comparison has different units at different stages. A clinic letter is a document an annotator works through. A prescription is an item to be recorded, and its fields are the details to be captured. A suggestion can be inspected as correct or incorrect in the feedback comparison. The time result concerns sessions on sets of letters, while agreement concerns the resulting annotations. The paper gives no field-by-field results that would make it possible to connect the time result to the difficulty of capturing any particular field.
Annotation time and agreement
The authors report that the assisted method reduced annotation time by 14.2%, with an aggregate saving of 11.01 min. The reported confidence interval is 0.62–0.87 and the reported significance level is p < 0.001. The paper prints this interval alongside the aggregate result without specifying its scale clearly enough to interpret it as an interval in minutes or percentages. The percentage and the time saving can be reported as the authors’ results, with the interval kept in its reported form.
For this comparison, the time includes checking the suggested entries and doing any manual work required to complete the prescriptions. That makes it an estimate of whether assistance paid off for the people doing the task. Correct candidates can save the reviewer a selection and several field entries. Incorrect candidates still have to be considered, and missed prescriptions still have to be entered. The direction of the time result indicates that the package of suggestion and review was faster under the study conditions. The measurement does not establish how much time was saved at any particular step in the application.
The authors use pairwise F-measure to represent agreement on the completed annotations. They describe treating an annotator’s work as the reference when comparing it with another person’s output, changing who serves as the reference, and averaging the resulting F-measures. The purpose is to see how closely reviewers’ records agree. It is an agreement measure with an annotator’s work acting as the reference in each comparison. The experiment does not provide an independently adjudicated record against which the factual correctness of every annotation can be judged.
The report is internally inconsistent about the direction of the change in mean pairwise F-measure. The results paragraph describes an increase of 0.02, while the table labels the change a decrease of 0.02 and the discussion also describes a decrease. The table gives manual and predictive agreement, respectively, as 0.96 and 0.93 for set 1 and as 0.89 and 0.88 for set 2. Those paired values support the direction given in the table and discussion. The reported confidence interval for the mean change is 0.05–1, with p = 1. The agreement result supplies weak grounds for a claim that suggestions improved consistency, and the conflicted wording makes the table important for interpreting the reported direction.
The difference in pairwise agreement across the letter sets also matters when interpreting the study. The manual scores are different across the sets, as are the predictive scores. Each set was annotated under both methods, but different pairs did the manual and assisted work on any given set. As a consequence, a set-specific comparison involves both a method change and a change of annotator pair. The reversal on the other set is the authors’ way to reduce this dependence. The table shows the observed agreement in those assignments. It does not show how any given pair would agree under both methods on the very same letters.
Speed and agreement answer different questions. Time captures the effort required to finish the task as arranged. Agreement captures how closely the finished records converge. Reviewers might agree on a prescription while spending different amounts of time finding it. They might also complete the work faster with suggestions and still differ about whether a particular phrase or attribute belongs in the record. The study’s time finding is more direct than an assertion about accuracy: the sessions were timed, and the comparison shows a reduction. The agreement measure describes the outputs from those sessions on its own terms.
What happened to suggestions after feedback
The paper also describes a smaller analysis of what changes when an annotator supplies input to the active learner. One annotator compared baseline suggestions for all 25 letters with suggestions made when the annotator provided feedback. The baseline represents suggestions without human input to the learner. This comparison focuses on the proposals the tool makes, whereas the time study focuses on work people complete with or without those proposals.
Incorrect prescription suggestions across 25 clinic letters
The active learner produced fewer incorrect suggestions with annotator feedback.
The numbers
| System or setting | incorrect suggestions |
|---|---|
| Baseline without feedback | 106 |
| Active learner with feedback (this paper) | 50 |
Incorrect suggestions fell from N = 106 in the baseline to N = 50 with feedback, a reduction reported as 52%. That gives the largest change visible in the suggestion counts. An irrelevant or otherwise invalid proposal is something a reviewer may have to read and dismiss. Producing fewer such proposals can make the review queue easier to work through. The study does not time the rejection of a proposal as a distinct operation, so the suggestion counts and the aggregate time result remain separate observations.
Correct prescription suggestions across 25 clinic letters
The number of correct suggestions rose slightly with annotator feedback.
The numbers
| System or setting | correct suggestions |
|---|---|
| Baseline without feedback | 66 |
| Active learner with feedback (this paper) | 68 |
Correct suggestions went from N = 66 to N = 68, reported as an increase of 3%. The counts describe how many suggestions were judged correct. The paper does not give the total number of valid prescriptions for this analysis alongside those counts. A reviewer can therefore see that feedback mainly reduced incorrect proposals and that the number of correct ones was close to the baseline count. The analysis does not show what share of all prescriptions the assisted system recovered or how often a suggestion captured all the requested fields.
The findings are compatible with an active learner that becomes more selective about what it sends for review. The paper does not establish which decisions within the classifier changed or how the boundaries of suggested spans changed. Nor do the counts reveal whether a proposal judged incorrect originated from a sentence with no relevant prescription or from a poor interpretation of a genuinely relevant sentence. They show a change in what was presented to the annotator under the feedback condition. That is a useful outcome in its own right because the reviewer’s contact with the system is through the proposals on screen.
Latency, usability, and use of the exported records
The paper identifies sentence-to-attribute conversion as the slowest step in producing suggestions. The authors report a mean conversion time of 20.2 s across 5 randomly chosen documents, which contained a mean of 55 sentences. Those figures describe the latency of generating attributes on those documents. They are distinct from the total annotation times, which include reading, review, corrections, and manual additions over sets of letters. An assisted session can be faster overall even when the process of filling the suggestion panel takes a perceptible amount of time.
The authors also report an initial usability survey within the annotation team, with an average score of 91. It captures the experience of people working with the application in the study’s development and annotation setting. The paper points to the samueldobbie/markup-sus repository for the survey material. The score is a separate kind of evidence from the timing comparison. It reflects responses about using the application, while the time and agreement measures concern the execution and output of a specified task.
The clinical use described by the authors extended beyond the timed prescription sessions. They report capturing information such as standard codes, certainty context, and several components of complex phrases. The annotations were exported as structured records. The team was using captured annotations to build and test applications, including an expanded version of ExECT for extraction from epilepsy clinic text. The paper presents this as a use of the outputs from Markup. It does not report a comparison of downstream ExECT performance trained with annotations produced in the manual and assisted conditions.
What the ablations show
The paper reports no component ablation. Its closest controlled analyses are the comparison of predictive and manual annotation within Markup and the comparison of suggestions with and without annotator feedback. It also measures the time taken by the attribute converter to identify the principal delay in the prediction process. These analyses address different parts of the application’s behavior: work at the interface, the proposals available for review, and latency within the suggestion pipeline.
The manual comparison switches the prediction workflow on for one condition and uses ordinary annotation in the other. The difference includes sentence screening, attribute conversion, presentation of suggested entries, and any benefit of adaptation during the session. Because those changes act together, the reduction in annotation time belongs to the assisted workflow as a whole. A test of attribute conversion alone would need to hold the candidate sentences constant and compare reviewing proposed attributes with filling them in. The reported experiment gives the consequence of offering the complete workflow to annotators.
The feedback comparison keeps the basic idea of generated suggestions and varies whether an annotator supplies input. The large change is in how many incorrect proposals appear. The smaller change is in how many correct proposals appear. This supports the authors’ claim that the active learner responds to human input and shows a practical way that responsiveness can help. A reviewer who encounters fewer bad proposals has fewer interruptions to inspect. The comparison uses one person’s input, so it also shows why the counts describe the interaction between the reviewer and the learner. A different sequence of user decisions could provide different examples during adaptation, and the paper gives no separate comparison across annotators for this part of the evaluation.
The feedback analysis does not isolate the effect of synthetic training. Both the baseline with no input and the assisted condition start from the approach the authors built. There is no comparison against an initialization learned from a real annotated corpus or against another collection of templates. The study shows that the chosen synthetic training procedure was sufficient to get a usable annotation workflow started on the clinical task. It does not establish how much of its performance reflects the choice of templates, the number of training samples, the classifier, or the method used to generate the attributes.
The latency analysis traces a cost to the conversion stage. The paper identifies it as the largest delay in preparing suggestions. This establishes where the authors observed the longest wait in the pipeline and explains why they prioritized reducing it. The reported time does not measure the effect of removing the converter. A faster display limited to candidate sentences might leave more manual work for reviewers, and the paper does not compare the two workflows. The measured latency therefore tells us where the system spends time during generation, while the session comparison tells us the time outcome of using the tool as designed.
The terminology examples have an illustrative role. They distinguish useful kinds of standardization, such as recovering a term from a misspelling, from cases that lexical comparison may handle poorly, such as expansion of an acronym. The paper gives no controlled comparison of character-based filtering against another representation or of Levenshtein ordering against another ranking method. The examples explain the problem and the intended result. The prescription experiment does not measure how often Markup finds the right terminology code or how much the terminology suggestions contribute to the annotation time.
Limitations
Limits identified by the authors
Markup lacked accounts for annotation users at the time of publication. Accordingly, project teams did not have built-in group sharing of configurations, documents, annotations, or ontologies. A team could use the formats Markup imports and exports, but the application did not provide the shared project environment the authors describe in their discussion of WebAnno. The distinction matters in a study with several annotators. An individual can load a document, check its suggested entries, and export the completed work. Managing a group’s common files and coordinating the work require facilities beyond those individual operations.
The authors identify lexical resemblance as the main limit of automated ontology mapping. The method can retain evidence of a match when some fragments of a misspelled word survive. It has much less to work with when a short acronym shares few written pieces with the phrase it means. The comparison also has no stated mechanism for deciding that two words with different forms express the same clinical meaning. The authors propose adding a meaning-based search using word embeddings. That proposal concerns a future way of retrieving candidates based on semantic similarity and word embeddings.
The supported document formats limit where the annotation process can begin. Markup takes plaintext and is oriented towards relatively short documents such as clinic letters. Its import and export choices suit the workflow described in the paper, where plain text and brat standoff annotations are already usable. Projects that start with other document formats have an additional conversion problem. The authors discuss future support for document ingestion with Apache Tika and mention word-processing files, PDF, and DICOM among the formats they want to handle. Those plans describe work beyond the application evaluated in the paper.
The authors also call attention to the wait for attribute conversion. The recurrent network has to generate the values that complete a suggested entry, and that is the stage they identify as the largest source of delay. Documents can take time to become ready for assisted review even when the resulting suggestions lead to a quicker session overall. Because the latency measurement uses a small sample of documents, it offers a concrete timing for the application in that check. The paper leaves the behavior on substantially longer texts open.
Limits of the evidence
The quantitative comparison concerns a defined task with four experienced annotators and two sets of clinic letters. The team also used the application on epilepsy and plastic surgery material during development, which supports the account of the application working in clinical practice. The timed experiment specifically measures prescription annotation. A different task may involve less predictable phrasing, more ambiguity about which spans to include, or fields that are harder to generate from a small set of templates. The paper offers a configurable interface for such tasks. Their effect on annotation time remains unmeasured.
The study arrangement addresses some sources of bias while leaving others difficult to estimate. Each person uses both methods and each letter set is processed under both conditions. On a given set, the people doing the manual work are different from those using suggestions, and their assignments reverse on the other set. That is a reasonable way to avoid having a person see each document twice. It leaves limited evidence about how much the time effect varies between individuals or between letter collections. The experiment gives an aggregate comparison for the assigned sessions.
The comparison also depends on the annotators being free to correct or fill in the outputs. A user who recognizes a missed prescription can add it, and a user who sees a bad attribute can repair it. The final work incorporates those judgments. Treating the time finding as a measure of fully automatic extraction would set aside the work that produced the completed annotations. The methods and the instructions given to annotators make human review part of the tested intervention.
Pairwise F-measure captures mutual agreement. Since the comparisons use an annotator’s work as the reference in turn, they cannot tell whether several annotators agreed on an error. The paper also does not give separate scores for matching locations in the text, distinguishing prescriptions, or recovering each attribute. An independent reference and a field-level assessment would answer questions about correctness that the reported measure of agreement cannot resolve. Furthermore, the contradictory description of the direction of the change means that an account of this study should preserve the disagreement between the prose and the table.
The confidence interval reported alongside the timing result also has an interpretation limit. The paper supplies the direction and size of the aggregate change and a significance level, but does not state clearly what scale the interval is on. Attaching units to the interval would imply knowledge the report does not supply. The same issue of interpretability arises in the feedback analysis for a different reason. The counts of correct and incorrect proposals show an effect on what the tool presented, but there is no corresponding count of all prescriptions that should have been presented. The feedback data therefore support conclusions about the volume of bad proposals more directly than conclusions about coverage.
The synthetic data procedure addresses the need to begin without a large annotated corpus. Its ability to generalize depends on the linguistic variety encoded in the templates, as well as on which terms and values can fill them. The generated examples supply controlled input and known outputs. They may be plentiful even if they reuse a limited range of sentence forms. The paper does not report a comparison that varies template diversity or examines success separately on familiar and unfamiliar patterns. The real-letter trial establishes that the procedure can support the demonstrated use. It leaves open how much effort is required to obtain comparable results when a project’s target is expressed in more varied ways.
The usability result and the practical deployment evidence also have a defined scope. The survey came from the annotation team, whose members contributed feedback while the tool was being tested. The paper provides evidence of their experience and describes using the application to generate usable structured records. It does not give a separate usability evaluation of new teams or a test of how well people perform when configuring an unfamiliar project. Likewise, encrypted transport and a local deployment option describe how the application can be operated. The paper does not report an independent security evaluation or compare the hosted and standalone versions on performance.
Together, these limits locate the paper’s contribution in assisted data preparation. Markup provides a configurable way to turn parts of a document into structured entries, to offer candidate records from synthetic training, and to keep the annotator responsible for completing the work. The measured time saving applies to that combination on the prescription task. Claims about the accuracy of automatic extraction, the quality of terminology mapping, or the performance of applications built from the annotations would each require their own measurements.
What came after
The later work identified as citing Markup is a 2026 survey of annotation tools for language documentation, with particular attention to their capabilities, gaps, and support for morphology. Its topic places the Markup paper in a wider discussion of what annotation software helps a researcher record and what work the researcher still has to do. Markup’s demonstrated task is prescription capture in clinic letters. The survey’s stated focus is support for the forms and internal structure of words in language documentation, the domain of morphology. Annotation Tools for Language Documentation
The connection is documented as a citation. The information about the survey does not specify which Markup features it assessed, whether it ran the application, or what conclusions it reached about it. A narrower comparison follows from the subjects of the works. Markup distinguishes selecting a passage from supplying the detailed values associated with that passage. A survey concerned with morphological support asks what kinds of detailed linguistic information annotation tools can represent and help users capture. The citation extends the setting in which the prescription paper is discussed. It supplies no further result about the performance of Markup’s prescription workflow or the transfer of its suggestion method to morphological annotation.
Cite
Cite as Samuel Dobbie, Huw Strafford, William Owen Pickrell, Beata Fonferko‐Shadrach, Carys Jones, Ashley Akbari, Simon Thompson and Arron Lacey. 2021. Markup: A Web-Based Annotation Tool Powered by Active Learning. Frontiers in Digital Health.
@inproceedings{dobbie2021markup,
title = {{Markup: A Web-Based Annotation Tool Powered by Active Learning}},
author = {Samuel Dobbie, Huw Strafford, William Owen Pickrell, Beata Fonferko‐Shadrach, Carys Jones, Ashley Akbari, Simon Thompson and Arron Lacey},
booktitle = {Frontiers in Digital Health},
year = {2021},
doi = {10.3389/fdgth.2021.598916},
url = {https://doi.org/10.3389/fdgth.2021.598916}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dobbie-2021-markup-web-based-annotation-tool/