nightscout / nightscout/AndroidAPS

Replace average and exponential smoothing with UKF In V4

Open
#4,965 14 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
1.2k
Forks
6.4k
Avg merge
2d 7h
Merged PRs (30d)
19

Description

Having three separate smoothing algorithms in V4 isn't helpful to users and creates a complex, difficult to understand challenge in relation to how the different options work and what they do, as the explanations don't fit within the space in the config builder.

The data here (https://github.com/tim2000s/Smoothing-Investigations) highlights that UKF is much more effective than exponential for many reasons, so instead of leaving exponential in place, don't release it as part of the v4 release and replace it with UKF.

Additionally take the Average smoothing option away as it is technically not a smoothing algorithm, it is a retrospective adjustment to historic data and simply changes the delta value between now and the previous values rather than smoothing the current value to a safer one.

Instead offer:

No Smoothing
Advanced Smoothing ( The UKF smoothing options, and make it default for G7/One+/Stelo)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the V4 config builder and its existing smoothing options, then review the linked Smoothing-Investigations material and current UKF settings. Done means V4 offers only No Smoothing and Advanced Smoothing, removes Average and exponential from the release configuration, and uses Advanced Smoothing by default for G7, One+, and Stelo.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
data, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.