Skip to main content

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


Metadata

Release files for RaTEScore 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RaTEScore 0.6.0
File Size Uploaded
ratescore-0.6.0.tar.gz 9.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for RaTEScore 0.6.0
File Interpreter ABI Platform
ratescore-0.6.0-py3-none-any.whl Python 3 none any Details
RaTEScore-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.5 kB

Release files / ratescore-0.6.0.tar.gz

Download URL ratescore-0.6.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6e57b0d8958330d1bf0dceb8ed97e5979f4abc2824c65c320ee87e3764094858
BLAKE2b-256 checksum
How to use checksums
f76c6fac3e303eef30b14225b8fa3e18cd89a5f5c00547a6067ddc7587e59c2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.10

Release files / ratescore-0.6.0-py3-none-any.whl

Download URL ratescore-0.6.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b0e0c9e9fe3628595a3bcd723fff94a0e2eea6d5896b4af44e7bed1f9765b99
BLAKE2b-256 checksum
How to use checksums
32bc7d827c8211888da7647544a1d98a2e701b91ad026f1ce6119d735f8b66ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.10

Release files / RaTEScore-0.6.0-py3-none-any.whl

Download URL RaTEScore-0.6.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bf27492cadc3dc95efec03647da02a35d2d1b395e7f2bc7b630fc5b59c0787f
BLAKE2b-256 checksum
How to use checksums
47818c6356eecab2c7f7aa1982df1ad3309a42249b929a182240548ea4f527ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.6.0 This release

3 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page