Mining is dirty, dangerous work, so miners and their suppliers are racing to develop automated machinery and software to do the actual digging and hauling. Already there are driverless diggers and loaders and flying drones that can spot deposits or danger zones deep underground.