Generally speaking, when people lift their legs, the acceleration is the largest. The triaxial gyroscope will record the current maximum acceleration and compare it with big data. If it is equivalent to the peak, it is a step. If there are 8 peaks in a row, I can be sure that I am in motion, and the device will calculate the previous fluctuation as the number of steps. This is the basic principle of mobile phone counting steps.