oconnor#

pyCGM2.Lib.eventDetector.oconnor(acqGait: btkAcquisition, **kwargs)#

Kinematic-based gait event detection according to Oconnor et al. (2008).

This function detects gait events in a BTK acquisition instance using marker data. It requires the presence of specific markers and can apply a low-pass filter to marker data. The method is based on the approach described by O’Connor CM, et al. Gait Posture. 2007. doi: 10.1016/j.gaitpost.2006.05.016

Parameters:

acqGait (btk.btkAcquisition) – An acquisition instance with gait data.

Keyword Arguments:
  • fc_lowPass_marker (float) – Cut-off frequency of the low-pass filter applied to markers. If not specified or 0, no filtering is applied.

  • order_lowPass_marker (int) – Order of the low-pass filter applied to markers. Defaults to 4 if not specified.

Returns:

Tuple[btk.btkAcquisition, bool] – A tuple containing the updated acquisition instance with detected events, and a boolean indicating the state of the detector.

Example

>>> updated_acq, detection_state = oconnor(acquisition)
Reference:

O’Connor CM, et al. Gait Posture. 2007. doi: 10.1016/j.gaitpost.2006.05.016