Towards orientation estimation using a loosely attached IMU with a recurrent neural network