(A) Schematic diagram illustrates the protocol for generating a mouse model of uterine pain in ovariectomized female mice implanted with estrogen pellets. (B) Oxytocin-induced writhing response in vehicle group, estradiol group (pretreatment with estradiol benzoate without application of oxytocin), oxytocin group (application of oxytocin without pretreatment with estradiol benzoate) and estradiol + oxytocin group (pretreatment with estradiol benzoate followed by application of oxytocin). n = 6 mice per group, 1-way ANOVA. ****P < 0.0001. (C) Representative images illustrate heatmaps of voluntary movements of mice subjected to different treatments in open-field test in home cages. (D–F) Quantification of voluntary movements, including total moving distance (D), total time spent moving (E), and total time spent stationary (F), n = 6 mice per group, 1-way ANOVA. ***P < 0.001, ****P < 0.0001. (G–J) Ibuprofen significantly reduced the number of writhing responses (G) and total time spent stationary (J) and increased the total moving distance (H) and total time spent moving (I); n = 6 mice per group, unpaired Student’s t test. **P < 0.01. All data are expressed as mean ± SEM.