The first publicly available medical language models trained with real European Portuguese data.
MediAlbertina is a family of encoders from the Bert family, DeBERTaV2-based, resulting from the continuation of the pre-training of
PORTULAN's Albertina models with Electronic Medical Records shared by Portugal's largest public hospital.
Like its antecessors, MediAlbertina models are distributed under the
MIT license.
MediAlbertina PT-PT 1.5B was created through domain adaptation of
Albertina PT-PT 1.5B on real European Portuguese EMRs by employing masked language modeling. It underwent evaluation through fine-tuning for the Information Extraction (IE) tasks Named Entity Recognition (NER) and Assertion Status (AStatus) on more than 10k manually annotated entities belonging to the following classes: Diagnosis, Symptom, Vital Sign, Result, Medical Procedure, Medication, Dosage, and Progress.
In both tasks, MediAlbertina achieved superior results to its antecessors, demonstrating the effectiveness of this domain adaptation, and its potential for medical AI in Portugal.
MediAlbertina PT-PT 1.5B was trained on more than 15M sentences and 300M tokens from 2.6M fully anonymized and unique Electronic Medical Records (EMRs) from Portugal's largest public hospital. This data was acquired under the framework of the
FCT project DSAIPA/AI/0122/2020 AIMHealth-Mobile Applications Based on Artificial Intelligence.
1from transformers import pipeline
2
3unmasker = pipeline('fill-mask', model='portugueseNLP/medialbertina_pt-pt_1.5b')
4unmasker("Analgesia com morfina em perfusão (15 [MASK]/kg/h)")
MediAlbertina is developed by a joint team from
ISCTE-IUL, Portugal, and
Select Data, CA USA. For a fully detailed description, check the respective publication:
1@article{MediAlbertina PT-PT,
2 title={MediAlbertina: An European Portuguese medical language model},
3 author={Miguel Nunes and João Boné and João Ferreira
4 and Pedro Chaves and Luís Elvas},
5 year={2024},
6 journal={CBM},
7 volume={182}
8 url={https://doi.org/10.1016/j.compbiomed.2024.109233}
9}
Please use the above cannonical reference when using or citing this
model.
This work was financially supported by Project Blockchain.PT – Decentralize Portugal with Blockchain Agenda, (Project no 51), WP2, Call no 02/C05-i01.01/2022, funded by the Portuguese Recovery and Resillience Program (PRR), The Portuguese Republic and The European Union (EU) under the framework of Next Generation EU Program.