Abstract
In Fused Filament Fabrication (FFF), extrusion flow consistency is critical for print quality but difficult to maintain due to complex material dynamics. This paper introduces a framework for Force Controlled Printing (FCP) that automates controller tuning using Continuous Bayesian Optimization (BO). By evaluating performance in real-time during a single print and leveraging Transfer Learning (TL) from prior tasks, the system achieves significant reductions in extrusion force error and tuning time.
Introduction
The quality of parts produced via Fused Filament Fabrication (FFF) is highly sensitive to extrusion flow, which varies with filament type, nozzle geometry, and print speed. While closed-loop control can mitigate these variations, tuning the underlying controllers is challenging. Standard PID controllers are typically tuned manually, often resulting in suboptimal performance for the nonlinear dynamics of polymer extrusion. This work proposes an automated tuning framework that "learns" optimal controller gains on-the-fly, eliminating the need for a perfect mathematical model of the extrusion physics.
Methodology
The researchers developed a multi-layered approach combining hardware integration and machine learning. A custom FFF printer was equipped with a force sensor to measure filament pressure. An extrusion controller adjusts driver speed to maintain a constant reference force. The controller uses a modified PID structure with four gains ($K_p, K_i, K_d, K_{dd}$), where $K_{dd}$ specifically accounts for the filament's thermal and mechanical lag.
Tuning is performed via "Continuous Bayesian Optimization," which evaluates the Root Mean Square Error (RMSE) of the force every 10 seconds during a 10-minute print. A Gaussian Process (GP) models the objective function, and Transfer Learning (TL) is employed to warm-start the GP with data from previous optimization tasks, drastically reducing the search space for new targets.
Results and Discussion
The system was tested using liquid crystal polymer (LCP) on "tower shell" geometries. Compared to manual tuning, the BO-tuned controller reduced force RMSE by 86.9% for a 0.2 N reference and 94.5% for a 0.4 N reference.
Visual analysis confirmed that "After BO" prints were significantly smoother, especially at corners where velocity changes are most abrupt. Furthermore, Transfer Learning enabled the system to reach optimal configurations in as little as one iteration, representing a 92.8% reduction in tuning time compared to standard BO without prior knowledge.
Conclusion
This data-driven approach to extrusion force control eliminates the need for manual trial-and-error and enables rapid adaptation to new printing conditions. By combining real-time optimization with transfer learning, the proposed framework ensures high-quality prints with minimal setup time. Future research will focus on extending this method to complex, non-repetitive geometries and incorporating direct vision-based quality metrics into the optimization loop.
Summary updated