SainsburyWellcomeCentre / aeon_experiments

Experiment workflows for Project Aeon
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Baselined subject weight is not computed and logged correctly #427

Closed glopesdev closed 8 months ago

glopesdev commented 8 months ago

The current subject weight is not baselined since the baseline trigger is never activated and only the FilteredWeight field is accessed during subject weight measurements. Also the calculation of the baseline trigger event is using the number of detected SLEAP pose bounding boxes, instead of the number of stable subjects in the arena center, which is error prone since multiple bounding boxes with the same ID can be reported by the model. Points for consideration:

glopesdev commented 8 months ago

Use StableSubjectsInArena for triggering the baseline. This will cap at the absolute maximum of observed animals and also avoid spurious triggers since it has a temporal smoothing component.

Actually, on further inspection the current baseline trigger logic is using SubjectsInArena which already ensures a capped count. The baseline trigger period needs to be adjusted and tested.