Hospitals and insurers are harnessing the power of artificial intelligence and other tech tools to protect their businesses.