A system and method for detecting a heart rate of a user using a portable electronic device is provided. The system includes a first camera mounted to the portable electronic device for taking a series of photographs of the user, a memory for storing the series of photographs including the RGB tone colour details of each pixel for each photograph, and a processor for removing the red and blue tones from each image and for measuring the variation in green tone between each image thereby detecting the heart rate of the user.