 It is possible to tell the depth at which a submarine has been by measuring its magnetic field, which is distorted as the pressure distorts the hull and hence the field.Heating can also change the magnetization of steel.Submarines tow long sonar arrays to detect ships, and can even recognise different propeller noises.