← Latest papers
💻 computer science

Creating A Gold Standard Annotation Guideline for Electronic Health Records

This paper presents a gold-standard annotated dataset and accompanying guidelines derived from 1,500 epilepsy electronic health records, achieving a substantial inter-annotator agreement of 0.769 to support the development of NLP systems for epilepsy and comorbidity detection.

Original authors: Joe Davies, Beata Fonferko-Shadrach, Ben Holgate, Arron Lacey, Huw Strafford, Owen Pickrell, Mark P Richardson

Published 2026-11-11
📖 6 min read🧠 Deep dive

Original authors: Joe Davies, Beata Fonferko-Shadrach, Ben Holgate, Arron Lacey, Huw Strafford, Owen Pickrell, Mark P Richardson

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the quiet hum of a hospital, between the beeping of monitors and the rustle of paper charts, a vast library of human experience is being written. For decades, doctors have recorded the stories of their patients in electronic health records, filling digital files with notes on symptoms, treatments, and the complex history of a life lived with illness. These records are a treasure trove of information, yet they are written in a language that is often messy, unstructured, and deeply personal. While computers are excellent at crunching numbers, they have historically struggled to read these free-text notes with the same nuance a human doctor possesses. This is where a field known as natural language processing steps in, acting as a bridge between human speech and machine understanding. The goal is to teach computers to read medical notes, extract the vital facts hidden within the paragraphs, and use that knowledge to improve care for millions of people. However, for a computer to learn how to read a doctor's note, it first needs to be taught by humans who can show it exactly what matters.

A team of researchers from King's College London and Swansea University has taken a significant step forward in this effort by creating a new, high-quality guide for teaching computers how to read the medical records of people with epilepsy. Epilepsy is a common neurological condition characterized by recurring seizures, and while many people manage it well with medication, a significant portion do not. To understand why some patients do not respond to treatment, doctors need to look at the full, detailed history of the disease, including the specific drugs taken, the frequency of seizures, and the many other factors that influence a patient's life. These details are scattered throughout thousands of electronic health records, often buried in free-text descriptions. The researchers set out to create a "gold standard" dataset—a collection of these records that has been carefully read and labeled by experts, accompanied by a strict set of rules on how to label them. This resource is designed to help train artificial intelligence systems to find these critical details automatically, turning a mountain of text into structured, usable data.

To build this resource, the team gathered 1,500 electronic health records from epilepsy clinics at Guy's and St Thomas' Trust in London. These documents were not chosen at random; they were carefully selected to represent a wide cross-section of patients, ensuring a mix of ages, different types of medications, and varying frequencies of seizures. The records themselves are a blend of structured data, like a patient's date of birth, and unstructured text, where doctors write out their observations, treatment plans, and notes on how a patient is coping. The researchers then assembled a team of eight people to read and label these documents. This team was a mix of five clinicians, who are medical doctors, and three data scientists who specialize in epilepsy. They used a specialized software tool that allowed them to highlight specific pieces of information in the text and assign them to categories, such as the type of epilepsy a patient has, the medications they are taking, the dosage, and any other health conditions they might have.

The process was designed to be as clear and consistent as possible. The team created a detailed set of guidelines that explained exactly how to interpret the text. For instance, if a doctor wrote that a patient was "possibly" having seizures, the guidelines told the annotators how to rate that level of certainty. The team also had to decide how to handle complex situations, such as a patient taking a medication at different doses at different times of the day. To test how well these guidelines worked, every single document was read and labeled by two different people: one clinician and one data scientist. This double-checking process allowed the researchers to measure how much the two readers agreed with each other. If the guidelines were clear and the task was straightforward, the two readers would label the same information in the same way. If they disagreed, it suggested that the guidelines might need to be clearer or that the information in the text was too ambiguous.

The results of this effort showed that the team had largely succeeded in creating a reliable system. When the researchers compared the work of the two readers for each document, they found a high level of agreement overall. The most consistent labels were for the most straightforward facts, such as the names of the anti-seizure medications a patient was taking and whether they were currently free from seizures. These details often appeared in clear, list-like sections of the notes, making them easy for both the doctors and the data scientists to spot and agree upon. However, the researchers also found that agreement dropped when the notes became more subjective or complex. For example, when the text discussed the certainty of a diagnosis or the exact timing of events, the two readers sometimes disagreed. In some blocks of documents, the agreement was lower, suggesting that certain parts of the notes were harder to interpret than others. The researchers noted that this was not because the documents themselves were different, but likely because the human readers found it difficult to apply the rules perfectly in every single case, especially when dealing with vague language or multiple doses of medication.

Despite these challenges, the overall level of agreement was strong enough to be useful for training computer systems. The team concluded that their guidelines were generally reproducible and that the resulting dataset is a valuable resource for the future. They found that the difficulty of agreeing on a piece of information did not depend on how rare that information was; even common facts could be hard to agree on if they were written ambiguously. The study suggests that for artificial intelligence to truly master the art of reading medical notes, future guidelines must place even greater emphasis on handling uncertainty and teaching machines how to reason about time and probability. As the team continues to annotate more records and refine their rules, this growing library of labeled data will serve as a foundation for building smarter tools. These tools could eventually help doctors analyze thousands of patient histories in seconds, uncovering patterns that could lead to better treatments for those who struggle with drug-resistant epilepsy.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →