https://www.olliw.eu/2013/imu-data-fusing/#chapter23
Best of luck =3
Edit: I get fusion is regarding multiple sensors
gyroscope: fast over-sampled low-pass filter, but slowly drifts compounding heading errors
accelerometer: relatively stable, but dead-reckoning errors compound quickly
magnetometer: best stability, but low-sample rate and vulnerable to metal/magnets fooling/blinding the sensors
The fusion algorithms usually weights which data is consistent with the motion path, and attenuates the estimated pose errors.
Notably, not all sensors are equal quality, but there are probably better options now. =3
https://www.olliw.eu/2013/imu-data-fusing/#chapter23
Best of luck =3