Showcase · one phone

One phone. No setup. This is what our technology gets from it.

To show what our technology can do, we gave it the least we could: a single phone, held by hand at the edge of the arena, turning and zooming to follow the horse through a whole session. Everything on this page comes from that one ordinary video.

Left: the phone video. Middle: the 3D horse model fitted to it. Right: the same model turning slowly through 360°, so you can see it from every side. Half speed. Research prototype.
The phone video. The yellow grid stays fixed to the arena because our software works out in every frame how the camera turns and zooms.
–frames with the camera tracked, none lost
–%of analysed frames with horse and rider located
39points on the horse's body, frame by frame
–frames with the 3D horse posed

What we did not have

Measuring movement usually calls for several fixed, calibrated, high-definition cameras. This showcase had none of that.

One viewpoint

A single camera: there is no second view to measure depth, so it has to be inferred.

A moving, hand-held camera

The camera turned through –° and zoomed up to –× to follow the horse.

Ordinary video

–×– pixels at – frames per second, straight from the phone.

A small, distant horse

Horse and rider about – pixels tall in the picture, sometimes only –, up to – m from the camera.

No calibration, no markers

Nothing measured in advance, nothing attached to the horse, an outdoor arena in full sun.

A laptop

Everything processed afterwards, on a gaming laptop: about 40 minutes for this –-minute video.

What we got from that one video

A complete session of about – minutes, at walk, trot and canter.

The path of the ride

Where the horse went, seen from above: the figures, the use of the arena, how far it was from the camera at every moment.

Move over the path to read the time and the distance from the camera.

Distances assume horse plus rider are – m tall in total.

Speed and gait over time Gait: experimental

Speed over the whole session and, underneath, the gait recognised at each moment. Gait recognition is a first version and still makes mistakes.

Speed Walk Trot Canter Halt
Move over the chart to read the values.
  • Walk for –% of the time, at about – m/s
  • Trot for –%, at about – m/s
  • Canter for –%, at about – m/s

The body's movement, frame by frame

39 points on the horse in every frame: the raw material for measuring when each hoof lands, stride length and the regularity of the rhythm.

A 3D replay

A 3D horse that repeats the movement and can be viewed from any side, not only from the camera's.

Every number as data

Everything is also saved as data files, one value per frame, ready for analysis.

How it works

Step by step, each building on the one before. All clips come from the same video.

1

Where the camera is looking

The camera stays in one place and follows the horse, turning and zooming. We track things that do not move, such as fence posts, arena letters and trees, and from how they shift in the picture we recover the camera's pan, tilt and zoom in every frame.

The yellow grid in the clip is fixed to the world, not to the picture. It stays glued to the arena while the camera turns and zooms, which is how you can see the estimate is right. The blue ellipse marks the middle of the picture, which is ignored because the horse is there.

  • – frames tracked, – lost
  • On a test video with exactly known motion, the pan error stayed within 0.03° over a 45° sweep with a normal lens, and within 1° with a narrow lens
The yellow grid is fixed to the world. Top line: estimated pan, tilt, roll and zoom.

2

Where the horse is

Horse and rider are detected in each frame. The direction to them comes from the camera angles in step 1. The distance comes from how large they appear and, separately, from where the horse's feet meet the ground. Together these give the path of the ride seen from above, shown further up this page.

  • Horse and rider located in –% of the frames analysed
  • Distances from – to – m
  • The two distance estimates agree on average (ratio –), with differences of around 20% in places, mostly far away
  • The camera's height came out at – m, which fits a phone held by hand

3

How the body moves Research prototype

In every frame we locate 39 points on the horse's body: hooves, knees, hocks, elbows, stifles, back, neck, head and tail. Left legs are blue, right legs orange.

  • Body points in – frames
  • No markers on the horse: video only
Body points over the video, at half speed. Blue: left legs. Orange: right legs.

4

A 3D horse that repeats the movement Research prototype

A realistic horse body model is posed to match each frame. Its shape and bone lengths are fixed for the whole video; only the joints move, and only in ways a real horse's joints can.

A first estimate of the pose comes from a model trained on motion capture of real horses. It is then adjusted so that the model's hooves, knees and hocks land on the points from step 3, and smoothed over time.

  • The model's hooves land within – pixels (median) of the detected hooves, in a –-pixel view
  • The phone saw the horse from one side only; the turning model shows the whole 3D pose reconstructed from that, including the sides the camera never saw
  • The clip shows the horse at walk, seen from the side, which is where the result is most reliable
Video, model over the video, and the same model turning through 360°. Half speed.

Where one phone reaches its limits

Everything above was done from a single viewpoint, with the camera in someone's hand. This is where that shows, and what changes with our professional system.

With one phone (this page)
With our professional system
With one phoneOne viewpoint: depth is inferred
With the professional systemSeveral viewpoints: depth is measured
With one phoneLegs hide each other when the horse comes towards the camera or goes away from it
With the professional systemEvery leg seen by more than one camera
With one phoneThe 3D horse is convincing at walk, still rough at trot and canter
With the professional systemEvery gait followed from several sides at once
With one phoneA moving camera, whose own movement has to be worked out first
With the professional systemFixed, calibrated cameras
With one phoneDistances depend on the height entered for horse and rider
With the professional systemReal distances, from calibrated cameras
With one phoneOrdinary –p video, with the horse often small in the picture
With the professional systemHigh-definition cameras all around the arena
With one phoneAnalysis afterwards, on a laptop
With the professional systemResults during the session

This page used one phone. Our professional system uses several high-definition cameras around the arena.

About these results: they come from a single ride, filmed for this showcase. They show what our method does with one phone; they are not certified measurements.

Also built on open research

Camera tracking, horse location, the path of the ride and speed are our own work, using OpenCV and a YOLOv8 detector.

The body points, and the gait recognition built on them, use the DeepLabCut SuperAnimal model (EPFL), published under a licence for academic, non-commercial use. They are shown here as a research prototype.

The 3D horse uses the Dessie method and the hSMAL horse model (KTH, Max Planck Institute for Intelligent Systems, IMATI-CNR), published under licences for non-commercial use. It is shown here as a research prototype.

Talk to us

Would you like to know what Deep Dressage can do for your training yard, your competition or your practice? Write to us and we will show you the professional system.

Request a demo
Email
info@deepdressage.com
Phone
+351 21 828 8048
Location
Oeiras, Lisbon, Portugal