Giter Club home page Giter Club logo

canaryproject's Introduction

Modeling the statistical structure of a complex birdsong

This project is in conjunction with Tim Gardner at the University of Oregon.

Project worked on by Andrew Powers (UO), Rachel Thompson (OSU), and Noel Lefevre (OSU)

Last Update October 2022

Project Description

Bird songs range in form from the simple notes of a Chipping Sparrow to the complex repertoire of the nightingale. Recent studies suggest that bird songs may contain non-adjacent dependencies where the choice of what to sing next depends on the history of what has already been produced. However, the complexity of these rules has not been examined statistically. This project will examine one complex singer—the domesticated canary— and determine if their songs are influenced by long-range rules. The choice of how long to repeat a given note or which note to choose next may depend on the history of the song. Like most forms of human music, do the songs of canaries contain patterns expressed over long timescales? Are their songs governed by rules that apply to multiple levels of a temporal hierarchy? We will develop time-series analysis methods such as Markov chain models or Hidden Markov models to build a statistical model of sequences of canary song.

Progress

Currently we have a working python script that can calculate the One Step Markov Model probabilites of which phrase follows another. This is a transition matrix. This script was built with made up test data and still needs to be confirmed on the real data.

Given a dataframe (example):

string,duration
ABJR,140
NFRK,40
ABIE,50

We can calculate the transition matrix. With the matrix being MxM M = Total Number of Song Characters

$ python transition_matrix.py
[[0.         0.         0.         0.         0.         0.
  0.         0.         0.         0.         0.        ]
 [0.         0.         0.         0.33333333 0.         0.
  0.         0.         0.         0.         0.66666667]
 [1.         0.         0.         0.         0.         0.
  0.         0.         0.         0.         0.        ]
 [0.         0.         0.         0.         0.         1.
  0.         0.         0.         0.         0.        ]
 [0.         0.         1.         0.         0.         0.
  0.         0.         0.         0.         0.        ]
 [0.         0.         0.         0.         0.         0.
  0.         0.         0.         1.         0.        ]
 [0.         0.         0.         0.         0.5        0.
  0.         0.5        0.         0.         0.        ]
 [0.         0.         0.         0.         0.         0.
  0.         0.         0.         1.         0.        ]
 [1.         0.         0.         0.         0.         0.
  0.         0.         0.         0.         0.        ]
 [0.5        0.         0.         0.         0.         0.
  0.         0.         0.5        0.         0.        ]
 [0.         0.         0.         0.         0.         0.
  1.         0.         0.         0.         0.        ]]

canaryproject's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.