Gloersen2016GapFillingProcedure#
- class pyCGM2.Gap.gapFillingProcedures.Gloersen2016GapFillingProcedure(**kwargs)#
A gap filling procedure based on the intercorrelation method as described by Gløersen and Federolf (2016).
This procedure fills gaps in marker position data by exploiting intercorrelations between marker coordinates, suitable for cases where multiple markers have missing data simultaneously.
References
Federolf PA. 2013. A novel approach to solve the ‘missing marker problem’ in marker-based motion analysis that exploits the segment coordination patterns in multi-limb motion data. PLoS ONE 8(10): e78689.
Gløersen Ø, Federolf P. 2016. Predicting missing marker trajectories in human motion data using marker intercorrelations. PLoS ONE 11(3): e0152616.
- Parameters:
**kwargs –
Additional keyword arguments to configure the procedure:
method (str): Reconstruction strategy for gaps in multiple markers,
'R1'or'R2'. Default is'R2'.weight_scale (float): Parameter ‘sigma’ used in weighting calculations. It influences the impact of distance on weight assignments. Default is 200.
mm_weight (float): Weighting factor for markers with missing data. Higher values give more weight to these markers during the gap filling process. Default is 0.02.
distal_threshold (float): Threshold used by the
'R2'method to determine distal markers. It represents the cut-off distance for distal markers relative to average Euclidean distances. Default is 0.5.min_cum_sv (float): Minimum cumulative sum of the eigenvalues of normalized singular values used in PCA. It determines the number of principal component vectors included in the analysis. Default is 0.99.
- __init__(**kwargs)#
Methods
__init__(**kwargs)fill(acq, **kwargs)Fills gaps in the marker position data by exploiting intercorrelations between marker coordinates.
- fill(acq: btkAcquisition, **kwargs)#
Fills gaps in the marker position data by exploiting intercorrelations between marker coordinates.
This method applies gap filling strategies based on marker intercorrelations, as described in the research by Federolf PA (2013) and Gløersen Ø, Federolf P (2016). It is particularly useful in cases where multiple markers have missing data simultaneously.
- Parameters:
acq (btk.btkAcquisition) – A BTK acquisition instance containing the marker position data.
**kwargs – Optional parameters to configure the gap filling process: - method (str): Reconstruction strategy for gaps in multiple markers. Options are ‘R1’ or ‘R2’ (default: ‘R2’). - weight_scale (float): Parameter ‘sigma’ for determining weights (default: 200). - mm_weight (float): Weight factor for missing markers (default: 0.02). - distal_threshold (float): Cut-off distance for distal marker in ‘R2’, relative to average Euclidean distances (default: 0.5). - min_cum_sv (float): Minimum cumulative sum of eigenvalues of normalized singular values. It determines the number of principal component vectors included in the analysis (default: 0.99).
- Returns:
Tuple[btk.btkAcquisition, List[str]] – The filled acquisition and a list of markers that were filled.
Note