Downloads · 30 days
11
2% of all-time downloads
ashishkgpian/biobert_icd9_classifier_ehr
biobert_icd9_classifier_ehr is a text classification model from ashishkgpian. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This is a BioBERT model fine-tuned on the MIMIC-3 (Medical Information Mart for Intensive Care) corpus specifically for ICD-9 code classification. The model is designed to predict medical diagnostic codes based on Ele…
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
653
Public
Parameters
109M
437 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors437 MB · 100%
From the Hugging Face model README
This is a BioBERT model fine-tuned on the MIMIC-3 (Medical Information Mart for Intensive Care) corpus specifically for ICD-9 code classification. The model is designed to predict medical diagnostic codes based on Electronic Health Record (EHR) and symptom text inputs.
The primary use of this model is to automatically classify medical conditions by predicting relevant ICD-9 diagnostic codes from clinical text, such as electronic health records, medical notes, or symptom descriptions.
This model can be integrated into:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
# Load the model and tokenizer
model = AutoModelForSequenceClassification.from_pretrained('model_path')
tokenizer = AutoTokenizer.from_pretrained('model_path')
# Example prediction function (similar to the provided get_predictions function)
def predict_icd9_codes(input_text, threshold=0.8):
# Tokenize input
inputs = tokenizer(input_text, return_tensors="pt", truncation=True, max_length=512, padding='max_length')
# Get model predictions
with torch.no_grad():
outputs = model(**inputs)
predictions = torch.sigmoid(outputs.logits)
# Filter predictions above threshold
predicted_codes = [model.config.id2label[i] for i in (predictions > threshold).nonzero()[:, 1]]
return predicted_codes
[Citation information to be added when research is published]
For more details about the model's development, performance, and usage, please contact the model developers.