The gait analysis of rodents is a tricky business. They never walk in straight lines, they never listen when we ask "slow down," they just go (or more often, don't go). It is up to us to take the self selected behaviors of the rats and compare them. Of course the pre-injury behaviors are wildly different from post-injury, which are then different following treatment. So we have developed an array of techniques to compare these different gaits more accurately.
Coordinate Frame
In traditional gait analysis measurements are based off of a world coordinate frame - an X/Y grid on the floor. Steps are measured as the change in X from point A to B, base of support as the change in Y, speed calculated from a start to a finish, and so forth. We quickly came to accept that our rats either didn't know or didn't care about the grid they were walking on. They would stop whenever they liked, walk in a direction that wasn't parallel to the world coordinate frame grid, or worse yet, slightly change their direction as they walked. Instead of training our animals to walk the way our tools needed them to (straight lines parallel to the world coordinate frame), we built better tools to measure how the rats wanted to walk. Luckily for us, all we needed was a little bit of linear algebra. Instead of measuring gait in the world coordinate frame we rotate and translate all measures into the body coordinate frame of the animal. That way no matter what the rat decides to do in the device, strides are anterior/posterior changes, base of support are medial/lateral changes, and velocity is the rate at which the ground passes under the center of mass.