Sleep and SleepStages data calculation in Samsung health app

Hello Team,
I request you to please guide us on how Samsung Health calculates and shows sleep and SleepStages data in Samsung health app.?

Samsung Health uses proprietary algorithms. However Samsung and Google now use Health Connect and Health Services for Wear OS so check out the Android SleepSession documentation

Hope that helps

Samsung Developer Relations