Literature · OpenMed
OpenMed-PII-BiomedELECTRA-Large-335M-v1
A 335-million-parameter token classification model for detecting personally identifiable information in English text.
What OpenMed-PII-BiomedELECTRA-Large-335M-v1 is
OpenMed-PII-BiomedELECTRA-Large-335M-v1 is a transformer-based token classification model developed by OpenMed for detecting personally identifiable information (PII) and protected health information in unstructured text. Fine-tuned from a biomedical ELECTRA backbone, it tags tokens across 54 entity types spanning identifiers, personal information, contact details, locations, network metadata, and temporal markers.
Sharing biomedical text, clinical documentation, and research records requires removing personal information to satisfy privacy frameworks such as HIPAA and GDPR. This model provides automated entity detection to assist researchers in identifying and redacting sensitive data prior to analysis or sharing. It is designated for research use only and is not intended for diagnostic or clinical decision-making.
How it works
The model is built on microsoft/BiomedNLP-BiomedELECTRA-large-uncased-abstract, containing 335 million parameters. It was fine-tuned on the NVIDIA Nemotron-PII dataset using Hugging Face Transformers and the Trainer API. The training dataset is structured in a BIO (Beginning, Inside, Outside) format, mapping to 106 token labels covering 53 entity types plus the outside token.
During training, input sequences were capped at a maximum length of 384 tokens, and a first-token labeling strategy (label_all_tokens=False) was applied. In inference pipelines, the model emits entity tags with associated confidence scores, which can be mapped back to character offsets for automated redaction or replacement.
Key facts
- Base architecture
- microsoft/BiomedNLP-BiomedELECTRA-large-uncased-abstract
- Parameter count
- 335M
- Task
- Token classification (named entity recognition)
- Primary language
- English
- Input modality
- Text (up to 384 tokens)
- Output
- Entity labels and confidence scores
- Training dataset
- NVIDIA Nemotron-PII
- Supported entities
- 54 PII types
What you can use it for
- Clinical text de-identification
- Locating patient names, medical record numbers, dates of birth, and home addresses in clinical narratives for automated redaction.
- Research dataset sanitisation
- Scanning biomedical notes and research text to strip personal and contact details prior to public release or cross-institution sharing.
- Privacy compliance screening
- Auditing text corpora for HIPAA- and GDPR-relevant identifiers, including social security numbers, health plan beneficiary numbers, and network identifiers.
Run it here
No installation and no GPU of your own: fill in the inputs and it runs on our servers. Results stay in your browser unless you sign in.
Runs on On-demand GPU
Runs on our servers with on-demand compute. A first run needs time to load the model; active capacity can be reused and scales down when idle.Run this model
OpenMed-PII-BiomedELECTRA-Large-335M-v1
Strengths and limits
Good at
- Achieves an overall micro F1 score of 0.9544 and an accuracy of 0.9938 on a 2,000-sample stratified test set from NVIDIA Nemotron-PII.
- Delivers near-perfect recall and precision on critical identifiers, including 1.000 F1 for biometric identifiers and health plan beneficiary numbers, and 0.998 F1 for medical record numbers.
- Detects 54 distinct entity classes across clinical, financial, personal, and digital domains.
Watch out for
- For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
- Designed strictly as an assistive research tool and must not be used as an unverified substitute for human review or for clinical decision-making.
- Exhibits lower accuracy on specific entity categories, notably occupation (0.668 F1), time (0.859 F1), and sexuality (0.872 F1).
- Inputs are limited by a maximum sequence length of 384 tokens and performance is constrained primarily to English text.
Inputs and outputs
You provide
Text
Entities are labelled token by token.
You get back
Labels with confidence scores, highest first.
OpenMed-PII-BiomedELECTRA-Large-335M-v1 API
The same run, from your own code: one HTTP request with an API key, billed in the same credits as the Run button. A fast run answers with its outputs; a longer one answers with a poll_url to read.
curl https://corollary-labs.com/api/v1/models/openmed-openmed-pii-biomedelectra-large-335m-v1/runs \
-H "Authorization: Bearer $COROLLARY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inputs": {
"text": "<Text>"
}
}'Make an API key, then read the models reference.
Licence
Commercial use permitted · apache-2.0
apache-2.0, as the repository declares it. Read by the catalogue intake on 2026-11-28.
Questions
Can I use OpenMed-PII-BiomedELECTRA-Large-335M-v1 commercially?
Commercial use permitted. apache-2.0, as the repository declares it. Read by the catalogue intake on 2026-11-28.
How do I run OpenMed-PII-BiomedELECTRA-Large-335M-v1 without installing anything?
Use the form under “Run it here” on this page: fill in the inputs and press Run model. It runs on our servers on CPU only, typically in 39s, and a run costs about 28 credits. Visitors without an account get 1,000 credits a month.
What types of sensitive information does the model detect?
It detects 54 PII types classified into personal identifiers, personal information, contact information, locations, network details, temporal expressions, and organisation names.
Which base model was used to train OpenMed-PII-BiomedELECTRA-Large-335M-v1?
It was fine-tuned from microsoft/BiomedNLP-BiomedELECTRA-large-uncased-abstract using the NVIDIA Nemotron-PII dataset.
Can this model be used autonomously for HIPAA or GDPR de-identification?
No. The model is an assistive tool for research purposes and produces occasional false negatives; human verification is required for critical de-identification tasks.
What are the model's weakest entity categories?
The most challenging entities identified during evaluation are occupation (0.668 F1), time (0.859 F1), sexuality (0.872 F1), fax number (0.880 F1), and education level (0.898 F1).
How to cite it
@misc{openmed-pii-2026, title = {OpenMed-PII-BiomedELECTRA-Large-335M-v1: PII Detection Model}, author = {OpenMed Science}, year = {2026}, publisher = {Hugging Face}, url = {https://huggingface.co/openmed/OpenMed-PII-BiomedELECTRA-Large-335M-v1} }
Written from OpenMed-PII-BiomedELECTRA-Large-335M-v1's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.
