A smartphone-based artificial intelligence application can accurately and efficiently screen for rare ocular surface malignancies, potentially streamlining the referral process and increasing case detection rates.