Better detection tools and stricter safety rules mean that problems that once went undetected are now more often spotted and traced back to their source.