Enabling highways and bridges to prevent their own damage