I have tried to reverse-engineer it, but not worked it out yet. It seems to work though.
In Sweden you can make long journeys on fairly straight roads through forest meeting only the occasional other vehicle, very rarely seeing a pedestrian, and mostly keeping an eye out for movement between the trees that may be a deer or elk or boar about to run out in front of you.
Deer make small dents, badgers are like hitting stones, wild pigs can write off the car and elk are absolutely lethal. You actually get taught that, if a collision is inevitable, to aim for the hind legs to maximize your chances of survival.
Must be much the same in much of the USA, Canada, Russia etc.
Wildlife are definitely a danger for drivers in the more remote parts of the U.S. Personally, I survived an elk collision unscathed, and with minimal damage to my car because she was trying to jump down from a cut in the side of a mountain. She put a dent in my roof and smashed the windshield and one of the rear windows. On a level road I doubt it would have been a survivable crash. Elk are very large animals.
I'm guessing it looks for sudden adjustments to stay in lane after micro-sleeps.