Could a Handheld AI Model Deliver Fast and Objective Sow Body Condition Scoring?

By turning routine hip photos into objective body condition data, a new AI tool holds promise to help pork producers reduce human scoring bias and save critical barn labor.

A split-screen comparison of sow body condition scoring in a pig barn. On the left, a handheld smartphone mounted on a gimbal is used to capture images of sows in their stalls for AI-based body condition assessment. On the right, a farm worker wearing blue gloves manually evaluates a sow's body condition using a traditional scoring tool.
(Photos provided by Ayva Bohr)

Managing sow body condition directly dictates reproductive success, feed costs and herd longevity. Body condition scoring (BCS) is a widely used management tool to help producers optimize sow productivity. The challenge? No single BCS method is consistently used across the industry as producers rely on visual, manual or caliper-based approaches.

Ayva Bohr, a student at the Iowa State University College of Veterinary Medicine, points out the advantages and disadvantages of the current tools:

  • Visual/Hand Scoring: Fast, but subjective with high variation between different evaluators.
  • Caliper Scoring: The gold standard for objective scoring, but finding the last rib manually on thousands of sows is physically demanding and time-consuming.
  • Current Artificial Intelligence (AI) Solutions: Often require expensive, stationary 3D camera rigs that only fit specific barn layouts.

“Body condition scoring is essential to sow longevity and herd performance, but right now, producers are forced to choose between subjective visual estimates and labor-intensive caliper measurements,” Bohr says. She set out to see if there were opportunities to supplement AI models to be more practical and reproducible for commercial settings.

Point, Click and Score

Bohr enrolled two 3,900-head commercial sow farms stocked with the same genetic sow line and standard parity distribution in her study. All gestating sows were eligible, but gilts were excluded. Data collected for each sow included parity, breed date, hand BCS, caliper BCS and a single image captured from behind at approximately a 45° angle to the hip, she explains.

Caliper scores were obtained using the same genetic company-provided caliper. Images were captured using an iPhone mounted on a handheld gimbal stabilizer. Images were uploaded to Roboflow, an AI platform, and categorized by caliper score as thin, ideal or fat. Images were annotated using instance segmentation, a process that lets the AI ignore metal crate bars and focus solely on the sow’s contour. Finally, images with visible flaws or concerns were tagged for later evaluation based on their potential impact on model performance.

Lab-Grade Accuracy in the Barn

While finding enough fat sows to balance the data sets proved challenging, Bohr secured the minimum 300+ images needed per category to train a robust model. Images were divided into a standard 70-20-10 data split.

“This means that 70% of the images were moved to the training split, or the images that the model actually learned from,” she explains. “The following 20% of images fell under the validation set, where these images served as practice exams for the model to go through while in training. The final 10% of images were held back into a test set and served as an unbiased final exam to validate model accuracy.”

On that final exam, the model proved it could hold its own in a working barn.

“The model correctly identified 153 out of 180 sows, achieving an 85% correct label rate,” Bohr says. “More importantly, when it did make an error, it was only on borderline animals between adjacent categories—it never confused a thin sow for a fat sow. That gives us confidence in its practical safety on a farm.”

Crucially, the model maintained consistent accuracy across both farms despite differences in crate design and barn lighting—proving the technology’s ability to adapt across diverse commercial environments.

What’s Next?

While validation is ongoing, Bohr is optimistic about how handheld machine learning can streamline daily operations. Taking a photo was noticeably faster and less labor-intensive than caliper measuring under the conditions of this study, and standardized imaging can significantly reduce operator bias when multiple barn staff are involved.

“As a veterinary student with no engineering or computer science background, this model was not as daunting to pick up as I thought it was going to be,” Bohr says. “With good research and great mentorship, I was able to complete the majority of these tasks right on my tablet and laptop.”

Looking ahead, Bohr envisions packaging the model into a native smartphone app that ties directly into production management software. Long term, the system could even link with automated feed lines to instantly adjust daily rations for individual sows—delivering precision nutrition at the click of a button.

Pork Daily Trusted by 14,000+ pork producers nationwide. Get the latest pork industry news and insights delivered straight to your inbox.
Read Next
Facing higher feed costs, macroeconomic headwinds, and softened demand signals, economists urge pork operations to shift focus from margin expansion to balance sheet defense.
Get News Daily
Get Markets Alerts
Get News & Markets App