A method of calibrating a monitoring device to be attached to a user is provided. Prior to attachment of the device, the device is aligned with respect to the user such that the measurement reference frame of the device is substantially aligned with a reference frame of the user. A first measurement of the orientation of the device with respect to a world reference frame is obtained. After attachment of the device, a second measurement of the orientation of the device with respect to a world reference frame is obtained. A transformation matrix is determined for use in transforming subsequent measurements obtained by the device into the reference frame of the user. The matrix is calculated using the first and second measurements and information on the amount of rotation of the device relative to the user about a vertical axis in the world reference frame between the first and second measurements being taken.