Skip to content

KABR Tools Documentation

DOI

Overview

This repository contains tools to perform animal behavioral analysis from drone videos.

The modular pipeline processes drone video through object detection, individual tracking, and machine learning-based behavioral classification to generate ecological metrics including time budgets, behavioral transitions, land use and habitat, social interactions, and demographic data. Framework design enables integration of novel ML models and adaptation across species and study systems.

Visual Abstract

Figure 1: kabr-tools computational framework for automated wildlife behavioral monitoring.

Detailed Description

Understanding community-level ecological patterns requires scalable methods to process multi-dimensional behavioral data. Traditional field observations are limited in scope, making it difficult to assess behavioral responses across landscapes. To address this, we present Kenyan Animal Behavior Recognition, kabr-tools. This open-source computational ecology framework integrates drone-based video with machine learning to automatically extract behavioral, social, and spatial metrics from wildlife footage.

Our pipeline processes multi-species drone data using object detection, tracking, and behavioral classification to generate five key metrics: time budgets, behavioral transitions, social interactions, habitat associations, and group composition dynamics. Validated on three African species, our system achieved 65 - 70% behavioral classification accuracy, with >95% accuracy for certain behaviors.

Installation

KABR tools requires that torch be installed.

The KABR tools used in this process can be installed with:

pip install torch torchvision
pip install git+https://github.com/Imageomics/kabr-tools

PyTorch Installation

Refer to pytorch.org to install specific versions of torch/CUDA

Each KABR tool can be run through the command line (as described below) or imported as a python module. They each have help information which can be accessed on the command line through <tool-name> -h.

Pipeline Overview

Pipeline Diagram

Figure 2: KABR tools pipeline for processing drone videos. The pipeline consists of four main steps: video data collection, data pre-processing, behavior labeling, and ecological analysis. Each step is modular and can be adapted to different species and study systems.

Getting Started

To get started with KABR tools, follow the pipeline steps in order:

  1. Data Collection - Collect drone video data following best practices
  2. Pre-processing - Use CVAT to create mini-scenes from your videos
  3. Behavior Labeling - Apply machine learning models to classify behaviors
  4. Analysis - Generate ecological insights and visualizations

Additional Resources

Citation

If you use KABR tools in your research, please follow the citation guidance in the repo.