- Methodology article
- Open Access
Rapid identification of species, sex and maturity by mass spectrometric analysis of animal faeces
BMC Biologyvolume 17, Article number: 66 (2019)
We describe a new approach to the recovery of information from faecal samples, based on the analysis of the molecular signature generated by rapid evaporative ionisation mass spectrometry (REIMS).
Faecal pellets from five different rodent species were analysed by REIMS, and complex mass spectra were acquired rapidly (typically a few seconds per sample). The uninterpreted mass spectra (signatures) were then used to seed linear discriminant analysis and classification models based on random forests. It was possible to classify each species of origin with a high rate of accuracy, whether faeces were from animals maintained under standard laboratory conditions or wild-caught. REIMS signatures were stable to prior storage of the faecal material under a range of different conditions and were not altered rapidly or radically by changes in diet. Further, within species, REIMS signatures could be used to discriminate faeces from adult versus juvenile mice, male versus female mice and those from three different laboratory strains.
REIMS offers a completely novel method for the rapid analysis of faecal samples, extending faecal analysis (previously focused on DNA) to an assessment of phenotype, and has considerable potential as a new tool in the armamentarium of the field biologist.
Faeces are a common ‘calling card’ left by animals in the wild, and such deposits have proven to be a valuable source of information regarding species [1, 2], sex , diet  and physiological status, notably stress hormone metabolites . Identification of species in the field is required for a variety of reasons, including pest control, conservation and scientific research [1, 6, 7]. Collection of faeces is less labour intensive than methods to detect or capture live animals; furthermore, faeces may be the only material available to identify cryptic species [1, 8]. The predominant modes of faecal analysis are based on a visual categorisation of macroscopic dietary remains (such bones or wing carapaces) or by analysis of DNA, both of which can be protracted and require expert skills [9, 10]. There is a scope for novel approaches to faecal analysis to supplement and support such methods, especially for new methods that are rapid and easily applied.
One of the major areas of development in biological mass spectrometry has been the development of new ambient ion sources that permit mass spectral data to be collected without prior sample preparation [11,12,13]. The relatively new technique of rapid evaporative ionisation mass spectrometry (REIMS) provides a new potential method for the analysis of information contained in faeces. In REIMS acquisition, samples are subjected to a high-frequency alternating current that generates heat in the sample which, in turn, creates an aerosol containing biological molecules. The molecules are then subjected to ‘soft’ ionisation that generates information-rich molecular ions . To date, REIMS has found applications in the provision of new information during surgical diathermy (electrosurgery) [11, 14,15,16], in the examination of foodstuffs primarily for the analysis of species of origin and adulteration and in microbial typing [12, 17, 18]. REIMS can be used with solid or semi-solid samples and requires little or no sample preparation or prior separation before analysis [11, 12].
We were intrigued by the possibility of using REIMS to analyse faecal material, providing a new molecular profile that would relate to phenotype, and thus supplement or provide an alternative to faecal DNA analysis. We particularly wanted to explore species identification using REIMS on rodent faecal samples due to the difficulty in distinguishing faecal pellets from similarly sized rodent species. We have completed an analysis of faecal samples from several rodent species, maintained under standard laboratory conditions and collected from the natural environment. We report that individual species are clearly resolvable with a high degree of confidence, that the signatures are robust to storage and that REIMS can be a powerful new tool in biological and environmental research. To explore the potential of distinguishing additional phenotypic information about individuals within a species, our analysis of samples from laboratory mice shows that faecal samples from adults can be discriminated from juveniles, that male faeces can be discriminated from female faeces and, further, that genetically distinct inbred strains can also be resolved.
Faecal samples generate informative REIMS data
A typical rodent faecal pellet (dry weight approximately 10 mg) was, after hydration, able to conduct electricity and burn rapidly during REIMS acquisition (Fig. 1b; a video file of the burn process is given in Additional file 1: Video S1). Each pellet burn (Fig. 1c) generated a single mass spectrum aggregated over the total burn time (Fig. 1d). The burn events for multiple faecal pellets derived from each individual (typically three or four pellets) were averaged prior to further analysis. The negative ion spectra are rich in singly charged ions, and the region from 600 to 900 m/z is likely to be dominated by phosphatidyl glycerols, phosphatidyl ethanolamines and phosphatidic acids. Other ions at lower m/z values (150–400 m/z) were likely to be derived from fatty acids, rhamnolipids, ceramides and short-chain mycolic acids. These classes of molecules have been identified previously by REIMS/tandem mass spectrometry [19, 20], although there is little prior information about lipid profiles of rodent faeces or the distribution between signals of animal or bacterial origin. The identity of the ions is not critical for these analyses, as it is the pattern of ions that are assessed. Individual pellets from a single species generate remarkably similar spectra (Fig. 1), and the spectra from different species are distinctive and consistent (Fig. 2). The raw mass spectral data are discretised by binning (typically, 0.1- or 0.05-Da bins) and then analysed by PCA, LDA or with random forests (Additional file 2: Figure S1).
Faecal REIMS can classify species of laboratory-housed rodents
We used laboratory-housed rodents for proof of principle that REIMS could classify rodent faecal samples based on species of origin. Samples from laboratory-housed rodents reduce variation in faecal composition attributable to environmental effects, such as diet, intestinal microbiome and housing. Faecal samples were therefore collected from bank voles, field voles, wood mice, house mice and a randomly segregating cross of Wistar × Brown Norway laboratory rats, all housed under similar laboratory conditions for several months prior to sample collection. Samples were stored overnight at 4 °C before REIMS analysis. The five species generated complex mass spectra that were relatively consistent for individuals from the same species, but markedly different between the five species. The mass spectra were binned using Offline Model Builder software to yield a 7001-point discretised spectrum for each sample prior to the analysis by discriminant function analysis. The overall workflow is summarised in Fig. 2.
The REIMS negative ion spectra obtained from each faecal sample were complex, containing multiple ions across the range from 400 to 1200 m/z. It was also apparent that the averaged spectra differed between species, in the intensities of ions at specific m/z values and, visually, in the context of the overall profile (Fig. 2a). Using discriminant function analysis of the binned data, the five species were resolved into partially overlapping clusters (Fig. 2b). Using random forest classification, REIMS could resolve rodent species (housed under laboratory conditions) to an accuracy of 83% (random forest analysis, n = 94). The highest classification accuracy was for rats (95%), with only 1 of 20 rat samples misclassified as a wood mouse. The lowest classification accuracy occurred for house mice and wood mice (75% for both, Fig. 2c). As a final test of performance, we took the same spectra but randomly assigned them to five different ‘pseudospecies’ categories, and the data workflow was completely unable to resolve these categories (Additional file 3: Figure S2). These tests (randomisation test) have been applied throughout this work, and the data are provided in Additional file 3: Figure S2.
Effect of sample storage or diet on REIMS classification accuracy
To be of greatest value, the mass signature obtained through REIMS should be stable over time and under different environmental conditions. However, there is potential for sample age and changes in ambient temperature to cause variance in the mass spectra, which could be relevant to samples collected in the field of indeterminate history and subject to a broad range of environmental conditions. We therefore explored the effect of sample history on classification accuracy. We collected faeces from captive-bred house mice and maintained them for extended periods under different conditions (Fig. 3a). The REIMS spectra from these faeces were then analysed using the random forest model established for the five species of laboratory-housed rodents (above). The stability of the signature was remarkable, and under all storage conditions, the spectra were remarkably conserved (Fig. 3a, b). No samples were misclassified for samples stored for 1 day. For samples stored for 1 week, there was a single misclassification out of 12 samples stored in closed vials at each of 3 temperatures: ambient (mean 18 °C), 21 °C and − 18 °C. For samples stored for 4 weeks, there was 1 misclassification out of 12 for samples stored in open vials at ambient temperature (mean 18 °C), conditions under which some of the faecal samples developed visible coatings of fungal hyphae. This attests to the robustness of the faecal signatures.
A second source of variation in the faecal REIMS signature could be the diet of donor animals, which would be expected to vary more in populations of wild rodents. To assess whether diet would be a major influence on the REIMS signature, we took faecal pellets from captive-bred house mice that had been maintained on standard laboratory diet and switched different groups to four different commercial diets (n = 12 per diet). We collected samples over several weeks as the mice were transitioned to the new diet. House mice maintained on the same diet were classified to 100% accuracy for all time points measured. Overall, for the other diets, the accuracy of classification decreased by 16% over the 5-week period, indicating that diet influences the signature, but is not a major source of variation (Fig. 3c, d). Most of the decline was due to mice transferred to a hamster diet, with three misclassifications after 1 week fully on this diet, two after 2 weeks, three after 3 weeks and five after 4 weeks (total 21.7% misclassifications). The hamster diet is an inhomogeneous mixture, and it was possible that individuals exerted some selectivity in the components of the diet that were ingested. No individual was misclassified more than twice. Only 7 out of 120 faecal samples (5.8%) were misclassified from mice on homogeneous pig or poultry diets. Thus, and perhaps surprisingly, diet was not a major contributor to the REIMS signature, suggesting that the ions are derived from host cells sloughed off in the faecal pellet or from bacteria within the relatively stable faecal microbiome.
Faecal REIMS can classify wild rodents with a high degree of confidence
Having confirmed that REIMS could classify rodent faeces samples from laboratory-housed animals, with a very limited effect of diet or sample storage on classification ability, we next analysed field-collected samples from bank voles, field voles, wood mice and Norway rats gained from several sites. As we were unable to capture free-living house mice for inclusion in this analysis, we used samples taken at the end of the captive-bred house mouse diet study to reflect house mice on a range of diets typical of commensal habitats. REIMS could classify and identify the correct rodent species to a high accuracy of 91 to 97% (Fig. 4a, b). For these analyses, we plotted the intensity of the five m/z bins that yield the strongest discrimination in the random forest analysis (Fig. 4c). However, in some instances, we noticed a strong cross-correlation between m/z bins separated by 1 Da, reflecting the existence of the monoisotopic ion and the first 13C isotopomer (example in Additional file 4: Figure S3); in these instances, we did not remove one of the ions from the analysis but have not displayed the intensity values for both ions, displaying only the monoisotopic. Other ion pairs, separated by 1-Da bins, were also correlated but did not show the expected relationship of intensity, suggesting that they are derived from the same molecular class, but are not 12C/13C pairs. These plots illustrate the broad range of ion intensity values obtained from individual faecal pellets and the considerable overlap between the spectra from each of the five species. Despite this, discrimination was highly successful—whereas a randomisation test showed no classification ability (Additional file 3: Figure S2).
REIMS can classify species drawn from populations not included in the original data set
For REIMS to be of value in the identification of species of rodents in new study sites, it should be possible to use pre-existing data as a learning set that extrapolates to new populations. To test this using our data set, we selected 1 of our wild rodent trapping sites (Wood Park Farm) that had yielded 25 wood mouse and 11 bank vole samples. After the removal of these samples from our wild rodent data set, we ran a random forest training model on the remaining data. This training model gave a classification accuracy of 94% (data not shown). The excluded samples were then passed through the random forest model using the predict function to classify the species of origin. The model classified all 25 wood mouse samples correctly and 8 out of 11 bank vole samples correctly.
REIMS can discriminate mouse sex and maturity
Having established that REIMS is effective at discriminating rodent species, and that this discrimination is more powerful in wild-caught than laboratory-housed rodents, we asked whether the analytical methodology could discriminate different classes of animals within the same species. These studies were conducted with three strains of laboratory mice (outbred ICR (CD-1) and inbred C57BL/6 and BALB/c). Faecal samples were collected from sexually mature (> 36-day female, > 52-day male) and immature mice of both sexes from all three strains.
There was segregation of faecal pellets on the basis of sex (all ages) or maturity (both sexes) of the owner (Fig. 5, Additional file 3, for randomisation tests). As perhaps would be expected, the classification of sex (a categorical variable) was stronger than for maturity (based on age, a continuous variable using a single age cut-off. Analysis of misclassification based on age revealed that it was predominantly attributable to the incorrect assignment of samples from young individuals. The role of different m/z bins in discrimination is clear from a plot of the five most informative signals, nominated by the RandomForestExplainer package  for each discrimination (Fig. 6). There is a considerable overlap between the groups for each bin, but the bias in each is evident, and the combination of data from multiple bins provides useable discrimination. There is unlikely to be a single bin or molecular species that drives discrimination. Analysis of the intensities obtained from individual samples that were misclassified revealed that these tended to be clustered above or below the median for the category.
REIMS can discriminate different mouse strains
Most laboratory mouse strains originate from common ancestors but have been isolated for many hundreds of generations, leading to multiple genotypic and phenotypic changes . We therefore explored the ability of REIMS to discriminate between the faeces of three strains from different major lineages of laboratory mice . These were two inbred strains (BALB/c, derived from the Castle lineage, and C57BL, derived from the C57 lineage) and ICR random-bred mice derived from the Swiss lineage. All were fed on the same diet and kept under the same husbandry conditions. Complex spectra were obtained from all three strains, with clear differences being evident. This confirms that REIMS is capable of a high level of discrimination within species as well as between species (Fig. 7).
We have demonstrated that REIMS can generate informative mass spectra from rodent faeces, and these can be used to classify species of origin with high performance (typically > 90%). The REIMS signature does not comprise a series of identified molecular ions, identified by their mass spectra. Rather, the pattern of ions, many of which reflect chemical modification in the REIMS acquisition, are uninterpreted in molecular terms, and it is the overall signature that is used for discrimination. The species discrimination when applied to faecal samples collected from wild-caught animals by live trapping was very high (between 91 and 97%) and superior to that obtained with animals maintained in the laboratory. This increased discrimination of wild samples could be a consequence of a broader range of dietary variation. Wild rodents have a heterogenous diet , and it is perhaps unsurprising that species maintained on a common diet were slightly less strongly discriminated. However, even with a homogenous diet, the ability to discriminate all species was remarkable. The loss of classification accuracy observed when house mice were maintained on a hamster diet could be due to this being the most varied of the four diets we used, leading to a greater variation in dietary intake by individual mice due to preferential selection of specific diet components. Discrimination based on faecal components may be further enhanced by appropriate choice of an optimal learning algorithm ; these data are already sufficiently encouraging to explore further application in field ecology.
The overall resilience of the REIMS signature suggests that a major component of this signature is attributable to the animal, possibly due to species-specific compounds excreted in the faeces. Such compounds may, for example, originate from anal gland secretions that have been previously identified in rodent faeces [24,25,26]. It may also be possible that shifts in the gut microbiome elicited by dietary differences could manifest in the faecal molecular profile. Thus, the REIMS signature may be composed of a combination of species-specific elements, and additional elements influenced by other factors, such as diet. Overall, the high classification accuracy of wild rodent faecal samples, compared to those from laboratory-housed rodents, bodes well for future field studies. Further, it was reassuring that the REIMS profile was robust to sample storage. Field-collected samples could be retained and analysed at the conclusion of a field study, for example. This contrasts with the known instability of specific faecal metabolites [27, 28]. Indeed, in the absence of a freezer, the best storage solution might be to dry the faecal samples rapidly and rehydrate them just prior to REIMS.
REIMS has considerable potential in molecular scatology. Species identification is comparable to other faecal-based identification techniques [1, 7, 29] and higher than different techniques such as photography and footprint identification [30,31,32]. A real benefit of REIMS is the high speed of sample processing, typically 5–10 s per burn event, with a maximum processing time of no more than 2 min per sample, much faster than DNA-based protocols which can take hours or days . Although the core instrumentation necessary for REIMS is costly, it is inexpensive to build comprehensive profiles of large numbers of samples from a REIMS-based workflow, and the signatures incorporated into the learning set are robust and useable for future analyses.
The ease with which REIMS spectra are acquired, and indeed, the lack of any requirement for detailed molecular interpretation of the spectra means that this method might be applicable to many ecological applications, including conservation and biological research. Although we have combined pellets in this study, this might not feasible in field acquired samples. However, it is possible to acquire perfectly useable spectra from single pellets. Indeed, spectra can be generated from one half, or even one quarter, of a 10-mg mouse pellet (Additional file 5, Figure S4). Although samples must be brought to the instrument, the stability of the signature to storage makes this feasible. At hundreds of samples per day, it would be possible to develop a detailed profile over significant geographical or temporal scales. This could allow REIMS to be used as a central diagnostic service to which samples are sent for commercial pest control, conservation and research applications. We have already shown that REIMS can discriminate sex and maturity, and it is possible that other factors, such as stress, could also be added to the phenotypic characterisation.
Laboratory-housed rodent sample collection
Test subjects were 10 male and 10 female bank voles (Myodes glareolus), 8 male and 10 female field voles (Microtus agrestis), 6 male and 10 female wood mice (Apodemus sylvaticus), 10 male and 10 female wild-stock house mice (Mus musculus domesticus) and 10 male and 10 female laboratory rats (Rattus norvegicus). Bank voles and field voles were a mixture of animals wild-caught in Northwest England 9 to 15 months prior to the start of the study and first-generation offspring of individuals wild-caught in Northwest England aged 5 to 18 months. Wood mice were all wild-caught in Northwest England 22 to 27 months prior to the start of the study. House mice were 9 to 17 months old, captive-bred for 5–10 generations from populations captured in Northwest England. Inbred or random-bred laboratory strains were Hsd:ICR (CD-1®, ‘ICR’), C57BL/6JOlaHsd (C57BL/6) and BALB/cOlaHsd (BALB/c) were in-house bred. Rats were 8 to 9 months old from a random-bred cross between Wistar (HsdHan®:WIST, InVivo, Bicester, UK) and Brown Norway (BN/SsNOlaHsd, InVivo, UK) laboratory strains, originally obtained from Envigo UK and subsequently crossbred in-house for three generations. Bank voles, field voles and male house mice were housed singly in 48 × 15 × 13 cm cages (M3, North Kent Plastics, UK). Female house mice were housed in groups of 2 to 4 full siblings in 45 × 28 × 13 cm cages (MB1, North Kent Plastics, UK). Wood mice were housed singly in 38 × 25 × 18 cm cages (RM2, North Kent Plastics, UK). Rats were housed in same-sex pairs in 56 × 38 × 22 cm cages (RC2R, North Kent Plastics, UK).
All animals were fed 5FL2 EURodent Diet (IPS Product Supplies Limited, London, UK) ad libitum and had access to water ad libitum. Wood mice, bank voles and field voles were supplemented with Harry Hamster complete muesli (Supreme Petfoods Ltd., Ipswich, UK) and hay. Field voles were also given fresh-cut grass. All cages had Corn Cob Absorb 10/14 substrate (IPS Product Supplies Limited, London, UK) lining the base. Cardboard tubes and paper wool nest material were provided to all animals for enrichment, with 15 × 8 cm plastic tubes also provided for rats. Animal numbers are summarised in Additional file 6: Table S1.
Collection of faecal pellets
Laboratory-housed rodents were placed individually into a clean laboratory cage for 1 to 2 h, and multiple faecal pellets were collected from each individual. The order of sample collection from each animal was randomised.
Wild rodent sample collection
Longworth traps, Mk1 or Mk2 TubeTraps (BioEcoSS Ltd., Shropshire, UK) and Ugglan traps were set in five separate locations: Kielder Forest (Northumberland, UK); Ness Botanic Gardens (Wirral, UK); Wood Park Farm (Wirral, UK); University of Liverpool, Leahurst Campus (Wirral, UK); and a private garden in Mouldsworth (Cheshire, UK); locations are recorded in Additional file 6: Table S1. Traps, cleaned before every use, were baited with parakeet seed mix (Rob Harvey, Tongham, UK) and a piece of apple. Hay was provided in the traps as bedding material. Traps were checked twice daily. Species and sex of all trapped animals were recorded, and multiple faecal pellets were taken from each trap. Sex was determined using anogenital distance. No faecal samples were taken when more than one animal was captured in the same trap, and animals were fur clipped to avoid repeated sampling. Faecal samples from wild Norway rats (Rattus norvegicus) were obtained as loose droppings from building floors at Wood Park Farm (Wirral, UK), Ness Heath Farm (Wirral, UK) and Shotton Industrial Estate (Wirral, UK). The distance between the sample locations and local population density ensured that samples were very likely to be from different individuals. For the discrimination study for wild rodents, samples were collected from 80 bank voles, 40 field voles, 74 wood mice and 29 rats (Additional file 6: Table S1) and stored for up to 15 days at − 20 °C before the analysis.
Evaluation of storage conditions
Faecal donors were 12 male captive-bred house mice (bred for 5–10 generations from populations captured in Northwest England) aged 11 to 13 months. Multiple faecal samples were collected from each donor and stored in closed Eppendorf tubes at 4 temperatures: − 18 °C, − 4 °C, 21 °C and ambient (mean 18.25 °C, maximum 24 °C, minimum 17 °C). Ambient temperature samples were stored in open or closed Eppendorf tubes. Samples were stored for 1 day, 1 week or 4 weeks. Samples were randomly allocated to each temperature and time condition. For each donor, a sample was stored for each temperature and time condition, giving 15 samples per donor.
Diet study sample collection
Test subjects were 48 singly housed wild-stock male house mice (9 to 18 months old, bred for 5–10 generations from populations captured in Northwest England). All subjects were fed 5FL2 EURodent Diet ad libitum prior to the start of the study. At the start of the study, mice were assigned to four treatment groups (n = 12) and fed different diets. During an acclimation week, subjects were fed a mixture of 5FL2 EURodent Diet and their new diet. From the second week, house mice were fed only their new diet for a further 4 weeks. Diets were Poultry Grower (SDS, Braintree, UK), Harry Hamster complete muesli (Supreme Petfoods Ltd., Ipswich, UK), Turbo 40 pig feed (Massey Bros Feeds Ltd., Crewe, UK) and 5FL2 EURodent Diet (IPS Product Supplies Limited, London, UK). Faecal samples were collected from each mouse on the first day of the study and at weekly intervals over the study.
Sex, maturity and strain study
Test subjects came from two inbred laboratory mouse strains, C57BL/6JOlaHsd (C57BL/6) and BALB/cOlaHsd (BALB/c), and one random-bred laboratory strain, Hsd:ICR (CD-1®, ‘ICR (CD-1)’). The strains were originally obtained from Envigo UK and subsequently bred in-house. They were maintained in MB1 cages, and faecal samples were collected by temporary transfer to M3 cages. All animals were fed on 5FL2 EURodent Diet and had access to water ad libitum. All cages contained Corn Cob Absorb 10/14 substrate, 15 × 5 cm plastic tubes and paper wool nest material. Samples were collected from 176 individuals (details in Additional file 6, Table S1; BALB/c and BALB.K were combined for this study). Samples were stored at 4 °C for up to 7 days or at − 18 °C for up to 30 days prior to analysis.
REIMS processing of faecal samples
All sampling was conducted in a Ductless Fume box (Air Science, Liverpool, UK). REIMS requires that samples contain sufficient water to conduct an electric current to heat the sample and generate fumes. As faecal pellets collected in the field may have dried to a variable degree, we optimised a rehydration protocol. Faecal pellets were placed onto 25-mm glass microfiber filter paper disc (GE Healthcare/Whatman), moistened with MilliQ water. The pellets were then individually hydrated with 200 μL of MilliQ water for 1 to 2 min. An aerosol was generated using a monopolar electrosurgical pencil in either cut mode at 35 W (species discrimination) or coagulate mode at 40 W (mouse age, sex, strain) powered by a VIO 50 C electrosurgical generator. Sampling was of three to five pellets from the same individual and/or condition for data acquisition for 2–5 s per pellet. Sample processing was conducted blind to the treatment condition of the sample, and the order of sample processing was randomised.
Aerosol particles were aspirated using a Venturi gas jet pump powered by nitrogen on the REIMS source via a 3-m evacuation tubing incorporated into the electrosurgical pencil. The Venturi pump introduces the aerosol orthogonally to the inlet capillary of the mass spectrometer, which is then drawn into the source by the vacuum of the instrument. This geometry, combined with a specially designed whistle within the Venturi housing, ensures that the larger particles are not drawn into the capillary where they could cause a blockage. A solution of leu-enkephalin (1.72 pmol/μL dissolved in propan-2-ol) (Fisher Scientific) was infused at 100 μL/min and nebulised at a position opposite the inlet capillary within the whistle assembly. This peptide was used as a lock mass (544.26 m/z) to maintain an accurate mass measurement during all analyses. Laboratory animal and storage studies were conducted using the beta version of the impactor (ceramic cylinder) whereas the wild animal and diet study samples were analysed using the commercial version (Kanthal metal coil). Mass spectra were recorded on a Synapt G2-Si (Waters, Wilmslow, UK) in full-scan resolution, negative ion mode at a scan rate of 1 scan per second from 50–1200 m/z. The sample cone was set to 60 V, and the heater bias was set to 60 V.
An overview of the data analysis workflow is presented in Additional file 2: Figure S1. Individual burn spectra for each faecal pellet were aggregated to generate a single raw data file for each sample. Mass spectra were imported into Waters Offline Model Builder software (OMB-1.1.28, Waters Research Centre, Hungary) or LiveID (Waters). Within Offline Model Builder spectral data above, the intensity threshold of 3 × 105 counts were summed for each data point, accumulating data from multiple faecal pellets from the same animal. Within LiveID, intensity threshold was set automatically, and the exported, binned data were further processed in R. Mass spectra were then lockmass corrected to either a propan-2-ol background peak at 325.19 m/z or leu-enkephalin at 554.26 m/z. For analysis, a mass range of 400 to 1100 m/z was used. The resulting spectra were normalised, scaled and binned by either LiveID or Offline Model Builder (Waters) at 0.05 or 0.1 m/z bin width. Binned data (approx. 14,000 or 7000 data points) were exported as .csv data files for further analysis. For some experiments, data were analysed by principal component analysis (PCA) followed by discriminant function analysis (DFA) using either SSPS version 24 (IBM, Portsmouth, UK) or R. Random forest classification was achieved with package ‘randomForest’  using R version 3.4.2. . For random forest analysis, two analyses were completed—in the first, all samples were included in the classification, and in the second, we retained 70% as a training set and used the trees generated therefore to assess the remaining 30%. A confusion matrix was generated to determine the accuracy of classification for each species or another category. Specific ions that made the greatest contribution to classification were identified using the randomForestExplainer package  in R. Data were visualised with SPSS or with ‘ggplot2’ in the R environment . In some instances, the top informative ions included both the monoisotopic ion and the first 13C isotopomer that were identified and confirmed by plotting a cross-correlation matrix for the intensities of these ions—such isotopically linked pairs exhibited a very high degree of correlation, as would be expected (Additional file 4: Figure S3).
Availability of data and materials
All REIMS raw data files are available in the MetaboLights database . Accession number: MTBLS1095.
Barbosa S, Pauperio J, Searle JB, Alves PC. Genetic identification of Iberian rodent species using both mitochondrial and nuclear loci: application to noninvasive sampling. Mol Ecol Resour. 2013;13:43–56.
Hansson L. Small rodent food, feeding and population dynamics - comparison between granivorous and herbivorous species in Scandinavia. Oikos. 1971;22:183–98.
Eggert LS, Eggert JA, Woodruff DS. Estimating population sizes for elusive animals: the forest elephants of Kakum National Park, Ghana. Mol Ecol. 2003;12:1389–402.
Farrell LE, Romant J, Sunquist ME. Dietary separation of sympatric carnivores identified by molecular analysis of scats. Mol Ecol. 2000;9:1583–90.
Mostl E, Maggs JL, Schrotter G, Besenfelder U, Palme R. Measurement of cortisol metabolites in faeces of ruminants. Vet Res Commun. 2002;26:127–39.
Campbell JF, Mullen MA, Dowdy AK. Monitoring stored-product pests in food processing plants with pheromone trapping, contour mapping, and mark-recapture. J Econ Entomol. 2002;95:1089–101.
Galan M, Pages M, Cosson JF. Next-generation sequencing for rodent barcoding: species identification from fresh, degraded and environmental samples. PLoS One. 2012;7:1–13.
Whisson DA, Engeman RM, Collins K. Developing relative abundance techniques (RATs) for monitoring rodent populations. Wildl Res. 2005;32:239–44.
Taberlet P, Fumagalli L. Owl pellets as a source of DNA for genetic studies of small mammals. Mol Ecol. 1996;5:301–5.
Waits LP, Paetkau D. Noninvasive genetic sampling tools for wildlife biologists: a review of applications and recommendations for accurate data collection. J Wildl Manag. 2005;69:1419–33.
Balog J, Szaniszlo T, Schaefer K-C, Denes J, Lopata A, Godorhazy L, Szalay D, Balogh L, Sasi-Szabo L, Toth M, Takats Z. Identification of biological tissues by rapid evaporative ionization mass spectrometry. Anal Chem. 2010;82:7343–50.
Cameron SJS, Bolt F, Perdones-Montero A, Rickards T, Hardiman K, Abdolrasouli A, Burke A, Bodai Z, Karancsi T, Simon D, Schaffer R, Rebec M, Balog J, Takáts Z. Rapid evaporative ionisation mass spectrometry (REIMS) provides accurate direct from culture species identification within the genus Candida, vol. 6; 2016. p. 1–10.
Cooks RG, Ouyang Z, Takats Z, Wiseman JM. Ambient mass spectrometry. Science. 2006;311:1566–70.
Schaefer K-C, Denes J, Albrecht K, Szaniszlo T, Balog J, Skoumal R, Katona M, Toth M, Balogh L, Takats Z. In vivo, in situ tissue analysis using rapid evaporative ionization mass spectrometry. Angew Chem Int Ed. 2009;48:8240–2.
Balog J, Sasi-Szabo L, Kinross J, Lewis MR, Muirhead LJ, Veselkov K, Mirnezami R, Dezso B, Damjanovich L, Darzi A, Nicholson JK, Takats Z. Intraoperative tissue identification using rapid evaporative ionization mass spectrometry. Sci Transl Med. 2013;5:1–11.
Balog J, Kumar S, Alexander J, Golf O, Huang J, Wiggins T, Abbassi-Ghadi N, Enyedi A, Kacska S, Kinross J, Hanna GB, Nicholson JK, Takats Z. In vivo endoscopic tissue identification by rapid evaporative ionization mass spectrometry (REIMS). Angew Chem Int Ed. 2015;54:11059–62.
Bolt F, Cameron SJS, Karancsi T, Simon D, Schaffer R, Rickards T, Hardiman K, Burke A, Bodai Z, Perdones-Montero A, Rebec M, Balog J, Takats Z. Automated high-throughput identification and characterization of clinically important bacteria and fungi using rapid evaporative ionization mass spectrometry. Anal Chem. 2016;88:9419–26.
Strittmatter N, Rebec M, Jones EA, Golf O, Abdolrasouli A, Balog J, Behrends V, Veselkov KA, Takats Z. Characterization and identification of clinically relevant microorganisms using rapid evaporative ionization mass spectrometry. Anal Chem. 2014;86:6555–62.
St John ER, Balog J, McKenzie JS, Rossi M, Covington A, Muirhead L, Bodai Z, Rosini F, Speller AVM, Shousha S, Ramakrishnan R, Darzi A, Takats Z, Leff DR. Rapid evaporative ionisation mass spectrometry of electrosurgical vapours for the identification of breast pathology: towards an intelligent knife for breast cancer surgery. Breast Cancer Res. 2017;19:59.
Strittmatter N, Lovrics A, Sessler J, McKenzie JS, Bodai Z, Doria ML, Kucsma N, Szakacs G, Takats Z. Shotgun lipidomic profiling of the NCI60 cell line panel using rapid evaporative ionization mass spectrometry. Anal Chem. 2016;88:7507–14.
Paluszynska A, Biecek P. randomForestExplainer: explaining and visualizing random forests in terms of variable importance; 2017.
Beck JA, Lloyd S, Hafezparast M, Lennon-Pierce M, Eppig JT, Festing MF, Fisher EM. Genealogies of mouse inbred strains. Nat Genet. 2000;24:23–5.
Gredell DA, Schroeder AR, Belk KE, Broeckling CD, Heuberger AL, Kim SY, King DA, Shackelford SD, Sharp JL, Wheeler TL, Woerner DR, Prenni JE. Comparison of machine learning algorithms for predictive modeling of beef attributes using rapid evaporative ionization mass spectrometry (REIMS) data. Sci Rep. 2019;9:5721.
Goodrich BS, Gambale S, Penncuik P, Redhead TD. Volatile compounds from excreta of laboratory mice (Mus musculus). J Chem Ecol. 1990;16:2107–20.
Goodrich BS, Gambale S, Pennycuik P, Redhead TD. Volatiles from feces of wild male house mice. J Chem Ecol. 1990;16:2091–106.
Inagaki H, Kiyokawa Y, Tamogami S, Watanabe H, Takeuchi Y, Mori Y. Identification of a pheromone that increases anxiety in rats. Proc Natl Acad Sci U S A. 2014;111:18751–6.
Hadinger U, Haymerle A, Knauer F, Schwarzenberger F, Walzer C. Faecal cortisol metabolites to assess stress in wildlife: evaluation of a field method in free-ranging chamois. Methods Ecol Evol. 2015;6:1349–57.
Khan MZ, Altmann J, Isani SS, Yu J. A matter of time: evaluating the storage of fecal samples for steroid analysis. Gen Comp Endocrinol. 2002;128:57–64.
Alasaad S, Sanchez A, Marchal JA, Piriz A, Garrido-Garcia JA, Carro F, Romero I, Soriguer RC. Efficient identification of Microtus cabrerae excrements using noninvasive molecular analysis. Conserv Genet Resour. 2011;3:127–9.
Meek PD, Vernes K, Falzon G. On the reliability of expert identification of small-medium sized mammals from camera trap photos. Wildl Biol Pract. 2013;9:7–19.
Russell JC, Hasler N, Klette R, Rosenhahn B. Automatic track recognition of footprints for identifying cryptic species. Ecology. 2009;90:2007–13.
Yu X, Wang J, Kays R, Jansen PA, Wang T, Huang T. Automated identification of animal species in camera trap images. Eurasip J Image Video Process. 2013;52:1–10.
Liaw A, Wiener M. Classification and regression by randomForest; 2002.
R Core Team: R: a language and environment for statistical computing. 2016,
Wickham H. ggplot2: Elegant Graphics for Data Analysis. New York: Springer-Verlag; 2016.
Haug K, Salek RM, Conesa P, Hastings J, de Matos P, Rijnbeek M, Mahendraker T, Williams M, Neumann S, Rocca-Serra P, Maguire E, González-Beltrán A, Sansone SA, Griffin JL, Steinbeck C. MetaboLights--an open-access general-purpose repository for metabolomics studies and associated meta-data. Nucleic Acids Res. 2013;41:D781–6.
Anon. Guidelines for the treatment of animals in behavioural research and teaching. Anim Behav. 2016;111:I–IX.
Hurst JL, West RS. Taming anxiety in laboratory mice. Nat Methods. 2010;7:825–6.
We are grateful to the Mammalian Behaviour & Evolution Group animal care team, Dr. Richard Humphries and Amanda Davidson for animal care and technical support, Alpha Pest Control Ltd. for the help in locating field sites for wild rats and Dr. Philip Brownridge in the Centre for Proteome Research for the exceptional instrument support.
This work was supported by the Biological Sciences and Biotechnology Research Council (BBSRC, BB/L014793/1 and BB/J002631/1). ND and NK both wish to thank BBSRC for the support through the Doctoral Training Programme. We are grateful to BBSRC and the University of Liverpool Technology Directorate for the support for instrumentation platforms.
Ethics approval and consent to participate
The study was approved by the University of Liverpool Animal Welfare Committee. No specific licences were required to carry out the work. Trapping and laboratory faecal collection were in accordance with international best practice guidelines . Neither procedure involved pain, suffering or lasting harm. Traps were checked twice daily by trained personnel, and there was minimal handling of subjects to determine species and sex before subjects were released at their site of capture. Animals housed in the laboratory were provided with cage enrichment and were picked up with a handling tunnel .
EJ is an employee of Waters, the manufacturer of the REIMS system. All other authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Video S1. The consumption of a faecal pellet by diathermy in the REIMS process. (GIF 20119 kb)
Figure S1. Overall data acquisition and processing workflow. (PDF 930 kb)
Figure S2. Randomisation tests based on random assignment to classes. (PDF 326 kb)
Figure S3. Ion intensity cross-correlation analysis. (PDF 65 kb)
Figure S4. Demonstration of REIMS spectra derived from one half, or one quarter, of mouse faecal pellets. (PDF 2071 kb)
Table S1. Numbers of donors of faecal samples used in this study. (PDF 46 kb)