In an aspect of the present disclosure, a system and method for controlling uterine contractions is disclosed including receiving data from at least one sensor by a wireless apparatus inserted into the patient's vagina adjacent the cervix. The data includes an indication that a contraction of the uterus is imminent. The method further includes in response to receiving the data, causing a generator circuit of the wireless apparatus to supply electrical energy to an energy applicator of the wireless apparatus that is configured to apply the supplied electrical energy to the uterus of the patient via the cervix of the patient to control contractions of the patient's uterus.