Skip to content
Terraforming Farming Systems

Grazing and livestock tech

Young dairy heifers quickly learned to follow a moving virtual fence, and solar collars stayed charged all summer

On a research farm in northern Sweden, dairy heifers six to nine months old learned a virtual boundary, relearned it each time it moved and grazed much like heifers behind an electric fence, while their solar collars held full charge.

Evidence: Emerging Promising field results, not yet repeated widely. Worth a small trial on your own ground. How we label evidence Published

Cattle grazing tall pasture beside a belt of eucalypts in late afternoon light.

On a research farm in northern Sweden, researchers moved a virtual fence line across a paddock of young dairy heifers twice in one summer. The heifers learned the line quickly, relearned it each time it moved, and their solar-powered collars never lost charge.

What it means on the farm

If you rear dairy heifers on pasture, stock six to nine months old can learn a virtual boundary. When the line was shifted, most of the mob worked out the new edge and came to turn at the warning tone. Solar collars held full charge through a mild northern summer with medium-low sunlight. Check the collar app daily for battery and connection, as the researchers did. The collars also log warning tones and pulses, so an animal testing the line shows up.

What they did

The team split 30 Nordic Red heifers into two groups matched for age and weight at Röbäcksdalen, a Swedish University of Agricultural Sciences farm. Over 110 days, from May to September 2025, each group had its own paddock.

Every heifer wore a solar-powered Monil collar: a warning tone at the virtual line, then an electrical pulse if she kept going. One group was held by the virtual line, the other by an electric fence.

Over three grazing periods the heifers had the whole paddock, then one half, then the other. The team watched behaviour, weighed the heifers and tested tail hair for cortisol, a stress hormone.

What they found

The collars kept working. None lost charge over the whole trial.

The heifers learned. Over the trial they heard more warning tones and took fewer pulses, apart from a slight rise in pulses in the last period. The authors read this as the heifers heeding the warning tone.

Horizontal stacked bar chart from the paper. For each of three grazing periods, one bar for the learning phase and one for the post-learning phase shows the average audio cues, electrical pulses and escape events per heifer. The audio cue segments grow longer from the first period to the third; the pulse and escape segments stay short, with the largest pulse segments in the first and third learning phases.
Average number of collar events per heifer in the virtual-fence group over each learning phase (LP, the first 6 days after the virtual line was set or moved) and post-learning phase (PLP, the rest of each 35-day period), so the two phases cover different numbers of days: a longer post-learning bar does not mean more events per day. Each bar stacks three separate counts: audio cues (red), electrical pulses (cream) and escape events (dark brown; the collar records an escape after 3 audio cues and 3 pulses). Audio cues rose from period to period in both phases; the authors report that pulses fell, with a slight rise between periods 2 and 3. The collar data were not tested statistically, and the paper does not say whether the two heifers that kept testing the line are included. The paper's text gives 32.0 audio cues per heifer for the period 3 post-learning phase, lower than the bar shows. Reused under CC BY · Credit: Liffen et al. (2026), JDS Communications, Figure 2 · Licence: CC BY 4.0

Both groups grazed and lay down ruminating at similar rates, and their pasture was similar in mass and quality.

The virtual-fence heifers gained less weight: 0.76 kg/d against 1.00 kg/d for the electric-fence group. Their tail-hair cortisol was also higher.

Heifers behind the virtual fence gained less on average, in a trial where the control group's electric fence failed late in one grazing periodkg liveweight gain per day over the 110-day trial
  • Electric fence (control)1.00
  • Virtual fence0.76

P < 0.001. One group and one paddock per treatment, 15 heifers each at the start; 2 heifers were later removed from each group. Starting weights, 192 kg (electric fence) and 221 kg (virtual fence), did not differ significantly (P = 0.135); daily gain is not adjusted for starting weight, only final weight was. In the last 2 weeks of period 2 the control group's electric fence lost power and those heifers reached fresh pasture in a mown area; the authors say this may partly explain the gap and, citing it and the moderate sample size, urge caution with the weight results. Source: Liffen et al. (2026), Table 1

Worth knowing before you try it

  • One group and one paddock per treatment, on one farm, over one summer.
  • Both paddocks also had a physical perimeter fence, for safety beside a highway, so the virtual line was tested inside it.
  • Both groups also got 20 kg/d of concentrate; the paper does not say whether that was per group or per heifer.
  • Late in the second period the control group’s electric fence lost power, letting those heifers onto fresh mown pasture. The authors say this may partly explain the weight gap and urge caution with those results.
  • Why the virtual-fence heifers gained less was not measured.
  • Cortisol alone does not prove poor welfare; exercise also raises it. Hair colour, which affects it, was not considered.
  • Two heifers kept testing the line and were removed under the ethics permit, plus two controls to keep the groups even. In the third period the whole virtual-fence group crossed the line three times, each time returning on its own hours later. The cause is unknown; the authors suspect wildlife or dogs near a corner hidden by a ditch and trees.
  • Collar counts were not tested statistically, and behaviour was recorded per group.
  • No costs or labour were measured. Hot weather, drought, short winter days, large paddocks and big mobs were not tested.
  • Kempe Foundations paid for the collars; a regional farmers’ research foundation funded the project.

Tags: virtual fencing · dairy heifers · young stock · animal welfare · liveweight gain

People behind the research

  • Karly Liffen

    Postdoctoral researcher, Department of Applied Animal Science and Welfare, Swedish University of Agricultural Sciences

    First author of the study; researches how virtual fencing affects the behaviour and welfare of dairy and beef cattle in northern Sweden.

    Profile →

Further reading

Sources

  1. K. Liffen, G. Vaccargiu, K. Ren, J. Oliveira, M. Hetta, J.C.C. Chagas (2026). Welfare indicators for young dairy heifers managed with virtual fencing in northern Sweden. JDS Communications.

    doi:10.3168/jdsc.2025-0993 Accessed Licence: CC BY 4.0 Open access