Portfolio
AI

Animal behavior monitoring system

A pig activity monitoring system that automatically tracks animal behavior, detects early signs of disease, and estimates weight without stressful visual inspections.

Tasks

  • Create a computer vision pipeline for detecting, tracking, and identifying pigs in video.
  • Collect and annotate a dataset of behavioral patterns (lying, moving, eating).
  • Develop a model for rapid weight estimation from video frames.
  • Integrate a system for alerting on potential behavioral anomalies.
Preview Animal behavior monitoring system

About the Project

A pig’s health is largely determined by its behavior—whether it lies down longer than usual, eats actively, or moves around the pen.

A computer system was developed that uses video cameras and markers on the animals’ backs to record each pig’s actions, collect behavioral statistics, and signal deviations in real time. This significantly reduces the workload on staff, minimizes animal stress, and consequently reduces weight gain losses.

By integrating these solutions, the farm receives a continuous stream of analytics and can quickly respond to any signs of animal distress.

Results

91%pig detection accuracy in frames using YOLOv5
65%pig identification accuracy in frames using OSNet
0.75MOTA metric for inter-frame tracking using DeepSORT
±10%average error in weight estimation model
Image of an animal

Challenges and Solutions

The main challenge was that pigs move actively and often overlap, and the markers on their backs may be temporarily obscured.

Animal Overlaps
Fine-tuned YOLOv5 on custom samples to reliably distinguish even partially occluded individuals.
Loss of Tracking During Rapid Movements
Improved DeepSORT settings (speed and size correction) and introduced re-identification via OSNet, reducing false track breaks.
Weight Estimation Accuracy
Applied a regression model using the body’s projected area and the camera’s relative position; validation on a control group showed a 10% error.

Related Services

Service Artificial Intelligence preview

Artificial Intelligence

We create innovative solutions based on artificial intelligence for your business.

Read More
Computer Vision
LLM
Generative AI
Embedded Systems
Corporate Solutions
Service Outsourcing preview

Outsourcing

Our team of skilled developers is ready to create websites and applications of any complexity. We build modern web solutions using cutting-edge technologies and architectural approaches.

Read More
3D Graphics
Web
Scalability

Ready to discuss your project?

Describe your task, we will make a research and respond to you as soon as possible.

We will be happy to advise you in any of the available ways.

By leaving a request you agree to the data processing policy