The app works by using a dermatoscope attached to a mobile phone to capture high-quality images of skin moles. These images are then analyzed using machine learning models to detect patterns indicative of skin cancer.