A modular approach for estimating nociception during general anesthesia