Friday, October 2, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Agriculture

Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer

October 2, 2026
in Agriculture
William Thompson
By William Thompson Scienmag Editorial Profile - Livestock Health and Welfare
Reading Time: 5 mins read
0
Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer

Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer

Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

On a commercial sheep farm in Qiqihar, in northeastern China, a camera mounted three metres above a pen watches thirteen Hu sheep go about their day. Nothing about the scene looks remarkable, but the footage is feeding a quiet revolution in precision livestock farming. Researchers have built a lightweight artificial intelligence model, called GLE-YOLOv11n, that can identify what every sheep in a crowded pen is doing — lying, standing, eating or drinking — in real time, on a computer no bigger than a coffee mug that draws about as much power as a household light bulb.

The problem the team set out to solve is deceptively hard. Traditional livestock monitoring relies on wearable sensors such as accelerometer collars, GPS tags and RFID ear tags. These devices work, but they stress the animals, break or fall off, run out of battery, and become impractical when dozens of animals share a small space. Camera-based detection avoids all of that, but it introduces its own challenge: sheep in group housing look remarkably alike, cluster tightly, block one another from view, and shift posture constantly. A standard detection model thrown at such a scene tends to miss animals, confuse eating with drinking, and demand more computing power than a farm can afford.

The researchers, publishing in the journal Artificial Intelligence in Agriculture, started from YOLOv11n, the nano version of the popular You Only Look Once object detection family, and rebuilt it in three places. The first change targets raw efficiency. They replaced seven standard convolution layers in the network’s backbone and neck with GSConv, a hybrid module that fuses dense standard convolution with cheap depthwise separable convolution and then shuffles the channels to restore cross-channel communication. The result is a module whose computational cost approaches half that of a standard convolution, cutting the model’s parameters by roughly 12.8 percent and its floating-point operations by 12.7 percent — without hurting accuracy.

The second change is an attention mechanism called LWGA-Lite, a slimmed-down version of a lightweight grouped attention design. Attention modules tell a neural network where to look, and in a sheep barn that matters enormously: the difference between a sheep that is eating and one that is drinking lies in whether its head is at the feed trough or the water valve, while standing versus lying depends on limb geometry and the gap between belly and floor. LWGA-Lite splits features into four parallel paths — gated point attention for fine pixels, local attention for contours, sparse medium-range attention for trunk structure, and sparse global attention for scene-level context — and applies global attention only to the most salient image tokens rather than the whole frame. The lightweight redesign halved attention head dimensions, swapped in depthwise separable convolutions, and replaced costly upsampling operations, trimming parameters while keeping detection quality essentially intact.

The third change concerns how the model learns to draw boxes. The default Complete IoU loss couples width and height penalties together, which can cause slow or oscillating convergence when animals stretch, crouch or overlap. The team substituted the Efficient IoU loss, which decouples width and height into independent penalty terms. The payoff was clearest for the rarest behaviour in the dataset: drinking. Because only a few sheep drink at any moment, drinking samples were scarce, yet the EIoU loss lifted the drinking category’s strict accuracy metric from 0.893 to 0.925 — a gain of 3.2 percentage points on that behaviour alone.

To train and test the system, the researchers built a dataset from a real farm rather than a staged laboratory. Over the winter of 2024 to 2025, an infrared dome camera recorded the pen at 25 frames per second, capturing day and night in equal measure. One thousand raw images containing 13,000 behaviour instances were annotated with fine polygon outlines, then expanded through a two-stage augmentation pipeline — offline rotations, flips, crops and noise, plus online mosaic and copy-paste strategies that deliberately oversampled drinking — into 4,755 training images holding 61,430 instances. Validation and test sets were left untouched to keep the evaluation honest.

The numbers that emerged are striking for a model this small. GLE-YOLOv11n reached a mean average precision of 0.9479 under the strict IoU threshold range and 0.9814 under the looser standard, with precision of 0.9681 and recall of 0.9917. It beat its own YOLOv11n baseline by 1.69 percentage points on the strict metric while carrying only 2.20 million parameters and 5.5 billion floating-point operations per inference. Against heavyweight detectors the gap was enormous: Faster R-CNN trailed by more than 16 percentage points on the strict metric while demanding a hundred GFLOPs and 41 million parameters. Ablation experiments confirmed that the three improvements work synergistically — combining EIoU with LWGA-Lite produced gains larger than the sum of their individual contributions.

Robustness testing pushed the model into the scenarios that break ordinary detectors. Under severe occlusion, where more than 60 percent of a sheep’s body is hidden, mean detection confidence still held at 0.73. In one side-by-side comparison, a heavily occluded sheep that the baseline detected with confidence 0.43 was detected by the improved model at 0.72. The model also generalized better across pens and breeds: when tested on Dorper crossbred sheep it had never seen, its strict accuracy dropped only 2.27 points, compared with 4.86 for the baseline, and in an external farm in Xinjiang it spotted small black lambs the baseline missed entirely.

Then came the test that most published models never face: real deployment. The team compiled the network into a TensorRT FP16 engine and ran it on an NVIDIA Jetson Nano B01, a low-power embedded board. Inference jumped from 6.61 to 15.0 frames per second at 640-by-640 resolution, with accuracy falling only 0.26 percentage points after conversion. The complete system — camera, Jetson Nano, power supply and a fan-cooled protective housing — was bolted above a pen at the commercial farm and left running for thirty days straight. It achieved 100 percent uptime, held a steady 15.0 frames per second, averaged 5.52 watts of input power, and kept its hardware temperature near 63.6 degrees Celsius without a single crash or forced restart, even through feeding, cleaning and shifting light from day to night.

The implications reach beyond sheep. Cloud-based livestock AI raises latency, cost and privacy concerns, and many published models are validated only on gaming-grade GPUs that no farm owns. This work shows the full pipeline — dataset, architecture, loss design and hardware-level optimization — that takes a detection model from a paper to a barn wall. The authors are candid about limits: the system tracks behaviours at group level, not individuals, since it lacks multi-object tracking and re-identification, and fast motion blur remains difficult. Future versions will add lightweight tracking and aggregate detections over time to flag flock-level anomalies, such as a sudden drop in eating that could signal feed problems or disease. For now, the quiet achievement is that a two-hundred-dollar-class computer can watch a flock of sheep, understand what it sees, and never blink.

Subject of Research: A lightweight deep learning model for real-time sheep behaviour recognition on edge computing devices

Article Title: GLE-YOLOv11n: A lightweight network for real-time recognition of sheep behaviours in edge computing environments

Article References: Dong, R., Wei, X., Zheng, D., Liu, Y., Tong, Y., Li, W., Shen, W., & Fu, X. (2026). GLE-YOLOv11n: A lightweight network for real-time recognition of sheep behaviours in edge computing environments. Artificial Intelligence in Agriculture. https://doi.org/10.1016/j.aiia.2026.09.007

Image Credits: AI Generated

DOI: 10.1016/j.aiia.2026.09.007

Keywords: sheep behaviour recognition, edge computing, YOLOv11n, GSConv, attention mechanism, EIoU loss, Jetson Nano, TensorRT, precision livestock farming, computer vision, animal welfare, model lightweighting

Cite Scienmag News

William Thompson. (October 2, 2026). Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer. Scienmag. https://scienmag.com/lightweight-ai-watches-sheep-around-the-clock-on-a-tiny-edge-computer/

William Thompson. "Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer." Scienmag, 2 October 2026, https://scienmag.com/lightweight-ai-watches-sheep-around-the-clock-on-a-tiny-edge-computer/. Accessed 2 October 2026.

William Thompson. "Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer." Scienmag. October 2, 2026. https://scienmag.com/lightweight-ai-watches-sheep-around-the-clock-on-a-tiny-edge-computer/

Tags: AI model for sheep identificationAI sheep monitoringanimal welfareanimal welfare monitoringattention mechanismcamera-based livestock managementcomputer visioncomputer vision in agricultureedge computingEIoU lossgroup housing sheep monitoringGSConvJetson Nanolightweight AI edge computermodel lightweightingPrecision Livestock Farmingreal-time animal behavior detectionsheep activity recognitionsheep behaviour recognitionsmall-scale AI deploymentsustainable livestock technologyTensorRTYOLOv11n
Share26Tweet16
Previous Post

Digital Sleep Therapy Ranked: Massive Analysis Finds One App-Based Treatment Clearly Wins

Next Post

When Help Becomes a Habit: What Science Really Knows About Over-Reliance on AI

Related Posts

Tiny RNA Switch Helps Birch Trees Survive Drought, Study Finds
Agriculture

Tiny RNA Switch Helps Birch Trees Survive Drought, Study Finds

October 2, 2026
Monte Carlo Sampling Offers Faster Route to Genomic Prediction Accuracy in Hybrid Breeding
Agriculture

Monte Carlo Sampling Offers Faster Route to Genomic Prediction Accuracy in Hybrid Breeding

October 2, 2026
Citrus Compounds Hesperetin and Naringenin Reshape the Oral Microbiome Linked to Childhood Tooth Decay
Agriculture

Citrus Compounds Hesperetin and Naringenin Reshape the Oral Microbiome Linked to Childhood Tooth Decay

October 2, 2026
Steam Explosion Trick Unlocks Hidden Antioxidants in Ancient Amaranth Grain
Agriculture

Steam Explosion Trick Unlocks Hidden Antioxidants in Ancient Amaranth Grain

October 2, 2026
Microbes May Hold the Key to Protecting Crops from Insect Pests
Agriculture

Microbes May Hold the Key to Protecting Crops from Insect Pests

October 2, 2026
New Desi Cotton Variety PBD 88 Promises Higher Yields for Irrigated North India
Agriculture

New Desi Cotton Variety PBD 88 Promises Higher Yields for Irrigated North India

October 2, 2026
Next Post
When Help Becomes a Habit: What Science Really Knows About Over-Reliance on AI

When Help Becomes a Habit: What Science Really Knows About Over-Reliance on AI

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • When Help Becomes a Habit: What Science Really Knows About Over-Reliance on AI
  • Lightweight AI Watches Sheep Around the Clock on a Tiny Edge Computer
  • Digital Sleep Therapy Ranked: Massive Analysis Finds One App-Based Treatment Clearly Wins
  • Ketone Ester Supplement Reshapes Aging Brain and Body Differently in Male and Female Mice

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,151 other subscribers

© 2025 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2025 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading