Abstract
The Nokia Wrist–Attached Sensor Platform (NWSP) was developed at the Nokia Research Center during the NUADU project to facilitate research and demonstrations of use cases of wearable wireless sensors. A wrist–worn pedometer application was implemented as one of the demonstrations of the capabilities of the platform. In this paper the step counting algorithm is described and the performance is evaluated. The application is targeted for running exercise. However, the detection of steps during walking is also discussed.
Introduction
Step counting is a widely used method to assess physical activity. Very simple and cheap pedometer devices are available for any person to wear during running exercise or during daily activities to record the number of steps taken. The benefit of using such a device is mostly the improvement in motivation to increase physical activity. These devices are also used in rehabilitation and disease management. For example, physical activity assessment is important for the prevention or treatment of diabetes. 1 Pedometers have also been used to assess mobility of the elderly 2
Pedometer devices are typically worn on the hip clipped to a belt or trousers. The hip is an excellent place for sensing steps as the accelerations there correlate well with steps and the interfering accelerations are small. Another good location for a step counter sensor is on the foot, where even more details, like stride length, can be measured.
The wrist is a convenient place for informative gadgets. It is easy to casually look at the display of a wrist–worn device and one can stay continuously aware of the step counts among other information. However, it is difficult to determine steps from the wrist as there is a lot of interfering acceleration signals from arm movements, which do not always correlate well with the steps taken.
There are wrist–worn step counters on the market today, but there are no public scientific reports on this topic. As algorithm patents are difficult to supervise they are usually kept secret. The Nokia Wrist–Attached Sensor Platform (NWSP) developed in the NUADU project is an open research platform, which has made this publication possible.3,5
Materials and Methods
The step counting algorithm uses linear acceleration data from a 3-axis accelerometer sensor. To remove orientation dependency and the earth's gravitational acceleration the sensor signals are processed according to the scheme pictured in Figure 1. Signals ax, ay and az are the accelerometer signals for each axis respectively. Firstly, each of them is high-pass filtered to remove the static or slowly varying gravitation signal. The filter is implemented by a computationally efficient autoregressive filter of the first degree. Effectively the filter subtracts from the input an integrated value of the output. A gain coefficient of 1/8 is inserted in the loop to adjust the response time and frequency response. The -3 dB cutoff frequency is approximately 1/53 of the sampling rate. The transfer function of the filter is:

Computing acceleration change value from 3-axis accelerometer sensor signals.
The three high-pass filtered accelerations are combined to one output signal aΔ by taking the 1-norm: i.e. summing their absolute values. The 1-norm was chosen instead of the more accurate 2-norm to make the algorithm less computationally intense. The output aΔ is zero when the device is not moving. Any movement in any direction results in an output signal. With the 1-norm the gain (the scale of the output signal), depends somewhat on the orientation of the device, whereas with the 2-norm the gain is uniform in any direction. However, as the algorithm features an adaptive threshold, it is insensitive to the gain and thus, there would not be any benefit for using the more computationally intensive 2-norm.
To make the algorithm robust, it features an adaptive threshold. This feature makes the algorithm independent of sensor sensitivity and the drift of it. It also makes the algorithm less sensitive to different users and variations in running style and road material. Figure 2 shows the computation of the threshold. It is essentially a peak detector with some slowness added to the reaction time. It is implemented as a low-pass filter of the first degree with a varying response time. The transfer function of the filter is

Computing the adaptive threshold level.
In a steady-state case the peak signal a equals the input aΔ because the difference is integrated in a closed loop. The gain coefficient g
The threshold value a
The step counting algorithm is shown in Figure 3. When the pedometer application is started the

Step counter algorithm.
Result
The step counter application was tested and the performance was evaluated. Figure 4 shows a set of acceleration signals for a short segment for one case where a subject was running. The x-axis is in the direction of the tangent of the forearm, the y-axis is parallel to it and the z-axis is perpendicular to it. Normally when a wrist-watch like device is worn tightly on the wrist and the arms are in a position for running, the x-axis of the device points downwards, the y-axis points forward in the running direction and the z-axis to the side. The figure also includes the combined acceleration aΔ. The case in the figure shows an interesting phenomenon. During the first 4 seconds in the plot there is a strong signal from the x-axis sensor but in the latter part this signal has moved over to the z-axis sensor. The reason for this is that the wrist device has been loosely fitted and has turned around the wrist during the running exercise to the side of the wrist, hanging on the downside of the arm. Each sharp spike in the waveforms of x- and y-axes corresponds to a combination of the heel strike in the gait cycle and the up–down movement of the body.
6
The heel strike signal is strongly softened by body spring–mass system when sensed on the wrist. On the y-axis a periodicity of half the frequency of the other axes can be observed. This is caused by the arm swinging forward and backward with the change in direction happening on each step. This example shows that at least a sensor with two axes is needed to cover situations where the wrist device might turn around the wrist. As can be seen in the plot, the

Acceleration signals during running.
Figure 5 shows a plot with the adaptive threshold

Generation of the adaptive threshold signal.
The NWSP pedometer demo application was intended for running exercise. Tests showed that the application does not count steps during walking. Figure 6 shows the acceleration signals from the wrist during a walking exercise. The signals are very noisy and have low amplitude. From the z-axis signal some periodicity can be observed. This periodicity is caused by swinging motion of the arm and thus, the frequency is half of the step rate. The combined acceleration signal

Acceleration signals during walking.
A comparison was made against Nokia Step Counter application running on a Nokia N95 mobile phone as a reference. This application is believed to be very accurate and it is available for free from Nokia beta labs. 7 A small number of test users ran with the NWSP pedometer on the wrist and the N95 device in the pocket simultaneously counting the steps during short exercises of a few hundred steps. Results showed that the NWSP step counter acquired consistently around 30% fewer steps than the reference. This result was surprising as the contrary was expected. As there is no advanced filtering for rejecting false steps and no hysteresis to reject ripple and noise, it was expected that extra steps would be acquired by the NWSP. Also having a very low hold–off period could be expected to pass through some extra steps.
Discussion
Measurements of accelerations from the wrist showed that steps can be identified from the acceleration signals. From running exercises the detection is very clear. From walking activity steps could be detected with some limited accuracy using proper algorithms. The NWSP step counting algorithm was designed for running exercise. This was done before the acceleration measurements were available and it was later verified to be functional in laboratory conditions. However, the real running test showed a significant loss of steps. The probable cause of loss of steps lies in the way the 3-axis accelerations are combined into one acceleration signal
Reviews of pedometers have revealed very high inaccuracies in available devices based on acceleration sensors. 8 To improve accuracy alternative sensing methods have been suggested, such as gyroscopes. 9 As the NWSP includes gyro sensors, they could be utilized to improve the NWSP pedometer. Gyros are insensitive to linear acceleration and thus, interfering accelerations are suppressed. However, the heel strike or body up–down movement can not be detected by this kind of sensor and the algorithm would have to rely on detecting arm swing.
Step counting from the wrist is an interesting topic. This exercise has shown that it is indeed possible but also it was shown that there are challenges. The NWSP step counter is functional but somewhat inaccurate. Improvements are possible and they have been identified during this work.
Disclosures
The manuscript has been read and approved by all authors. This paper is unique and is not under consideration by any other publication and has not been published elsewhere. The authors report no conflicts of interest.
