A force trace can appear to rise before the sample where the raw signal changes. If the rise appears only after forward-backward filtering, inspect the unfiltered samples before using that trace to establish the order of events. The two-pass filter can use samples on both sides of an event, so its output before the event can depend on data acquired afterward.
Check the sample immediately before a known change
This synthetic trace has 240 samples at 100 Hz. Its value is zero up to sample 99 and one starting at sample 100. Both filters use the same second-order sections from a fourth-order Butterworth low-pass design with a 5 Hz one-pass critical frequency. The first call filters forward from rest. The second filters forward and backward using the full record.
import numpy as np
from scipy.signal import butter, sosfilt, sosfiltfilt
fs = 100
event = 100
x = np.zeros(240)
x[event:] = 1
sos = butter(4, 5, fs=fs, output="sos")
causal = sosfilt(sos, x)
offline = sosfiltfilt(sos, x)
print(causal[event - 1], offline[event - 1])
assert np.isclose(causal[event - 1], 0)
assert np.isclose(offline[event - 1], 0.44878991)
With SciPy 1.18.1 and NumPy 2.5.5, the forward output at sample 99 is zero and the forward-backward output is approximately 0.44879. At sample 95, five samples before the raw change, the forward-backward value is already about 0.09577. These values belong to this particular trace and filter. They do not define a correction that can be applied to other recordings.
Choose which trace answers which question
A zero-phase offline trace can help compare the shape of repeated cycles without the phase shift of one forward pass. Its two-pass magnitude response also differs from the one-pass response. Both properties affect how a filtered trace should be interpreted. A forward-only filter can operate on the measurements available up to the current sample, but smoothing can delay a threshold crossing. Record the actual threshold and filter configuration if that crossing is used as an event timestamp.
For a report on contact timing, preserve the raw force samples and their timestamps. If a separate digital contact signal is available, retain its timestamp and the alignment evidence for both clocks. Show derived traces with separate labels and record the sample rate, filter coefficients, direction, and padding settings. Padding affects the ends of a finite record. A change away from the ends can still influence earlier samples through the backward pass.
The simplest check is to line up the raw trace and the derived traces around a known transition before interpreting a new one. If a report compares two events that are close in time, include the sample interval and any alignment uncertainty in the conclusion.
Sources
SciPy reference for forward-backward filtering and padding
https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.sosfiltfilt.html
SciPy reference for forward second-order-section filtering and initial state
https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.sosfilt.html
SciPy reference for the Butterworth design and critical frequency
https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.butter.html