Skip to main content

A Metric for Entity-Aware Radiology Report Generation

Project description

logo

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

RaTEScore-0.5.0.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

RaTEScore-0.5.0-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page