A Waikato University student is helping to develop technology that enables dairy farmers to use a smartphone to herd cows.
Mechanical engineering student Dushyant Parmar spent the summer on four Waikato farms developing and testing the technology, called Protrack Drafter.
The system uses a computer in the dairy with software that communicates with an electronic drafting gate.
A reader at the drafting gate detects the animal's tag, identifies the cow and directs it appropriately.
Using a mobile device with the application installed, farmers can remotely program which animals need to be checked.
The device synchronises to a computer in the milk shed so electronically tagged cows can be drafted by the automated gate.
"Before, without a drafting gate, if you wanted to separate 10 cows one of the farmers had to stand outside the milking shed waiting for the cow," Mr Parmar said.
"He would have to check what number it was before scaring it into the paddock with hand motions or whatever.
"Farmers used to have to write down the number of the cow they wanted to draft, go to the computer and punch the number in.
"But now when the cow gets to the gate, it gets separated from the herd and the farmer doesn't have to do much.
"It's pretty clever."
Trials of the new drafter were done on four Waikato farms and one in the South Island.
Pop-up messages on the smartphone app tells a farmer when a cow has reached the gate, which can separate cows into three groups for greater efficiency.
The accuracy of the system has improved from about 78 per cent when Mr Parmar began trials, after software bugs causing problems with the automated gate were resolved.
It is now almost perfectly accurate at 99 per cent.
"It saves quite a bit of time," he said.
"In mating season when a farmer wants to separate 20 cows you had one person out there trying to scare the cows into a pen.
"But now both of you can just go in there and do the milking and get out of there a lot sooner."