This was years ago, but I experimented with running TensorflowJS on a raspi to determine whether or not to open the chicken coop door when a creature comes nearby. Essentially, take a pic of the scene, and determine "chicken or not chicken" and open the door if the former. So, I trained the model on lots of pictures of chickens for positive, and lots of common predators (snake, raccoon, fox, etc.) for negative. It worked pretty well, except for one major flaw: I couldn't do the hardware to save my life. I rage-quit when I couldn't get the motor to keep the door open.