The invention relates to a device for determining a transformation between an accelerometer coordinate system of an accelerometer (3) attached to a subject and a subject coordinate system. Defining that a vertical and upward pointing direction in the subject coordinate system is equal to an acceleration-measurement-based vertical and upward pointing direction in the accelerometer coordinate system leads to a first direction in the accelerometer coordinate system. A second direction in the accelerometer coordinate system is provided, which is equal to a direction in the subject coordinate system of the subject having a known spatial relation to the vertical and upward pointing direction in the subject coordinate system, wherein the transformation is determined based on the first and second directions and the known spatial relation. This allows for an improved determination of the transformation, which can be used for, for instance, improved activity or posture detection.L'invention concerne un dispositif de détermination d'une transformation entre un système de coordonnées d'accéléromètre d'un accéléromètre fixé à un sujet et un système de coordonnées de sujet. La définition du fait qu'une direction de pointage verticale et vers le haut dans le système de coordonnées de sujet est égale à une direction de pointage verticale et vers le haut basée sur une mesure d'accélération dans le système de coordonnées d'accéléromètre conduit à une première direction dans le système de coordonnées d'accéléromètre. Une seconde direction dans le système de coordonnées d'accéléromètre est fournie, qui est égale à une direction dans le système de coordonnées de sujet du sujet ayant une relation spatiale connue par rapport à la direction de pointage verticale et vers le haut dans le système de coordonnées de sujet, la transformation étant déterminée sur la base des première et seconde directions et de la relation spatiale connue. Ceci permet une détermination améliorée de la transformat