Skip to main content
. 2022 May 10;10:e13313. doi: 10.7717/peerj.13313

Table 1. Intermediate calculations.

These formulae were used to determine the birds velocity, distance, and changes in flight trajectory at each frame using their x-, y-, and z- coordinates. These instantaneous values were then used to calculate the flight metrics described in Table 2.

Description Formulae and notes
Instantaneous velocity (m/s) at frame n vn=xnxn12+ynyn12+znzn1260
The vector distance (m) between two consecutive positions is multiplied by the frame rate (60 fps) to achieve instantaneous velocity in m/s.
Distance (m) at frame n (a)With respect to the obstacle atX=0 andY= 0 (excluding the Z plane, as the obstacle occupies all possible Z coordinates):
dnobstacle=xn2+yn2
(b)With respect to the speaker at X = 0, Y = 0, and Z = 0:
dnspeaker=xn2+yn2+zn2
Change in flight trajectory at frame n (a) Curvature (rad/m):
κ=xzzxx2+z2
(b) Angle of inflection (rad):
Θn=cos1xn+1expectedxnxn+1actualxn+zn+1expectedznzn+1actualznxn+1expectedxn2+zn+1expectedzn2xn+1actualxn2+zn+1actualzn2 ,
where xn+1expected = xn + (xn − xn−1) and zn+1expected = zn + (zn − zn−1)
Both calculations exclude movement in the Y direction, which dilutes any meaningful changes in trajectory by including the bird’s forward motion. The greatest change of flight trajectory was determined as the frame during which both curvature and angle of inflection were maximized.