Skip to main content

Kappa-IoU

This Python package implements the Kappa-IoU measure of Inter-annotator reliability from Rogers (2026):

Rogers, Trevor F. (2026). Kappa-IoU: Inter-Rater Reliability for Spatial Annotation

Large-scale annotation projects for which automated annotation solutions are insufficient require a metric that measures the quality of annotation between annotators. Intersection-over-Union, or IoU, is traditionally used for spatial data but requires a ground truth. Cohen's Kappa is a psychometric measure that measures the amount of agreement between raters, but is traditionally used for categorical data.

This repository contains a Python package implementing the Kappa-IoU paper, which indexes IoU with Cohen's Kappa, and handles differences in object cardinality between raters by treating it as a linear assignment problem using Kuhn-Munkres assignment. Also included is an adjusted version of Kappa-IoU that uses a version of the BLEU measure for machine translation which instead scores N-objects for multi-object annotation. Along with the Python package implementing this measure, this repository also contains Section4.py, code that recreates the examples from that section of the paper.

To install this package from inside the downloaded folder from Github:

python -m pip install -e .

To use, run the analysis engine straight from your terminal shell across your dataset directories using the console entrypoint:

kappaiou-run --baseline /data/author_baseline.csv --dir /data/annotator_tranches/ --tau 0.70

The author baseline and annotator tranche CSV files are expected to have the filenames in the first column, label in the second column, and then xywh-format annotations in the following four columns.

MIT License

Metadata

Release files for KappaIOU 1.0.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 KappaIOU 1.0.0
File Size Uploaded
kappaiou-1.0.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for KappaIOU 1.0.0
File Interpreter ABI Platform
kappaiou-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / kappaiou-1.0.0.tar.gz

Download URL kappaiou-1.0.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
345ff7103756c13f210011478b7db86201d434b5539bdff40b9f13e466750ab6
BLAKE2b-256 checksum
How to use checksums
9c6bec919dfd1df431837c67e986565ba542562d71225051fa672e138e81ab6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / kappaiou-1.0.0-py3-none-any.whl

Download URL kappaiou-1.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c981645df5a6a77c4106b5b5a9cfaf70a8bf6d26fc5a8d66b7f8fb72d303f07
BLAKE2b-256 checksum
How to use checksums
5cefecd92fc2486b5c2a2db7b1d461fdabed255a676584964a75f567a2489712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

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