I was reading up on this a while ago actually. Here's what I found how they do it:
It uses AlphaZen, which is a convolutional neural network that takes in a video feed and tries to predict how deep the penis goes into the vagina/mouth. And that is the entire loss function - just that statistic. It says, "AI Depth estimation of irregular piston movements in a visual scene is a research gap."
