Skip to main content

Robust Detection Outcome: A Metric for Pathology Detection in Medical Images

Project description

Robust Detection Outcome (RoDeO)

PyPI - Python Version PyPI Status License: MIT


Official Repository of "Robust Detection Outcome: A Metric for Pathology Detection in Medical Images" RoDeO is an easy to use object detection metric useful for (but not limited to) applications in medical imaging, such as pathology detection in Chest X-ray images. It evaluates three sources of errors (misclassification, faulty localization, and shape mismatch) separately and combines them to one score. RoDeO better fulfills requirements in medical applications through its interpretability, notion of proximity and strong penalization of over- and under-prediction, encouraging precise models.

Title Figure

Installation

RoDeO is available as a python package for python 3.7+ as rodeometric. To install, simply install it with pip:

python -m pip install rodeometric

Usage

import numpy as np
from rodeo import RoDeO

# Init RoDeO with two classes
rodeo = RoDeO(class_names=['a', 'b'])
# Add some predictions and targets
pred = [np.array([[0.1, 0.1, 0.2, 0.1, 0.0],
                  [0.0, 0.3, 0.1, 0.1, 1.0],
                  [0.2, 0.2, 0.1, 0.1, 0.0]])]
target = [np.array([[0.0, 0.0, 0.1, 0.1, 0.0],
                    [0.0, 0.2, 0.1, 0.1, 1.0]])]
rodeo.add(pred, target)
# Compute the score
score = rodeo.compute()
for key, val in score.items():
    print(f'{key}: {val}')

Advantages of RoDeO

  1. AP@IoU benefits from severe overprediction at higher thresholds
RoDeO AP@IoU acc@IoU
Overprediction RoDeO Overprediction AP@IoU Overprediction acc@IoU
  1. Acc@IoU achieves high scores with underprediction due to the dominance of true negatives
RoDeO AP@IoU acc@IoU
Underprediction RoDeO Underprediction AP@IoU Underprediction acc@IoU
  1. Compared to threshold-based metrics (like Average Precision @ IoU), RoDeO degrades more gracefully and has a better notion of proximity

Localation error RoDeO

AP@IoU acc@IoU
Localation error AP@IoU Localation error acc@IoU

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

rodeometric-0.0.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

rodeometric-0.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file rodeometric-0.0.1.tar.gz.

File metadata

  • Download URL: rodeometric-0.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for rodeometric-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d3b0c870b618458681e71c4443bc36be1355eea46eae8b68b79209e6cbc575c6
MD5 b671efdac058965219490993c48f1831
BLAKE2b-256 85d21f2bf6a4518bced29f4b6af1681dea501fe58f81bcd7f92d223b140c0fda

See more details on using hashes here.

File details

Details for the file rodeometric-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rodeometric-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for rodeometric-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80583eb286b03ae8cffc854a3c1ff251552ea70f8ba925aa1380fd81996c3087
MD5 b0de0cff76082370a7a8ee8d832b8738
BLAKE2b-256 ff97b1cd498456c17c2a7475817a15eb84a482fe98491a573e99460a59799511

See more details on using hashes here.

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