--- license: mit datasets: - imageomics/KABR-original-data language: - en tags: - biology - CV - images - animals - zebra - giraffe - behavior --- # Model Card for X3D-KABR-Kinetics X3D-KABR-Kinetics is a behavior recognition model for in situ drone videos of zebras and giraffes, built using X3D model initialized on Kinetics weights. It is trained on the [KABR dataset](https://huggingface.co/datasets/imageomics/KABR), which is comprised of 10 hours of aerial video footage of reticulated giraffes (*Giraffa reticulata*), Plains zebras (*Equus quagga*), and Grevy’s zebras (*Equus grevyi*) captured using a DJI Mavic 2S drone. It includes both spatiotemporal (i.e., mini-scenes) and behavior annotations provided by an expert behavioral ecologist. ## Model Details ### Model Description - **Developed by:** [Maksim Kholiavchenko, Maksim Kukushkin, Otto Brookes, Jenna Kline, Sam Stevens, Isla Duporge, Alec Sheets, Reshma R. Babu, Namrata Banerji, Elizabeth Campolongo, Matthew Thompson, Nina Van Tiel, Jackson Miliko, Eduardo Bessa Mirmehdi, Thomas Schmid, Tanya Berger-Wolf, Daniel I. Rubenstein, Tilo Burghardt, Charles V. Stewart] - **Model type:** [X3D] - **License:** [MIT] - **Fine-tuned from model:** [X3D-S, Kinetics] This model was developed for the benefit of the community as an open-source product, thus we request that any derivative products are also open-source. ### Model Sources - **Repository:** [Project Repo](https://github.com/Imageomics/kabr-tools) - **Paper:** [Paper Link](https://openaccess.thecvf.com/content/WACV2024W/CV4Smalls/papers/Kholiavchenko_KABR_In-Situ_Dataset_for_Kenyan_Animal_Behavior_Recognition_From_Drone_WACVW_2024_paper.pdf) - **Demo** [Project Page](https://kabrdata.xyz/) ## Uses X3D-KABR-Kinetics has extensively studied ungulate behavior classification from aerial video. ### Direct Use Please look at the [demo](https://github.com/Imageomics/kabr-tools) here for examples of how this model can generate time-budgets from aerial video of animals. ### Out-of-Scope Use This model was trained to detect and classify behavior from drone videos of zebras and giraffes in Kenya. It may not perform well on other species or settings. ## How to Get Started with the Model Please take a look at the [demo](https://github.com/Imageomics/kabr-tools) to get started with the model. ## Training Details ### Training Data [KABR Dataset](https://huggingface.co/datasets/imageomics/KABR) ### Training Procedure #### Preprocessing Raw drone videos were pre-processed using CVAT to detect and track each individual animal in each high-resolution video and link the results into tracklets. For each tracklet, we create a separate video, called a mini-scene, by extracting a sub-image centered on each detection in a video frame. This allows us to compensate for the drone's movement and provides a stable, zoomed-in representation of the animal. See [project page](https://kabrdata.xyz/) and the [paper](https://openaccess.thecvf.com/content/WACV2024W/CV4Smalls/papers/Kholiavchenko_KABR_In-Situ_Dataset_for_Kenyan_Animal_Behavior_Recognition_From_Drone_WACVW_2024_paper.pdf) for data preprocessing details. We applied data augmentation techniques during training, including horizontal flipping to randomly mirror the input frames horizontally and color augmentations to randomly modify the brightness, contrast, and saturation of the input frames. #### Training Hyperparameters The model was trained for 120 epochs, using a batch size of 5. We used the EQL loss function to address the long-tailed class distribution and SGD optimizer with a learning rate of 1e5. We used a sample rate of 16x5, and random weight initialization. **BibTeX:** If you use our model in your work, please cite the model and associated paper. **Model** ``` @software{kabr_x3d_model, author = {Maksim Kholiavchenko, Maksim Kukushkin, Otto Brookes, Jenna Kline, Sam Stevens, Isla Duporge, Alec Sheets, Reshma R. Babu, Namrata Banerji, Elizabeth Campolongo, Matthew Thompson, Nina Van Tiel, Jackson Miliko, Eduardo Bessa Mirmehdi, Thomas Schmid, Tanya Berger-Wolf, Daniel I. Rubenstein, Tilo Burghardt, Charles V. Stewart}, doi = {}, title = {KABR model}, version = {v0.1}, year = {2024}, url = {https://huggingface.co/imageomics/x3d-kabr-kinetics} } ``` **Paper** ``` @InProceedings{Kholiavchenko_2024_WACV, author = {Kholiavchenko, Maksim and Kline, Jenna and Ramirez, Michelle and Stevens, Sam and Sheets, Alec and Babu, Reshma and Banerji, Namrata and Campolongo, Elizabeth and Thompson, Matthew and Van Tiel, Nina and Miliko, Jackson and Bessa, Eduardo and Duporge, Isla and Berger-Wolf, Tanya and Rubenstein, Daniel and Stewart, Charles}, title = {KABR: In-Situ Dataset for Kenyan Animal Behavior Recognition From Drone Videos}, booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) Workshops}, month = {January}, year = {2024}, pages = {31-40} } ``` ## Model Card Authors [Jenna Kline and Maksim Kholiavchenko] ## Model Card Contact Maksim Kholiavchenko