Regulating medical devices with AI capabilities