Week 29 · April 24, 2026
Attacking the “Center Lane Bias”: DAgger Corrections, Data Augmentation, and Persistent Challenges
April 24, 2026
Evaluation of weak and strong DAgger interventions, identification of a critical data collection bug, and first experiments with horizontal shift augmentation to address lane centering bias.
Work from previous weeks has enabled training a model capable of autonomous driving along the external rural circuit of Town07. Overall assessment indicates:
- Route following: ✅ OK
- Low oscillation: ✅ OK
- 90° turns: ❌ The vehicle takes turns too sharply, mounting the curb.
- Right lane keeping: ❌ The vehicle does not stay in the right lane but instead drives along the center of the road.
Central problem of Week 29: The persistent center lane bias (driving on the lane divider or midline) remains unsolved after previous recovery-sample additions. The vehicle fails to consistently position itself in the right lane, leading to unsafe behavior on narrow roads.
To force the model to learn corrective actions from off-center states, two levels of DAgger (Dataset Aggregation) intervention were implemented:
- Weak DAgger: Steering magnitude threshold of 0.3 — triggers data collection when the vehicle deviates mildly from the lane center.
- Strong DAgger: Steering magnitude threshold of 0.7 — triggers data collection only for more significant departures, capturing more aggressive corrections.
Separate dataset fragments were generated for each condition. When combined, they produced the histogram distribution shown in Figure 1 (curves and 90° turns at intersections were excluded from this analysis to isolate lane-keeping behavior).
📊 Visualización del histograma
Distribución de frecuencias
📊 Figure 1: Histogram of steering commands for weak vs. strong DAgger dataset (schematic representation). Weak DAgger (blue) shows denser sampling around small corrections; strong DAgger (orange) emphasizes larger steering angles.
Results after PilotNet training
Training a PilotNet architecture with the combined DAgger datasets yielded essentially the same results as the previous week. The center lane bias was not resolved. The vehicle still drove over the lane divider and failed to consistently return to the right lane.
🔴 Major finding: An implementation error was discovered in the DAgger script. The system was recording steering samples before the vehicle had reached a stable state after intervention. This produced incorrect, transient steering commands that do not correspond to a stable recovery trajectory.
Corrective action: A stabilization delay (1.5 seconds) was introduced before triggering data recording after each DAgger intervention. All subsequent dataset fragments were regenerated using the corrected script.
Following the recommendations from the PilotNet experiments [2], data augmentation via horizontal (lateral) shifting was implemented to artificially increase the dataset's coverage of off-center positions. This technique synthesises new training examples by translating the camera image horizontally and adjusting the steering target accordingly.
Three augmentation magnitudes were tested, based on the recommended ranges from the literature:
- Shift = 0.002 (subtle augmentation)
- Shift = 0.003 (moderate augmentation)
- Shift = 0.004 (strong augmentation)
Expected effect: Horizontal shift teaches the network that small lateral displacements from the lane center are recoverable with appropriate steering corrections. This directly targets the center lane bias by making the model robust to off-center initial conditions.
Current status
Training with the augmented datasets is currently in progress. As of this report, no definitive results are available. Preliminary loss curves suggest better convergence, but full evaluation on Town07 will be completed early next week.
During the week, important references were shared with the team (@jmplaza, @Juan Calderon) that directly inform the current lane-keeping and DAgger challenges:
- [1] Ross, Gordon & Bagnell (AISTATS 2011): Foundational paper on DAgger as a solution to the lane hugging / lane drifting problem in imitation learning. Establishes the theoretical framework for aggregating expert corrections during online execution.
“A reduction of imitation learning and structured prediction to no-regret online learning.” https://proceedings.mlr.press/v15/ross11a
- [2] Bojarski et al. (arXiv 2020): NVIDIA PilotNet experiments — Section 5.3 explicitly discusses the lane-centering challenge and presents horizontal shift augmentation as an effective remedy. This directly motivated the augmentation strategy implemented this week.
“The NVIDIA pilotnet experiments.” https://arxiv.org/pdf/2010.08776
- [3] Bojarski et al. (arXiv 2016): Original PilotNet paper; while it does not extensively cover the centering bias, it provides the core end-to-end architecture used in our experiments.
“End to end learning for self-driving cars.” https://arxiv.org/pdf/1604.07316
Note: The identified DAgger implementation bug was not discussed in the foundational literature — it represents a practical lesson learned: always ensure the vehicle state has stabilised before recording intervention data.
- ❌ Weak and strong DAgger (thresholds 0.3 and 0.7) did not resolve the center lane bias when trained without augmentation.
- 🐞 A critical bug was found and fixed: DAgger script was recording unstable, transient steering data before vehicle stabilisation.
- ✅ Corrected DAgger datasets have been regenerated and are ready for re-training.
- 🔄 Horizontal shift augmentation (0.002, 0.003, 0.004) has been implemented following PilotNet recommendations [2].
- ⏳ Training with augmented data is ongoing — results expected early Week 30.
- 📚 Foundational literature on DAgger and augmentation has been shared with the research team.
Based on the findings of Week 29, the following actions are planned:
- Complete training and evaluation of PilotNet models with horizontal shift augmentation (all three magnitudes). Compare performance on Town07’s external rural circuit, focusing on lane centering and curb avoidance during 90° turns.
- Retrain with corrected DAgger datasets (both weak and strong) now that the stabilization bug has been fixed. This will provide a clean ablation of DAgger’s true effect.
- Combine corrected DAgger + horizontal augmentation — the most promising hybrid approach. If augmentation alone is insufficient, DAgger should provide additional online corrections.
- Re-evaluate 90° turn performance separately; preliminary observations suggest the steering augmentation may also improve turn trajectories, but this requires dedicated measurement.
- Update Huggingface datasets with corrected DAgger fragments and augmented variants, once validated.
Expected outcome: Horizontal shift augmentation, potentially combined with correctly implemented DAgger, should significantly reduce or eliminate the center lane bias. The vehicle is expected to maintain the right lane consistently without mounting the curb during 90° turns.
Technical note: All experiments continue to use the 1 s frame margin (temporal redundancy removal) validated in Week 22, which has successfully eliminated oscillatory zigzag behaviour.
- The center lane bias is a persistent and challenging problem that resists simple DAgger threshold adjustments when data collection is flawed.
- The discovered stabilization bug in the DAgger script serves as a critical reminder: transient states do not represent recoverable expert behaviour and must be filtered out.
- Horizontal shift augmentation, as recommended by the PilotNet team [2], is a theoretically sound approach to synthesise off-centre examples without requiring additional manual data collection.
- Early indicators (loss curves) for augmented training are promising, but final behavioural evaluation is pending.
- Foundational papers have been shared with the team to align theoretical understanding with practical implementation.
SUMMARY OF FINDINGS – APRIL 24, 2026 (WEEK 29):
❌ Weak/strong DAgger (uncorrected) did not solve center lane bias.
🐞 Critical DAgger bug identified: recording before vehicle stabilisation.
✅ Bug fixed; corrected datasets regenerated.
🔄 Horizontal shift augmentation (0.002–0.004) implemented and training in progress.
📚 Foundational DAgger & PilotNet references shared with team.
🔜 Week 30: Complete augmented training, evaluate corrected DAgger, and combine approaches.
Next steps (detailed):
Starting April 25, we will finalise training for all three horizontal shift magnitudes and evaluate each on Town07’s external rural circuit. Metrics will include: time spent within right lane boundaries, frequency of crossing the lane divider, and curb contact during 90° turns. The corrected DAgger datasets (weak and strong) will then be retrained, both alone and in combination with the best augmentation magnitude. Once the centre lane bias is reliably eliminated, we will publish the successful dataset configurations on Huggingface and proceed to a systematic evaluation of tangent steering preprocessing — postponed from Week 27 until baseline behaviour is stable.
— Armando Mateus, Robotics Lab URJC