[Paper Review] Introducing a Deep Neural Network-based Model Predictive Control Framework for Rapid Controller Implementation
This paper presents a deep neural network (DNN)-based nonlinear Model Predictive Control (NMPC) framework using a Long Short-Term Memory (LSTM) network for real-time control of Homogeneous Charge Compression Ignition (HCCI) engines. Trained on 65,000 engine cycles, the DNN model predicts IMEP, CA50, MPRR, and NOx with under 5% error, enabling real-time NMPC on an ARM Cortex A72 processor with average computation time of 1.18 ms, achieving excellent trajectory tracking (RMS error: 0.133 bar) and constraint satisfaction.
Model Predictive Control (MPC) provides an optimal control solution based on a cost function while allowing for the implementation of process constraints. As a model-based optimal control technique, the performance of MPC strongly depends on the model used where a trade-off between model computation time and prediction performance exists. One solution is the integration of MPC with a machine learning (ML) based process model which are quick to evaluate online. This work presents the experimental implementation of a deep neural network (DNN) based nonlinear MPC for Homogeneous Charge Compression Ignition (HCCI) combustion control. The DNN model consists of a Long Short-Term Memory (LSTM) network surrounded by fully connected layers which was trained using experimental engine data and showed acceptable prediction performance with under 5% error for all outputs. Using this model, the MPC is designed to track the Indicated Mean Effective Pressure (IMEP) and combustion phasing trajectories, while minimizing several parameters. Using the acados software package to enable the real-time implementation of the MPC on an ARM Cortex A72, the optimization calculations are completed within 1.4 ms. The external A72 processor is integrated with the prototyping engine controller using a UDP connection allowing for rapid experimental deployment of the NMPC. The IMEP trajectory following of the developed controller was excellent, with a root-mean-square error of 0.133 bar, in addition to observing process constraints.
Motivation & Objective
- To develop a rapid, data-driven control framework for HCCI engines with high cycle-to-cycle variability and strict emissions constraints.
- To address the computational bottleneck of traditional NMPC by integrating a fast, learned DNN model based on LSTM architecture.
- To enable real-time implementation of NMPC on embedded hardware using the acados optimization framework.
- To achieve precise tracking of IMEP and combustion phasing while minimizing fuel, water, NOx, and pressure rise rates.
- To demonstrate a scalable, efficient controller development pipeline that reduces calibration time compared to conventional look-up table methods.
Proposed method
- A deep neural network (DNN) with one LSTM layer and six fully connected layers was trained on 65,000 experimental HCCI engine cycles to predict IMEP, CA50, MPRR, and NOx.
- The LSTM layer captures long-term dependencies and cyclic coupling in HCCI combustion, improving prediction accuracy over standard RNNs.
- The DNN model was integrated into a nonlinear Model Predictive Control (NMPC) framework to optimize control inputs for load and combustion phasing tracking.
- Real-time NMPC was implemented on an external ARM Cortex A72 processor using the acados software package for efficient online optimization.
- A UDP connection enabled communication between the external processor and the dSPACE MABX ECU for rapid experimental deployment.
- The controller was validated over 650 cycles with process constraints enforced and performance evaluated via RMS error and constraint adherence.
Experimental results
Research questions
- RQ1Can an LSTM-based DNN model accurately predict HCCI engine outputs (IMEP, CA50, MPRR, NOx) with low error using experimental data?
- RQ2Can the integration of a DNN model into NMPC enable real-time control on embedded hardware with sub-millisecond computation times?
- RQ3How well does the LSTM-NMPC track desired IMEP and combustion phasing trajectories while respecting physical and emission constraints?
- RQ4What is the computational overhead of the NMPC loop, and is it feasible within the 22 ms cycle time of the engine?
- RQ5To what extent does the proposed framework reduce controller development time compared to traditional look-up table methods?
Key findings
- The DNN model achieved a root-mean-square error (RMSE) of 0.09 bar for IMEP and 1.27 CAD for CA50, with overall prediction error below 5% across all outputs on validation data.
- The NMPC controller achieved a root-mean-square error of 0.133 bar in tracking the IMEP reference trajectory over 650 cycles.
- The average online optimization computation time was 1.18 ms, with all calculations completed within 1.4 ms, well below the 22 ms cycle time available.
- All process constraints were satisfied for 649 out of 650 cycles, with only one cycle slightly exceeding the 300 ppm NOx limit due to model-plant mismatch.
- The LSTM cell and hidden states dynamically adapted during operation, reflecting the model's ability to capture transient engine behavior.
- The entire controller development pipeline, including data collection (1.5 hours), model training (under 3 hours), and real-time deployment, was significantly faster than traditional calibration approaches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.