Configuration
A configuration is a PipelineConfig with one section per pipeline step. Build it from a dict
(PipelineConfig.from_dict), a JSON file (PipelineConfig.from_json) or a preset
(trajlab.load_preset(name, site=...)); check a dict with trajlab.validate_config(d). Missing options take
the defaults below. Status: supported; experimental (documented experiment, may change);
obsolete (kept for backward compatibility).
Presets: ant2027, default, drone_hgv_paper, drone_topdown, i24_motion, ngsim (experimental), roadside_camera (see trajlab/config/presets/); an experimental preset is not yet evaluated.
projection
Step 1: Frenet projection. (ProjectionConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
true |
supported | Run the step. Defaults to True. |
direction_consistency_min |
float |
0.9 |
supported | Minimum share (0-1) of moving vehicles that must travel in the same direction along the reference line (Step 1), and in the direction of increasing pos_lon (checked again in Steps 3-6). Defaults to 0.9. |
perspective
Optional step after projection: lateral perspective correction of tall vehicles (docs/pipeline/02). (PerspectiveConfig)
| option | type | default | status | description |
|---|---|---|---|---|
correction |
str |
"none" |
supported | "none" (default), "lateral_class_offset" (geometric model) or "constant_class_offset" (one median lateral shift per class group, the simpler alternative of the ablation) or "class_offset_empirical" (the constant shift, re-estimated on the corrected data until the residual HGV-minus-car offset is below tol_m; the first estimate is biased towards zero because shifted HGVs are partly assigned to the neighboring lane) or "class_offset_empirical_view" (one iterated empirical offset per camera view, the method of the ANT 2027 paper; views from the HGV band profile or view_boundaries_m) or "joint_gmm" (experimental: joint estimation with the lane geometry; not recommended, it did worse than the empirical offsets on the evaluation data). Values: none, lateral_class_offset, constant_class_offset, class_offset_empirical, joint_gmm, class_offset_empirical_view. experimental values: 'lateral_class_offset' (geometric model of the offset, not used for the papers), 'joint_gmm' (joint estimation of offset and lanes, not adopted). |
kappa |
dict[str, float] | None |
null |
supported | Class group -> kappa [-], e.g. {"hgv": -0.095}. None: estimated by a first diagnostic pass of the pipeline (needs at least two lanes with HGVs). Defaults to None. |
d_c_m |
float | None |
null |
supported | Lateral position [m] of the camera's ground point in this direction's projected pos_lat frame. Defaults to None. |
offset_m |
dict[str, float] | None |
null |
supported | constant_class_offset: class group -> lateral shift [m] subtracted from pos_lat; None: median class-minus-car offset from a first diagnostic pass. Defaults to None. |
min_points |
int |
30 |
supported | Minimum rows per class, lane and 50 m bin in the diagnostic pass. Defaults to 30. |
max_iter |
int |
4 |
supported | class_offset_empirical: maximum diagnostic passes. Defaults to 4. |
tol_m |
float |
0.05 |
supported | class_offset_empirical: stop when the absolute residual offset is below this [m]. Defaults to 0.05. |
max_offset_m |
float |
2.5 |
supported | class_offset_empirical: safety limit; an estimate above this [m] or one that has not converged after max_iter passes is not applied (warning). The estimate needs cars and HGVs in the same lane; without them it can diverge. Defaults to 2.5. |
joint_offset_scope |
str |
"global" |
experimental | joint_gmm (experimental): the HGV offset is a parameter of the restricted lane mixture, estimated jointly with the lane geometry on a car-only aligned frame; "global" (one offset per direction), "lane" (one per lane, hierarchical prior) or "piecewise" (one per section, smoothness prior). Defaults to "global". Values: global, lane, piecewise. only used by the experimental 'joint_gmm' correction. |
joint_tau_m |
float |
1.5 |
supported | joint_gmm: prior SD of the offset [m], delta ~ N(0, tau^2) (weak; about the largest offsets seen on the recordings of the ANT 2027 paper). Defaults to 1.5. |
joint_lane_tau_m |
float |
0.5 |
supported | joint_gmm / "lane": SD of the lane offsets around their common mean [m]. Defaults to 0.5. |
joint_lane_min_sep_m |
float | None |
2.5 |
supported | joint_gmm / "lane": minimum distance [m] of the displaced HGV centers of adjacent lanes (about an HGV width), i.e. delta_j - delta_{j+1} <= dmu - min_sep. Without it, converging lane offsets can describe one HGV lane as two (non-identifiable); None disables. Defaults to 2.5. |
joint_section_m |
float |
300.0 |
supported | joint_gmm / "piecewise": section length [m]. Defaults to 300. |
joint_smooth_tau_m |
float |
0.3 |
supported | joint_gmm / "piecewise": SD of the change between neighboring sections [m]. Defaults to 0.3. |
joint_hgv_lane_alpha |
float |
0.5 |
supported | joint_gmm: strength of a weak Dirichlet prior on the HGV lane weights favoring the right lanes (alpha from 1 + strength for lane 1 to 1 for the leftmost lane; 0 = uniform). Breaks the delta / delta - dmu ambiguity. Defaults to 0.5. |
joint_hgv_exclude_left_lane |
bool |
true |
supported | joint_gmm: no HGVs in the leftmost lane where there are three or more lanes (StVO section 7(3c)); removes the ambiguity "lane j with delta_j" vs "lane j+1 with delta_j - dmu" for the middle lane. Defaults to True. |
joint_mode_tie_nats |
float |
0.05 |
supported | joint_gmm: candidate offsets (local maxima of the profile, refined) whose log posterior is within this many nats per HGV point of the best count as equivalent; among them the one with the largest HGV share in the right lane is used. Defaults to 0.05. |
joint_profile |
bool |
true |
supported | joint_gmm: evaluate the profile log posterior of the global offset (identifiability diagnosis, stored in the run metadata); its local maxima are the candidate start values. Without it the candidates start from -2, -1, 0, 1 and 2 m. Defaults to True. |
joint_profile_range_m |
float |
3.0 |
supported | joint_gmm: the profile log posterior of the global offset is evaluated on [-range, range] [m]. Defaults to 3.0. |
joint_profile_step_m |
float |
0.05 |
supported | grid step of that profile [m]. Defaults to 0.05. |
joint_max_outer |
int |
20 |
supported | joint_gmm: maximum outer iterations of the offset update. Defaults to 20. |
joint_tol_m |
float |
0.01 |
supported | joint_gmm: stop when the offset changes by less than this [m]. Defaults to 0.01. |
joint_estimate |
dict[str, Any] | None |
null |
supported | joint_gmm: estimate of an earlier run (delta_global, delta_lane or delta_section as in the run metadata); skips the estimation, e.g. to reuse it for a second Step 5 method. With scope "lane" or "piecewise" and only delta_global given, the global stage is taken from it and only the lane / section offsets are estimated. Defaults to None (estimate). |
view_detection |
str |
"hgv_band" |
supported | class_offset_empirical_view: how the camera-view boundaries along s are found: "hgv_band" (steps of the label-free HGV band relative to the car lane centers) or "seams" (tracking evidence: track starts/ends and lateral jumps). Defaults to "hgv_band". Values: hgv_band, seams. experimental values: 'seams' (camera views from the seam detector, experimental). |
view_boundaries_m |
list[float] | None |
null |
supported | fixed view boundaries along s [m] instead of the detection. Defaults to None. |
view_offsets_m |
list[float] | None |
null |
supported | with view_boundaries_m: fixed HGV offset per view [m] (estimate of an earlier run, e.g. for a second Step 5 method); skips the estimation. Defaults to None. |
view_bin_m |
float |
50.0 |
supported | bin length of the HGV band profile [m]. Defaults to 50. |
view_min_segment_m |
float |
150.0 |
supported | minimum view length [m]. Defaults to 150. |
view_min_jump_m |
float |
0.6 |
supported | minimum offset step between views [m]. Defaults to 0.6. |
view_min_hgv |
int |
300 |
supported | minimum HGV samples per view; fewer: the direction-wide estimate is used there. Defaults to 300. |
view_min_car |
int |
1000 |
supported | minimum car samples per view. Defaults to 1000. |
view_blend_m |
float |
25.0 |
supported | the offsets are blended linearly over +-view_blend_m around each boundary [m]. Defaults to 25. |
view_max_offset_m |
float |
5.0 |
supported | per-view safety limit [m] (larger: the direction-wide estimate). Defaults to 5.0. |
view_ambiguous_pp |
float |
5.0 |
supported | readings delta / delta +- dmu closer than this (percentage points of HGV samples within 0.5 m of a car lane center) are decided by the keep-right share and flagged ambiguous. Defaults to 5. |
view_robust_reading |
bool |
true |
supported | robust reading of the per-view offset: the lane-1 share ignores samples in the auxiliary-lane zones, and the keep-right check is skipped when the center criterion separates the best reading from the next by at least view_robust_margin_pp. Defaults to True since 1.0 (False: the earlier reading rule without these two changes). |
view_robust_margin_pp |
float |
10.0 |
supported | see view_robust_reading [percentage points]. Defaults to 10. |
view_max_abs_delta_m |
float | None |
null |
supported | readings with \|delta\| above this [m] are not considered (e.g. 2 m for top-down drones; keep None for oblique set-ups). Only with view_robust_reading. Defaults to None. |
alignment
Step 2: road-edge alignment. (AlignmentConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
true |
supported | Run the step. Defaults to True. |
km_step |
float |
10.0 |
supported | Longitudinal bin width of the road-edge profile in meters. Defaults to 10.0 m. |
smoothing_sigma_m |
float |
30.0 |
supported | Gaussian smoothing sigma of the profile in meters. Defaults to 30.0 m. |
quantile |
float |
0.05 |
supported | Quantile (0-1) of pos_lat per bin that defines the right road edge. Defaults to 0.05. |
target_offset_m |
float |
2.0 |
supported | Lateral position in meters the road-edge profile is moved to (center of lane 1). Defaults to 2.0 m. |
edge_freeze_m |
float |
0.0 |
supported | Length in meters at each end of the profile frozen to the first interior value; 0 disables the freeze. Defaults to 0.0 m (no freeze; a 100 m freeze leaves the reference-line deviation at the ends uncorrected and raises the lane-change density there). |
edge_freeze_bins |
int | None |
null |
obsolete | Legacy setting in bins; overrides edge_freeze_m if set. Defaults to None. legacy setting in bins; use alignment.edge_freeze_m. |
profile_classes |
list[str] | None |
null |
supported | Classes whose positions define the road-edge profile (e.g. ["Car"]: not displaced by perspective); the profile is applied to all rows. Defaults to None (all rows). |
stitching
Optional step: trajectory stitching. (StitchingConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
false |
supported | Run the step. Defaults to False. |
stages |
list[dict[str, Any]] | str | None |
null |
supported | Parameter dicts for cascaded_stitching (keyword arguments of stitch_trajectories). None uses the built-in 4-stage cascade; "overlap" uses overlap_stages() (multi-camera data with overlapping fields of view, I-24 MOTION). Defaults to None. |
bridge_joints |
bool |
false |
supported | Join the fragments of each stitched vehicle with cubic Hermite bridges (bridge_joints: 0.5 s trimmed at both fragment ends, C1 joint). Needed when fragments overlap in time. Defaults to False. |
bridge_trim_sec |
float |
0.5 |
supported | Seconds trimmed at both fragment ends of a joint. Defaults to 0.5 s. |
imputation
Optional step: imputation (re-gridding each track). (ImputationConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
false |
supported | Run the step. Defaults to False. |
fps |
int |
30 |
supported | Frame rate of the imputation grid in Hz. Defaults to 30. |
max_gap_sec |
float |
3.0 |
supported | Longest gap in seconds that is filled; longer gaps stay gaps. Defaults to 3.0 s. |
kinematics
Step 3: kinematic reconstruction (Montanino & Punzo or Savitzky-Golay). (KinematicsConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
true |
supported | Run the step. Defaults to True. |
smooth_window_sec |
float |
4.0 |
supported | Savitzky-Golay window in seconds. Defaults to 4.0 s. |
smooth_window_frames |
int | None |
null |
supported | Explicit window in frames; wins over smooth_window_sec when set. Defaults to None. |
poly_order |
int |
2 |
supported | Polynomial order. Quadratic, because a cubic leaves visible ripples in the acceleration. Defaults to 2. |
max_reversal_m |
float |
15.0 |
supported | Backward motion in meters above which a track is discarded as a tracking error. Defaults to 15.0 m. |
frame_rate |
float |
30.0 |
supported | Nominal recording frame rate in Hz, used by get_smooth_window_frames when no rate is given. Defaults to 30.0 Hz. |
method |
str |
"montanino_punzo" |
supported | "montanino_punzo" or "savgol". Defaults to "montanino_punzo". Values: savgol, montanino_punzo. |
lateral_smooth_window_sec |
float | None |
null |
supported | Savitzky-Golay window in seconds for pos_lat with the montanino_punzo method; None uses the same window as the longitudinal smoothing (smooth_window_sec / smooth_window_frames), i.e. exactly the lateral smoothing of the savgol method. Defaults to None. |
reconstruction |
dict[str, Any] | None |
null |
supported | Alternative longitudinal reconstruction used in place of the Montanino & Punzo steps of the montanino_punzo method (same 10 Hz grid, same write-back), e.g. {"method": "tv", "params": {"lam": 0.03, "order": 3}} or with "params_by_speed": [[20.0, {...}], [null, {...}]] (upper speed bound in m/s per entry, chosen by the vehicle's median speed); see processing.kinematics.filters.track_kinematics. Chosen per dataset by the synthetic recovery test. Mandatory keys: admissible_v_bands (speed bands that passed the counter-check) and edge_s (track-edge exclusion); the output gets the columns recon_admissible and recon_edge. Defaults to None (Montanino & Punzo). |
spatial_correction |
dict[str, Any] | None |
null |
supported | Removes a spatially fixed position error before the longitudinal reconstruction: {"profiles": "<parquet>"}, a table from processing.kinematics.spatial_correction.estimate_spatial_bias for this recording and direction (estimated from the raw positions and the lanes of a first run). Only lanes that passed the time-half cross-validation are corrected; the column spatial_corrected flags the corrected rows. Defaults to None (off). |
kinematics.mp
Parameters of the Montanino & Punzo reconstruction (kinematics.method = "montanino_punzo"). (MontaninoPunzoConfig)
| option | type | default | status | description |
|---|---|---|---|---|
rate_hz |
float |
10.0 |
supported | Rate in Hz at which the method runs. The paper's thresholds refer to 10 Hz (dt = 0.1 s); native samples are averaged in 0.1 s bins on the common grid and the result is interpolated back. Defaults to 10.0 Hz. |
outlier_accel_max_mps2 |
float |
5.0 |
supported | Step 1 (Sec. 2.1) acceleration threshold in m/s^2. Defaults to 5.0. |
outlier_decel_min_mps2 |
float |
-8.0 |
supported | Step 1 deceleration threshold in m/s^2. Defaults to -8.0. |
outlier_reference_points |
int |
10 |
supported | Step 1 spline reference points on each side (1 s at 10 Hz). Defaults to 10. |
lowpass_cutoff_hz |
float |
0.5 |
supported | Steps 2/4 (Sec. 2.2/2.4) Butterworth cut-off in Hz. Defaults to 0.5 (paper: 1.0; at 1.0 Hz many 1 s windows of drone data keep more than one jerk sign inversion). |
lowpass_order |
int |
1 |
supported | Butterworth order. Defaults to 1. |
filter_zero_phase |
bool |
true |
supported | Zero-phase filtering (sosfiltfilt; the magnitude response is applied twice) instead of causal filtering (not specified in the paper). Defaults to True. |
filter_padlen_sec |
float | None |
null |
supported | Zero-phase filtering only: length of the odd extension at both track ends in seconds (sosfiltfilt(padtype="odd")). None keeps the scipy default of 3 * (2 * n_sections + 1) samples (0.9 s at 10 Hz for order 1), whose start-up transient reaches about 1 m/s2 within the first and last 3-4 s; a longer padding does not reduce it. Defaults to None. |
edge_method |
str |
"pad" |
supported | Zero-phase only: "pad" (odd extension, the behavior up to v1.0) or "gust" (Gustafsson's initial conditions; halves the track-end error without cutting data). Defaults to "pad". |
window_a_min_mps2 |
float |
-3.0 |
supported | Eq. 2 a_min in m/s^2 (also the Step 3 trigger). Defaults to -3.0. |
window_a_max_mps2 |
float |
2.0 |
supported | Eq. 2 a_max in m/s^2. Defaults to 2.0. |
window_lookahead |
int |
5 |
supported | Eq. 2 c, look-ahead samples. Defaults to 5. |
rec_a_min_mps2 |
float |
-5.0 |
supported | Eq. 3i a_Rec,min in m/s^2. Defaults to -5.0. |
rec_a_max_mps2 |
float |
3.0 |
supported | Eq. 3i a_Rec,max in m/s^2. Defaults to 3.0. |
phi_mps2 |
float |
1.0 |
supported | Eq. 3g/h relaxation of the acceleration continuity in m/s^2. Defaults to 1.0. |
max_jerk_inversions |
int |
1 |
supported | Eq. 3j D, maximum jerk sign inversions per window. Defaults to 1. |
jerk_window_sec |
float |
1.0 |
supported | Eq. 3j Z in seconds (the paper's "s = 1 s"). Defaults to 1.0 s. |
max_window_sec |
float |
10.0 |
supported | Longest reconstruction window in seconds before an outlier is left as it is (not in the paper). Defaults to 10.0 s. |
h_min_m |
float |
1.0 |
supported | Eq. 2e/3l minimum spacing to the leader in meters (platoon-consistency post-pass only). Defaults to 1.0 m. |
platoon_consistency |
bool |
false |
experimental | Run the platoon-consistency post-pass (Eq. 2e/3l) after Step 6. Defaults to False. Montanino & Punzo platoon post-pass, not extended. |
max_platoon_iterations |
int |
10 |
supported | Iterations within circular leader-follower groups in the post-pass. Defaults to 10. |
trim_track_ends_sec |
float | None |
2.0 |
supported | If set, cut each track end whose output acceleration lies outside the Step 1 outlier bounds within this many seconds of the end, up to the deepest such row (Step 1 never moves the end positions; not in the paper). Defaults to 2.0 since 1.0 (None: off). |
trim_track_ends_fixed_sec |
float | None |
null |
supported | If set, cut this many seconds from both ends of every track, unconditionally (removes the start-up transient of the filter; tracks shorter than twice the cut are dropped). Defaults to None (off). |
lanes
Step 4: GMM lane tracking. (LanesConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
true |
supported | Run the step. Defaults to True. |
n_main_lanes |
int |
3 |
supported | Lanes of the main carriageway (without auxiliary lanes); upper bound for the GMM component count. Defaults to 3. |
auxiliary_lane_zones |
list[AuxLaneZone] |
[] |
supported | Sections with an auxiliary lane (lane 0), in pos_lon meters. Also used by the alignment. Defaults to no zones. |
lon_step_m |
float |
50.0 |
supported | Step between rolling GMM window centers in meters. Defaults to 50.0 m. |
window_size_m |
float |
200.0 |
supported | Longitudinal width of each GMM window in meters. Defaults to 200.0 m. |
max_drift_m |
float |
2.0 |
supported | Maximum lateral drift in meters when matching lane centers between windows. Defaults to 2.0 m. |
assignment_method |
str |
"hmm" |
supported | How Step 5 turns the Step 4 labels into lane_fixed: "heuristic" (crossovers of the detected lane changes, piecewise-constant segments, frame-wise conflict re-assignment) or "hmm" (hidden Markov model, processing.lanes.hmm). Defaults to "hmm" since 1.0. Values: heuristic, hmm. |
resolve_conflicts |
bool |
true |
supported | Cross-vehicle conflict resolution of Step 5 (heuristic: frame-wise re-assignment of overlapping vehicles and edge snapping; HMM: feasibility re-decoding). Off only for evaluation (to measure the effect of the resolution). Defaults to True. |
keep_unresolved_lane |
bool |
false |
supported | Also output lane_fixed_unresolved, the Step 5 labels before the conflict resolution (evaluation). Defaults to False. |
gmm_model |
str |
"restricted" |
supported | Step 4 mixture per window: "restricted" (default; Chen & Krumm 2010: n_main_lanes equally spaced components with one shared variance, MAP-EM with priors; plus a free auxiliary-lane component in zones) or "free" (GMM with 1..n_main_lanes free components, BIC selection; the original behavior). Values: free, restricted. |
gmm_prior_eta_m |
float |
3.75 |
supported | "restricted": prior mean of the lane spacing (nominal lane width). Defaults to 3.75 m. |
gmm_prior_kappa |
float |
100.0 |
supported | "restricted": prior strength of the spacing, dmu \| sigma2 ~ N(eta, sigma2 / kappa). Defaults to 100. |
gmm_prior_nu |
float |
3.0 |
supported | "restricted": shape parameter of the variance prior sigma2 ~ Inv-Gamma(nu / 2, varsigma2 / 2). Defaults to 3. |
gmm_prior_varsigma2_m2 |
float |
0.25 |
supported | "restricted": scale of that prior (m^2; prior mean of sigma2 = varsigma2 / (nu - 2)). Defaults to 0.25 (Chen & Krumm: 4 m^2 for GPS; drone positions have centimetre noise). |
lane_count_zones |
list[LaneCountZone] |
[] |
supported | Sections with a different number of main lanes (lane gain/drop); dicts are converted. Step 4 uses the local lane count per window (exact for "restricted", upper bound for "free"), lanes that end are removed from tracking at once and not extrapolated, and the HMM allows a lane only where Step 4 has a center for it. Defaults to none (n_main_lanes everywhere). |
lanes.hmm
Hidden-Markov-model lane assignment (lanes.assignment_method = "hmm"). (HmmConfig)
| option | type | default | status | description |
|---|---|---|---|---|
rate_in_event |
float |
2.0 |
supported | Rate (1/s) of a switch towards the detected side inside a detector interval. Defaults to 2.0. |
rate_background |
float |
0.001 |
supported | Rate (1/s) of any other switch. Defaults to 1e-3. |
sigma_floor_m |
float |
0.4 |
supported | Minimum lateral spread of a lane (m). Defaults to 0.4 (0.2 in the original specification). |
epsilon |
float |
0.001 |
supported | Weight of the outlier floor in the emission. Defaults to 1e-3. |
emission_floor |
str |
"relative" |
supported | "relative" (floor relative to the best lane, default) or "uniform" (uniform over the lateral range, as originally specified); see processing.lanes.hmm.emission_logprob. |
initial_geometry |
str |
"labels" |
supported | Where the lane centers of the first decoding come from: "labels" (default; medians of the Step 4 labels per em_bin_m bin outside detector intervals, smoothed with em_smooth_sigma_m) or "tracker" (the rolling GMM tracker centers of Step 4, interpolated along s). |
zone_margin_m |
float |
10.0 |
supported | Lane 0 is valid up to this distance (m) beyond the ends of an auxiliary-lane zone. Defaults to 10.0. |
merge_gap_s |
float |
1.0 |
supported | Detector intervals of one vehicle less than this far apart (s) form one manoeuvre for the A -> B -> A collapse (excursion split into "out" and "back"). Defaults to 1.0. |
max_dwell_s |
float |
2.0 |
supported | A->B->A inside one joined manoeuvre window is collapsed to A only if the time in B is at most this (s; a longer stay in B counts as two real lane changes). Defaults to 2.0. |
aux_lane_fallback |
bool |
true |
supported | If zones are configured but Step 4 gave lane 0 no points, lane 0 still exists with center c_1 minus a lane width (e.g. a short deceleration lane at the end of the section). Defaults to True. |
conflict_margin_m |
float |
1.0 |
supported | Feasibility: two vehicles in one lane conflict if their centers are closer than (L1 + L2) / 2 plus this margin (m). Defaults to 1.0. |
conflict_penalty |
float |
-9.210340371976182 |
supported | Log-penalty added to the emission of the less confident vehicle for the occupied lane on conflict frames. Defaults to log(1e-4). |
max_conflict_iterations |
int |
10 |
supported | Re-decoding rounds. Defaults to 10. |
duplicate_min_overlap_sec |
float |
1.0 |
supported | Conflicts longer than this (s) between two confident vehicles less than duplicate_max_lateral_m apart are flagged as suspected duplicate tracks instead of re-assigned. Defaults to 1.0. |
duplicate_min_confidence |
float |
0.9 |
supported | Duplicate flag: the lane confidence (0-1) of both vehicles must exceed this (see duplicate_min_overlap_sec). Defaults to 0.9. |
duplicate_max_lateral_m |
float |
0.5 |
supported | Duplicate flag: the vehicles must be laterally closer than this [m] (see duplicate_min_overlap_sec). Defaults to 0.5. |
max_em_iterations |
int |
3 |
supported | Alternating estimation of lane centers and labels. Defaults to 3. |
em_tolerance |
float |
0.001 |
supported | Stop when less than this share of labels changes. Defaults to 0.001 (0.1 %). |
em_bin_m |
float |
10.0 |
supported | Bin length of the center re-estimation (m). Defaults to 10.0. |
em_smooth_sigma_m |
float |
30.0 |
supported | Gaussian smoothing of the center profile (m). Defaults to 30.0. |
min_points_per_bin |
int |
10 |
supported | Minimum points of a lane in a bin (about one vehicle per 10 m bin at 30 Hz). Defaults to 10. |
conflict_damping |
bool |
true |
supported | Damped conflict resolution: only conflict episodes of a pair lasting at least conflict_min_duration_sec are resolved, the penalty window of the re-assigned vehicle covers at least conflict_hold_sec (not into its detected lane changes), and every conflict episode of a pair is resolved at most once. Defaults to True since 1.0 (False: every conflict frame is resolved, the behavior before 1.0). |
conflict_min_duration_sec |
float |
1.0 |
supported | t_min of the damping (s). Defaults to 1.0. |
conflict_hold_sec |
float |
2.0 |
supported | t_hold of the damping (s). Defaults to 2.0. |
min_aux_zone_m |
float |
50.0 |
supported | The HMM ignores auxiliary-lane zones shorter than this (m): their lane center cannot be estimated from the 50 m bins, the auxiliary state then pulls lane-1 vehicles in and must release them at the zone edges. The zones stay in the site configuration (alignment, heuristic). Defaults to 50.0 since 1.0, the bin length of the auxiliary-lane center estimate (0.0: off). |
lane_change
Step 5: lane-change detection and lane correction. (LaneChangeConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
true |
supported | Run the step. Defaults to True. |
lat_speed_threshold_mps |
float |
0.1 |
supported | Smoothed lateral speed in m/s above which a lane-change interval starts. Defaults to 0.1 m/s. |
median_kernel_sec |
float |
0.167 |
supported | Median-filter width in seconds for the lateral velocity. Defaults to 0.167 s (5 samples at 30 Hz). |
sewma_halfwidth_sec |
float |
0.5 |
supported | Half-width of the SEWMA kernel in seconds. Defaults to 0.5 s (15 samples at 30 Hz). |
sewma_width_sec |
float |
0.31637405270099683 |
supported | Width T of the symmetric exponential kernel (Thiemann et al. 2008) in seconds; per vehicle alpha = exp(-dt / T). Defaults to 0.3164 s (the former alpha = 0.9 at 30 Hz). |
sewma_alpha |
float | None |
null |
obsolete | Deprecated per-sample decay factor; if set, it is read at 30 Hz, converted to sewma_width_sec and a DeprecationWarning is emitted. Defaults to None. deprecated (read at 30 Hz, warns); use lane_change.sewma_width_sec. |
min_displacement_m |
float |
1.5 |
supported | Minimum lateral displacement in meters of a lane change. Defaults to 1.5 m. |
edge_buffer_m |
float |
30.0 |
supported | Events whose crossing lies within this distance (m) of either end of the road get near_road_end = True (artefacts of the section ends are concentrated there; excluded from behavioral statistics by default). Defaults to 30.0 m. |
resampling
Resampling onto the common output grid (before Step 6). (ResamplingConfig)
| option | type | default | status | description |
|---|---|---|---|---|
rate_hz |
float | None |
10.0 |
supported | Rate of the grid t0 + k / rate_hz in Hz; None keeps the native rate. Defaults to 10.0 Hz. |
interpolate_columns |
list[str] |
[] |
supported | Columns always interpolated linearly in time (must be numeric). Defaults to []. |
nearest_columns |
list[str] |
[] |
supported | Columns always taken from the nearest native sample. Defaults to []. |
drop_columns |
list[str] |
[] |
supported | Columns left out of the output. Defaults to []. |
surroundings
Step 6: surrounding vehicles. (SurroundingsConfig)
| option | type | default | status | description |
|---|---|---|---|---|
enabled |
bool |
true |
supported | Run the step. Defaults to True. |
default_vehicle_length_m |
float |
4.5 |
supported | Vehicle length in meters used when the input has no length column. Defaults to 4.5 m. |
tie_tolerance_m |
float |
0.001 |
supported | Longitudinal distance in meters up to which an adjacent-lane vehicle counts as exactly side by side; such a vehicle is a rear neighbor (negative clearance), never a front one. Defaults to 1e-3 m. |
Top level
Options of the whole pipeline. (PipelineConfig)
| option | type | default | status | description |
|---|---|---|---|---|
round_decimals |
int | None |
2 |
supported | Decimals all float64 output columns are rounded to at the end; None keeps full precision. Defaults to 2. |