<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tom Searle on Medium]]></title>
        <description><![CDATA[Stories by Tom Searle on Medium]]></description>
        <link>https://medium.com/@tomsearle?source=rss-27d263b0c508------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5fQB4V9EcFyalLGUvPqDRw.jpeg</url>
            <title>Stories by Tom Searle on Medium</title>
            <link>https://medium.com/@tomsearle?source=rss-27d263b0c508------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:42:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomsearle/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MedCATTrainer: A Tool For Inspecting, Improving and Customising MedCAT]]></title>
            <link>https://medium.com/data-science/medcattrainer-a-tool-for-inspecting-improving-and-customising-medcat-880a11297ebe?source=rss-27d263b0c508------2</link>
            <guid isPermaLink="false">https://medium.com/p/880a11297ebe</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[medcat]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Tom Searle]]></dc:creator>
            <pubDate>Thu, 02 Apr 2020 23:57:11 GMT</pubDate>
            <atom:updated>2020-04-03T14:26:44.639Z</atom:updated>
            <content:encoded><![CDATA[<h4>An accompanying tool to MedCAT: a pipeline to organise, structure and analyse Electronic Health Records (EHRs).</h4><h3>Overview</h3><p>The <a href="https://github.com/CogStack/MedCAT">Medical Concept Annotation Tool (MedCAT)</a>, is a (Named Entity Recognition + Linking) NER+L tool for identifying and linking clinical text concepts to existing biomedical ontologies such as <a href="https://www.nlm.nih.gov/research/umls/index.html">UMLS</a> or <a href="https://digital.nhs.uk/services/terminology-and-classifications/snomed-ct">SNOMED-CT</a> — often a first step in deriving insight from the masses of unstructured plain text available in clinical EHRs.</p><p>This article will introduce MedCATTrainer an accompanying tool to MedCAT that can be used to:</p><ol><li>Inspect — concepts that have been identified and linked by MedCAT can be visually inspected and reviewed, building trust in the MedCAT model.</li><li>Improve — provide supervised training examples allowing human annotators to improve a MedCAT model.</li><li>Customise — collect further use-case specific annotations for training project / use-case specific models.</li></ol><p>These 3 tasks are important in the application of MedCAT across clinical use cases.</p><h3>Installation / Setup</h3><p>MedCATTrainer provides an annotation interface, ReST API, Middle tier and database. All components have been dockerized and are available <a href="https://github.com/CogStack/MedCATtrainer">open-source</a>. To download, install and run in takes <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#installation">3 commands</a>.</p><p>Running the application for the first time downloads <a href="https://github.com/CogStack/MedCAT">MedCAT models</a>, an example <a href="https://github.com/CogStack/MedCATtrainer/blob/master/docs/example_data/psych.csv">dataset</a> and creates an example project permissioned for configured example user.</p><h3>The Annotation Interface</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3L7K5cN6QRLLAAvls9tBA.png" /></figure><p>The interface shows a <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#doc-summary">document summary</a> and its annotation status, the current <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#main-text">clinical text</a> under review and the <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#section-5---concept-summary">currently selected concept</a> details sourced from MedCAT.</p><p>An easy to use, simple, but feature-rich web interface allows annotators to:</p><ul><li><strong>Inspect</strong> MedCAT identified entities that initially appear in grey, and highlight to their respective status once selected.</li><li><strong>Improve</strong> MedCAT’s NER+L capabilities by selecting the <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#additional-annotations">appropriate text, right click ‘Add Annotation’, then search and link the correct term from MedCAT</a>. This can improve MedCATs recognition of acronyms, misspellings or abbreviations of terms it has never seen before.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*J72dEC4TYVPRr6Dilt35rg.png" /></figure><p>An optional setting within the project configuration allows for entirely new concepts to be added by human annotators. New concepts can be further grouped by semantic types akin to UMLS and SNOMED-CT Root terms. This feature is especially relevant for areas such as mental health that are often underserved by standardised terminologies such as UMLS and SNOMED-CT.</p><h3>Active Learning</h3><p>MedCATTrainer can be used to actively train the configured MedCAT model. After every <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#submit">submission</a> of a document each of the correct, incorrect and newly added entities are used to further train the configured MedCAT model. As human annotators process more documents the ‘assisted’ annotation experience makes the annotation less arduous.</p><p>The chart below shows a recent project to annotate symptoms, findings, and medication concepts in real clinical text, as the human annotators proceed they encounter fewer new SNOMED-CT entities that are added manually. The varying peaks indicate the variability of real clinical data. The convergence of the MedCAT model demonstrates the value of investing in human annotation and can be considered a form of model ‘fine-tuning’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PAWk3-zt_ta36kUJnYvxcA.png" /></figure><p>Once ‘fine-tuned’ to a dataset or clinical note type, rigorous evaluation of the MedCAT model performance can be performed, by dual annotators without active learning to compute standard metrics such as <a href="https://en.wikipedia.org/wiki/Inter-rater_reliability">IIA</a> and <a href="https://en.wikipedia.org/wiki/Cohen%27s_kappa">Cohen’s Kappa</a>. MedCATTrainer supports this use case by allowing administrators to easily <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#clone-project">clone</a> projects and <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#create-project">permission</a> annotators individually, then <a href="https://github.com/CogStack/MedCATtrainer#download-annos">download</a> and <a href="https://github.com/CogStack/MedCATtrainer/blob/master/docs/Processing_Annotations.ipynb">report metric performance</a>.</p><h3>Use Case / Project Specific Annotations</h3><p>Using clinical text in a downstream research question often entails more than simply identifying the correct text span and linking with the correct terminology concept (UMLS /SNOMED-CT). It also often involves further annotation of a disease or symptom ensuring they are patient related, or is a current instance and is not simply a clinician mentioning the concept hypothetically. However, often research questions will have varying interpretations of, for example, temporality — ‘current’ and ‘historical’ may not provide the appropriate level of granularity for all research questions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*AsxQEnc0jtZIj6M339Jn1g.png" /></figure><p>MedCATTrainer supports the configuration of project or use-case specific collection of these, so-called, meta-annotations. <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#meta-annotation-configuration">Administrators can configure annotation projects</a> with specific meta-annotations to be re-used between projects or in isolation. Each configured annotation and associated values appear in the interface.</p><p>Once complete, administrators can <a href="https://github.com/CogStack/MedCATtrainer/blob/master/README.md#download-annos">download</a> the annotations and train individual meta-annotation models using the <a href="https://github.com/CogStack/MedCAT/blob/master/medcat/meta_cat.py">MedCAT library</a>.</p><h3>In Summary</h3><p>This short introduction has motivated the use of MedCATTrainer alongside the MedCAT tool. A full set of documentation is available directly on the <a href="https://github.com/CogStack/MedCATtrainer">GitHub</a>, alongside full details for <a href="https://github.com/CogStack/MedCATtrainer/blob/master/docs/API_Examples.ipynb">programmatic API access</a>, detailed configuration of all of the above features and project design patterns for common use cases for organising, structuring and analysing EHRs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=880a11297ebe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/medcattrainer-a-tool-for-inspecting-improving-and-customising-medcat-880a11297ebe">MedCATTrainer: A Tool For Inspecting, Improving and Customising MedCAT</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>