A method for real-time correction of measurements of variations of the magnetic field existing for example in an investigation device using magnetic resonance, said magnetic field being measured on a subject who is subject to investigations by measurement means secured to an area of the body able to be affected by movements caused by natural functions of the body, in particular related to breathing or heartbeat, which includes, for each measured characteristic: - taking measurements of movement and/or speed from the magnetic field measuring means; and - real-time filtering of the artifacts caused by said movements in the signal resulting from the measurements of the magnetic field variations; characterized in that: - the filtering consists in a real-time calculation of the relationship between the parameters recorded for each measurement and one among the artifacts, the recorded parameters bijectively leading to an identification of an artifact, each artifact identified as corresponding to parameters of a measurement next being separated, then eliminated from the signal resulting from the measurement of the magnetic field variations; - the filtering includes a correction for the reconstruction of a corrected signal S HC based on the signal from at least one Hall effect sensor, from on the one hand an uncorrected signal S H for measuring variations in the magnetic field, and on the other hand a correction signal, said correction signal being made up, for each point with index n of the treated uncorrected signal S H, of a buffered signal U M (n) from a group of M points of the signal resulting from at least one gyroscope S G temporally preceding the point S H (n) and a signal resulting from an adaptive filter applied by the corrected signal resulting from the Hall effect sensor S HC and by said buffered signal U M (n). - taking measurements of movement and/or speed from the magnetic field measuring means; and - real-time filtering of the artifacts caused by said movements in the signal resulting from the measurements of the magnetic field variations; - the filtering consists in a real-time calculation of the relationship between the parameters recorded for each measurement and one among the artifacts, the recorded parameters bijectively leading to an identification of an artifact, each artifact identified as corresponding to parameters of a measurement next being separated, then eliminated from the signal resulting from the measurement of the magnetic field variations; - the filtering includes a correction for the reconstruction of a corrected signal S HC based on the signal from at least one Hall effect sensor, from on the one hand an uncorrected signal S H for measuring variations in the magnetic field, and on the other hand a correction signal, said correction signal being made up, for each point with index n of the treated uncorrected signal S H, of a buffered signal U M (n) from a group of M points of the signal resulting from at least one gyroscope S G temporally preceding the point S H (n) and a signal resulting from an adaptive filter applied by the corrected signal resulting from the Hall effect sensor S HC and by said buffered signal U M (n).