Introduction

Foraging is a behaviour of crucial importance in the life cycle of birds, especially during the breeding season. During incubation, parents have to cope with various constraints and invest time and energy (Shaffer et al. 2003). When chicks hatch, parents still have to dedicate some time to warm or protect them in many species, and they additionally have to cover the food needs of an entire brood (Ydenberg 1994; Markman et al. 2002).

Aerial insectivores, like swifts, swallows and martins, have to fly continuously and to perform flight manoeuvres while foraging (Bryant and Turner 1982; Kacelnik and Houston 1984). Swifts, swallows and martins feed their chicks with a food bolus constituted of tens to hundreds of arthropods (Bryant and Turner 1982; Gory 2008), which avoids having to fly back and forth between the nest and the foraging patches for each individual prey. During foraging, maximisation of energy intake per unit time is obviously important, but energy consumed during flight is considerable, and the foraging strategy must be a balance between the energy output during flight and the energy intake from feeding (Rayner 1982). Thus, flying at a low cost is of paramount importance for foraging aerial insectivores.

Various behavioural adaptations exist to reduce flight energy expenditures. For example, some aerial insectivores are able to extract energy from their environment during foraging. Common swifts (Apus apus) can glide in thermal updrafts and use wind gusts and wind gradients to save energy (de Margerie et al. 2018; Hedrick et al. 2018), while barn swallows (Hirundo rustica) also use wind gradients to gain potential and kinetic energy during turns (Warrick et al. 2016).

Additionally, wind speed and direction may also influence the flight behaviours of foraging aerial insectivores. Indeed, theory predicts that birds should adjust their airspeed when flying upwind or downwind for energetically optimal cost of transport in the ground reference frame (Pennycuick 1978). The maximum range speed of birds (the airspeed at which the distance travelled for a given amount of energy consumed is maximised) is influenced by wind, and birds optimising their energy expenditure per unit of distance should increase their airspeed when flying upwind and decrease it when flying downwind. This phenomenon has been confirmed in migrating or commuting birds (Wakeling and Hodgson 1992; Hedenström et al. 2002; Kogure et al. 2016; Sinelschikova et al. 2019) and also in the common swift while foraging on aerial insect prey (Hedrick et al. 2018), probably because of the presence of its nest at a fixed ground position.

In addition to wind, other weather variables might have an effect on the flight behaviours of aerial insectivores, such as temperature, solar radiation or humidity, because they influence the availability and movement patterns of aerial insect prey (Lack and Owen 1955; Bryant 1973; Wainwright et al. 2017), and also the availability of external energy sources such as thermal updrafts (Poessel et al. 2018).

Finally, very little is known about the ontogeny of foraging and energy-saving flight behaviours within an individual. Since foraging flight is a complex behaviour, it is possible to hypothesise that juvenile birds may not be as efficient as adults in all aspects immediately after fledging, as is the case in many species for various flight behaviours (see review in Ruaux et al. 2020).

The house martin (Delichon urbicum) is a socially monogamous, coursing insectivore nesting in colonies, in which both sexes incubate and feed the chicks (Bryant 1979; Whittingham and Lifjeld 1995; del Hoyo et al. 2020). They lay up to three clutches per year, and each clutch is composed of one to seven (most often four to five) eggs (del Hoyo et al. 2020). Bryant and Westerterp (1980) studied the energy budget of breeding house martins and calculated that each parent spent around 6 h per day away from the nest during incubation, and that a bird foraging at the highest observed rate in optimal conditions during this time would gather energy only 6% in excess of its requirements, leaving little margin for other activities and lower foraging rates in poorer conditions. When feeding chicks, parents spend more time in flight but have to meet the energy needs of their brood in addition to their own needs. Thus, breeding house martins should spend most of their time actively foraging and should mostly be travelling or searching for food otherwise. In this context, studying the flight behaviours of house martins near a colony during the breeding period may improve understanding of the characteristics of flight during this crucial period, and identify possible means by which these birds reduce their energy expenditures.

In the present study, we measured the 3D flight trajectories of house martins using rotational stereo-videography (RSV; de Margerie et al. 2015) to describe biomechanical characteristics of their flight. One of our goals was to give a first description of the “flight envelope” of house martins in a field study to understand how they use the aerial habitat near their colony during the breeding period. We also tested some of the hypotheses related to energy savings in aerial insectivores: we studied the gliding and flapping behaviours of house martins to determine if they use external energy sources such as thermal currents, wind gusts and wind gradients, and if weather conditions could influence these behaviours. Then, we tested if house martins change their airspeed depending on wind direction to optimise their energy expenditure in the ground reference frame. Finally, we investigated if juvenile house martins differ from adults in some aspects of their flight behaviours.

Materials and methods

All symbols and abbreviations used in our analyses can be found in Table 1.

Table 1 List of symbols and abbreviations

Recording site and time

House martins were recorded near a colony located in Rennes, France (Fig. 1; see also Fig. S1 for a ground view of the experimental setup). The breeding house martins are present in the colony from May to September, and the colony is composed of several tens of nests built on buildings (3- to 6-floor), surrounded by an urban landscape, with mainly roads, a wide lawn and urban gardens. The RSV device was located on a small hill to the northwest of the colony (48°07ʹ45.55ʺN 1°40ʹ42.88ʺW), with a panoramic view over the wide lawn and urban gardens above which the house martins were often flying.

Fig. 1
figure 1

Source for aerial view: Google Earth

Aerial view of the recording site. The red dot indicates the location of the RSV device, the green dot indicates the location of the weather station, and blue dots indicate the location of calibration points. The blue arrow indicates the direction of the sixth calibration point, located 410 m away from the RSV device and not represented here for legibility. The yellow line shows an example of a trajectory, with the white dot marking the beginning and the black dot marking the end. The colony is located on all the buildings on the right side of the aerial view (e.g. where the example trajectory ends).

Nine recording sessions took place from May to July 2021, corresponding to the time when house martins are raising their first brood in this region of France (del Hoyo et al. 2020). Recordings took place in the morning between 9:30 and 12:00 h, when house martins were regularly observed flying near the colony.

During each field session, a GILL Instruments MaxiMet GMX501 weather station (Lymington, UK) with ultrasonic anemometer was set up on a tripod to measure the approximate wind speed and direction experienced by house martins flying near the colony. We placed the anemometer at 2 m height above the ground, in the wide lawn located west to the colony to minimise proximity with any tree or building (see Fig. 1). The weather station also recorded temperature, solar radiation, humidity and atmospheric pressure. All variables were recorded at 1 Hz and were averaged over the duration of each trajectory.

Rotational stereo-videography (RSV)

RSV is an optical tracking technique based on a set of mirrors projecting a stereo image of the animal on the sensor of a single camera (de Margerie et al. 2015). The distance to the animal is measured by analysing the lateral shift between animal image pairs. The rigid assembly of the camera and mirrors can rotate horizontally and vertically on a tripod and fluid video head. Whilst the operator rotates the device to keep the moving animal’s image within the sensor frame, the aiming angles are recorded by angular encoders. The geometrical combination of distance and aiming angles (corrected for the position of the animal image on the sensor) yields a 3D record of the animal’s movement.

We used an updated RSV device (Fig. S2) with a 1-m base length between the lateral mirrors, a Manfrotto 504HD fluid head (Cassola, Italy) equipped with 17-bit digital angular encoders (Kübler Sendix F3673, Villingen-Schwenningen, Germany), recording aiming angles at 200 Hz through an Arduino Mega microcontroller (www.arduino.cc), and an Adafruit Data logging shield (New York, USA). The device was equipped with a Panasonic DC-GH5S camera (Osaka, Japan) recording 4096 × 2160-pixel frames at 60 Hz (150 Mbps H.264 compression) from a 19 × 10 mm sensor area. We used a Nikon AF 105 mm f/2 lens (Tokyo, Japan), providing a 5.2° horizontal field of view for each side of the stereo image. To get well exposed and sharp images, we used a 1/1300–1/640-s shutter speed and f/11 aperture, with ISO 1000–2500, depending on available light conditions. To help tracking the fast-flying birds, the camera was equipped with a Nikon DF-M1 dot sight viewfinder (Osaka, Japan).

Calibration and location error

To calibrate the distance measure, which is based on the lateral offset between left and right images of the bird, we recorded six conspicuous targets (signs, street lamps, trees) located at fixed distances from the RSV device, from 16 to 410 m. The real distance to these targets was measured with a Nikon Forestry Pro hand laser rangefinder (Tokyo, Japan).

The random positioning error was approximately 0.04 m at 25 m, 0.10 m at 50 m and 0.34 m at 100 m (Fig. S3).

Recording methods and data classification

During each field session, we recorded any house martins seen flying at 25–100 m from the RSV device (i.e. convenience sampling), and each individual was followed until it was lost by the operator. To minimise pseudoreplication, we made sure to record a different individual at the end of each recording. Despite this precaution, pseudoreplication may be present to some extent in our data since many individuals were flying back and forth between their nest and the nearby gardens. However, we assume pseudoreplication to be modest, since we recorded 100 trajectories near the colony composed of several tens of pairs.

To analyse a sufficient and comparable portion of trajectories, recordings lasting less than 30 s were removed. Retained videos were subsampled from 60 to 10 Hz to ensure that the number of frames was manageable for digitising, yet still appropriate to describe flight behaviours at a fine temporal scale.

Moreover, recordings where the bird was out of frame during more than 10 consecutive frames (i.e. more than 1 s missing at 10 Hz) were also removed (with a 5.2° field of view, the operator occasionally struggled to continuously follow the bird’s path with the camera). The resulting sample had 97 trajectories with a homogeneous distribution over the nine field sessions (between 9 and 12 trajectories per session).

During each recording, photographs were taken with a greater magnification using a second camera mounted on the RSV device (Panasonic DMC-GH4 with a Nikon AF 200 mm f/4 lens) to have a clearer view of the plumage of each bird and to be able to identify juveniles, which are recognised mainly by the white tips of their tertials (Blasco-Zumeta and Heinze 2014). Five juveniles could be identified during two field sessions in the first half of July, consistent with the breeding phenology of house martins (del Hoyo et al. 2020). Three of these juveniles had trajectories lasting less than 30 s (15, 23 and 29 s). These juveniles were added to the dataset to ensure a minimal sample size for juveniles, increasing the total to 100 trajectories (95 adults and 5 juveniles), with a median duration of 37.5 s and a total duration of 4512 s.

To study the link between house martins’ behaviours and biomechanical variables, the flapping behaviour was labelled on each frame by direct observation of the recorded videos, as either “gliding”, “flapping” or “not visible” when the bird was too far or flew in front of a very textured background (foliage). Only birds performing at least one full downstroke and upstroke cycle were categorised as flapping, because they occasionally performed short manoeuvring wing movements during gliding.

It was not possible to record data blind because our study involved focal animals in the field.

Track processing

Stereo videos and angular records were processed with MATLAB r2018b (The MathWorks, Natick, MA, USA). To digitise the bird’s locations in each video frame, the pixel at the centroid of the bird’s body in the left half of the frame was selected as the left point of interest (POI), either manually or with the help of semi-automatic tracking (DLTdv version 8a; Hedrick 2008). Then, automated normalised cross-correlation between a 31 × 31-pixel area around the left POI and the right half of the image was used to find the corresponding right POI. Automated matching of right POI was sometimes misled by variable backgrounds (sky, foliage, buildings), and thus was visually checked and manually corrected when needed. The bird’s distance from the RSV device was then computed based on the calibration reference.

RSV tracking yields spherical coordinates of the bird for each video frame (i.e. azimuth angle, elevation angle and distance from the device; Θ, Φ and Ρ respectively). Raw coordinate series contain noise, due to (i) theoretical positioning uncertainty (increasing with P2; see de Margerie et al. 2015) and (ii) POI random positioning error in stereo images, which was exacerbated by variable image backgrounds. Consequently, we smoothed the raw spherical coordinate series using quintic splines (which allow non-zero acceleration at the sequence ends), with an error tolerance based on the sum of (i) the per-point theoretical positioning uncertainty and (ii) the amplitude of high-frequency signal present in the coordinate series (as measured with 3 Hz high-pass filtering). These splines also interpolated short (≤ 10 frames) track bouts where the bird was out of frame. Smoothed spherical coordinates were then converted to Cartesian coordinates (X, Y, Z) without additional smoothing. Similarly, smoothed Cartesian speeds and accelerations (i.e. , , Ż and \(\ddot{X}\), \(\ddot{Y}\), \(\ddot{Z}\)) were computed from the first and second derivatives of the spherical coordinate smoothing spline functions (Hedrick et al. 2018). An initial examination of smoothing results showed that high frequency noise was efficiently removed from position series, but remained present in speed and acceleration data, an issue that could partly be improved by increasing the smoothing tolerance by 20%. To ensure that the smoothing tolerance value did not affect our results, we performed a sensitivity analysis, where the base smoothing tolerance was increased by 0% and 40%, with no significant effect on the results presented below (see Table S1; Fig. S7).

Biomechanical variables

A set of biomechanical variables was calculated to describe the flight behaviours of house martins:

Flight speed in the air reference frame (m.s−1):

$${s}_{a}=\left|{\mathbf{v}}_{{\varvec{a}}}\right|=\left|\mathbf{v}-\mathbf{A}\right|$$
(1)

where va is the velocity vector in the air reference frame, computed by subtracting wind speed vector A, calculated from weather station data averaged over the duration of each trajectory, from v, the bird velocity vector (, , Ż). The norms of the horizontal and vertical components of va, sha (horizontal speed in the air reference frame) and sZ (vertical speed) were also calculated. Note that we measured wind speed and direction in the horizontal plane only; hence, A has no vertical component and sZ values are equal in the ground and air reference frames.

Mass-specific rate of change in potential energy (W.kg−1):

$${P}_{p}=g {s}_{Z}$$
(2)

where g is the magnitude of gravitational acceleration.

Mass-specific rate of change in kinetic energy (W.kg−1):

$${P}_{k}={\mathbf{v}}_{\mathbf{a}}\bullet \mathbf{a}$$
(3)

where a is the acceleration vector (\(\ddot{X}\), \(\ddot{Y}\), \(\ddot{Z}\)).

Mass-specific kinematic power (W.kg−1):

$$P={P}_{p}+{P}_{k}$$
(4)

Note that power values are mass-specific, as the body masses of individual birds are unknown.

Finally, to measure flight turns in trajectories, we calculated the following variables:

Instantaneous radius of curvature (m):

$$R=\frac{{|\mathbf{v}|}^{3}}{\sqrt{{|{\mathbf{v}}_{{\varvec{a}}}|}^{2}{|\mathbf{a}|}^{2}-{({\mathbf{v}}_{{\varvec{a}}}\bullet \mathbf{a})}^{2}}}$$
(5)

Note that R is a measure of flight direction change in any plane, not limited to horizontal turns.

Mass-specific centripetal force (m.s−2):

$$F=\frac{{\left|{\mathbf{v}}_{{\varvec{a}}}\right|}^{2}}{R}$$
(6)

Statistical analysis

Most graphical representations and associated statistical analyses were performed in MATLAB r2018b. To visualise the flight envelope of the recorded house martins, several pairs of variables were represented: sha (horizontal airspeed) vs sZ (vertical speed), Pp1s (rate of change in potential energy) vs Pk1s (rate of change in kinetic energy) and sa (airspeed) vs R (instantaneous radius of curvature). Rates of change in kinetic and potential energy were averaged over 1 s (10 frames) segments because these derivative variables are more susceptible to noise, even after smoothing. Moreover, they were only averaged over 1 s segments where the flight behaviour (gliding or flapping) did not change to be able to classify each 1 s segment as entirely gliding or flapping. For each pair of variables, the distribution of all data points was visualised by creating a kernel density estimation of the bivariate distribution, by plotting the contours containing 50% and 90% of this estimated distribution, and then by only displaying individual data points if they were outliers, i.e. outside of the 90% contours. For each pair of variables, this process was repeated for flapping data points and gliding data points to separate the two distributions. The univariate distributions of each variable, divided by gliding and flapping, were then statistically compared. The R software v4.1.2 (R Core Team 2021) with the forecast package v8.16 (Hyndman and Khandakar 2008; Hyndman et al. 2022) was used to inspect the autocorrelograms and partial autocorrelograms of the initial time series, which revealed that all variables were temporally autocorrelated, but that keeping one point out of five was enough to remove temporal autocorrelation for all tested variables (P, sa, sZ, R) in most trajectories. Autocorrelation was removed independently in each time series (gliding points series and flapping points series) by keeping a minimum interval of 5 frames between each point (except for Pp1s and Pk1s for which averaging over 1 s already removed autocorrelation). The means of these resulting distributions were then compared using t-tests.

To test for the effect of wind on flight speed, data points were divided into three directional bins based on the angle between the bird’s instantaneous horizontal direction and the wind vector direction: downwind (0–60 deg), crosswind (60–120 deg) and upwind (120–180 deg). The directional bins were separated between gliding and flapping, totalling to six bins. For each trajectory, a mean airspeed value was calculated for each bin, and statistical comparisons were carried out on the 95 trajectories having at least one point classified into every bin. The distributions of the six bins were visualised using violin plots created with the violinplot function in MATLAB (Bechtold 2016), and the means of each directional bin were compared within each behavioural category using ANOVA. Significant ANOVA were followed by Tukey–Kramer post hoc tests. Furthermore, a linear model was created for each directional bin to analyse the relationship between wind speed (sw) and bird’s airspeed (sa).

The link between weather variables and vertical speed (sZ) was studied by dividing data points into flapping or gliding and then by averaging vertical speed over all the data points of both behavioural categories for each trajectory. Three weather variables were also averaged over the entire trajectory: temperature, solar radiation and humidity. Six linear models were then created to analyse the relationship between mean vertical speed and these three weather variables for each behavioural category.

Finally, airspeed (sa), vertical speed (sZ) and mass-specific power averaged over 10 consecutive frames where flight behaviour did not change (P1s) were analysed to test if their distributions differed between juveniles and adults. Only the 20 adult individuals recorded during the two field sessions when juveniles were observed were retained to ensure that all individuals were recorded in similar conditions (same weather and same period in the breeding season). For each variable and each behavioural category (gliding or flapping), we pooled data points available for the 5 juveniles (after removing temporal autocorrelation) to obtain a distribution. For adults, we randomly sampled 5 individuals out of 20 adults to obtain a comparable distribution and performed a two-sample Kolmogorov–Smirnov (KS) test (kstest2 function in Matlab). This KS test was replicated 100 times with different random adult samples. Each KS test returned a D statistic (Sokal and Rohlf 1981), which is considered significant if:

$$D>\sqrt{-\mathrm{ln}\left(\frac{\alpha }{2}\right) \frac{1}{2}\frac{\left(m+n\right)}{\left(m n\right)}}$$
(7)

where m and n are the number of data points for adults and juveniles respectively, and alpha the significance level.

In the present case, as randomly sampled adult birds had variable flight track duration, m varied and D values were not directly comparable between the KS tests. Instead, we derived a sample size–independent C value:

$$C=D/\sqrt{\frac{\left(m+n\right)}{\left(m n\right)}}$$
(8)

We then computed the significance level from the mean C value over the 100 KS tests:

$$\alpha = 2{e}^{-2{C}^{2}}$$
(9)

Results

General description of flight behaviour

Figure 2 shows a first investigation of the flight speed distribution of house martins flying near their colony by comparing the distribution of vertical speed and horizontal airspeed for all data points (N = 45,170; Fig. 2A) or by comparing gliding and flapping flight (N = 25,414 and 15,810 respectively; Fig. 2B). Note that gliding and flapping totals do not add up to the total number of data points, because flight mode was not visible for 8.7% of video frames. The 90% area for all data points (Fig. 2A) shows that most of the time, house martins have a vertical speed between − 4 and 4 m.s−1, and an horizontal airspeed between 3 and 11 m.s−1. The data points also show the most extreme values exhibited by the recorded house martins, with vertical speeds higher than 6 m.s−1 and lower than − 8 m.s−1, and horizontal airspeeds near 15 m.s−1.

Fig. 2
figure 2

Distribution of vertical speed (sZ) versus horizontal speed in the air reference frame (sha). A All data points are represented by grey circles, with two contours indicating the areas containing 50% and 90% of the kernel density distribution. B 50% and 90% contours for gliding and flapping; only data points outside of the 90% areas appear. Gliding is represented by blue circles and contours and flapping by red triangles and contours. The univariate distributions of data points are represented along the axes of each panel

Dividing the data points into gliding and flapping flight (Fig. 2B) reveals that both vertical speed and horizontal airspeed are significantly higher when house martins are flapping (mean vertical speed: − 0.36 m.s−1 vs 0.85 m.s−1, mean horizontal speed: 6.77 m.s−1 vs 7.21 m.s−1, for gliding vs flapping, respectively; see Table 2 for details). It is expected to find that flapping birds have more positive vertical speeds since flapping is often used to gain altitude, but it is worthwhile to note that a significant proportion of data points associated with gliding show a positive vertical speed, as even the 50% area contains points with positive vertical speeds. Positive vertical speeds whilst gliding can be associated with the use of external energy sources (thermal soaring, slope soaring, wind gradients) but also with a decelerating ascent. It is necessary to study the rates of change in kinetic and potential energy to discriminate between these two scenarios.

Table 2 Summary of the quantified variables for gliding vs. flapping flight of house martins. N values reflect sample sizes after autocorrelation was removed from time series (see methods)

Figure 3 shows the distribution of rates of change in potential and kinetic energy averaged over 1 s for all data points (Fig. 3A) or by comparing gliding and flapping flight (Fig. 3B), with isolines corresponding to several kinematic power values (i.e. the sum of rates of change in potential and kinetic energy; see Eq. 4). The 90% area for all data points (Fig. 3A) shows that house martins have power values between − 25 and 30 W.kg−1 during most of their flight behaviours near the colony.

Fig. 3
figure 3

Distribution of rate of change in potential energy over 1 s (Pp1s) versus rate of change in kinetic energy over 1 s (Pk1s). A All data points are represented by grey circles, with two contours indicating the areas containing 50% and 90% of the kernel density distribution. B 50% and 90% contours for gliding and flapping; only data points outside of the 90% areas appear. Gliding is represented by blue circles and contours and flapping by red triangles and contours. Equivalent values of vertical speed averaged over 1 s (sZ1s) are given in the y axis. The univariate distributions of data points are represented along the axes of the upper panels. The dashed lines are isolines for power values from − 40 to 40 W.kg−1. The lower panels are magnified views of only the kernel contour of gliding (C) or flapping flight (D). On these lower panels, zone 1 represents positive power combined with positive vertical speed, zone 2 represents positive power combined with negative vertical speed, zone 3 represents negative power combined with negative vertical speed, and zone 4 represents negative power combined with positive vertical speed. Flight behaviours associated with these zones are discussed in the text

When comparing gliding and flapping flight (Fig. 3B), the rate of change in potential energy is significantly higher when house martins are flapping (mean − 6.00 vs 10.35 W.kg−1, gliding vs flapping; see Table 2). The difference is less noticeable for the rate of change in kinetic energy, but it is significantly higher for gliding flight (mean 1.57 vs 0.53 W.kg−1, gliding vs flapping). Kinematic power values exhibited by gliding house martins are usually negative (as expected due to adverse air friction and drag), but a significant portion of the gliding distribution shows positive power values, and the P = 0 W.kg−1 isoline even crosses the 50% area of the distribution. This demonstrates that the use of external energy sources is common for gliding house martins in this context.

The magnified view of the kernel contours for gliding (Fig. 3C) and flapping (Fig. 3D) allows to identify several kinds of flight behaviours. As stated above, gliding flight (Fig. 3C) in the zone above the P = 0 W.kg−1 isoline is not uncommon and reflects mechanical energy gain, i.e. the use of external energy sources, which can be divided in several categories: data points where Pp1s (and consequently vertical speed sZ) is positive whilst P is also positive correspond to soaring house martins (thermal soaring, slope soaring, zone 1 in Fig. 3C) which can be associated with a decreasing (Pk1s < 0) or increasing flight speed (Pk1s > 0). Gliding flight with positive P can also happen for house martins losing altitude (Pp1s < 0) but accelerating (Pk1s > 0, zone 2), which could reflect that birds can also use downward or forward wind gusts to accelerate and gain some energy.

At the opposite, gliding flight is often associated with a negative P and a descent (Pp1s < 0), as expected for typical, passive gliding (zone 3). Note that negative P while gliding can also be observed with positive Pp1s, (zone 4) which reflects passive ascents, implying deceleration (Pk1s < 0) and some expected energy loss (P < 0).

Regarding flapping flight (Fig. 3D), it is obviously most of the time associated with positive P, whether it be for ascending (bird accelerates or decelerates, zone 1) or descending flight (bird accelerates, zone 2). However, it is worthwhile to note that a part of the 90% area of the flapping distribution surprisingly shows negative power values. Data points with negative P in ascent (zone 4 in Fig. 3D) could be associated with cases when the bird is struggling to gain altitude and is losing more kinetic energy than the gain in potential energy. Finally, data points with negative P in descent (Pp1s < 0, zone 3) could be associated with flapping birds encountering an unfavourable downward wind gust that results in mechanical energy loss, despite the flapping muscular work. It is also possible that house martins sometimes flapped their wings to brake (i.e. dissipate energy) and/or to generate lateral forces and perform sharper turns in front of an obstacle (e.g. building wall) or to catch prey.

Finally, as the wind measurement method had several limitations (constant wind speed and direction were assumed during each recording and wind was only measured at a single point in space), we cannot exclude that the speeds and accelerations we measured are slightly different compared to the real airspeeds experienced by the birds if the wind varied in space and time during our recordings. This could influence the positions and spread of individual points in Fig. 3 to some extent.

These results show that house martins perform a wide diversity of flight behaviours near the colony, from fast travelling to slow manoeuvring, and that they regularly use external energy sources. The difference between gliding and flapping flight is not clear-cut with regard to vertical speed and power, and house martins are able to exhibit a wide diversity of behaviours in both flight modes.

Flight turns

Figure 4 helps to understand the turning behaviours of house martins by showing the distribution of airspeed and instantaneous radius of curvature for all data points (Fig. 4A) or by comparing gliding and flapping flight (Fig. 4B), with isolines corresponding to several centripetal force values. The 90% area for all data points (Fig. 4A) shows that house martins have a radius of curvature comprised between 1 and 100 m most of the time, associated with a centripetal force comprised between 0.1 and 2 g. Smaller radius of curvature was usually associated with lower airspeed, which always maintained centripetal forces below 5 g. Exceptionally small radiuses of curvature (near 10−1 m in Fig. 4A) show that house martins are occasionally able to perform decimetre-scale turns (mostly u-turns in front of nests), but at very low airspeeds (< 1 m.s−1) and hence low centripetal forces (< 2 g). At the opposite, very large radiuses of curvature (above 100 m) are also uncommon, which suggests that, in this behavioural context, house martins are turning most of the time and rarely fly in straight line.

Fig. 4
figure 4

Distribution of airspeed (sa) versus instantaneous radius of curvature (R). R is represented in logarithmic scale. A All data points are represented by grey circles, with two contours indicating the areas containing 50% and 90% of the kernel density distribution. B 50% and 90% contours for gliding and flapping; only data points outside of the 90% areas appear. Gliding is represented by blue circles and contours and flapping by red triangles and contours. The univariate distributions of data points are represented along the axes of each panel. The dotted lines are isolines for centripetal force values from 0.1 to 5 g

The most common radiuses of curvature were comprised in the interval 2–20 m (50% area in Fig. 4A), clearly indicating a tortuous flight behaviour. Comparing gliding and flapping turns (Fig. 4B) does not show strong differences in distributions, but flapping is associated with significantly higher airspeeds (mean 6.98 vs 7.42 m.s−1, gliding vs flapping; see Table 2) and larger radiuses of curvature (mean of Log10(R): 0.89 vs 0.99, gliding vs flapping). Centripetal force was significantly higher in gliding, but the differences were again small (mean 0.73 vs 0.68 g, gliding vs flapping).

Notable behaviours

Figure 3 allows to identify several types of flight behaviours exhibited by house martins, which may be more clearly understood by looking at individual trajectories. Figures S4, S5 and S6 show the 3D views of trajectories, along with several biomechanical variables. Several types of notable flight behaviours can be identified on these trajectories.

Firstly, thermal soaring is visible on some trajectories (e.g. Fig. S4), when a positive power is observed for a gliding bird gaining altitude. Long sequences with birds rising and circling in thermal updrafts, as can be seen for large soaring birds, were rarely observed for house martins. Rather, they seem to frequently extract environmental energy in small bursts whilst they fly near the colony. In addition to thermal soaring, slope soaring was also occasionally observed for birds flying near high buildings where upward wind gusts could occur.

Secondly, a temporal oscillation of vertical speed appeared on several trajectories (e.g. Fig. S5). While the bird is mostly gliding, it is alternatively ascending and descending, again probably using external energy sources since power is often positive. During these sequences, vertical acceleration shows negative values that are regularly close to − 1 g (− 9.81 m.s−2) which is observed for an object in free fall. This suggests that the gliding bird is alternating sequences of ascensions and free falls.

Finally, some atypical flight behaviours described in Fig. 3 can be seen on individual trajectories, such as birds with a positive power during gliding descents (e.g. Fig. S5), which is probably due to downward wind gusts, and birds with a negative power during flapping descents (e.g. Fig. S6), which suggests that flapping is sometimes used to generate adverse forces used for braking or to perform a sharp turn (e.g. for prey capture), or even for a purpose other than transport (e.g. in flight preening).

Effect of wind on flight speed

Figure 5 shows a comparison of the distributions of bird mean airspeed according to the wind direction relative to the bird’s direction, for gliding flight (Fig. 5A) and flapping flight (Fig. 5B). Significant differences were only observed for flapping flight, where mean airspeed is significantly higher (ANOVA, p < 0.001) for birds flying upwind (7.67 ± 1.01 m.s−1, mean ± SD) compared to birds flying downwind (7.10 ± 0.99 m.s−1) and crosswind (7.32 ± 0.92 m.s−1). However, linear models studying the link between airspeed and wind speed show that wind has a significant effect on both gliding (Fig. 6A–C) and flapping flight (Fig. 6D–F). Birds flying downwind show a significant decrease in airspeed with increasing wind speeds for gliding (Fig. 6A) and a non-significant decrease for flapping (Fig. 6D), whilst birds flying upwind show a significant increase of their airspeed with windspeed for both flight behaviours (Fig. 6C, E). These results suggest that, overall, house martins adjust their flight speed, reducing their airspeed when wind is pushing them, and increasing it when they have to fly against the wind.

Fig. 5
figure 5

Distribution of mean airspeed (sa) versus wind direction category. Each dot represents the mean vertical speed for all downwind/crosswind/upwind flight bouts in a given trajectory. A Gliding. B Flapping. White dots represent the medians, vertical bars represent the ranges from the 25th to the 75th percentiles, and coloured zones represent the kernel density distributions of each category. Lowercase letters (a and b) indicate significant differences after a significant single-factor ANOVA followed by Tukey–Kramer tests (i.e. groups with label a are significantly different groups with label b). No significant difference was found for gliding. Data for 95 trajectories for which at least one data point was available in each category

Fig. 6
figure 6

Mean airspeed (sa) versus wind speed (sw) divided by wind direction category (downwind in blue, crosswind in green and upwind in red). AC Gliding flight. DF Flapping flight. The formula of each linear model, its p-value and R2 are indicated in each panel. The black dotted lines represent the 95% confidence interval of the slope. Data for 95 trajectories for which at least one data point was available in each category

Effect of weather on flight behaviours

Studying the effect of several weather variables on vertical speed (Fig. 7) shows that only the vertical speed in gliding flight increases with temperature and solar radiation (Fig. 7A, B) and decreases with humidity (Fig. 7C), whilst there is no significant effect on the vertical speed in flapping flight. Hot and sunny conditions are favourable to the formation of thermal updrafts, and they are associated with less negative or even positive vertical speeds for gliding house martins (note that here each point represents the mean vertical speed for a given trajectory, i.e. is a sum of sequences of thermal/slope soaring and descending gliding flight bouts). This observation is consistent with the use of thermal updrafts by house martins, and this confirms that this behaviour is frequent and important for these birds near their colony since it is still visible at the scale of whole trajectories.

Fig. 7
figure 7

Mean vertical speed (sZ) versus temperature (A), solar radiation (B) and humidity (C). Each dot represents the mean vertical speed of all gliding/flapping bouts in a given trajectory. Gliding is represented by blue circles and flapping by red triangles. The formula of each linear model, its p-value and R2 are indicated in each panel. The black dotted lines represent the 95% confidence interval of the slope

Differences between juveniles and adults

Figure 8 shows the distribution of airspeed (Fig. 8A, C) and vertical speed (Fig. 8B, D) for gliding and flapping flight for the 5 juveniles and the 20 adults recorded during two field sessions (8th and 15th of July). Airspeed during gliding (Fig. 8A) did not differ significantly between adults and juveniles (randomised KS tests, C = 1.13, p = 0.16), nor did vertical speed during gliding or flapping (Fig. 8B, D; C = 1.27, p = 0.078 and C = 1.14, p = 0.15, respectively). Only airspeed during flapping significantly differed between adults and juveniles (C = 2.23, p < 0.0001), with a flatter, right-shifted distribution for juveniles (Fig. 8C). Median airspeed during flapping was about 0.8 m.s−1 higher in juveniles (7.78 vs. 6.94 m.s−1, juveniles vs. adults). No significant difference in kinematic power was found between adults and juveniles (C = 0.75, p = 0.64 and C = 0.69, p = 0.78 for P1s during gliding and flapping, respectively).

Fig. 8
figure 8

Distribution of airspeed (sa) and vertical speed (sZ) values according to age class for the 25 birds recorded during sessions 7 and 8 (8th and 15th of July). A, B Gliding. C, D Flapping

Discussion

Our study gives a quantitative description of the flight behaviours of the house martin near the colony during the breeding season at fine spatial and temporal scales. Our results show that house martins do use some strategies to save energy during this critical period of their life cycle, such as extraction of environmental energy (Fig. 3), or optimisation of their cost of transport in the ground reference frame (Figs. 5 and 6).

Distribution of biomechanical variables

The 90% area for horizontal and vertical speed (Fig. 2) was rather large (3–11 m.s−1 for horizontal speed and − 4 to 4 m.s−1 for vertical speed), showing that house martins perform a wide diversity of flight behaviours near the colony, whether it be fast travelling, or slow manoeuvring. The total range of airspeeds (including horizontal and vertical components) was 0.5–15.1 m.s−1. This speed range is quite similar to those observed in other hirundine species, such as foraging barn swallows (3.7–19.4 m.s−1; Warrick et al. 2016) and cliff swallows performing intraspecific chases (2.8–14.0 m.s−1; Shelton et al. 2014).

The distribution of rates of change in kinetic and potential energy (Fig. 3) highlighted the use of external energy sources by house martins (discussed in a later section), but some parts were rather unexpected, such as the positive power values exhibited by some house martins in gliding descent, or the negative power values of some individuals during active flapping. These unexpected behaviours can be associated with specific purposes (e.g. braking in the case of flapping with negative power) but could also be associated with specific environmental conditions (e.g. favourable wind gust in the case of gliding descent with positive power, or adverse wind gust in the case of flapping with negative power). The difference between gliding and flapping flight is not as clear-cut as expected with regard to vertical speed and power, and house martins are able to exhibit a wide diversity of behaviours in both flight modes.

House martins only performed the sharpest turns at low speeds, so their centripetal force never exceeded 5 g (Fig. 4) and was most of the time below 2 g, a value consistent with the average maximum centripetal force of 1.38 g found in foraging common swifts (Hedrick et al. 2018). By contrast, other aerial insectivores perform sharp turns with higher centripetal forces, such as cliff swallows reaching 8 g during intraspecific chases (Shelton et al. 2014), or foraging barn swallows performing 7 g turns (Warrick et al. 2016). These differences are consistent with the contrasting foraging behaviours of house martins and barn swallows, since the former often forage at higher altitudes in more open spaces (del Hoyo et al. 2020), whilst the latter often forage near the ground in relatively cluttered environments (Brown and Brown 2020). In this regard, foraging house martins may be more comparable to common swifts and could thus rely on “gleaning” unsuspecting prey rather than catching evasive prey with sharp turns.

Environmental energy extraction

In our study, positive power values are often observed in gliding house martins (Fig. 3), which shows that they regularly use external energy sources such as thermal updrafts, upward wind gusts and wind gradients. Most of the time, they apparently only use these energy sources in short bursts, and individuals circling in thermal updrafts for an extended period were rarely observed. Even when a house martin uses a thermal updraft for a longer duration, vertical speed is not constantly positive and often shows temporal oscillations (see Fig. S5) which could be associated either with prey capture or with aerial preening (the latter behaviour was clearly visible on some video recordings). Thermal soaring may be the main source of energy extraction, as shown by the significant effects of temperature, solar radiation and humidity on vertical speed (Fig. 7), but other strategies were occasionally observed such as slope soaring along the high buildings on which the colony was based, or occasional extraction of environmental energy during accelerating gliding descent, presumably from downward wind gusts (Fig. S5).

The use of thermal updrafts was also commonly observed in foraging common swifts (Hedrick et al. 2018), and these updrafts may be an important environmental feature for foraging aerial insectivores, both as a source of mechanical energy and as a substrate for patches of aerial arthropods (de Margerie et al. 2018), because rising air currents can contain a wide diversity of floating prey (Geerts and Miao 2005; Wainwright et al. 2017). For large soaring raptors feeding on the ground, a framework suggested by Shepard et al. (2011) considers that the distribution of mechanical energy sources (thermal updrafts) may be an important constraint in the foraging behaviour of these species. Even if soaring per se is not as vital for aerial insectivores, which can flap their wings at a much lower cost than large raptors (Pennycuick 2008), here thermal updrafts can be considered a source of both types of energy (mechanical energy and food energy), so their spatial and temporal distribution may also have drastic consequences on the foraging behaviour of aerial insectivores. Consequently, atmospheric conditions may strongly impact the availability of resources for aerial insectivores, and rapidly changing conditions could impact their foraging and breeding success.

Effect of wind on flight speed

House martins follow the general tendency to reduce cost of transport, observed in migrating and commuting birds (Wakeling and Hodgson 1992; Hedenström et al. 2002; Kogure et al. 2016; Sinelschikova et al. 2019) and also in foraging swifts (Hedrick et al. 2018), decreasing their airspeed when flying downwind, and increasing it when flying upwind (Figs. 5 and 6). This tendency was visible on gliding flight, and partly on flapping flight, despite a relatively narrow range of wind speed variation during our field sessions (mean wind speed over a trajectory never exceeded 2.5 m.s−1). It is also worth noting that our method of averaging wind speed and direction over a complete trajectory cannot detect more subtle effects of wind variation at finer temporal scales, such as wind gusts. Moreover, we only measured wind speed and direction at one fixed position, which does not take into account wind variations caused by height and the presence of obstacles. Even so, our results suggest that house martins optimise their movements in the ground reference frame, probably because of the presence of their nest at a fixed ground position (central-place foraging; Bryant and Turner 1982).

Differences between adults and juveniles

A significant difference between juveniles and adults was found in the distribution of airspeed during flapping, with juveniles flying at higher, more variable speeds (Fig. 8C). This suggests that the development of flight behaviour in house martins might not be fully mature at fledging (as in many other bird species; Ruaux et al. 2020). Similar differences might exist for other variables (such as a slightly flatter distribution of vertical speed during gliding; Fig. 8B), but the low number of trajectories from clearly identified juvenile birds prevented more precise investigation. The recorded juveniles were likely performing some of their first flights, so they might not be as precise as adults in controlling their flight speed and altitude and would thus need more efforts to adjust their speed and their trajectory. In house martins, post-fledging locomotor ontogeny may consist in a reduction of speed variability (i.e. improvement of flight speed control) in order to converge towards the most energy-efficient speeds in a given context.

As a consequence, juvenile house martins might be less effective aerial foragers than adults, because of a lower energy intake from feeding and/or because of a higher energy output in flight. Indeed, catching arthropods in flight is a complex behaviour, and, for example, it has been shown in juvenile black phoebes (Sayornis nigricans) that the proportion of successful foraging attempts increased gradually in juveniles to reach the same level as adults at the age of 7 weeks. This increase is potentially due to trial-and-error learning, but the maturation of cognitive or visual systems cannot be ruled out (Marchetti and Price 1989; Gall et al. 2013). Juvenile house martins return to the nest to roost and are still fed by their parents for a few days after fledging (del Hoyo et al. 2020), which suggests that they are not immediately as efficient as adults in catching prey. During this period, juvenile house martins likely benefit from social learning when foraging near the colony (Varland et al. 1991; Bustamante 1994; Heyes 1994; Kitowski 2009). Further studies comparing the energy intake and energy expenditure of juvenile and adult house martins could clarify these potential differences. It is also possible to hypothesise that some of the differences observed here between juveniles and adults are due to playful behaviours specific to juveniles. Such behaviours can also represent a way to experiment different flight behaviours and to gain experience.

To conclude, our study gives a first general description of the flight behaviours of house martins near the colony during the breeding season and suggests several mechanisms by which they might save energy. House martins have little margin for lower energy intake and higher energy expenditure during this critical period, so their flight behaviours reflect a set of adaptations to optimise energy gain. Juveniles may not be immediately as efficient as adults in maximising their energy input whilst minimising their output, so parental care and social learning potentially play a critical role during the first few days out of the nest.