The app, Migraine Buddy, asks questions about your migraine, habits, and medication with a questionnaire.
It also collects data about your sleep and movement patterns using your smartphone's sensors.
Once the app collects enough data, it creates a report highlighting when the symptoms happened, and what were the top triggers.
It also finds out the most effective medication for you by recording when you used them and comparing that information with the severity of the migraines, 'Mashable' reported.
"It mimics how a doctor prescribes different medication to patients to figure out what works," said Veronica Chew, co-founder of Healint, the Singapore-based company behind Migraine Buddy.
Currently, the app is only available in Singapore through a neurologist that is working with Healint.