
In the Karen and Muser communities of Chiang Mai, black pigs are a vital source of income and cultural heritage. However, farmers in these remote mountainous areas lack accessible tools to measure pig weight accurately. Currently, they rely on visual estimation or traditional bamboo measurements, which lead to unfair pricing and lost earnings.
Furthermore, traditional physical weighing is labor-intensive and highly stressful for the animals. For young piglets, excessive handling can lead to mother pigs rejecting or even cannibalizing them due to scent changes. To solve this, our project introduces a contactless, smartphone-based weight estimation system that uses Artificial Intelligence to provide accurate measurements without ever touching the pig.
Our solution leverages a sophisticated three-stage AI processing pipeline to turn a 2D image into a weight value.
We utilize DeepLabV3 with a ResNet-101 backbone to perform pixel-level classification. Unlike standard object detection, this allows the system to understand the precise boundary and shape of the pig.
Since standard photos don't contain "size" information, we integrated Depth Pro (developed by Apple ML Research). This model predicts the distance from the camera to the pig in metric units. By combining this depth with EXIF metadata (focal length), the system calculates the pig's real physical length.
The extracted physical features (Body Length and Width) are fed into a machine learning regression model. This model was trained on real-world datasets where visual measurements were paired with actual scale weights, allowing the AI to learn the correlation between body dimensions and mass.
By introducing this digital tool, we are empowering remote farming communities with data-driven fair trade.
Future Roadmap:


.png)
.png)
.png)
.png)
.png)