{'fraction_non_alphanumeric': 0.03426211822476843, 'fraction_numerical': 0.015922026710315836, 'mean_word_length': 5.043615107913669, 'pattern_counts': {'":': 0, '<': 2, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Predicting herbivore faecal nitrogen using a multispecies near-infrared reflectance spectroscopy calibration

Optimal management of free-ranging herbivores requires the accurate assessment of an animal’s nutritional status. For this purpose ‘near-infrared reflectance spectroscopy’ (NIRS) is very useful, especially when nutritional assessment is done through faecal indicators such as faecal nitrogen (FN). In order to perform an NIRS calibration, the default protocol recommends starting by generating an initial equation based on at least 50–75 samples from the given species. Although this protocol optimises prediction accuracy, it limits the use of NIRS with rare or endangered species where sample sizes are often small. To overcome this limitation we tested a single NIRS equation (i.e., multispecies calibration) to predict FN in herbivores. Firstly, we used five herbivore species with highly contrasting digestive physiologies to build monospecies and multispecies calibrations, namely horse, sheep, Pyrenean chamois, red deer and European rabbit. Secondly, the equation accuracy was evaluated by two procedures using: (1) an external validation with samples from the same species, which were not used in the calibration process; and (2) samples from different ungulate species, specifically Alpine ibex, domestic goat, European mouflon, roe deer and cattle. The multispecies equation was highly accurate in terms of the coefficient of determination for calibration R2 = 0.98, standard error of validation SECV = 0.10, standard error of external validation SEP = 0.12, ratio of performance to deviation RPD = 5.3, and range error of prediction RER = 28.4. The accuracy of the multispecies equation to predict other herbivore species was also satisfactory (R2 > 0.86, SEP < 0.27, RPD > 2.6, and RER > 8.1). Lastly, the agreement between multi- and monospecies calibrations was also confirmed by the Bland-Altman method. In conclusion, our single multispecies equation can be used as a reliable, cost-effective, easy and powerful analytical method to assess FN in a wide range of herbivore species.


Introduction
Faeces from mammal species are relatively abundant and easily collected. They provide valuable biological information on both existing [1,2] and extinct species [3,4]. On the other hand, faecal pellets can remain on the ground for months [5,6] and relevant biological information such as DNA markers [7] or dietary attributes [8] can be accurately assessed up to one week post-defecation.
Near-infrared reflectance spectroscopy (NIRS) has recently become very popular among foraging ecologists interested in analysing faecal contents [9][10][11]. Among other advantages, NIRS offers quick, non-destructive and reliable quantitative analyses of a broad range of organic constituents [12], including indicators of the diet quality of domestic and wild animal species [13,14]. As a result, diet quality assessment of free-ranging ungulate populations is one of the typical questions addressed by faecal analysis [15].
Among indicators to assess diet quality, faecal nitrogen (FN) is the most common by far. The protein content of plants and forage digestibility are directly related [16,17], as shown by the high correlation between the chemical composition of forages and FN in animals feeding at the same place [9,18,19]. On the other hand, there is experimental evidence of a relationship between the nitrogen provided by the food and the residual nitrogen excreted in faeces in ruminants [20]. This makes FN a good proxy for diet quality linked to overall diet digestibility [21], which has been used for more than 20 years as a nutritional index for mammalian herbivores [22][23][24][25][26][27], and in particular for ungulates [28].
However, efficiency in food digestion, or digestibility depends on both the quality of the food and the ecophysiology of the consumer [29]. In fact, an increase in gut capacity allows animals to process more food of lower digestibility in order to meet their energetic requirements, which in turn increases with their body weight. As a consequence, large herbivores are able to process less digestible food than their medium or small size counterparts [21]. For this reason, ungulate species have contrasting digestive physiologies and diet selections [30][31][32] that, in turn, may have seasonally changing faecal components [2,33]. For all of the previously mentioned reasons, researchers have assumed that the assessment of the diet through faeces must be species-specific, and thus faecal NIRS equations for one species may not be applicable to another [18].
In practical terms, a minimum of 50 to 75 independent samples should be considered for NIRS calibrations from small and homogeneous populations. However, if the equation is expected to be used on a large and diverse population, then a minimum of 150 samples is required for calibration [34,35]. As a rule of thumb, it is commonly accepted that a larger number of calibration samples generally lead to increased precision in NIRS predictions [36]. This fact imposes a large constraint on the use of NIRS for assessing diet quality on rare, elusive or declining mammal populations, where sample size is likely to be low. In other domains, however, this limitation has been solved with the elegant use of multispecies calibrations. In other words, a single equation made with samples from different species can be used to predict in a broad range of situations. These multispecies calibrations have been performed to assess chemical composition of forages [37] and grasses [38] or degradation parameters of feedstuffs [39,40]. To the best of our knowledge the approach using calibrations composed from multiple species has not been used to predict faecal composition in mammalian herbivores.
In this research, we developed an NIRS multispecies equation to predict diet quality, as assessed by the FN of five herbivores with highly contrasting digestive physiologies: two hindgut fermenters, (European rabbit Oryctolagus cuniculus and horse Equus caballus), and three foregut fermenters (Pyrenean chamois Rupicapra pyrenaica, red deer Cervus elaphus, and sheep Ovis aries). We first carried out individual FN calibration equations for each species (monospecies calibration equations) and then performed a global calibration equation including all species (multispecies calibration equation). Subsequently, we tested if this FN multispecies calibration equation could be applied to predict the FN content from other species of herbivores (e.g. Alpine ibex Capra ibex, cattle Bos taurus, domestic goat Capra hircus, European mouflon Ovis musimon, and roe deer Capreolus capreolus), which were not included in the original multispecies calibration. We propose that the FN amounts of the excluded species (validation species) are within the range of the species used to build our multispecies equation (calibration species) and hence, the FN from these new samples should be predicted with accuracy.

Ethics statement
Since this study did not involve endangered or protected species, no specific permissions were required. Faecal samples were collected from the ground or from hunter harvested individuals such as red deer, roe deer and mouflon. In the present study, these three ungulate species were legally hunted in their own habitat by authorized gamekeepers and hunters within the framework of scientific programs approved by the comptetent authorities (e.g. French Ministry of Environment for roe deer and mouflon) or annual hunting plans approved by France, Portugal and Spain.

Sampling collection and procedure
The faecal samples were collected from different geographic areas. They were taken from nine different species of herbivores and as much as possible at different time of year. Faecal samples were from both males and females as well as from young and adult animals ( Table 1). This sampling procedure was used to obtain a general overview of the biological variability occurring in the field and provided us with a highly versatile collection of feeding behaviours (grazers or browsers), energetic requirements in relation to feed intake (body size) and digestive physiologies (ruminants or post-gastric fermenters). We used faecal samples of five free-ranging herbivores, specifically the European rabbit, horse, Pyrenean chamois, red deer and sheep. Moreover, to test the performance of the multispecies calibration in other herbivore species with similar digestive physiology, samples from Alpine ibex, cattle, domestic goat, European mouflon and roe deer were also used.
Fresh droppings were collected from latrines (European rabbit), from the ground after observing individuals defecating (horse, sheep, domestic goat, cattle, Alpine Ibex, Pyrenean chamois), directly from hunter-harvested animals (Pyrenean chamois, European mouflon, red deer) and from animals physically restrained for research purposes (roe deer). In all cases, the droppings were stored in individual plastic bags, transported with refrigeration at 4˚C and stored frozen at −20˚C until FN determination. The species and the sampling date were recorded. Fresh samples were chosen in the field according to their colour and texture [6]. In the hunted animals, faeces samples were extracted directly from the rectum. In the field, a group of droppings collected in one bag was considered a faecal sample, even if they belonged to different individuals.
In the laboratory, frozen faeces were thawed and oven-dried at 60˚C to constant weight (24 hours) and subsequently ground with a laboratory mill to a pitch of 1mm (Cyclotec 1093, FOSS Tecator, Höganäs, Sweden). Subsamples were used in duplicate to determine the dry matter by drying at 103˚C and the FN content. The percentage of FN on a dry matter basis (% FN/DM) was determined by the Dumas dry combustion method, using a LECO analyser (LECO Corporation, St. Joseph, MI, USA). Faecal samples were dried and analysed according to AOAC protocols [41].

NIRS analysis and calibration procedure
Ground faecal samples were packed in ringcups sample cells and were then scanned from 1,100 to 2,500 nm using a NIRSystems 5000 scanning monochromator (FOSS, Hillerød, Denmark). Reflectance was recorded at 2 nm intervals as log (1/R), where R represents the reflected energy, resulting in 692 data points for each sample. The analysis was carried out in duplicate and all measurements were performed by the same operator.
The WinISI III (v. 1.6) software program was employed for spectral data analysis and development of chemometric models. Prior to calibration, log (1/R) spectra were corrected for the effects of scatter using the standard normal variate (SNV) and detrend (DT) algorithms and by multiplicative scatter correction (MSC) to reduce the effects of the particle size. The calibrations were performed by the modified partial least squares regression using first and second derivatives of the spectra and cross-validation was applied to optimize calibration models and to detect outliers. A total of eight spectral models for faecal nitrogen were developed, resulting from the evaluation of four scatter correction techniques (SNV; DT; SNV+DT; MSC) and two math treatments (1,4,4,1; 2,4,4,1-derivate number, subtraction gap, first smooth, second smooth). In order to obtain better accuracy in calibration, we used the mean of the two scans of each sample (average spectral data).
The performance of the model was determined by the following statistics: standard error of calibration (SEC), standard error of prediction (SEP), coefficient of determination for calibration (R 2 ), coefficient of determination for validation (r 2 ), the ratio of performance to deviation (RPD, defined as the ratio of standard deviation for the validation samples to the value of SEP), and the range error ratio (RER, defined as the ratio of the range in the reference data from the validation set to the SEP). The RPD ! 3.0 and/or RER > 10 indicate good predictions and that the equation can be used for quantitative analysis [42,43]. A total of 345 faecal samples from five herbivore species (European rabbit, horse, Pyrenean chamois, red deer, and sheep) ( Table 2) were used to perform independent calibration equations for each species (monospecies calibrations) and later a multispecies calibration for samples from all species together. Internal 'leave-n-out' cross-validation was used as an initial test to validate all calibrations. In addition, sets of external validations were performed for each equation, for both monospecies and multispecies equations. For external validations we employed samples not included in the calibration equations. We used approximately 80% of the total samples to form the calibration sets, and around 20% for the external validation sets ( Table 2). The same faecal samples were used as a validation set for the monospecies and the multispecies calibration equations. To check the predictive accuracy of the multispecies equation, samples from other species originally excluded from the multispecies equation, were employed as an independent prediction set ( Table 2).

Statistical analysis
We used linear models to explore whether the relationship between NIRS predictions and laboratory FN estimates varied across species. We fitted a series of linear models in which laboratory FN values (the response variable) were explained by NIRS predictions, the herbivore species and their two-way interactions (explanatory fixed factors). Model selection was performed using the Akaike Information Criterion (AIC) corrected for small sample sizes (AICc). The AIC may perform poorly if there are too many parameters in relation to the size of the sample. The use of AICc is recommended when the ratio sample size/number of parameters is small (e.g., < 40) [44][45][46]. The Akaike weight (Wi) for each competing model, i.e., the relative likelihood of the model given the data available, was also calculated. Once the best model was selected, linear model assumptions (mainly homoscedasticity and normality) were evaluated following Zuur et al. [47]. The Bland-Altman method was also used to check the agreement between monospecies and multispecies calibrations predicting FN. The Bland-Altman method uses the standard deviation and the mean of the differences between two quantitative measurements by constructing limits of agreement [48,49]. The resulting graph is a scatter plot XY, where the Y axis shows the difference between monospecies and multispecies predictions of FN, and the X axis represents the average of these predictions of FN. In addition, the Bland-Altman method proposes that 95% of the measurements should be within ±1.96 sd of the mean difference. On the other hand, the variability of the differences between both methods should be distributed within the limits of agreement and without any trend in relation to concentration of the unit of measure (i.e., percentage of FN). The Bland-Altman method was applied using the "Blan-dAltmanLeh" package version 0.3.1 [50]. All statistical analyses were performed using R version 3.3.2 [51].

Analysis of NIR spectrum
The NIR spectra of faecal samples averaged for each animal species are shown in Fig 1 (see S1 Dataset for raw data). The log (1/R) reflectance spectra of faecal samples were similar to those reported for domestic ruminants [18,52,53] and rabbits [54]. The following characteristic bands were identified: 1450 nm (1st overtone of the O-H stretch, characteristic of water content); the region 1700-1762 nm (1st overtone of C-H stretch of CH 2 and CH 3  Predicting herbivore faecal nitrogen using a multispecies NIRS calibration content was visible in the 2100-2350 nm region. The effect of nitrogen content was evident in reduced absorption and a shift in peaks at 2312 and 2350 nm.

Calibrations and validations of NIRS mono-and multispecies equations.
Descriptive statistics of the faecal data set employed for the development of the calibration and validation equations are shown in Table 2. Table 3 shows the statistical results obtained from the calibration equations and the corresponding validations (both cross and external validations) carried out by NIRS. We found high and similar predictive power with both monospecies and multispecies calibrations (monospecies: R 2 > 0.95, r cv 2 > 0.93, and r 2 > 0.88; multispecies: R 2 = 0.98, r cv 2 = 0.97, and r 2 = 0.97). These statistics suggest that the performance of the multispecies equation was in line with the monospecies equations. The statistics RPD and RER were used as diagnostics indices [56,57]. For monospecies calibration equations, the RPD range was between 2.7 and 7.9, and the RER range was defined between 9.9 and 27.0, represented in both RPD and RER by sheep as the minimum value, and European rabbit as the maximum. In the multispecies calibration, RPD and RER were 5.3 and 28.4, respectively.
To test the reliability of the multispecies equation an external validation was performed with faecal samples not involved in the multispecies calibration. The aim was to check the FN prediction of samples from each species individually using the multispecies equation (Table 4). The results of the predictions showed an r 2 between 0.77 and 0.97, with red deer having the lowest value and European rabbit and Pyrenean chamois the highest. The predictive power of the equation was consistently better for samples from European rabbit, horse and Pyrenean chamois than for sheep and red deer. Comparing predictions for monospecies (Table 3) and for each species using the multispecies equation (Table 4), the lowest RPD and RER values were represented by red deer and sheep, whereas the highest RPD and RER were in European rabbit.
We used the multispecies equation to assess whether it was possible to predict the FN of new species of herbivores and to therefore check the multispecies equation. To this end, we tested faecal samples of Alpine ibex, cattle, European mouflon, domestic goat and roe deer for prediction ( Table 5). The results obtained were relatively good. The r 2 values were greater

Relationship between NIRS predictions and laboratory FN estimates among species
The best model to explain the observed variability of laboratory FN included the effects of NIRS predictions and the herbivore species (R 2 = 0.92, Wi = 0.89; Table 6). It indicates that the slope between laboratory FN and NIRS calibrations was similar for all species varying only in the intercept (Fig 2, see S1 Dataset for raw data). Thus, we can assume a single relationship between NIRS FN predictions and laboratory FN in all species considered. Moreover, our Bland-Altman analysis showed that the mean of differences (d) between monospecies and multispecies predictions (i.e., bias) was -0.0122, and the limits of agreement were d + 1.96sd = 0.2167 and d − 1.96sd = -0.2411 (Fig 3). Also, the confidence intervals (95%) were calculated for both the mean of differences and the limits of agreement. The variability of the differences of FN between the two calibrations was distributed within the limits of agreement and without any tendency in relation to the mean of FN (i.e., mean of monospecies and multispecies predictions for FN). From 80 samples in total, just 3 animals (all red deer) were outside the limits of agreement. Range = interval between the maximum and minimum value of the data set, SD = standard deviation, r 2 = coefficient of determination for prediction, SEP = standard error of prediction, RPD = ratio of performance to deviation (= SD/SEP) and RER = range error ratio (= Range/SEP).

Discussion
We have demonstrated that a single multispecies NIRS calibration can be used to assess the FN content in faeces of a broad range of herbivore species. In fact, the accuracy of calibration and validation procedures, as well as the prediction values derived from the multispecies equation were similar to those observed in monospecies equations. Comparing multispecies and monospecies calibrations, the coefficients of determination and standard error values were very similar for European rabbit, horse, and Pyrenean chamois and even better for red deer and sheep. Acceptable faecal NIRS equations must have R 2 > 0.8, SECV close to SEC, and RPD > 3 [43,56], criterion which were achieved by our multispecies calibration.
In accordance with the criteria of Shenk and Westerhaus [57], our multispecies NIRS calibration for FN was excellent, and had greater predictive ability than previously reported monospecies calibrations, which were more accurate than the monospecies calibrations reported in the literature for faeces of herbivores [18]. The SECV values for FN were very low indicating that the prediction obtained by the NIRS multispecies model was highly accurate. This error value of cross validation was even lower than those found in other equations built for faecal crude protein in wild ungulates, such as red deer and roe deer (0.15 and 0.12, respectively; [58]), in free-ranging goats (0.13; [33]), or livestock animals such as sheep (0.15; [59]) and domestic rabbit using protein rich compound feeds (0.22; [54]).
Additionally, we also considered other statistics, such as SEP, to measure the calibration performance and to estimate the fit between predicted and reference values when the multispecies equation is applied to an external validation data set (samples from species not used in the calibration). This indicator of prediction error, and related indicators such as RPD and RER, provide information about the reliability of the calibration and validation [42,43,60,61]. On the one hand, in all species, except red deer, we found very similar values of SEP between monospecies predictions and multispecies predictions using the corresponding external validation set. In relation to the literature, the SEP values from the multispecies prediction for each individual species were similar or even greater than those reported for dietary nitrogen based on deer (SEP = 0.15; [62]) or sheep (SEP = 0.33; [59]). On the other hand, multispecies validation showed RPD and RER values generally higher than the minimum considered suitable for faecal samples (i.e., RPD > 3 and RER > 10). The individual predictions using the multispecies equation show diverse RER and RPD depending on the species. In the case of sheep (RPD = 2.5; RER = 9.1) and red deer (RPD = 2.1; RER = 6.9), the statistics were close to the minimum requirements, possibly because of the low value of the standard deviation for sheep and the high value of SEP for red deer compared to other species. Along the same lines, the Bland Altman analysis confirmed that both mono-and multispecies calibrations can be interchangeable to predict FN in the species studied. We have shown that it is possible to use a single NIRS calibration equation to predict the FN of several herbivorous species (horse, European rabbit, Pyrenean chamois and sheep), thus avoiding the need to perform species specific calibrations. Some studies [40,54,63] have employed multispecies calibration but mainly with forages or different feed compounds. An example of using a multispecies calibration equation in faeces was demonstrated by Decruyenaere et al. [63], where databases with a diversity of plant species were used to predict digestibility in sheep. Nuñez et al. [54] also used different diets as a calibration set to predict digestibility parameters, as well as the crude protein in faeces, of domestic rabbits. However, to the best of our knowledge, no previous study has developed a multispecies equation to predict the FN of animal species.
The fact that the slope of the relationship between NIRS FN predictions and laboratory FN was similar for each species, supports the possibility of using a single global equation to predict the faecal nitrogen in a broad range of herbivores. We have shown that a calibration built with samples from a wide diversity of herbivores (large range of FN) can predict with accuracy the FN values in samples from other herbivores when the FN values are within the FN range of the data set used in the multispecies calibration. Additionally, we could have used a single Predicting herbivore faecal nitrogen using a multispecies NIRS calibration multispecies equation instead of five monospecies equations for each of the herbivore species to predict the FN by NIRS.
The most likely explanation for the success of the multispecies calibration is based on the "amplitude spectral" concept. Studies of NIRS-based predictions of forage quality using monospecies calibrations are often, but not always, more accurate than multispecies calibrations that are aimed to encompass a wider spectral variety and range. Marten et al. [36] concluded that several species of legumes can be evaluated simultaneously with a single calibration equation nearly as well as can the single species. There may be a trade-off between the robustness of a calibration in terms of its ability to predict attributes in sets of samples that exhibit wide variability, and the accuracy of those predictions is reflected in the SEP values. Consequently, a compromise exists between having a calibration set with a large number of samples and wide spectral variability, and a lower quality of prediction reflected by higher error as seen in the monospecies calibrations. If the aim is to predict samples with high spectral variability, such as in the case of seasonal variation in FN, it is much better to use a multispecies calibration equation. Conversely, if the predicted samples are always from the same animal species and have similar spectral variability, it is better to use a monospecies calibration equation.
To evaluate the quality of the multispecies calibration, we tested the equation using samples from species not included in the equation, namely Alpine ibex, cattle, domestic goat, European mouflon, and roe deer. The multispecies calibration equation could be applied to predict the FN in other species of herbivores, thus avoiding the need to produce new and specific monospecies calibrations. This approach is quite useful when it is necessary to analyse only a few samples and when the minimum number of samples necessary to develop an individual NIRS calibration equation with accuracy is not achievable.
In summary, we can predict the FN of a wide variety of herbivores using a single calibration equation if a broad spectral variety of the data set is used for the calibration equation. Indeed, the prediction of FN in herbivore species that are not included in the calibration is possible, whether or not the new species present a range of FN within the FN range used in the calibration equation.
Supporting information S1 Dataset. Raw data containing laboratory, NIRS-predicted faecal nitrogen values and NIRS spectra values by species. (XLS)