Crandore Hub

ohun

Optimizing Acoustic Signal Detection

Facilitates the automatic detection of acoustic signals, providing functions to diagnose and optimize the performance of detection routines. Detections from other software can also be explored and optimized. This package has been peer-reviewed by rOpenSci. Araya-Salas et al. (2022) <doi:10.1101/2022.12.13.520253>.

README

ohun: optimizing sound event detection
================

<!-- README.md is generated from README.Rmd. Please edit that file -->
<!-- badges: start -->

[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![Dependencies](https://tinyverse.netlify.com/badge/ohun)](https://cran.r-project.org/package=ohun)
[![Project Status: Active The project has reached a stable, usable state
and is being actively
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Licence](https://img.shields.io/badge/licence-GPL--2-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/ohun)](https://cran.r-project.org/package=ohun)
[![Total
Downloads](https://cranlogs.r-pkg.org/badges/grand-total/ohun)](https://cranlogs.r-pkg.org/badges/grand-total/ohun)
[![Codecov test
coverage](https://codecov.io/gh/maRce10/ohun/branch/master/graph/badge.svg)](https://app.codecov.io/gh/maRce10/ohun?branch=master)
[![Status at rOpenSci Software Peer
Review](https://badges.ropensci.org/568_status.svg)](https://github.com/ropensci/software-review/issues/568)
<!-- badges: end -->

<img src="vignettes/ohun_sticker.png" alt="ohun logo" align="right" width = "25%" height="25%"/>

[ohun](https://github.com/ropensci/ohun) is intended to facilitate the
automated detection of sound events, providing functions to diagnose and
optimize detection routines. It provides utilities for comparing
detection and annotations of audio events described by frequency and
time boxes.

The main features of the package are:

- The use of reference annotations for detection diagnostic and
  optimization
- The use of signal detection theory indices to evaluate detection
  performance

The package offers functions for:

- Curate references and acoustic data sets
- Diagnose detection performance
- Optimize detection routines based on reference annotations
- Energy-based detection
- Template-based detection

The implementation of detection diagnostics that can be applied to both
built in detection methods and to those obtained from other software
packages makes the package [ohun](https://github.com/ropensci/ohun) an
useful tool for conducting direct comparisons of the performance of
different routines. In addition, the compatibility of
[ohun](https://github.com/ropensci/ohun) with data formats already used
by other sound analysis R packages (e.g. seewave, warbleR) enables the
integration of [ohun](https://github.com/ropensci/ohun) into more
complex acoustic analysis workflows in a popular programming environment
within the research community.

All functions allow the parallelization of tasks (using the packages
parallel and [pbapply](https://CRAN.R-project.org/package=pbapply)),
which distributes the tasks among several processors to improve
computational efficiency. The package works on sound files in ‘.wav’,
‘.mp3’, ‘.flac’ and ‘.wac’ format.

Install/load the package from CRAN as follows:

``` r
# From CRAN would be
install.packages("ohun")

#load package
library(ohun)
```

To install the latest developmental version from
[github](https://github.com/) you will need the R package
[remotes](https://cran.r-project.org/package=remotes):

``` r
remotes::install_github("ropensci/ohun")

#load package
library(ohun)
```

Further system requirements due to the dependency
[seewave](https://rug.mnhn.fr/seewave/) may be needed. Take a look a
[this link](https://rug.mnhn.fr/seewave/inst.html) for instruction on
how to install/troubleshoot these external dependencies.

Take a look at the vignettes for an overview of the main features of the
packages:

- [Optimizing sound event
  detection](https://docs.ropensci.org/ohun/articles/intro_to_ohun.html)
- [Energy-based
  detection](https://docs.ropensci.org/ohun/articles/energy_based_detection.html)
- [Template-based
  detection](https://docs.ropensci.org/ohun/articles/template_based_detection.html)

This package has been [peer-reviewed by
rOpenSci](https://github.com/ropensci/software-review/issues/568).

------------------------------------------------------------------------

Please cite [ohun](https://github.com/ropensci/ohun) as follows:

Araya-Salas, M. (2022), ohun: diagnosing and optimizing automated sound
event detection. R package version 0.1.1.

Versions across snapshots

VersionRepositoryFileSize
1.0.4 rolling linux/jammy R-4.5 ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 rolling linux/noble R-4.5 ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 rolling source/ R- ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 latest linux/jammy R-4.5 ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 latest linux/noble R-4.5 ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 latest source/ R- ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 2026-04-26 source/ R- ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 2026-04-23 source/ R- ohun_1.0.4.tar.gz 4.3 MiB
1.0.4 2026-04-09 windows/windows R-4.5 ohun_1.0.4.zip 3.9 MiB
1.0.2 2025-04-20 source/ R- ohun_1.0.2.tar.gz 4.3 MiB

Dependencies (latest)

Imports

Suggests