[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-127955-en":3,"doc-seo-127955-105":31,"detail-sidebar-cat-0-en-105":96},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":28,"seo_description":14,"update_tm":29,"read_time":30},127955,687207024643,"Oliver","https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2",8,"Research & Report","How to treat mixed behavior segments in supervised machine learning of behavioural modes from inertial measurement data - treat mixed segments in training","Supervised machine learning is a standard tool in behavioural ecology for inferring behavioural modes from inertial measurements recorded by bio-loggers. Model accuracy depends on design decisions, including whether mixed behaviour segments—segments containing more than one behaviour—are included or excluded from training data. A simulation study across four accelerometer datasets with behavioural observations tested this choice and evaluated robustness to segment length, sample size, and mixture level. Including mixed segments improves classification accuracy when mixed segments constitute over ~10% of test data, with species-specific exceptions.","Resheff etal. Movement Ecology (2024) 12:44 [https://doi.org/10.1186/s40462-024-00485-7](https://doi.org/10.1186/s40462-024-00485-7)  \nMovement Ecology  \n METHODOLOGY Open Access  \nHow to treat mixed behavior segments  \nin supervised machine learning of behavioural modes from inertial measurement data  \nYehezkel S. Resheff1*, Hanna M. Bensch2,3, Markus Zöttl2,3, Roi Harel4,5,6,7, Akiko Matsumoto‑Oda8, Margaret C. Crofoot4,5,6,7, Sara Gomez9, Luca Börger9 and Shay Rotics10,11  \nAbstract  \nThe application of supervised machine learning methods to identify behavioural modes from inertial measurements of bio‑loggers has become a standard tool in behavioural ecology. Several design choices can affect the accuracy of identifying the behavioural modes. One such choice is the inclusion or exclusion of segments consisting of more than a single behaviour (mixed segments) in the machine learning model training data. Currently, the common prac‑ tice is to ignore such segments during model training. In this paper we tested the hypothesis that including mixed segments in model training will improve accuracy, as the model would perform better in identifying them in the test data. We test this hypothesis using a series of data simulations on four datasets of accelerometer data coupled  \nwith behaviour observations, obtained from four study species (Damaraland mole‑rats, meerkats, olive baboons, polar bears) . Results show that when a substantial proportion of the test data are mixed behaviour segments (above~ 10%), including mixed segments in machine learning model training improves the accuracy of classification.  \nThese results were consistent across the four study species, and robust to changes in segment length, sample size, and degree of mixture within the mixed segments. However, we also find that in some cases (particularly in baboons) models trained with mixed segments show reduced accuracy in classifying test data containing only single behav‑ iour (pure) segments, compared to models trained without mixed segments. Based on these results, we recommend that when the classification model is expected to deal with a substantial proportion of mixed behaviour segments (> 10%), it is beneficial to include them in model training, otherwise, it is unnecessary but also not harmful. The excep‑ tion is when there is a basis to assume that the training data contains a higher rate of mixed segments than the actual (unobserved) data to be classified—such a situation may occur particularly when training data are collected in cap‑ tivity and used to classify data from the wild. In this case, excess inclusion of mixed segments in training data should probably be avoided.  \nKeywords Body‑acceleration, Bio‑logging, Machine learning, Animal behaviour  \n*Correspondence: Yehezkel S. Resheff [hezi. resheff@gmail.com](hezi. resheff@gmail.com)  \nFull list of author information is available at the end of the article  \n© The Author(s) 2024. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit [http://creativecommons.org/licenses/by/4.0/](http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver ()[. The Creative Commons Public Domain Dedication waiver (](http://creativecommons.org/li","cbCaih3TKSMDpiF6","https://ap.wps.com/l/cbCaih3TKSMDpiF6","pdf",2555460,4,1,9,"English","en",105,"# Abstract\n# Introduction\n## Bio-logging and supervised machine learning for behavioural modes\n## Mixed segments in training data: inclusion vs exclusion\n# Methods and datasets\n## Simulation design\n## Study species and accelerometer data\n# Results\n## Accuracy improvements with mixed segments in training\n## Robustness checks (segment length, sample size, mixture degree)\n## Exceptions and species-specific effects\n# Recommendations\n## When to include mixed segments during training\n## When to avoid excess inclusion (e.g., captivity-to-wild)","[{\"question\":\"Why do mixed behaviour segments matter in supervised machine learning for behavioural modes?\",\"answer\":\"Mixed segments contain more than one behaviour within the same time window, so the inertial signal reflects multiple behaviours. Whether these segments are included in training can affect how accurately the model classifies behavioural modes.\"},{\"question\":\"What was tested in the study regarding including mixed segments during training?\",\"answer\":\"The study tested the hypothesis that including mixed segments in model training improves accuracy, because the trained model would better identify them in test data. The evaluation used simulation experiments on accelerometer datasets paired with behavioural observations.\"},{\"question\":\"When does including mixed segments in training improve classification accuracy?\",\"answer\":\"When a substantial portion of the test data are mixed behaviour segments—above about 10%—including mixed segments in training improves classification accuracy. The benefit was consistent across four study species under multiple robustness checks.\"},{\"question\":\"Are there cases where mixed-segment training can reduce accuracy?\",\"answer\":\"Yes. In some situations, particularly for baboons, models trained with mixed segments showed reduced accuracy when classifying test data that contained only single-behaviour (pure) segments compared with models trained without mixed segments.\"}]","How to treat mixed behavior segments in supervised machine learning of behavioural modes from inertial measurement data - treat mixed segments in training | PDF",1785943258,23,{"code":4,"msg":32,"data":33},"ok",{"site_id":25,"language":24,"slug":34,"title":13,"keywords":35,"description":14,"schema_data":36,"social_meta":91,"head_meta":93,"extra_data":95,"updated_unix":29},"how-to-treat-mixed-behavior-segments-in-supervised-machine-learning-of-behavioural-modes-from-inertial-measurement-data-treat-mixed-segments-in-training","",{"@graph":37,"@context":90},[38,54,69],{"@type":39,"itemListElement":40},"BreadcrumbList",[41,45,49,52],{"item":42,"name":43,"@type":44,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":46,"name":47,"@type":44,"position":48},"https://docshare.wps.com/document/","Document",2,{"item":50,"name":12,"@type":44,"position":51},"https://docshare.wps.com/document/research-report/",3,{"item":53,"name":13,"@type":44,"position":20},"https://docshare.wps.com/document/how-to-treat-mixed-behavior-segments-in-supervised-machine-learning-of-behavioural-modes-from-inertial-measurement-data-treat-mixed-segments-in-training/127955/",{"url":53,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":24,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":42,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-26","2026-08-05",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82,86],{"name":73,"@type":74,"acceptedAnswer":75},"Why do mixed behaviour segments matter in supervised machine learning for behavioural modes?","Question",{"text":76,"@type":77},"Mixed segments contain more than one behaviour within the same time window, so the inertial signal reflects multiple behaviours. Whether these segments are included in training can affect how accurately the model classifies behavioural modes.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"What was tested in the study regarding including mixed segments during training?",{"text":81,"@type":77},"The study tested the hypothesis that including mixed segments in model training improves accuracy, because the trained model would better identify them in test data. The evaluation used simulation experiments on accelerometer datasets paired with behavioural observations.",{"name":83,"@type":74,"acceptedAnswer":84},"When does including mixed segments in training improve classification accuracy?",{"text":85,"@type":77},"When a substantial portion of the test data are mixed behaviour segments—above about 10%—including mixed segments in training improves classification accuracy. The benefit was consistent across four study species under multiple robustness checks.",{"name":87,"@type":74,"acceptedAnswer":88},"Are there cases where mixed-segment training can reduce accuracy?",{"text":89,"@type":77},"Yes. In some situations, particularly for baboons, models trained with mixed segments showed reduced accuracy when classifying test data that contained only single-behaviour (pure) segments compared with models trained without mixed segments.","https://schema.org",{"og:url":53,"og:type":92,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":94,"canonical":53},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":97},[98,102,106,110,115,120,125,128,132,135,139],{"id":21,"doc_module":4,"doc_module_name":47,"category_name":99,"show_sort_weight":100,"slug":101},"Story & Novel",90,"story-novel",{"id":48,"doc_module":4,"doc_module_name":47,"category_name":103,"show_sort_weight":104,"slug":105},"Literature",80,"literature",{"id":20,"doc_module":4,"doc_module_name":47,"category_name":107,"show_sort_weight":108,"slug":109},"Exam",70,"exam",{"id":111,"doc_module":4,"doc_module_name":47,"category_name":112,"show_sort_weight":113,"slug":114},5,"Comic",60,"comic",{"id":116,"doc_module":4,"doc_module_name":47,"category_name":117,"show_sort_weight":118,"slug":119},6,"Technology",50,"technology",{"id":121,"doc_module":4,"doc_module_name":47,"category_name":122,"show_sort_weight":123,"slug":124},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":47,"category_name":12,"show_sort_weight":126,"slug":127},30,"research-report",{"id":22,"doc_module":4,"doc_module_name":47,"category_name":129,"show_sort_weight":130,"slug":131},"Religion & Spirituality",20,"religion-spirituality",{"id":130,"doc_module":4,"doc_module_name":47,"category_name":133,"show_sort_weight":130,"slug":134},"World Cup","world-cup",{"id":136,"doc_module":4,"doc_module_name":47,"category_name":137,"show_sort_weight":136,"slug":138},10,"Lifestyle","lifestyle",{"id":140,"doc_module":4,"doc_module_name":47,"category_name":141,"show_sort_weight":111,"slug":142},19,"General","general"]