/ Модель

Характеристики

Контекст
8 192 токена
Параметры
395 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
BioClinical-ModernBERT-large
Библиотека
transformers
Опубликована
10 фев 2026

OpenMed-PII-German-BioClinicalModern-Large-395M-v1

Разметка токеновТекст → label3 профессии

Дообученная модель ModernBERT для обнаружения и классификации персональных и медицинских данных в немецких текстах.

4 001скачиваний за 30 дней0лайковвеса обновлены10 фев 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

OpenMed-PII-German-BioClinicalModern-Large-395M-v1 — модель OpenMed для выявления и классификации персональных и медицинских идентификаторов в немецком тексте. Это дообученная для токенной классификации модель ModernBERT с примерно 394,7 млн параметров и контекстом до 8192 токенов; веса представлены в формате Safetensors и используются через Transformers.

Модель предназначена для поиска 54 типов чувствительных данных, включая имена, адреса, контактные и финансовые сведения, медицинские номера и даты. Её можно применять для обезличивания клинических записей и документов, предварительной очистки исследовательских наборов данных и аудита документов на наличие персональных данных. В README для немецкой части набора AI4Privacy указана оценка micro-F1 0,9594.

Карточка позиционирует модель как инструмент для рабочих конвейеров обработки текста, но рекомендует проверять результаты человеком: возможны пропуски сущностей, а качество может снижаться на специализированной терминологии и текстах на других языках. Лицензия — Apache-2.0.

Сценарии применения

  • поиск персональных данных в немецких клинических записях
  • обезличивание медицинских документов перед передачей или публикацией
  • очистка немецких текстовых наборов данных для исследований
  • аудит коллекций документов на наличие чувствительной информации

Ограничения

Модель может пропускать чувствительные данные, поэтому результаты для важных сценариев нужно проверять человеком. Она оптимизирована для немецкого языка, а качество может снижаться на специализированной терминологии.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

OpenMed-PII-German-BioClinicalModern-Large-395M-v1

German PII Detection Model | 395M Parameters | Open Source

F1 Score Precision Recall

Model Description

OpenMed-PII-German-BioClinicalModern-Large-395M-v1 is a transformer-based token classification model fine-tuned for Personally Identifiable Information (PII) detection in German text. This model identifies and classifies 54 types of sensitive information including names, addresses, social security numbers, medical record numbers, and more.

Key Features

  • German-Optimized: Specifically trained on German text for optimal performance
  • High Accuracy: Achieves strong F1 scores across diverse PII categories
  • Comprehensive Coverage: Detects 55+ entity types spanning personal, financial, medical, and contact information
  • Privacy-Focused: Designed for de-identification and compliance with GDPR and other privacy regulations
  • Production-Ready: Optimized for real-world text processing pipelines

Performance

Evaluated on the German subset of AI4Privacy dataset:

MetricScore
Micro F10.9594
Precision0.9574
Recall0.9614
Macro F10.9514
Weighted F10.9594
Accuracy0.9937

Top 10 German PII Models

RankModelF1PrecisionRecall
1OpenMed-PII-German-SuperClinical-Large-434M-v10.97610.97440.9778
2OpenMed-PII-German-SnowflakeMed-Large-568M-v10.97240.97050.9743
3OpenMed-PII-German-ClinicalBGE-568M-v10.97240.97020.9745
4OpenMed-PII-German-BigMed-Large-560M-v10.97140.96960.9732
5OpenMed-PII-German-NomicMed-Large-395M-v10.97130.96900.9735
6OpenMed-PII-German-SuperMedical-Large-355M-v10.97010.96840.9719
7OpenMed-PII-German-EuroMed-210M-v10.96830.96670.9699
8OpenMed-PII-German-ClinicalBGE-Large-335M-v10.96520.96240.9680
9OpenMed-PII-German-ClinicalE5-Large-335M-v10.96460.96200.9672
10OpenMed-PII-German-BiomedELECTRA-Large-335M-v10.96380.95980.9677

Supported Entity Types

This model detects 54 PII entity types organized into categories:

EntityDescription
ACCOUNTNAMEAccountname
BANKACCOUNTBankaccount
BICBic
BITCOINADDRESSBitcoinaddress
CREDITCARDCreditcard
CREDITCARDISSUERCreditcardissuer
CVVCvv
ETHEREUMADDRESSEthereumaddress
IBANIban
IMEIImei
...and 12 more
EntityDescription
AGEAge
DATEOFBIRTHDateofbirth
EYECOLOREyecolor
FIRSTNAMEFirstname
GENDERGender
HEIGHTHeight
LASTNAMELastname
MIDDLENAMEMiddlename
OCCUPATIONOccupation
PREFIXPrefix
...and 1 more
EntityDescription
EMAILEmail
PHONEPhone
EntityDescription
BUILDINGNUMBERBuildingnumber
CITYCity
COUNTYCounty
GPSCOORDINATESGpscoordinates
ORDINALDIRECTIONOrdinaldirection
SECONDARYADDRESSSecondaryaddress
STATEState
STREETStreet
ZIPCODEZipcode
EntityDescription
JOBDEPARTMENTJobdepartment
JOBTITLEJobtitle
ORGANIZATIONOrganization
EntityDescription
AMOUNTAmount
CURRENCYCurrency
CURRENCYCODECurrencycode
CURRENCYNAMECurrencyname
CURRENCYSYMBOLCurrencysymbol
EntityDescription
DATEDate
TIMETime

Usage

Quick Start

from transformers import pipeline

# Load the PII detection pipeline
ner = pipeline("ner", model="OpenMed/OpenMed-PII-German-BioClinicalModern-Large-395M-v1", aggregation_strategy="simple")

text = """
Patient Hans Schmidt (geboren am 15.03.1985, SVN: 12 150385 M 234) wurde heute untersucht.
Kontakt: hans.schmidt@email.de, Telefon: 0171 234 5678.
Adresse: Mozartstraße 15, 80336 München.
"""

entities = ner(text)
for entity in entities:
    print(f"{entity['entity_group']}: {entity['word']} (score: {entity['score']:.3f})")

De-identification Example

def redact_pii(text, entities, placeholder='[REDACTED]'):
    """Replace detected PII with placeholders."""
    # Sort entities by start position (descending) to preserve offsets
    sorted_entities = sorted(entities, key=lambda x: x['start'], reverse=True)
    redacted = text
    for ent in sorted_entities:
        redacted = redacted[:ent['start']] + f"[{ent['entity_group']}]" + redacted[ent['end']:]
    return redacted

# Apply de-identification
redacted_text = redact_pii(text, entities)
print(redacted_text)

Batch Processing

from transformers import AutoModelForTokenClassification, AutoTokenizer
import torch

model_name = "OpenMed/OpenMed-PII-German-BioClinicalModern-Large-395M-v1"
model = AutoModelForTokenClassification.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

texts = [
    "Patient Hans Schmidt (geboren am 15.03.1985, SVN: 12 150385 M 234) wurde heute untersucht.",
    "Kontakt: hans.schmidt@email.de, Telefon: 0171 234 5678.",
]

inputs = tokenizer(texts, return_tensors='pt', padding=True, truncation=True)
with torch.no_grad():
    outputs = model(**inputs)
    predictions = torch.argmax(outputs.logits, dim=-1)

Training Details

Dataset

  • Source: AI4Privacy PII Masking 400k (German subset)
  • Format: BIO-tagged token classification
  • Labels: 109 total (54 entity types × 2 BIO tags + O)

Training Configuration

  • Max Sequence Length: 512 tokens
  • Epochs: 3
  • Framework: Hugging Face Transformers + Trainer API

Intended Use & Limitations

Intended Use

  • De-identification: Automated redaction of PII in German clinical notes, medical records, and documents
  • Compliance: Supporting GDPR, and other privacy regulation compliance
  • Data Preprocessing: Preparing datasets for research by removing sensitive information
  • Audit Support: Identifying PII in document collections

Limitations

Important: This model is intended as an assistive tool, not a replacement for human review.

  • False Negatives: Some PII may not be detected; always verify critical applications
  • Context Sensitivity: Performance may vary with domain-specific terminology
  • Language: Optimized for German text; may not perform well on other languages

Citation

@misc{openmed-pii-2026,
  title = {OpenMed-PII-German-BioClinicalModern-Large-395M-v1: German PII Detection Model},
  author = {OpenMed Science},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/OpenMed/OpenMed-PII-German-BioClinicalModern-Large-395M-v1}
}

Links

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · token-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertForTokenClassification
Ревизия весов
41cb37c

0 моделей