{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,4,2]],"date-time":"2026-04-02T15:04:18Z","timestamp":1775142258013,"version":"3.50.1"},"reference-count":22,"publisher":"PeerJ","license":[{"start":{"date-parts":[[2025,12,3]],"date-time":"2025-12-03T00:00:00Z","timestamp":1764720000000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Centers for Disease Control and Prevention of the U.S. Department of Health and Human Services"},{"DOI":"10.13039\/501100020874","name":"Faculty of Information and Communication Technology, Mahidol University","doi-asserted-by":"crossref","id":[{"id":"10.13039\/501100020874","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"abstract":"<jats:p>Piglet crushing by sows is a leading cause of pre-weaning mortality on commercial pig farms. While improved management can mitigate this, resource limitations often hinder timely intervention. This article proposes an automated warning system that analyzes sow posture from surveillance footage in real-time to predict and prevent crushing events. We developed a posture detection model using You Only Look Once (YOLO)v8, trained on 422 real-world instances, which achieved a mean Average Precision (mAP@50) of 0.976. Our analysis revealed a significant increase in the frequency of sow postural changes on the day of a crushing event (8.23) and the day prior (7.49), compared to non-crushing days (5.52). Leveraging this insight, we designed a warning system using a threshold-based voting algorithm that analyzes posture changes over a 60-min window. The system\u2019s performance was evaluated at two levels. For instance-based warnings (on a 60-min basis), it achieved a sensitivity of 62.50% and a specificity of 60.25%. When aggregated to a daily basis, the performance improved to a sensitivity of 71.42% and a specificity of 84.61%, respectively. Our results indicate that sow postural change frequency is a promising indicator for developing early warning systems, empowering farmers to take preventative action and reduce piglet losses.<\/jats:p>","DOI":"10.7717\/peerj-cs.3400","type":"journal-article","created":{"date-parts":[[2025,12,3]],"date-time":"2025-12-03T08:30:28Z","timestamp":1764750628000},"page":"e3400","source":"Crossref","is-referenced-by-count":1,"title":["Sow posture detection for determining piglet crushing through a camera system"],"prefix":"10.7717","volume":"11","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6773-0572","authenticated-orcid":true,"given":"Kittin","family":"Thongsrimoung","sequence":"first","affiliation":[{"name":"Department of Livestock Development, Bangkok, Thailand"},{"name":"Faculty of Information and Communication Technology, Mahidol University, Salaya, Nakhon Pathom, Thailand"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2896-611X","authenticated-orcid":true,"given":"Worapan","family":"Kusakunniran","sequence":"additional","affiliation":[{"name":"Faculty of Information and Communication Technology, Mahidol University, Salaya, Nakhon Pathom, Thailand"}]},{"given":"Kontawat","family":"Wisetpaitoon","sequence":"additional","affiliation":[{"name":"Faculty of Information and Communication Technology, Mahidol University, Salaya, Nakhon Pathom, Thailand"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6749-5904","authenticated-orcid":true,"given":"Kittikhun","family":"Thongkanchorn","sequence":"additional","affiliation":[{"name":"Faculty of Information and Communication Technology, Mahidol University, Salaya, Nakhon Pathom, Thailand"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9717-233X","authenticated-orcid":true,"given":"Terdsak","family":"Yano","sequence":"additional","affiliation":[{"name":"Faculty of Veterinary Medicine, Chiang Mai University, Chiang Mai, Thailand"}]},{"given":"Weerapong","family":"Thanapongtharm","sequence":"additional","affiliation":[{"name":"Department of Livestock Development, Bangkok, Thailand"}]},{"given":"Khemmapat","family":"Boonyo","sequence":"additional","affiliation":[{"name":"Department of Livestock Development, Bangkok, Thailand"}]}],"member":"4443","published-online":{"date-parts":[[2025,12,3]]},"reference":[{"key":"10.7717\/peerj-cs.3400\/ref-1","doi-asserted-by":"publisher","first-page":"13665","DOI":"10.1038\/s41598-020-70688-6","article-title":"Automated recognition of postures and drinking behaviour for the detection of compromised health in pigs","volume":"10","author":"Alameer","year":"2020","journal-title":"Scientific Reports"},{"issue":"2","key":"10.7717\/peerj-cs.3400\/ref-2","doi-asserted-by":"publisher","first-page":"361","DOI":"10.1111\/tbed.13683","article-title":"Environmental bioaerosol surveillance as an early warning system for pathogen detection in North Carolina swine farms: a pilot study","volume":"68","author":"Anderson","year":"2021","journal-title":"Transboundary and Emerging Diseases"},{"issue":"6","key":"10.7717\/peerj-cs.3400\/ref-3","doi-asserted-by":"publisher","first-page":"4345","DOI":"10.1109\/tii.2020.3012496","article-title":"Pigtalk: an AI-based IoT platform for piglet crushing mitigation","volume":"17","author":"Chen","year":"2021","journal-title":"IEEE Transactions on Industrial Informatics"},{"issue":"12","key":"10.7717\/peerj-cs.3400\/ref-4","doi-asserted-by":"publisher","first-page":"6997","DOI":"10.3390\/app13126997","article-title":"A review of posture detection methods for pigs using deep learning","volume":"13","author":"Chen","year":"2023","journal-title":"Applied Sciences (Switzerland)"},{"key":"10.7717\/peerj-cs.3400\/ref-5","article-title":"Darklabel","author":"darkpgmr","year":"2021"},{"issue":"1","key":"10.7717\/peerj-cs.3400\/ref-6","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3604806","article-title":"Pigsense: structural vibration-based activity and health monitoring system for pigs","volume":"20","author":"Dong","year":"2023","journal-title":"ACM Transactions on Sensor Networks"},{"issue":"11","key":"10.7717\/peerj-cs.3400\/ref-7","doi-asserted-by":"publisher","first-page":"108009","DOI":"10.1016\/j.compag.2023.108009","article-title":"Enhanced camera-based individual pig detection and tracking for smart pig farms","volume":"211","author":"Guo","year":"2023","journal-title":"Computers and Electronics in Agriculture"},{"issue":"12","key":"10.7717\/peerj-cs.3400\/ref-8","doi-asserted-by":"publisher","first-page":"e83529","DOI":"10.1371\/journal.pone.0083529","article-title":"Calling by domestic piglets during simulated crushing and isolation: a signal of need?","volume":"8","author":"Illmann","year":"2013","journal-title":"PLOS ONE"},{"key":"10.7717\/peerj-cs.3400\/ref-9","article-title":"Ultralytics yolo (version 8.0.0) [computer software]","author":"Jocher","year":"2023"},{"issue":"1","key":"10.7717\/peerj-cs.3400\/ref-10","doi-asserted-by":"publisher","first-page":"44","DOI":"10.1186\/s40813-022-00260-3","article-title":"Postpartum dysgalactia syndrome in sows: effects on behavior of sows and piglets","volume":"8","author":"Kaiser","year":"2022","journal-title":"Porcine Health Management"},{"key":"10.7717\/peerj-cs.3400\/ref-11","doi-asserted-by":"publisher","first-page":"105080","DOI":"10.1016\/j.livsci.2022.105080","article-title":"New insights into factors affecting piglet crushing and anti-crushing techniques","volume":"265","author":"Liu","year":"2022","journal-title":"Livestock Science"},{"issue":"1\u20132","key":"10.7717\/peerj-cs.3400\/ref-12","doi-asserted-by":"publisher","first-page":"102828","DOI":"10.1016\/j.jtherbio.2020.102828","article-title":"Effects of heat stress on posture transitions and reproductive performance of primiparous sows during late gestation","volume":"96","author":"Liu","year":"2021","journal-title":"Journal of Thermal Biology"},{"issue":"3","key":"10.7717\/peerj-cs.3400\/ref-13","doi-asserted-by":"publisher","first-page":"108","DOI":"10.1016\/j.compag.2016.12.017","article-title":"Online detection and localisation of piglet crushing using vocalisation analysis and context data","volume":"135","author":"Manteuffel","year":"2017","journal-title":"Computers and Electronics in Agriculture"},{"issue":"1\u20132","key":"10.7717\/peerj-cs.3400\/ref-14","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1016\/j.prevetmed.2009.03.008","article-title":"Disease awareness, information retrieval and change in biosecurity routines among pig farmers in association with the first PRRS outbreak in Sweden","volume":"90","author":"N\u00f6remark","year":"2009","journal-title":"Preventive Veterinary Medicine"},{"issue":"8","key":"10.7717\/peerj-cs.3400\/ref-15","doi-asserted-by":"publisher","first-page":"1539","DOI":"10.1007\/s11250-015-0895-3","article-title":"Piglet preweaning mortality in a commercial swine herd in thailand","volume":"47","author":"Nuntapaitoon","year":"2015","journal-title":"Tropical Animal Health and Production"},{"issue":"1","key":"10.7717\/peerj-cs.3400\/ref-16","doi-asserted-by":"publisher","first-page":"129","DOI":"10.1007\/s11250-017-1412-7","article-title":"Factors influencing piglet pre-weaning mortality in 47 commercial swine herds in Thailand","volume":"50","author":"Nuntapaitoon","year":"2018","journal-title":"Tropical Animal Health and Production"},{"issue":"2","key":"10.7717\/peerj-cs.3400\/ref-17","doi-asserted-by":"publisher","first-page":"105391","DOI":"10.1016\/j.compag.2020.105391","article-title":"Automatically detecting pig position and posture by 2D camera imaging and deep learning","volume":"174","author":"Riekert","year":"2020","journal-title":"Computers and Electronics in Agriculture"},{"issue":"1","key":"10.7717\/peerj-cs.3400\/ref-18","doi-asserted-by":"publisher","first-page":"29","DOI":"10.1016\/s0168-1591(03)00109-6","article-title":"Sow activity level, frequency of standing-to-lying posture changes and anti-crushing behaviour\u2014within sow-repeatability and interactions with nursing behaviour and piglet performance","volume":"83","author":"Valros","year":"2003","journal-title":"Applied Animal Behaviour Science"},{"issue":"1\u20132","key":"10.7717\/peerj-cs.3400\/ref-19","doi-asserted-by":"publisher","first-page":"49","DOI":"10.1016\/j.applanim.2009.03.002","article-title":"Characterisation of sows\u2019 postures and posture changes with regard to crushing piglets","volume":"119","author":"Wischner","year":"2009","journal-title":"Applied Animal Behaviour Science"},{"issue":"3","key":"10.7717\/peerj-cs.3400\/ref-20","doi-asserted-by":"publisher","first-page":"298","DOI":"10.1080\/10888705.2018.1512860","article-title":"Maternal behavior, posture change, and production performance of lactating sows housed in an enriched environment","volume":"22","author":"Yi","year":"2019","journal-title":"Journal of Applied Animal Welfare Science"},{"issue":"3","key":"10.7717\/peerj-cs.3400\/ref-21","doi-asserted-by":"publisher","first-page":"227","DOI":"10.1016\/j.biosystemseng.2020.04.005","article-title":"Automatic posture change analysis of lactating sows by action localisation and tube optimisation from untrimmed depth videos","volume":"194","author":"Zheng","year":"2020","journal-title":"Biosystems Engineering"},{"key":"10.7717\/peerj-cs.3400\/ref-22","doi-asserted-by":"publisher","first-page":"51","DOI":"10.1016\/j.compag.2018.01.023","article-title":"Automatic recognition of lactating sow postures from depth images by deep learning detector","volume":"147","author":"Zheng","year":"2018","journal-title":"Computers and Electronics in Agriculture"}],"container-title":["PeerJ Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/peerj.com\/articles\/cs-3400.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-3400.xml","content-type":"application\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-3400.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/peerj.com\/articles\/cs-3400.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,12,3]],"date-time":"2025-12-03T08:30:30Z","timestamp":1764750630000},"score":1,"resource":{"primary":{"URL":"https:\/\/peerj.com\/articles\/cs-3400"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,12,3]]},"references-count":22,"alternative-id":["10.7717\/peerj-cs.3400"],"URL":"https:\/\/doi.org\/10.7717\/peerj-cs.3400","archive":["CLOCKSS","LOCKSS","Portico"],"relation":{},"ISSN":["2376-5992"],"issn-type":[{"value":"2376-5992","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,12,3]]},"article-number":"e3400"}}