Project description:Increasingly, animal behavior studies are enhanced through the use of accelerometry. To allow translation of raw accelerometer data to animal behaviors requires the development of classifiers. Here, we present the "rabc" (r for animal behavior classification) package to assist researchers with the interactive development of such animal behavior classifiers in a supervised classification approach. The package uses datasets consisting of accelerometer data with their corresponding animal behaviors (e.g., for triaxial accelerometer data along the x, y and z axes arranged as "x, y, z, x, y, z,…, behavior"). Using an example dataset collected on white stork (Ciconia ciconia), we illustrate the workflow of this package, including accelerometer data visualization, feature calculation, feature selection, feature visualization, extreme gradient boost model training, validation, and, finally, a demonstration of the behavior classification results.
Project description:The objective was to determine the effects of sleep or lying deprivation on the behavior of dairy cows. Data were collected from 8 multi- and 4 primiparous cows (DIM = 199 ± 44 (mean ± SD); days pregnant = 77 ± 30). Using a crossover design, each cow experienced: 1) sleep deprivation implemented by noise or physical contact when their posture suggested sleep, and 2) lying deprivation imposed by a grid placed on the pen floor. One day before treatment (baseline), and treatment day (treatment) were followed by a 12-d washout period (with the first 7 d used to evaluate recovery). Study days were organized from 2100 to 2059. During habituation (d -3 and -2 before treatment), baseline (d -1), and trt (d 0), housing was individual boxstalls (mattress with no bedding). After treatment, cows returned to sand-bedded freestalls for a 7-d recovery period (d 1 to 7) where data on lying behaviors were collected. Following the recovery period, an additional 5-d period was provided to allow the cows a 12-d period between exposures to treatments. Daily lying time, number lying bouts, bout duration, and number of steps were recorded by dataloggers attached to the hind leg of cows throughout the study period. Data were analyzed using a mixed model including fixed effects of treatment (sleep deprivation vs. sleep and lying deprivation), day, and their interaction with significant main effects separated using a PDIFF statement (P ≤ 0.05). Interactions between treatment and day were detected for daily lying time and the number of bouts. Lying time was lower for both treatments during the treatment period compared to baseline. Lying time increased during the recovery period for both lying and sleep deprived cows. However, it took 4 d for the lying deprived cows to fully recover their lying time after treatment, whereas it took the sleep deprived cows 2 d for their lying time to return to baseline levels. Results suggest that both sleep and lying deprivation can have impact cow behavior. Management factors that limit freestall access likely reduce lying time and sleep, causing negative welfare implications for dairy cows.
Project description:BackgroundIn medical informatics, psychology, market research and many other fields, researchers often need to analyze and model ranking data. However, there is no statistical software that provides tools for the comprehensive analysis of ranking data. Here, we present pmr, an R package for analyzing and modeling ranking data with a bundle of tools. The pmr package enables descriptive statistics (mean rank, pairwise frequencies, and marginal matrix), Analytic Hierarchy Process models (with Saaty's and Koczkodaj's inconsistencies), probability models (Luce model, distance-based model, and rank-ordered logit model), and the visualization of ranking data with multidimensional preference analysis.ResultsExamples of the use of package pmr are given using a real ranking dataset from medical informatics, in which 566 Hong Kong physicians ranked the top five incentives (1: competitive pressures; 2: increased savings; 3: government regulation; 4: improved efficiency; 5: improved quality care; 6: patient demand; 7: financial incentives) to the computerization of clinical practice. The mean rank showed that item 4 is the most preferred item and item 3 is the least preferred item, and significance difference was found between physicians' preferences with respect to their monthly income. A multidimensional preference analysis identified two dimensions that explain 42% of the total variance. The first can be interpreted as the overall preference of the seven items (labeled as "internal/external"), and the second dimension can be interpreted as their overall variance of (labeled as "push/pull factors"). Various statistical models were fitted, and the best were found to be weighted distance-based models with Spearman's footrule distance.ConclusionsIn this paper, we presented the R package pmr, the first package for analyzing and modeling ranking data. The package provides insight to users through descriptive statistics of ranking data. Users can also visualize ranking data by applying a thought multidimensional preference analysis. Various probability models for ranking data are also included, allowing users to choose that which is most suitable to their specific situations.
Project description:As dairy cows are being housed for longer periods, with all-year-round housing growing in popularity, it is important to ensure housed environments are meeting the needs of cows. Dairy cows are motivated to access open lying areas, although previous motivation studies on this topic have confounded surface type and location (i.e. pasture outdoors vs cubicles indoors). This study measured cow motivation for lying down on an indoor open mattress (MAT; 9 m x 5 m) compared to indoor mattress-bedded cubicles, thus removing the confounding factor of surface type and location. This was repeated for an identically sized indoor deep-bedded straw yard (ST), to investigate whether surface type affected motivation for an open lying area. Thirty Holstein-Friesian dairy cows were housed in groups of 5 (n = 5 x 6) in an indoor robotic milking unit with access to six mattress-bedded cubicles. To assess motivation, cows were required to walk increasing distances via a one-way indoor raceway to access the open lying areas: Short (34.5 m), followed by Medium (80.5 m) and Long (126.5 m). Cows could choose to walk the raceway, leading to the MAT or ST, to lie down or they could lie down on the cubicles for 'free'. Overall, cows lay down for longer on the open lying areas at each distance compared to the cubicles, with cows lying down slightly longer on ST than MAT, although lying times on the open lying areas did decrease at the Long distance. However, cows were still lying for >60% of their lying time on the open lying areas at the Long distance. This study demonstrates that cows had a high motivation for an open lying area, the provision of which could better cater for the behavioural needs of housed dairy cows and improve housed dairy cow welfare.
Project description:In many biomechanical analyses, the forces acting on a body during dynamic and static activities are often simplified as point loads. However, it is usually more accurate to characterize these forces as distributed loads, varying in magnitude and direction, over a given contact area. Evaluating these pressure distributions while they are applied to different parts of the body can provide effective insights for clinicians and researchers when studying health and disease conditions, for example when investigating the biomechanical factors that may lead to plantar ulceration in diabetic foot disease. At present, most processing and analysis for pressure data is performed using proprietary software, limiting reproducibility, transparency, and consistency across different studies. This paper describes an open-source software package, 'pressuRe', which is built in the freely available R statistical computing environment and is designed to process, analyze, and visualize pressure data collected on a range of different hardware systems in a standardized manner. We demonstrate the use of the package on pressure dataset from patients with diabetic foot disease, comparing pressure variables between those with longer and shorter durations of the disease. The results matched closely with those from commercially available software, and individuals with longer duration of diabetes were found to have higher forefoot pressures than those with shorter duration. By utilizing R's powerful and openly available tools for statistical analysis and user customization, this package may be a useful tool for researchers and clinicians studying plantar pressures and other pressure sensor array based biomechanical measurements. With regular updates intended, this package allows for continued improvement and we welcome feedback and future contributions to extend its scope. In this article, we detail the package's features and functionality.
Project description:High-throughput analyses of single-cell microscopy data are a critical tool within the field of bacterial cell biology. Several programs have been developed to specifically segment bacterial cells from phase-contrast images. Together with spot and object detection algorithms, these programs offer powerful approaches to quantify observations from microscopy data, ranging from cell-to-cell genealogy to localization and movement of proteins. Most segmentation programs contain specific post-processing and plotting options, but these options vary between programs and possibilities to optimize or alter the outputs are often limited. Therefore, we developed BactMAP (Bacterial toolbox for Microscopy Analysis & Plotting), a command-line based R package that allows researchers to transform cell segmentation and spot detection data generated by different programs into various plots. Furthermore, BactMAP makes it possible to perform custom analyses and change the layout of the output. Because BactMAP works independently of segmentation and detection programs, inputs from different sources can be compared within the same analysis pipeline. BactMAP complies with standard practice in R which enables the use of advanced statistical analysis tools, and its graphic output is compatible with ggplot2, enabling adjustable plot graphics in every operating system. User feedback will be used to create a fully automated Graphical User Interface version of BactMAP in the future. Using BactMAP, we visualize key cell cycle parameters in Bacillus subtilis and Staphylococcus aureus, and demonstrate that the DNA replication forks in Streptococcus pneumoniae dissociate and associate before splitting of the cell, after the Z-ring is formed at the new quarter positions. BactMAP is available from https://veeninglab.com/bactmap.
Project description:MotivationFluorophore-assisted seed amplification assays (F-SAAs), such as real-time quaking-induced conversion (RT-QuIC) and fluorophore-assisted protein misfolding cyclic amplification (F-PMCA), have become indispensable tools for studying protein misfolding in neurodegenerative diseases. However, analyzing data generated by these techniques often requires complex and time-consuming manual processes. In addition, the lack of standardization in F-SAA data analysis presents a significant challenge to the interpretation and reproducibility of F-SAA results across different laboratories and studies. There is a need for automated, standardized analysis tools that can efficiently process F-SAA data while ensuring consistency and reliability across different research settings.ResultsHere, we present QuICSeedR (pronounced as "quick seeder"), an R package that addresses these challenges by providing a comprehensive toolkit for the automated processing, analysis, and visualization of F-SAA data. Importantly, QuICSeedR also establishes the foundation for building an F-SAA data management and analysis framework, enabling more consistent and comparable results across different research groups.Availability and implementationQuICSeedR is freely available at: https://CRAN.R-project.org/package=QuICSeedR. Data and code used in this manuscript are provided in Supplementary Materials.
Project description:The commercially available collar device MooMonitor+ was evaluated with regards to accuracy and application potential for measuring grazing behavior. These automated measurements are crucial as cows feed intake behavior at pasture is an important parameter of animal performance, health and welfare as well as being an indicator of feed availability. Compared to laborious and time-consuming visual observation, the continuous and automated measurement of grazing behavior may support and improve the grazing management of dairy cows on pasture. Therefore, there were two experiments as well as a literature analysis conducted to evaluate the MooMonitor+ under grazing conditions. The first experiment compared the automated measurement of the sensor against visual observation. In a second experiment, the MooMonitor+ was compared to a noseband sensor (RumiWatch), which also allows continuous measurement of grazing behavior. The first experiment on n = 12 cows revealed that the automated sensor MooMonitor+ and visual observation were highly correlated as indicated by the Spearman's rank correlation coefficient (rs) = 0.94 and concordance correlation coefficient (CCC) = 0.97 for grazing time. An rs-value of 0.97 and CCC = 0.98 was observed for rumination time. In a second experiment with n = 12 cows over 24-h periods, a high correlation between the MooMonitor+ and the RumiWatch was observed for grazing time as indicated by an rs-value of 0.91 and a CCC-value of 0.97. Similarly, a high correlation was observed for rumination time with an rs-value of 0.96 and a CCC-value of 0.99. While a higher level of agreement between the MooMonitor+ and both visual observation and RumiWatch was observed for rumination time compared to grazing time, the overall results showed a high level of accuracy of the collar device in measuring grazing and rumination times. Therefore, the collar device can be applied to monitor cow behavior at pasture on farms. With regards to the application potential of the collar device, it may not only be used on commercial farms but can also be applied to research questions when a data resolution of 15 min is sufficient. Thus, at farm level, the farmer can get an accurate and continuous measurement of grazing behavior of each individual cow and may then use those data for decision-making to optimize the animal management.
Project description:Dipolar EPR spectroscopy (DEER and other techniques) enables the structural characterization of macromolecular and biological systems by measurement of distance distributions between unpaired electrons on a nanometer scale. The inference of these distributions from the measured signals is challenging due to the ill-posed nature of the inverse problem. Existing analysis tools are scattered over several applications with specialized graphical user interfaces. This renders comparison, reproducibility, and method development difficult. To remedy this situation, we present DeerLab, an open-source software package for analyzing dipolar EPR data that is modular and implements a wide range of methods. We show that DeerLab can perform one-step analysis based on separable non-linear least squares, fit dipolar multi-pathway models to multi-pulse DEER data, run global analysis with non-parametric distributions, and use a bootstrapping approach to fully quantify the uncertainty in the analysis.