• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Thursday, November 26, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Health

Local Language Models Scrub Most Clinical Identifiers but Miss Full Document Sanitization

by
November 26, 2026
in Health
Reading Time: 6 mins read
0
Local Language Models Scrub Most Clinical Identifiers but Miss Full Document Sanitization

Local Language Models Scrub Most Clinical Identifiers but Miss Full Document Sanitization

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

Researchers evaluating automated privacy safeguards in healthcare have found that while locally hosted artificial intelligence models remove most personal identifiers from hospital discharge summaries, they still leave residual identifying text that prevents autonomous record release. In an institutional review board-approved investigation at the University of Texas Medical Branch, investigators evaluated seventeen open-weight large language models across one hundred real-world clinician-authored discharge notes. Operating entirely within local institutional computing infrastructure to avoid transmitting sensitive records to external commercial services, the models achieved corpus-wide character recall reaching up to 98.9 percent. However, even the highest-performing configurations failed to produce fully sanitized records across the entire dataset, with leading models achieving complete de-identification in an average of only 67 out of 100 evaluated documents.

The challenge of clinical text de-identification stems from the tension between protecting patient confidentiality and preserving narrative detail for medical research, quality improvement, and artificial intelligence development. Under the Safe Harbor standard of the Health Insurance Portability and Accountability Act, healthcare organizations must eliminate eighteen specific categories of identifiers while maintaining no actual knowledge that remaining information could identify an individual. Traditional manual redaction is labor-intensive, costly, and difficult to standardize across high-volume healthcare systems, yet transmitting clinical narratives to cloud-based language model interfaces poses significant regulatory and privacy concerns. Locally deployed open-weight models have emerged as an appealing alternative because their executable parameters run directly on on-premise hardware behind institutional firewalls. By combining local neural processing with deterministic string-redaction software, institutions can interrogate clinical text without exposing sensitive health data to third-party networks, creating an urgent clinical need to quantify how accurately these local architectures perform against regulatory standards on real-world medical records.

To establish a rigorous evaluation, the research team developed a curated corpus from 30,708 clinician-authored discharge summaries generated in 2021 at the University of Texas Medical Branch under protocol 26-0014. The investigators applied a systematic filtering funnel to guarantee document consistency, first identifying 14,607 readable text files containing at least 300 bytes. A subsequent version audit excluded ambiguous or multi-version entries, yielding 11,039 single-version documents, from which exact duplicate-text groups were eliminated to arrive at 10,840 distinct records across 8,573 individual patients. From this verified collection, 130 notes were randomly sampled across stratified length groupings to represent 130 unique patients. The team allocated 100 notes as the locked test set, reserved twenty notes for preliminary protocol calibration, and set aside ten reserve notes. Across the final 100 test notes, document length varied substantially, with a median character count of 6,411 and a median word count of 915, spanning concise summaries to dense records exceeding 28,000 characters.

Establishing a dependable baseline required creating a verified reference standard through rigorous independent human annotation. Two reviewers trained in federal privacy requirements independently inspected all 130 sampled notes using INCEpTION annotation software, marking exact identifier boundaries and assigning categories from an eighteen-type schema derived from Safe Harbor guidelines before resolving every discrepancy by consensus. Pre-consensus inter-rater agreement across all notes demonstrated robust alignment, yielding a type-agnostic character-level Cohen’s kappa of 0.880, a character Dice coefficient of 0.886, and an entity-level F1 score of 0.834 under exact boundary conditions. Within the locked 100-note test collection, the consensus standard encompassed 3,537 identifier spans, with a median of 29.5 spans per document. Represented identifiers were concentrated within nine categories, led overwhelmingly by dates and names, which together accounted for 91.4 percent of all reference spans. The remaining represented categories included telephone numbers, geographic subdivisions, account numbers, medical record numbers, patient ages, fax numbers, and unique identifiers, while nine defined categories contained zero instances.

Protocol development on the calibration notes guided the creation of a standardized evaluation workflow pairing prompt-constrained model extraction with deterministic full-note redaction. Because long clinical narratives can degrade model attention, documents were segmented into overlapping chunks of up to 3,500 characters with a 400-character overlap, exceeding the span length of any reference identifier in the corpus. Each model was evaluated across three separate executions using llama.cpp software on an Apple M4 Max workstation equipped with 48 gigabytes of unified memory, running with greedy decoding at temperature zero, fixed random seed 42, and low reasoning effort under a strict structured JSON schema. The locked prompt prohibited inferencing, paraphrasing, or offset calculations, requiring models to return verbatim literal strings copied directly from the text. Once extracted, validated literal strings were pooled and deterministically excised across the full unsegmented document. To maximize identifier recovery, the system applied a sequential two-pass framework where the partially redacted note was re-segmented and evaluated again, incorporating new detections through cumulative masking.

Scoring across seventeen candidate architectures from eight model families—spanning 1.0 billion to 30.7 billion parameters—revealed striking disparities in character-level recall and document completeness. Corpus-wide character recall ranged from 39.6 percent for MedGemma-1.5 4B to 98.9 percent for Gemma-4 31B, with the six highest-performing models achieving recall between 95.0 percent and 98.9 percent. Gemma-4 12B achieved 97.8 percent recall, Mistral-Small 24B recorded 97.5 percent, and Gemma-4 E4B reached 97.1 percent. Yet these high micro-averaged recall figures, which pool characters across the entire dataset, masked persistent omissions within individual documents. Note-level completeness, defined as the total absence of residual reference characters, averaged at most 67 out of 100 notes among top architectures, including Gemma-4 31B, Mistral-Small 24B, and Gemma-3 27B. Although Gemma-4 31B left only 1.1 percent of reference characters visible overall, approximately 33 notes per execution retained residual text. Detailed span analysis indicated that residual content arose from both untouched spans, affecting 0.7 to 2.3 percent of identifiers in top models, and partially removed spans where boundary truncation left fragments intact.

The experimental results underscored that maximizing character recall often comes at the expense of redaction selectivity and boundary precision. Across the top six models, character precision ranged from 61.5 percent to 82.2 percent, demonstrating that high-recall models frequently excised non-sensitive clinical text surrounding true identifiers. Granite-4.1 30B attained the highest observed character precision at 85.6 percent, but achieved a character recall of only 79.3 percent, confirming that the most selective models do not necessarily capture the most identifiers. Boundary accuracy assessments further revealed that models frequently overlapped target spans without matching their exact starting and ending coordinates. Under strict boundary evaluation, entity F1 scores spanned 0.180 to 0.784, whereas permitting a two-character boundary tolerance increased F1 scores to between 0.206 and 0.841, with Gemma-4 E4B leading both metrics. Gemma-4 31B overlapped 99.3 percent of reference identifiers but matched exact boundaries for only 77.2 percent. In clinical workflows, overly expansive boundaries delete meaningful diagnostic context, whereas narrow boundaries leave identifying fragments exposed.

Evaluating the incremental contribution of the second processing pass demonstrated measurable recall benefits accompanied by noticeable trade-offs in over-redaction. Re-evaluating partially masked text increased character recall across most models, delivering substantial gains of 15.0 percentage points in OLMo-3 7B, 12.7 points in Gemma-3 1B, 12.3 points in Granite-4.1 30B, and 11.4 points in Phi-4 14B. However, Gemma-4 26B-A4B and MedGemma-1.5 4B exhibited zero reported recall gain after the second pass, reflecting pipeline dynamics where no new valid detections emerged or all-segment completion rules prevented mask updates. Concurrently, the second pass increased over-redaction for most systems, jumping by up to 17.1 percentage points in Gemma-3 27B as repeated processing created secondary opportunities to clip harmless prose. Performance also varied markedly across identifier categories. Telephone recall rounded to 1.00 across twelve models, and date recall exceeded name recall in fourteen models. Geographic subdivisions exhibited wide recall swings from 49 to 100 percent, influenced heavily by the protocol classifying institutional care facilities as geographic markers.

Benchmarking against Microsoft Presidio, an untuned open-source rule- and pattern-based tool, illuminated fundamental operational differences between general-purpose detection frameworks and dedicated language models. Evaluated under the same two-pass segmented protocol, Presidio achieved an overall character recall of 92.1 percent but suffered from poor precision at 37.5 percent, yielding an overall character F1 score of 0.533. Presidio removed 62.5 percent of its total excised characters outside reference spans and removed 8.25 percent of all non-reference characters across the corpus, achieving complete de-identification in only 10 out of 100 notes while leaving 3,027 reference characters visible. Conversely, Presidio operated with exceptional computational speed, recording a median pipeline latency of 0.168 seconds per document.

Ultimately, the study authors emphasize that high character recall on an annotated benchmark must not be conflated with genuine patient anonymity or zero re-identification risk. The investigation was conducted on English discharge summaries from a single medical center with heavily skewed identifier distributions, and the findings establish no performance claims for absent categories, non-English text, or specialized outpatient templates. Furthermore, the evaluation assessed an unassisted extraction baseline without evaluating specialized clinical de-identification tools such as Philter or supervised transformer architectures. The authors caution healthcare administrators that eliminating literal Safe Harbor strings does not prevent subtle quasi-identifiers from disclosing identity across longitudinal records or multi-turn clinical interactions. Instead of supporting autonomous, unmonitored text publication, current open-weight language models show greatest promise as assistive pre-screening tools designed to accelerate human review. Future deployment frameworks will require rigorous prompt validation, standardized handling of failed generation requests, and institutional governance to ensure automated de-identification preserves patient privacy without degrading clinical usefulness.

Subject of Research: Evaluation of locally deployed open-weight large language models for clinical text de-identification

Article Title: Clinical text de-identification with locally deployed open-weight large language models: a real-world evaluation of discharge notes

Article References: Weatherhead, J., Cwiklik, E., McCaffrey, P., & Golovko, G. (2026). Clinical text de-identification with locally deployed open-weight large language models: a real-world evaluation of discharge notes. Frontiers in Digital Health, 8, 1995954. https://doi.org/10.3389/fdgth.2026.1995954

Image Credits: AI Generated

DOI: 10.3389/fdgth.2026.1995954

Keywords: clinical text de-identification, open-weight large language models, hospital discharge notes, HIPAA Safe Harbor, protected health information, local model inference, character recall, note-level completeness, redaction selectivity, identifier boundary accuracy, Microsoft Presidio, Gemma-4 31B, llama.cpp, two-pass redaction, patient privacy safeguards, medical record anonymization, clinical natural language processing

News Source: Ophelia Keating. (November 26, 2026). Local Language Models Scrub Most Clinical Identifiers but Miss Full Document Sanitization. Scienmag.

Tags: character recallclinical natural language processingclinical text de-identificationGemma-4 31BHIPAA Safe Harborhospital discharge notesidentifier boundary accuracyllama.cpplocal model inferencemedical record anonymizationMicrosoft Presidionote-level completenessopen-weight large language modelspatient privacy safeguardsprotected health informationredaction selectivitytwo-pass redaction
Share12Tweet7Share2ShareShareShare1

Related Posts

Study Finds Survival and Mild Outcomes Possible After Prolonged Newborn Resuscitation

Study Finds Survival and Mild Outcomes Possible After Prolonged Newborn Resuscitation

November 26, 2026
Five-Marker Model Accurately Predicts Mortality in Severe Fever with Thrombocytopenia Syndrome

Five-Marker Model Accurately Predicts Mortality in Severe Fever with Thrombocytopenia Syndrome

November 26, 2026

Lab Heart Tissues Reveal Marathon Pacing Causes Reversible Cardiac Injury

November 26, 2026

High Homocysteine Accelerates Brain Aging in Mice by Suppressing Neural Epigenetic Signaling

November 26, 2026

POPULAR NEWS

  • Multi-Omics Review Finds Plant Phytochemicals Lack Proven Disease Modification in Dementia

    Multi-Omics Review Finds Plant Phytochemicals Lack Proven Disease Modification in Dementia

    29 shares
    Share 12 Tweet 7
  • Complex Aortic Bypass Remains Patent Sixteen Years After Surgery for Mid-Aortic Syndrome

    29 shares
    Share 12 Tweet 7
  • Machine Learning Tool Identifies Fission Yeast Replication Origins from DNA Sequence

    29 shares
    Share 12 Tweet 7
  • Direct Steam Injection Sterilizes Chicken Broth Faster While Preserving Key Amino Acids

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

Study Finds Survival and Mild Outcomes Possible After Prolonged Newborn Resuscitation

Five-Marker Model Accurately Predicts Mortality in Severe Fever with Thrombocytopenia Syndrome

Lab Heart Tissues Reveal Marathon Pacing Causes Reversible Cardiac Injury

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 89 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.