AI mechanic could help machines last longer and break less