signal quality assessement of the pulse sensor

what if the patient can't keep him self from moving once in a while , i mean you can't stay immobile all the time specialty if the recording will take a long time , the pulse sensor is connected to bedside monitor ,
i don't know what kind of information will help me know if the sensor is well connected to the finger ,
i thought that maybe there is a way to detect high frequencies in the signal , and put a threshold to say of it's a good signal or not.
i don't know how to do it , and i hope you understand now .
and sorry again.
Thank you.