We have already seen some other (commercial) projects like Bienenwächter von beeonic or Apisfero and Melixa System projects, that use optical recognition to detect varroa mites.
Here is a research project powered by a Raspberry Pi for detecting apple moths.
https://www.raspberrypi.org/blog/save-orchards-from-pests-with-raspberry-pi/
The interesting part ist the energy management for an power plug independent RasPi: