Its when the doctor check your cervix to see if your dilating which I personally experience and either he or her will tell you your in labor
But pertem labor can happen between 4-7 months pregnant but I was the opposite I was having my baby at 4 months and she prescribe me tributline for contraction and to stop labor
I'm not exactly sure, but I think there's a test that the doctor can do...