A Metric for Entity-Aware Radiology Report Generation
Project description
RaTEScore
RaTEScore: A Metric for Entity-Aware Radiology Text Similarity
Overview
RaTEScore is a novel, entity-aware metric to assess the quality of medical reports generated by AI models. It emphasizes crucial medical entities such as diagnostic outcomes and anatomical details, and is robust against complex medical synonyms and sensitive to negation expressions. The evaluations demonstrate that RaTEScore aligns more closely with human preference than existing metrics.
Here is an illustration of the Computation of RaTEScore.
For more detailed about our pipeline, please refer to our paper.
Installation
Environment Preparation
pip install RaTEScore
Usage
from RaTEScore import RaTEScore
pred_report = ['There are no intracranial hemorrhages.',
'The musculature and soft tissues are intact.']
gt_report = ['There is no finding to suggest intracranial hemorrhage.',
'The muscle compartments are intact.']
ratescore = RaTEScore()
scores = ratescore.compute_score(pred_report, gt_report)
RaTE-NER
RaTE-NER dataset is a large-scale, radiological named entity recognition (NER) dataset. We set up this dataset to serve our Medical Entity Recognition module of our proposed metric. To download or find out more about our dataset, please refer to Hugginface and our paper.
RaTE-Eval
To effectively measure the alignment between automatic evaluation metrics and radiologists' assessments in medical text generation tasks, we have established a comprehensive benchmark, RaTE-Eval, that encompasses three tasks:
- Sentences-level Human Rating.
- Paragraph-level Human Rating.
- Rating on the Synthetic Reports.
To download or find out more about our dataset, please refer to Hugginface and our paper.
Default Scheme
For Medical Entity Recognition module, we default to use our fine-tuned version of DeBERTa on the RaTE-NER dataset. It is based on whole the IOB scheme.
For Synonym Disambiguation Encoding module, we default to ultilize BioLORD-2023-C. We have discussed this part in our paper. You can also change this to other pretrained bert models.
Contact
If you have any questions, please feel free to contact zwk0629@sjtu.edu.cn.
Citation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for RaTEScore-0.5.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 6d0b7d6caaffe7bf330896dca46c530409e074c24f24e6bbc48494a8650d3e5d |
|
| MD5 | b1e39ee5dc8d56d8d2199e94a0427a7c |
|
| BLAKE2b-256 | 0013e0fbb85ab56d5191219118c2d6d0a335c5b0ee3e63433a54c4a72c036cd9 |