Downloads · 30 days
3
3% of all-time downloads
efbaro/HealthHistoryRoBERTa-pt
HealthHistoryRoBERTa-pt is a fill-mask model from efbaro. Use it when you need the model to fill a missing word. The card lists the license as mit.
The HealthHistoryRoBERTa-pt model was pre-trained from scratch using the RoBERTa structure and with patient data from health insurances organized in the form of historical sentences. The initial objective of the train…
Downloads · 30 days
3
3% of all-time downloads
All-time downloads
107
Public
Repo size
533 MB
Likes
0
Public
Click a slice to open those files.
.bin266 MB · 100%
From the Hugging Face model README
The HealthHistoryRoBERTa-pt model was pre-trained from scratch using the RoBERTa structure and with patient data from health insurances organized in the form of historical sentences. The initial objective of the training was to predict hospitalizations, however, due to the possibility of applications in other tasks, we made these models available to the scientific community. This model was trained in Portuguese, however, there is an English version trained from translated data. There are also other training approaches that can be seen at:
The model was pre-trained from 837,159 historical sentences from health insurance patients generated using the approach described in this paper Predicting Hospitalization from Health Insurance Data.
For this model, our own tokenizer was generated, trained from aggregated data from health plans, see about the aggregated data in Predicting Hospitalization from Health Insurance Data. Therefore, the tokenizer used is closely related to health insurance data.
The model was trained on a GeForce NVIDIA RTX A5000 24GB GPU from laboratories of IT departament at UFPR (Federal University of Paraná). The model parameters were initialized randomly as this training is performed without any previous pre-trained model.
We use a batch size of 16, a maximum sequence length of 512, accumulation steps of 4, masked language model probability = 0.15, number of epochs = 2 and a learning rate of 10−4 to pre-train this model.
The training time was 3 hours 04 minutes and 30 seconds per epoch.
Load the model via the transformers library:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("efbaro/HealthHistoryRoBERTa-pt")
model = AutoModel.from_pretrained("efbaro/HealthHistoryRoBERTa-pt")
Refer to the original paper, Predicting Hospitalization with LLMs from Health Insurance Data
Refert to another article related to this research, Predicting Hospitalization from Health Insurance Data
Email: