I had my camera stop being detected. Are you on the latest SMC/PRAM version? If so, reset both of those. The next time the device isn't detected, go into the mac equivalent of device manager (apple->about this mac->more info i think) and see if the camera is detected under the usb section. If it is not, I would bring it in and have them replace it.