Skip to content

Test robustness of save data #77

Open

Description

@K-Meech

Description

We should do some testing of how stable the save data values are, especially for those that average gaze point or head pose measurements.

Definition of Done

  • Try different values for the sampling interval (seconds) - currently set to 0.5 seconds
  • May want to write out a file of all the measured speed values, to assess if the overall mean etc is representative
  • Try different implementations for GetSpeed. Currently, we take successive pairs of values and calculate the distance (accounting for sign), meaning that small jitters will be represented in the overall distance measure. Equally this means that changes in direction aren't averaged out. We may want to compare to just adding all values together.
  • Assess if number of falls in ZeroGravity is sensitive to teetering on the edge of the in-range zone. i.e. if they are wobbling quickly in and out - is this measured as many falls? Do we want to have a time limit, so that something can't be counted as a fall until at least X seconds after the last one?
  • Make sure buffer sizes are large enough, so that we have enough data for our sampling interval
  • Double-check we are happy with how time when the player is un-detected by the tracker is handled

Dependencies

  • #issue number

Comments

Activity

  1. K-Meech commented on May 29, 2026

    @K-Meech
    CollaboratorAuthor

    I've submitted a PR to address some of the issues above: #89

    I also did some testing of different sampling intervals and speeds which I will describe here:

    • I found that comparing different sampling intervals between games was difficult, as my head movements/speeds would vary enough to make it tough to compare.

    • To get around this, on my km/tracker-refresh branch, I made modifications to StarCollectorManager.cs to allow it to save multiple text files for a single game using sampling intervals from 0.1-0.5, and two different speed implementations. The first (named 'absolute' in the code) is the existing implementation that uses the absolute difference between pairs of consecutive readings to calculate distance; the second (termed 'total' in the code) uses the total distance between the first and last reading instead. You can see the full branch changes here

    • I played through three separate 1 minute games of star collector, and saved the files into a separate repo (to keep this rough analysis separate from the main code): https://github.com/K-Meech/astro-test-graphs (under /data)

    • I then created a couple of quick jupyter notebooks to compare these with various plots. collector-sampling-comparison.ipynb compares results with different sampling intervals for each game. collector-speed-comparison.ipynb compares the two different speed methods for each sampling interval.

    • Some general points:

      • If we want to keep a minimum of 5 readings per speed sample, then the lowest sampling interval we can have is ~0.2 seconds. Files for 0.1 seconds recorded no speeds, as they used on average 4 readings per speed (0.1 / 0.03 = 3.33).
      • For our current speed implementation (absolute), increasing the sampling interval decreased the peak speed, decreased the standard deviation, and didn't have much affect on the mean. Looking at the plots, increasing the sampling interval mostly narrowed the distribution of sampled intervals about the same mean.
      • For the total speed implementation results were similar, but the mean also decreased with increased sampling interval. Potentially, this is due to larger sections around the player changing their head direction being averaged out, leading to insertion of low speeds. E.g. if in 0.5 seconds, the player's head went from 5 degrees to 20 degrees and back to 5 degrees, then the total speed would be 0 (while the absolute speed would not be affected like this)

    I'm not sure what the best sampling interval / speed would be based on this. We could decrease the sampling interval to 0.2 seconds (if so, we should change it for rocket launch and star collector so they match). For the speed implementation, I'd probably leave it as-is, as it doesn't seem to have a huge effect. Also, using the total has potential issues if the sampling interval matches up with head frequency e.g. if the player moves to one side and back in the sampling interval, then the total distance travelled is 0, so the speed is registered as very low. Absolute isn't affected by this, but this does mean that any small jitters in location do accumulate in the distance.

    I also double-checked the implementation for the player going in / out of range. Both rocket launch and star collector (the only 2 games that use the buffer), will only take speed or gaze steadiness readings if the player has been present for the whole of the time range used. This seems to be working fine - so I think this can be left as-is. Otherwise, we would need to add an additional isoformat timestamp to each buffer reading, to allow it to be compared unambiguously with the current timepoint.

  2. K-Meech commented on May 29, 2026

    @K-Meech
    CollaboratorAuthor

    @mmcleod89 @thompson318 - I did some testing of different sampling intervals / speeds for this issue, summarised in the comment above. Probably good to take a look at the plots in the jupyter notebooks if you have time, and see if you think any changes are needed to the implementation.

  3. MonikaSvata commented on Jun 8, 2026

    @MonikaSvata
    Collaborator

    feedback from @herdmd00 pending

  4. MonikaSvata commented on Aug 3, 2026

    @MonikaSvata
    Collaborator

    David H:

    • Rocket launcher: The occasions when the user looks doesn't always increase the number. We should increase acceptable range (although we are making the target smaller.)
    • The other games are working well, recognising results in acceptable level of accuracy.
    • Star Seeker: The head tracker wasn't lining up with eyes - but this wasn't a consistent issue, so this might be just a matter of calibration. (David to double check if this is a real issue by calibrating to each child. No other action on this at the moment.)
    • Memory game: Keep as a touchscreen version.
    • There is a limitation of tracking when the user is wearing glasses (depends on the head angle, light/glare etc.) We might play around how this is setup for kids with glasses, but we might not be able to impact this.
  5. MonikaSvata commented on Sep 28, 2026

    @MonikaSvata
    Collaborator

    David to check again and confirm.

    To be agreed how to reset data (a button to reset - user proof against children accidentally pressing).

  6. MonikaSvata commented on Oct 12, 2026

    @MonikaSvata
    Collaborator

    Ongoing through play testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions