What you're referring to reminds me of the concept of Biofeedback.