Repository navigation
Detected workouts: guess the type, learn from answers, notify after sync - #58
Merged
Merged
Conversation
Plan in docs/activity-recognition-plan.md. Phase 1:
- ActivityClassifier ranks every type (walk, run, cycle, gym, sport, …)
from cadence, step burstiness, heart-rate level and unevenness; the
user's own confirmed answers outweigh the rules once close ones exist.
- Detection merges step and heart stretches into one window per activity,
guesses its type, and keeps "Not this" by overlap so a re-detection
can't resurface a dismissed stretch.
- After each sync, ActivityDetectionNotifier posts one notification per
new suggestion from the last 12 h ("Looks like strength training · 45
min at 18:10"), opening the Activity tab; own channel and switch in
Settings → Notifications.
- Today shows the newest suggestion as one line; the Activity card selects
the guess and offers the rest in order, with 48dp chips and buttons.
- Learned answers ride in the backup.
Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 of
docs/activity-recognition-plan.md: Oura-style automatic activity detection.ActivityClassifierranks every type (walk, run, cycle, gym, sport and the rest). It works from step cadence, how bursty the steps are, and how high and how uneven heart rate ran.ActivityClassifierTestcovers the rules, the learning, the features, merging, the dismiss-by-overlap rule and the encoding of stored answers.Generated by Claude Code