ForcePlateAnomalyProcedure#
- class pyCGM2.Anomaly.anomalyDetectionProcedures.ForcePlateAnomalyProcedure(minPlateauDuration: float = 0.005)#
Force plate anomaly detector.
This class is designed to detect anomalies in force plate data, such as saturated signals.
The vertical force Fz is considered saturated when its maximum value is held over a plateau of consecutive analog samples lasting at least
minPlateauDuration(and at leastMIN_PLATEAU_SAMPLESsamples). Two equal samples at the peak are not a saturation.- Parameters:
minPlateauDuration (float, optional) – Minimal duration (s) of the plateau at the maximum. Defaults to 0.005.
Inherits from AnomalyDetectionProcedure.
- __init__(minPlateauDuration: float = 0.005)#
Initializes the ForcePlateAnomalyProcedure class.
Methods
__init__([minPlateauDuration])Initializes the ForcePlateAnomalyProcedure class.
getAnomaly()Returns the detected anomaly.
run(acq, filename, options)Run the force plate anomaly detection procedure.
Attributes
MIN_PLATEAU_SAMPLES- run(acq: btkAcquisition, filename: str, options: Dict)#
Run the force plate anomaly detection procedure.
This method checks force plate signals for anomalies like saturation. The analysis can be customized using the options dictionary.
- Parameters:
acq (btk.btkAcquisition) – A btk acquisition instance.
filename (str) – Filename of the data being processed.
options (Dict) – Additional options passed from the filter. It can include: - ‘frameRange’ (List[int, int]): A list of two integers specifying the start and end frames for the analysis. If not provided, the analysis uses the full range of frames available in the acquisition data.
Note: Other options may be included in the dictionary, but they are not currently used in this implementation.
The
Outputof the anomaly dictionary is{forcePlateNumber: [frames]}for the saturated force plates, with frames expressed in the acquisition (point) frame numbering.