Detection of early squats by axle box acceleration