Skip to content
/ RoDeO Public

Official Repository of "Robust Detection Outcome: A Metric for Pathology Detection in Medical Images"

License

Notifications You must be signed in to change notification settings

FeliMe/RoDeO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robust Detection Outcome (RoDeO)

PyPI - Python Version PyPI Status Conda 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

About

Official Repository of "Robust Detection Outcome: A Metric for Pathology Detection in Medical Images"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages