{"id":166152,"identifier":"ND4CLL","persistentUrl":"https://doi.org/10.18710/ND4CLL","protocol":"doi","authority":"10.18710","separator":"/","publisher":"DataverseNO","publicationDate":"2023-03-31","storageIdentifier":"S3://10.18710/ND4CLL","datasetType":"dataset","datasetVersion":{"id":3281,"datasetId":166152,"datasetPersistentId":"doi:10.18710/ND4CLL","storageIdentifier":"S3://10.18710/ND4CLL","versionNumber":1,"versionMinorNumber":1,"versionState":"RELEASED","latestVersionPublishingState":"RELEASED","deaccessionLink":"","lastUpdateTime":"2023-09-28T17:46:41Z","releaseTime":"2023-09-28T17:46:41Z","createTime":"2023-08-06T15:42:12Z","publicationDate":"2023-03-31","citationDate":"2023-03-31","license":{"name":"CC0 1.0","uri":"http://creativecommons.org/publicdomain/zero/1.0","iconUri":"https://licensebuttons.net/p/zero/1.0/88x31.png","rightsIdentifier":"CC0-1.0","rightsIdentifierScheme":"SPDX","schemeUri":"https://spdx.org/licenses/","languageCode":"en"},"fileAccessRequest":true,"metadataBlocks":{"citation":{"displayName":"Citation Metadata","name":"citation","fields":[{"typeName":"title","multiple":false,"typeClass":"primitive","value":"Replication Data for: Classification of behaviors of free-ranging cattle using accelerometry signatures collected by virtual fence collars"},{"typeName":"author","multiple":true,"typeClass":"compound","value":[{"authorName":{"typeName":"authorName","multiple":false,"typeClass":"primitive","value":"Versluijs, Erik"},"authorAffiliation":{"typeName":"authorAffiliation","multiple":false,"typeClass":"primitive","value":"Inland Norway University of Applied Sciences"},"authorIdentifierScheme":{"typeName":"authorIdentifierScheme","multiple":false,"typeClass":"controlledVocabulary","value":"ORCID"},"authorIdentifier":{"typeName":"authorIdentifier","multiple":false,"typeClass":"primitive","value":"0000-0001-5919-3466"}}]},{"typeName":"datasetContact","multiple":true,"typeClass":"compound","value":[{"datasetContactName":{"typeName":"datasetContactName","multiple":false,"typeClass":"primitive","value":"Versluijs, Erik"},"datasetContactAffiliation":{"typeName":"datasetContactAffiliation","multiple":false,"typeClass":"primitive","value":"Inland Norway University of Applied Sciences"},"datasetContactEmail":{"typeName":"datasetContactEmail","multiple":false,"typeClass":"primitive","value":"erik.versluijs@inn.no"}}]},{"typeName":"dsDescription","multiple":true,"typeClass":"compound","value":[{"dsDescriptionValue":{"typeName":"dsDescriptionValue","multiple":false,"typeClass":"primitive","value":"<p>This dataset includes the scripts to reproduce the models presented in the paper. The cleaned data used for the analyses is also available.</p>\n<p></p>\n<p>Abstract of the article:</p>\n<p>Precision farming technology, including GPS collars with biologging, has revolutionized remote livestock monitoring in extensive grazing systems. High resolution accelerometry can be used to infer the behavior of an animal. Previous behavioral classification studies using accelerometer data have focused on a few key behaviors and were mostly conducted in controlled situations. Here, we conducted behavioral observations of 38 beef cows (Hereford, Limousine, Charolais, Simmental/NRF/Hereford mix) free-ranging in rugged, forested areas, and fitted with a commercially available virtual fence collar (Nofence) containing a 10Hz tri-axial accelerometer. We used random forest models to calibrate data from the accelerometers on both commonly documented (e.g., feeding, resting, walking) and rarer (e.g., suckling calf, head butting, allogrooming) behaviors. Our goal was to assess pre-processing decisions including different running mean intervals (smoothing window of 1, 5, or 20 seconds), collar orientation and feature selection (orientation-dependent versus orientation-independent features). We identified the 10 most common behaviors exhibited by the cows. Models based only on orientation-independent features did not perform better than models based on orientation-dependent features, despite variation in how collars were attached (direction and tightness). Using a 20 seconds running mean and orientation-dependent features resulted in the highest model performance (model accuracy: 0.998, precision: 0.991, and recall: 0.989). We also used this model to add 11 rarer behaviors (each < 0.1% of the data; e.g. head butting, throwing head, self-grooming). These rarer behaviors were predicted with less accuracy because they were not observed at all for some individuals, but overall model performance remained high (accuracy, precision, recall >98%). Our study suggests that the accelerometers in the Nofence collars are suitable to identify the most common behaviors of free-ranging cattle. The results of this study could be used in future research for understanding cattle habitat selection in rugged forest ranges, herd dynamics, or responses to stressors such as carnivores, as well as to improve cattle management and welfare. </p>"},"dsDescriptionDate":{"typeName":"dsDescriptionDate","multiple":false,"typeClass":"primitive","value":"2023-03-31"}}]},{"typeName":"subject","multiple":true,"typeClass":"controlledVocabulary","value":["Agricultural Sciences","Earth and Environmental Sciences"]},{"typeName":"keyword","multiple":true,"typeClass":"compound","value":[{"keywordValue":{"typeName":"keywordValue","multiple":false,"typeClass":"primitive","value":"Accelerometry"}},{"keywordValue":{"typeName":"keywordValue","multiple":false,"typeClass":"primitive","value":"animal behavior"}},{"keywordValue":{"typeName":"keywordValue","multiple":false,"typeClass":"primitive","value":"free-ranging cattle"}},{"keywordValue":{"typeName":"keywordValue","multiple":false,"typeClass":"primitive","value":"behavioral classification"}},{"keywordValue":{"typeName":"keywordValue","multiple":false,"typeClass":"primitive","value":"virtual fence collars"}}]},{"typeName":"publication","multiple":true,"typeClass":"compound","value":[{"publicationCitation":{"typeName":"publicationCitation","multiple":false,"typeClass":"primitive","value":"Versluijs E., Niccolai L.J., Spedener M., Zimmermann B., Hessle A., Tofastrud M., Devineau O. & Evans A.L. (2023). Classification of behaviors of free-ranging cattle using accelerometry signatures collected by virtual fence collars. Frontiers in Animal Science, 4. https://doi.org/10.3389/fanim.2023.1083272"},"publicationIDType":{"typeName":"publicationIDType","multiple":false,"typeClass":"controlledVocabulary","value":"doi"},"publicationIDNumber":{"typeName":"publicationIDNumber","multiple":false,"typeClass":"primitive","value":"10.3389/fanim.2023.1083272"},"publicationURL":{"typeName":"publicationURL","multiple":false,"typeClass":"primitive","value":"https://doi.org/10.3389/fanim.2023.1083272"}}]},{"typeName":"language","multiple":true,"typeClass":"controlledVocabulary","value":["English"]},{"typeName":"producer","multiple":true,"typeClass":"compound","value":[{"producerName":{"typeName":"producerName","multiple":false,"typeClass":"primitive","value":"Inland Norway University of Applied Sciences"},"producerAbbreviation":{"typeName":"producerAbbreviation","multiple":false,"typeClass":"primitive","value":"INN"},"producerURL":{"typeName":"producerURL","multiple":false,"typeClass":"primitive","value":"https://eng.inn.no/"}}]},{"typeName":"contributor","multiple":true,"typeClass":"compound","value":[{"contributorType":{"typeName":"contributorType","multiple":false,"typeClass":"controlledVocabulary","value":"Researcher"},"contributorName":{"typeName":"contributorName","multiple":false,"typeClass":"primitive","value":"Niccolai, Laura J."}},{"contributorType":{"typeName":"contributorType","multiple":false,"typeClass":"controlledVocabulary","value":"Researcher"},"contributorName":{"typeName":"contributorName","multiple":false,"typeClass":"primitive","value":"Spedener, Mélanie"}},{"contributorType":{"typeName":"contributorType","multiple":false,"typeClass":"controlledVocabulary","value":"Researcher"},"contributorName":{"typeName":"contributorName","multiple":false,"typeClass":"primitive","value":"Zimmermann, Barbara"}},{"contributorType":{"typeName":"contributorType","multiple":false,"typeClass":"controlledVocabulary","value":"Researcher"},"contributorName":{"typeName":"contributorName","multiple":false,"typeClass":"primitive","value":"Hessle, Anna"}},{"contributorType":{"typeName":"contributorType","multiple":false,"typeClass":"controlledVocabulary","value":"Researcher"},"contributorName":{"typeName":"contributorName","multiple":false,"typeClass":"primitive","value":"Tofastrud, Morten"}},{"contributorType":{"typeName":"contributorType","multiple":false,"typeClass":"controlledVocabulary","value":"Researcher"},"contributorName":{"typeName":"contributorName","multiple":false,"typeClass":"primitive","value":"Devineau, Olivier"}},{"contributorType":{"typeName":"contributorType","multiple":false,"typeClass":"controlledVocabulary","value":"Researcher"},"contributorName":{"typeName":"contributorName","multiple":false,"typeClass":"primitive","value":"Evans, Alina L."}}]},{"typeName":"grantNumber","multiple":true,"typeClass":"compound","value":[{"grantNumberAgency":{"typeName":"grantNumberAgency","multiple":false,"typeClass":"primitive","value":"The Research Council of Norway"},"grantNumberValue":{"typeName":"grantNumberValue","multiple":false,"typeClass":"primitive","value":"302674"}}]},{"typeName":"distributor","multiple":true,"typeClass":"compound","value":[{"distributorName":{"typeName":"distributorName","multiple":false,"typeClass":"primitive","value":"Inland Norway University of Applied Sciences"},"distributorAffiliation":{"typeName":"distributorAffiliation","multiple":false,"typeClass":"primitive","value":"Inland Norway University of Applied Sciences"},"distributorURL":{"typeName":"distributorURL","multiple":false,"typeClass":"primitive","value":"https://dataverse.no/dataverse/inn"}}]},{"typeName":"depositor","multiple":false,"typeClass":"primitive","value":"Versluijs, Erik"},{"typeName":"dateOfDeposit","multiple":false,"typeClass":"primitive","value":"2022-10-20"},{"typeName":"timePeriodCovered","multiple":true,"typeClass":"compound","value":[{"timePeriodCoveredStart":{"typeName":"timePeriodCoveredStart","multiple":false,"typeClass":"primitive","value":"2021-06-22"},"timePeriodCoveredEnd":{"typeName":"timePeriodCoveredEnd","multiple":false,"typeClass":"primitive","value":"2021-07-30"}}]},{"typeName":"dateOfCollection","multiple":true,"typeClass":"compound","value":[{"dateOfCollectionStart":{"typeName":"dateOfCollectionStart","multiple":false,"typeClass":"primitive","value":"2021-06-22"},"dateOfCollectionEnd":{"typeName":"dateOfCollectionEnd","multiple":false,"typeClass":"primitive","value":"2021-09-30"}}]},{"typeName":"kindOfData","multiple":true,"typeClass":"primitive","value":["Accelerometry data","Rscripts"]},{"typeName":"software","multiple":true,"typeClass":"compound","value":[{"softwareName":{"typeName":"softwareName","multiple":false,"typeClass":"primitive","value":"R"},"softwareVersion":{"typeName":"softwareVersion","multiple":false,"typeClass":"primitive","value":"4.2.1"}},{"softwareName":{"typeName":"softwareName","multiple":false,"typeClass":"primitive","value":"Behavioral Observation Research Interactive Software, (BORIS)"},"softwareVersion":{"typeName":"softwareVersion","multiple":false,"typeClass":"primitive","value":"8.7"}}]}]},"geospatial":{"displayName":"Geospatial Metadata","name":"geospatial","fields":[{"typeName":"geographicCoverage","multiple":true,"typeClass":"compound","value":[{"country":{"typeName":"country","multiple":false,"typeClass":"controlledVocabulary","value":"Norway"},"state":{"typeName":"state","multiple":false,"typeClass":"primitive","value":"Innlandet"}}]}]}},"files":[{"description":"readme file","label":"00_README.txt","restricted":false,"version":1,"datasetVersionId":3281,"dataFile":{"id":175498,"persistentId":"doi:10.18710/ND4CLL/NAAI1N","pidURL":"https://doi.org/10.18710/ND4CLL/NAAI1N","filename":"00_README.txt","contentType":"text/plain","friendlyType":"Plain Text","filesize":8935,"description":"readme file","storageIdentifier":"S3://uit-dataverseno-prod01:186c5b72c4b-073a6f7b8a02","rootDataFileId":-1,"md5":"a24140fc5c6b03154092ef5cc8535084","checksum":{"type":"MD5","value":"a24140fc5c6b03154092ef5cc8535084"},"tabularData":false,"creationDate":"2023-03-09","publicationDate":"2023-03-31","fileAccessRequest":true}},{"description":"file to reproduce the model outputs including the pre-processing. The file is adaptable for each model and parameters for each specific model can be set at the start of the Rscript. \n  - Input: Accelerometry data including all matched behaviors within its behavioral category\n  -  Output: H2O Random Forest model results ","label":"analysis.R","restricted":false,"version":1,"datasetVersionId":3281,"dataFile":{"id":175183,"persistentId":"doi:10.18710/ND4CLL/RCT9DO","pidURL":"https://doi.org/10.18710/ND4CLL/RCT9DO","filename":"analysis.R","contentType":"text/x-r-source","friendlyType":"R Source Code","filesize":3976,"description":"file to reproduce the model outputs including the pre-processing. The file is adaptable for each model and parameters for each specific model can be set at the start of the Rscript. \n  - Input: Accelerometry data including all matched behaviors within its behavioral category\n  -  Output: H2O Random Forest model results ","storageIdentifier":"S3://uit-dataverseno-prod01:1864fa70cc9-c774770cd71f","rootDataFileId":-1,"md5":"e505be5c1dbef1cd7948ab920901f806","checksum":{"type":"MD5","value":"e505be5c1dbef1cd7948ab920901f806"},"tabularData":false,"creationDate":"2023-02-14","publicationDate":"2023-03-31","fileAccessRequest":true}},{"description":"Accelerometry data including all matched behaviors within its behavioral category","label":"annotated_acc_data.txt","restricted":false,"version":1,"datasetVersionId":3281,"dataFile":{"id":166155,"persistentId":"doi:10.18710/ND4CLL/DER6S8","pidURL":"https://doi.org/10.18710/ND4CLL/DER6S8","filename":"annotated_acc_data.txt","contentType":"text/plain","friendlyType":"Plain Text","filesize":771962870,"description":"Accelerometry data including all matched behaviors within its behavioral category","storageIdentifier":"S3://uit-dataverseno-prod01:183f6a1ad14-d3c9e3a2ac94","rootDataFileId":-1,"md5":"3227965fe6e4f41ecd5051e931ca5177","checksum":{"type":"MD5","value":"3227965fe6e4f41ecd5051e931ca5177"},"tabularData":false,"creationDate":"2022-10-20","publicationDate":"2023-03-31","fileAccessRequest":true}},{"description":"source file with functions for pre-processing procedures. Analysis.R sources this file to conduct pre-processing of the data. \n  - Select_behaviors: selecting and merging the behavioral categories into one column with behaviors\n  - Orientation_correction: reverses the collar's axes if the collar was deployed reversed\n  - Feature_calculation: calculation the orientation dependent and orientation independent features across the accelerometry data\n","label":"functions.R","restricted":false,"version":1,"datasetVersionId":3281,"dataFile":{"id":175184,"persistentId":"doi:10.18710/ND4CLL/0KPNIY","pidURL":"https://doi.org/10.18710/ND4CLL/0KPNIY","filename":"functions.R","contentType":"text/x-r-source","friendlyType":"R Source Code","filesize":10844,"description":"source file with functions for pre-processing procedures. Analysis.R sources this file to conduct pre-processing of the data. \n  - Select_behaviors: selecting and merging the behavioral categories into one column with behaviors\n  - Orientation_correction: reverses the collar's axes if the collar was deployed reversed\n  - Feature_calculation: calculation the orientation dependent and orientation independent features across the accelerometry data\n","storageIdentifier":"S3://uit-dataverseno-prod01:1864fa76bbc-48dcec577981","rootDataFileId":-1,"md5":"78c206a537a8f2c783f0c89858dc62c8","checksum":{"type":"MD5","value":"78c206a537a8f2c783f0c89858dc62c8"},"tabularData":false,"creationDate":"2023-02-14","publicationDate":"2023-03-31","fileAccessRequest":true}}],"citation":"Versluijs, Erik, 2023, \"Replication Data for: Classification of behaviors of free-ranging cattle using accelerometry signatures collected by virtual fence collars\", https://doi.org/10.18710/ND4CLL, DataverseNO, V1"}}