AI SeedbankHelp preserve open and free AI for humanity's future

← All models

obi_deid_roberta_i2b2

obi · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


language:

  • en thumbnail: "https://www.onebraveidea.org/wp-content/uploads/2019/07/OBI-Logo-Website.png" tags:
  • deidentification
  • medical notes
  • ehr
  • phi datasets:
  • I2B2 metrics:
  • F1
  • Recall
  • Precision widget:
  • text: "Physician Discharge Summary Admit date: 10/12/1982 Discharge date: 10/22/1982 Patient Information Jack Reacher, 54 y.o. male (DOB = 1/21/1928)."
  • text: "Home Address: 123 Park Drive, San Diego, CA, 03245. Home Phone: 202-555-0199 (home)."
  • text: "Hospital Care Team Service: Orthopedics Inpatient Attending: Roger C Kelly, MD Attending phys phone: (634)743-5135 Discharge Unit: HCS843 Primary Care Physician: Hassan V Kim, MD 512-832-5025." license: mit

Model Description

  • A RoBERTa [Liu et al., 2019] model fine-tuned for de-identification of medical notes.
  • Sequence Labeling (token classification): The model was trained to predict protected health information (PHI/PII) entities (spans). A list of protected health information categories is given by HIPAA.
  • A token can either be classified as non-PHI or as one of the 11 PHI types. Token predictions are aggregated to spans by making use of BILOU tagging.
  • The PHI labels that were used for training and other details can be found here: Annotation Guidelines
  • More details on how to use this model, the format of data and other useful information is present in the GitHub repo: Robust DeID.

How to use

  • A demo on how the model works (using model predictions to de-identify a medical note) is on this space: Medical-Note-Deidentification.
  • Steps on how this model can be used to run a forward pass can be found here: Forward Pass
  • In brief, the steps are:
    • Sentencize (the model aggregates the sentences back to the note level) and tokenize the dataset.
    • Use the predict function of this model to gather the predictions (i.e., predictions for each token).
    • Additionally, the model predictions can be used to remove PHI from the original note/text.

Dataset

  • The I2B2 2014 [Stubbs and Uzuner, 2015] dataset was used to train this model.
I2B2 I2B2
TRAIN SET - 790 NOTES TEST SET - 514 NOTES
PHI LABEL COUNT PERCENTAGE COUNT PERCENTAGE
DATE 7502 43.69 4980 44.14
STAFF 3149 18.34 2004 17.76
HOSP 1437 8.37 875 7.76
AGE 1233 7.18 764 6.77
LOC 1206 7.02 856 7.59
PATIENT 1316 7.66 879 7.79
PHONE 317 1.85 217 1.92
ID 881 5.13 625 5.54
PATORG 124 0.72 82 0.73
EMAIL 4 0.02 1 0.01
OTHERPHI 2 0.01 0 0
TOTAL 17171 100 11283 100

Training procedure

  • Steps on how this model was trained can be found here: Training. The "model_name_or_path" was set to: "roberta-large".

    • The dataset was sentencized with the en_core_sci_sm sentencizer from spacy.
    • The dataset was then tokenized with a custom tokenizer built on top of the en_core_sci_sm tokenizer from spacy.
    • For each sentence we added 32 tokens on the left (from previous sentences) and 32 tokens on the right (from the next sentences).
    • The added tokens are not used for learning - i.e, the loss is not computed on these tokens - they are used as additional context.
    • Each sequence contained a maximum of 128 tokens (including the 32 tokens added on). Longer sequences were split.
    • The sentencized and tokenized dataset with the token level labels based on the BILOU notation was used to train the model.
    • The model is fine-tuned from a pre-trained RoBERTa model.
  • Training details:

    • Input sequence length: 128
    • Batch size: 32 (16 with 2 gradient accumulation steps)
    • Optimizer: AdamW
    • Learning rate: 5e-5
    • Dropout: 0.1

Results

Questions?

Post a Github issue on the repo: Robust DeID.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:d7ca06135f6ea5f42f6f05c30efe7256bd8bdc3e&dn=obi_deid_roberta_i2b2

Open magnet in torrent client · infohash d7ca06135f6ea5f42f6f05c30efe7256bd8bdc3e

Files & hashes

PathSizesha1sha256
README.md5.2 KB (5,280 B)750389f4d087677bb0a1a126eab4791fbc5e8f04fbfe782cc53f0b935543ce71644eb656c333b2c832ef6733e269f62ca2ebc5f7
config.json2.4 KB (2,497 B)cf6e62e96437c73b8dc0b052c8f8e3cf19d4e34137daaf34704b5e0fc9068963597f9afe126271b6e386a47181ce08888c1f6a01
merges.txt445.7 KB (456,356 B)6636bda4a1fd7a63653dffb22683b8162c8de956fe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862
model.safetensors1.32 GB (1,417,477,308 B)708f9b1b12441efec0b6dfbd630d0e28586dbe1c557152273204b0a28593da47b423dd0206e87c3b94839bd28ff8d6d90f0cf261
pytorch_model.bin1.32 GB (1,417,588,465 B)e113aa9348c710cd8f53be96f8ea771a792b963376e5e75ee896f33681a5acf6440d53831a110fd977c71d093260bb94e2a63bfa
special_tokens_map.json239 B (239 B)2ea7ad0e45a9d1d1591782ba7e29a703d0758831378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tokenizer.json1.3 MB (1,355,931 B)b4ce0d631605082d0377a3ac60051141ae7fea0046af493d7ad89ea20b0884912c824beb8cd3d53fbfb52b3bc00caeca3545ff7c
tokenizer_config.json351 B (351 B)21e320b1e344f616df80137be80d818bc358a3690272b6c0992d6099830638a546ded6ca0a27fd3344875da4ce25ddab621c1990
vocab.json779.6 KB (798,293 B)4ebe4bb3f3114daf2e4cc349f24873a1175a35d7ed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e

Cite this release

Canonical URL
https://aiseedbank.org/models/obi_deid_roberta_i2b2/
Slug
obi_deid_roberta_i2b2
Infohash
d7ca06135f6ea5f42f6f05c30efe7256bd8bdc3e
License
mit
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: obi_deid_roberta_i2b2.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryobi/deid_roberta_i2b2
Revision (pinned)78f2152eb93ddd817290ce8dbe46f1a6685e09fc
Fetched at2026-09-04T04:31:45Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T04:32:15Z

mit2.64 GB (2,837,684,720 bytes)transformerspytorchsafetensorsrobertatoken-classificationdeidentificationmedical notesehrphiendpoints_compatible1 language (en)paper: 1907.11692