NapBot - Core ML powered sleep tracker’s Frequently Asked Questions
No, you don't need to install the app on your Apple Watch. But you have to wear it during the sleep.
You wear your Apple Watch, and it populates Health app with data like Calories, Motion, Heart Rate, etc. NapBot runs Machine Learning on that data and displays your sleep analysis.