No project description provided
Project description
RadGraph
Requirements:
'torch>=1.8.1'
'transformers>=4.23.1'
"scikit-learn"
'numpy'
'appdirs'
'pandas'
Testing:
pytest
Official package as per:
@misc{smit2020chexbert,
title={CheXbert: Combining Automatic Labelers and Expert Annotations for Accurate Radiology Report Labeling Using BERT},
author={Akshay Smit and Saahil Jain and Pranav Rajpurkar and Anuj Pareek and Andrew Y. Ng and Matthew P. Lungren},
year={2020},
eprint={2004.09167},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Usage:
from f1chexbert import F1CheXbert
f1chexbert = F1CheXbert()
accuracy, accuracy_not_averaged, class_report, class_report_5 = f1chexbert(
hyps=['No pleural effusion. Normal heart size.',
'Normal heart size.',
'Increased mild pulmonary edema and left basal atelectasis.',
'Bilateral lower lobe bronchiectasis with improved right lower medial lung peribronchial consolidation.',
'Elevated left hemidiaphragm and blunting of the left costophrenic angle although no definite evidence of pleural effusion seen on the lateral view.',
],
refs=['No pleural effusions.',
'Enlarged heart.',
'No evidence of pneumonia. Stable cardiomegaly.',
'Bilateral lower lobe bronchiectasis with improved right lower medial lung peribronchial consolidation.',
'No acute cardiopulmonary process. No significant interval change. Please note that peribronchovascular ground-glass opacities at the left greater than right lung bases seen on the prior chest CT of ___ were not appreciated on prior chest radiography on the same date and may still be present. Additionally, several pulmonary nodules measuring up to 3 mm are not not well appreciated on the current study-CT is more sensitive.'
])
class_report_5 is precision over ["Cardiomegaly", "Edema", "Consolidation", "Atelectasis", "Pleural Effusion"]
As per:
@inproceedings{delbrouck-etal-2022-improving,
title = "Improving the Factual Correctness of Radiology Report Generation with Semantic Rewards",
author = "Delbrouck, Jean-Benoit and
Chambon, Pierre and
Bluethgen, Christian and
Tsai, Emily and
Almusa, Omar and
Langlotz, Curtis",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2022",
month = dec,
year = "2022",
address = "Abu Dhabi, United Arab Emirates",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.findings-emnlp.319",
pages = "4348--4360",
abstract = "Neural image-to-text radiology report generation systems offer the potential to improve radiology reporting by reducing the repetitive process of report drafting and identifying possible medical errors. These systems have achieved promising performance as measured by widely used NLG metrics such as BLEU and CIDEr. However, the current systems face important limitations. First, they present an increased complexity in architecture that offers only marginal improvements on NLG metrics. Secondly, these systems that achieve high performance on these metrics are not always factually complete or consistent due to both inadequate training and evaluation. Recent studies have shown the systems can be substantially improved by using new methods encouraging 1) the generation of domain entities consistent with the reference and 2) describing these entities in inferentially consistent ways. So far, these methods rely on weakly-supervised approaches (rule-based) and named entity recognition systems that are not specific to the chest X-ray domain. To overcome this limitation, we propose a new method, the RadGraph reward, to further improve the factual completeness and correctness of generated radiology reports. More precisely, we leverage the RadGraph dataset containing annotated chest X-ray reports with entities and relations between entities. On two open radiology report datasets, our system substantially improves the scores up to 14.2{\%} and 25.3{\%} on metrics evaluating the factual correctness and completeness of reports.",
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
f1chexbert-0.0.2.tar.gz
(7.4 kB
view details)
File details
Details for the file f1chexbert-0.0.2.tar.gz
.
File metadata
- Download URL: f1chexbert-0.0.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846ba1cd9ab4dfe4ba617a73a8e3a787bb8759688d0e3455c17c4512d60671af |
|
MD5 | dbdebddebbba9a8dad60d69ffee851ce |
|
BLAKE2b-256 | ccd196acf71503f3eb4fbe48b0b8d76aded97a23598c6ce14f33489103da3116 |