Garmin has absolutely shitty sleep tracking but it doesn't matter; any wearable more or less nowadays can get static heart rate correct, leading to more or less accurate recovery metrics.
"Collect every paper you can find on RHR/HRV/etc. recovery metrics. Develop an algorithm for predicting recovery score per day based on the research" as a prompt to a Codex or Claude agent can probably get you 98-100% of the way there.
and post-2020 Garmin has totally lost their way with development/algorithms