원시데이터 수집 시스템
선정목록으로

Safe Reinforcement Learning-Based Control for Hydrogen Diesel Dual-Fuel Engines

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Vasu Sharma — Teaching and Research Area Mechatronics in Mobile Propulsion, RWTH Aachen University, Aachen, Germany
  2. Alexander Winkler — Teaching and Research Area Mechatronics in Mobile Propulsion, RWTH Aachen University, Aachen, Germany
  3. Armin Norouzi — Department of Mechanical Engineering, University of Alberta, Edmonton, Canada
  4. Hongsheng Guo — National Research Council, Ottawa, Canada
  5. Jakob Andert — Teaching and Research Area Mechatronics in Mobile Propulsion, RWTH Aachen University, Aachen, Germany
  6. David Gordon — Department of Mechanical Engineering, University of Alberta, Edmonton, Canada
DOI
10.1016/j.ifacol.2025.07.075
저널
IFAC-PapersOnLine
발행년도
2025
발행기관
Elsevier BV
피인용수
0
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.ifacol.2025.07.075
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4413019592

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The urgent energy transition requirements towards a sustainable future span multiple industries and are a significant challenge facing humanity. Hydrogen promises a clean, carbon-free future, with the potential to integrate into existing transportation technologies. However, adding hydrogen to existing technologies such as diesel engines requires additional modeling effort. Reinforcement Learning (RL) enables interactive data-driven learning that eliminates the need for mathematical modeling for controller synthesis. The algorithms, however, may not be real-time capable and need large amounts of data to work in practice. This paper presents a novel approach which uses offline model learning with RL to demonstrate safe control of a 4.5 L Hydrogen Diesel Dual-Fuel (H2DF) engine. An offline H2DF model learning step facilitates the policy search in a simulated environment. The controllers are demonstrated to be constraint-compliant and can leverage a novel state-augmentation approach for sample-efficient learning. The offline policy is subsequently experimentally validated on the real engine where the control algorithm is executed on a Raspberry Pi controller and requires 6 times less computation time compared to online model predictive control optimization.

본문 28,411자

본문 펼치기
## Safe Reinforcement Learning-based Control for Hydrogen Diesel Dual-Fuel Engines Vasu Sharma <sup>_∗∗_</sup> Alexander Winkler <sup>_∗∗_</sup> Armin Norouzi <sup>_∗_</sup> Jakob Andert <sup>_∗∗_</sup> David Gordon <sup>_∗_</sup> Hongsheng Guo <sup>_∗∗∗_</sup> _∗_ _Department_ _of_ _Mechanical_ _Engineering,_ _University_ _of_ _Alberta,_ _Edmonton,_ _Canada_ _∗∗_ _Teaching_ _and_ _Research_ _Area_ _Mechatronics_ _in_ _Mobile_ _Propulsion,_ _RWTH_ _Aachen_ _University,_ _Aachen,_ _Germany_ _∗∗∗_ _National_ _Research_ _Council,_ _Canada_ This work has been submitted to IFAC for possible publication Abstract: The urgent energy transition requirements towards a sustainable future stretch across various industries and are a significant challenge facing humanity. Hydrogen promises a clean, carbon-free future, with the opportunity to integrate with existing solutions in the transportation sector. However, adding hydrogen to existing technologies such as diesel engines requires additional modeling effort. Reinforcement Learning (RL) enables interactive data-driven learning that eliminates the need for mathematical modeling. The algorithms, however, may not be real-time capable and need large amounts of data to work in practice. This paper presents a novel approach which uses offline model learning with RL to demonstrate safe control of a 4.5 L Hydrogen Diesel Dual-Fuel (H2DF) engine. The controllers are demonstrated to be constraint compliant and can leverage a novel state-augmentation approach for sample-efficient learning. The offline policy is subsequently experimentally validated on the real engine where the control algorithm is executed on a Raspberry Pi controller and requires 6 times less computation time compared to online Model Predictive Control (MPC) optimization. _Keywords:_ Hydrogen Diesel Engines, Reinforcement Learning, Machine Learning, Proximal Policy Optimization, Twin Delayed Deep Deterministic Policy Gradients, Deep Learning 1. INTRODUCTION In the coming decades, global warming could result in a mean global temperature rise of 1.5 <sup>_◦_</sup> C from preindustrial levels, which would not only have a seismic impact on our way of life, but also jeopardize sensitive ecosystems worldwide [Intergovernmental Panel on Climate Change, 2022]. Despite major advances, the transportation sector continues to be a significant contributor towards green house gas emissions, with estimated contributions from 16 to 23 percent [Crippa et al., 2023]. Within the transportation sector, the heavy-freight industry disproportionately contributes to roughly 35 percent of the total carbon dioxide (CO2) emissions, despite having a total vehicle footprint of less than 8 percent through buses and trucks [Tracking Clean Energy Progress 2023, IEA, 2023]. Owing to their high thermal efficiency and low maintenance, diesel engines have been a cornerstone of the heavyduty transportation sector. However, due to ever stringent emission regulations worldwide, a cleaner alternative has been sought by the sector. Hydrogen promises a carbonfree alternative which can be used in conjunction with electrification to offer a smoother energy transition for the transportation sector. When combined with conventional diesel engines, hydrogen replaces diesel from the engine _⋆_ Corresponding Author: Vasu Sharma -(e-mail: sharma ~~v~~ @mmp.rwth-aachen.de). in the combustion energy share, thus promoting lower particulate and CO2 emissions. However, complex combustion characteristics can limit the hydrogen fraction and cause abnormal combustion at higher loads, and therefore require complex modeling and calibration. Additionally, higher operating temperatures can lead to increased nitrogen oxide (NOx) formation [Tsujimura and Suzuki, 2017]. With the prospect to synthesize controllers directly from data, Reinforcement Learning (RL) offers an alternative approach. In the last few years, RL has been used to control the variable geometry turbocharger (VGT) vane position along with the injection timing of a diesel engine, to maximize the engine break torque [Malikopoulos et al., 2009], transient boost pressure tracking by controlling the vane position of a VGT-equipped diesel engine [Hu et al., 2019] and fuel consumption minimization among other use cases [Egan et al., 2023]. Virtualized development platforms have also been shown to be effective in saving online training efforts [Koch et al., 2023a,b, Badalian et al., 2024]. However, results from the current literature utilize highfidelity simulation training models, which may not always be available or, when available, are not real-time capable. This also leads to challenges when bringing the learned policies in the simulated environment to the real world [Li et al., 2024]. Moreover, despite the success in simulated environments, only a few multi-objective real-world use cases can be found in the literature [Norouzi et al., 2023]. The control actions are also often low-dimensional and build on existing engine applications instead of controlling the entire combustion process itself. This paper aims to tackle the aforementioned challenges by combining state-of-the-art deep learning models to enable sample-efficient reinforcement learning for a hydrogen diesel engine. The methodology is demonstrated to work for both on-policy and off-policy agents which are trained in a simulated environment. The trained policies are then shown to control the actual process. To the best of the authors’ knowledge, this paper presents the first study to use this technique for real-time control of a hydrogen diesel engine. Based on the current literature, this paper has the following contributions: (1) Deep learning-based offline model learning for RL design (a) A Gated Recurrent Unit (GRU)-based encoder decoder model is developed to capture and represent the engine dynamics and emissions (2) Offline reinforcement learning based control (a) RL agents are trained on the learned model to minimize engine-out emissions and fuel consumption while maintaining the same output load tracking performance. (b) Developed model-based offline-RL controller is demonstrated to reduce the computational time of optimization 2. METHODOLOGY In this paper, a four-step methodology combining deep neural networks (DNN) and RL to control a hydrogen diesel engine is presented. An overview of the methodology is depicted in Fig. 1. Step 1 focuses on system identification using random actuations applied to the engine, and recording the outputs. Then, a GRU-based encoder-decoder style model is learned to represent the plant dynamics through deep learning. This is subsequently used in conjunction with a reward function and state augmentations to learn load tracking and constraint-compliant control through offline model-based reinforcement learning. The effects of state feedback are studied on training and performance for Proximal Policy Optimization (PPO) and Twin Delayed Deep Deterministic Policy Gradients (TD3) agents. Finally, the learned neural network policies are executed on the real engine using a Raspberry Pi controller. 3. GRU ENCODER-DECODER BASED DNN ENGINE MODEL _3.1_ _Experimental_ _Setup_ _Details_ One cylinder of a Cummins QSB 4.5 L 4-cylinder (EPA Offroad Tier 3 certified) engine is modified for port-injected hydrogen to allow for H2DF operation. Hydrogen is injected into the intake runner at the beginning of the intake stroke. Valve timing, combustion chamber geometry, and diesel injectors are stock. Diesel rail pressure is kept at a constant 970 bar for all tests. The production engine Fig. 1. Modeling and controller design procedure based on deep reinforcement learning control unit (ECU) is replaced with a dSPACE MABX 2 (MABX) and RapidPro power electronics. The MABX contains a Field Programmable Gate Array (FPGA) which is used for real-time calculation of the combustion parameters used in this work, including Maximum Pressure Rise Rate (MPRR) and Indicated Mean Effective Pressure (IMEP). The MABX allows for fully flexible control of the diesel injection, hydrogen injection, and diesel pressure. The MABX is then connected to a Raspberry Pi 400 where the developed RL control strategies are run. More details outlining the experimental setup can be found in [Gordon et al., 2022]. 2 Input Layer Fully Connected Layers <mark>GRU Layer</mark> 32 units 32 units Fully Connected Layers Output Layer 32 units 32 units 64 units 8 units 64 units Total Learnables = 7900 Fig. 2. Deep Neural Network Engine Plant Model. GRU: gated recurrent unit, DOI: duration of injection, P2M: pre to main injections, SOI: start of injection, IMEP: indicated mean effective pressure, MPRR: maximum pressure rise rate. _3.2_ _Offline_ _Model_ _Learning_ To model the engine dynamics, performance, and emissions, a DNN model with six fully connected layers and one recurrent unit layer was developed as shown in Fig. 2. The model structure has proven to be effective in similar works in [Gordon et al., 2022, Norouzi et al., 2023, Gordon et al., 2024]. The recurrent units within the DNN are GRUs, which can be described by prediction outputs on the unseen test dataset. Fig. 3 shows the prediction on the unseen test dataset time-series. Table 1. Offline plant learning hyperparame ters Parameter Value Maximum Epochs 1000 Batch Size 512 Gradient Threshold 1 L2 Regularization 0.01 Learning Rate Decay Piecewise at 250 Epochs Initial Learning Rate 0.0005 Learning Rate Drop Factor 0.75 Validation Patience 3 <u>#10</u> <sup>5</sup> <u>#10</u> <sup>5</sup> 0 500 1000 1500 #Cycles / <sup>_⊤_</sup> _u,z_ <sup>_u_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_bz_</sup> <sup>_⊤_</sup> _u,r_ <sup>_u_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_br_</sup> <mark>Measured</mark> <mark>Predicted</mark> _z_ ( _t_ ) = _σ_ _r_ ( _t_ ) = _σ_ - _Wh,z_ <sup>_⊤_</sup> - _Wh,r_ <sup>_⊤_</sup> _h,z_ <sup>_⊤_</sup> <sup>_h_</sup> <sup>(</sup> <sup>_t −_</sup> <sup>1) +</sup> <sup>_W ⊤_</sup> _u,z_ _h,r_ <sup>_⊤_</sup> <sup>_h_</sup> <sup>(</sup> <sup>_t −_</sup> <sup>1) +</sup> <sup>_W ⊤_</sup> _u,r_ - _,_ (1a) - _,_ (1b) <sup>_⊤_</sup> _h,h_ <sup>˜</sup> <sup>(</sup> <sup>_r_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_⊙_</sup> <sup>_h_</sup> <sup>(</sup> <sup>_t −_</sup> <sup>1)) +</sup> <sup>_bh_</sup> <sup>˜</sup> 10 5 0 1500 1000 500 0 1.5 1 0.5 0 15 10 5 0 _h_ ˜( _t_ ) = tanh - _Wu,_ <sup>_T_</sup> _u,_ <sup>_T_</sup> _h_ <sup>˜</sup> <sup>_u_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_W ⊤_</sup> _h,_ _,_ (1c) _h_ ( _t_ ) = (1 _−_ _z_ ( _t_ )) _⊙_ _h_ ( _t −_ 1) + _z_ ( _t_ ) _⊙_ _h_ <sup>˜</sup> ( _t_ ) _._ (1d) where _u_ ( _t_ ) is the input vector to the unit, _z_ ( _t_ ) and _r_ ( _t_ ) are the update gate vector and reset gate vector, respectively. _h_ ( _t_ ) is the output vector of the unit, _h_ <sup>˜</sup> ( _t_ ) is the candidate activation vector, while _W_ and _b_ are the parameter weights and biases to be learned during training. GRU offers the advantage of achieving similar performance in time-series prediction as Long Short-Term Memory units, while using fewer learnable parameters and requiring fewer operations, making them more efficient during training and execution. _Plant_ _Training:_ As shown in Fig. 2, the inputs _u_ ( _t_ ) and outputs _y_ ( _t_ ) of the engine plant model can be denoted as _u_ ( _t_ ) = - - _T_ _u_ DOI,fuel( _t_ ) _u_ P2M( _t_ ) _u_ SOI,fuel( _t_ ) _,_ _u_ DOI,H2( _t_ ) _y_ IMEP( _t −_ 1) _y_ ( _t_ ) = [ _y_ IMEP( _t_ ) _y_ NOx( _t_ ) _y_ Soot( _t_ ) _y_ MPRR( _t_ )] <sup>_T_</sup> _._ (2) The duration of injection (DOI) of the two fuels, diesel (Main) and hydrogen (H2), the time between the pre and the main diesel injection (P2M), and the starting crank angle degree (CAD) of the main diesel injection (SOI) are the control variables of the engine and the DNN model inputs. The engine and DNN model outputs are the IMEP which represents the engine load, nitrogen oxide emissions NOx, particulate emissions(Soot) and MPRR. A dataset for the DNN training of 85,000 consecutive cycles was collected from the engine utilizing a pseudorandom binary input generator to train the DNN. The training parameters are shown in Tab. 1, with an 80/15/5 split between training, validation, and unseen test data. _Results:_ The resulting accuracy of the DNN model can be considered sufficient, with the Root Mean Squared Percentage Error (RMSPE) being under 4.6% for all four Fig. 3. GRU-based network outputs on the test set 4. OFFLINE REINFORCEMENT LEARNING _4.1_ _Reward_ _Modeling_ _with_ _Additive_ _Noise_ The reward formulation term (Eq. 3) consists of multiple penalty terms, namely: control input minimization term _r_, output deviation term _q_, reward staging term _R_ <sup>_−_</sup>, constraint violation penalty term _S_ . The reward is calculated by adding all penalty terms and taking the negative absolute value (Eq. 3). The formulation is designed for multi-objective optimization, as commonly seen in model predictive control (MPC) [Gordon et al., 2022]. 3 Fig. 4. Constraint violation penalty visualized over multi ple output domains. The output deviation term rewards the agent for strict tracking to the required IMEP load reference, while minimizing the emissions (NOx and Soot) and ensuring engine durability (MPRR). In contrast, the control minimization term penalizes the agent for larger control actions during tracking. The reward staging term (Eq. 4) exponentially rewards the agent as it matches the tracking target, where the extra gradient information aims to mitigate the diminishing gradients from the least-square term ( _q_ 1). _4.2_ _State_ _Augmentation_ _with_ _Perturbed_ _Rewards_ The trained plant model is a deterministic mapping (fGRU-NN) from the controls to the output space. While it matches the real process closely in simulations, the experimentally measured signals could still be noisy. Additive Gaussian noise is thus added to the outputs during training to better represent the noisy signals from the actual process. This also perturbs the reward signals, which may help the optimizer from getting stuck in local minima. The applied RL controls ( _uRL_ ) result in an internal state ( _h_ <sup>ˆ</sup> GRU( _t_ )) change for the DNN model-based environment. These updated states can also be accessed by propagating the estimated outputs of the network (Eq. 5). This lookahead during learning informs the RL agents about the current system state. Based on the accuracy of the model and the reward formulation, the agent can choose to use or reject this information with gradient updates. The state feedback also introduces a multi-step temporal feature into the observation model. fGRU-NN( _uRL_ ( _t_ ) _,_ ˜ _y_ IMEP( _t −_ 1)) _→_ _y_ ˆ( _t_ ) _,_ _y_ ˆ( _t_ ) = [ˆ _y_ IMEP( _t_ ) _,_ ˆ _y_ NOx( _t_ ) _,_ ˆ _y_ Soot( _t_ ) _,_ ˆ _y_ MPRR( _t_ )] <sup>_T_</sup> _,_ _y_ ˜( _t_ ) _←_ _y_ ˆ( _t_ ) + _ϵ,_ _ϵ ∼N_ (0 _,_ ˜ _σ_ ) _,_ fGRU-NN( _uRL_ ( _t_ ) _,_ ˜ _y_ IMEP( _t −_ 1)) _→_ _h_ <sup>ˆ</sup> GRU( _t_ ) _._ _4.3_ _RL_ _Training_ (5) _∥_ ( _r_ IMEP _t_ _−_ _y_ IMEP _t_ ) <sup>2</sup> + ( _y_ MPRR _t_ ) <sup>2</sup> - �� - <u>�</u> <u>��</u> _q_ 1 Load Tracking _q_ 2 Combustion Noise The RL agent observes the environment states _o_ ( _t_ ), including the outputs from the last applied controls, the current reference load, and the augmented plant states (Eq. 6, Eq. 7) to decide on the current actions _u_ RL. Thus _o_ ( _t_ ) can be defined as: _o_ ( _t_ ) = [˜ _y_ ( _t−_ 1) ∆˜ _y_ ( _t−_ 1) _r_ load _h_ GRU( _t_ )] <sup>_T_</sup> (6) _y_ ˜( _t−_ 1) = [ _y_ IMEP( _t−_ 1) _y_ NOx( _t−_ 1) _y_ MPRR( _t−_ 1)] <sup>_T_</sup> _,_ ∆˜ _y_ ( _t−_ 1) = [∆ _y_ IMEP( _t−_ 1) ∆ _y_ NOx( _t−_ 1)] <sup>_T_</sup> _,_ _r_ load = [ _r_ IMEP,ref( _t_ ) _r_ IMEP,ref( _t−_ 1) _r_ IMEP,Err( _t−_ 1)] <sup>_T_</sup> _,_ _h_ GRU( _t_ ) = _h_ <sup>ˆ</sup> GRU( _t_ ) _._ (7) _u_ RL( _t_ ) = [ _u_ DOI,fuel( _t_ ) _u_ P2M( _t_ ) _u_ SOI,fuel( _t_ ) _u_ DOI,H2( _t_ )] <sup>_T_</sup> _._ (8) Using the previously elaborated reward model, off-policy and on-policy algorithms are trained in an episodic setting. Random trajectories are generated per episode for a total episodic length of 625 time-steps. Twin Delayed Deep Deterministic Policy Gradients (TD3) is an off-policy, actor critic-style RL algorithm that uses randomly sampled experiences from an experience buffer to train a deterministic policy [Fujimoto et al., 2018]. For improved stability, delayed target updates with policy smoothing and two critic networks are used. Proximal Policy Optimization (PPO) is an on-policy, advantage actor critic algorithm that uses a clipped surrogate objective [Schulman et al., 2017]. Both of these are used in this work. The relevant training parameters are included in Tab. 2. The training plots presented in Fig. 5 highlight the sample efficiency of the state augmented off-policy method. Both state augmented cases not only reach higher reward values, but also do so much faster, compared to their non state augmented counterparts. 4 _α ·_ _N_ _t_ =0 + ( _y_ NOx _t_ ) <sup>2</sup> + ( _y_ Soot _t_ ) <sup>2</sup> <u>�</u> <u>��</u> <u>�</u> _q_ 3 Emissions Minimization ����� _Q_ - _u_ H2DOImain _,t_ �2 + - _u_ DOIMain _,t_ �2 <u>�</u> <u>��</u> <u>�</u> _r_ Control ... - _u_ H2DOImain _,t_ �2 + _u_ DOIMain _,t_ _∥_ - _Nt_ =0 <sup>_Rt_</sup> <sup>=</sup> <sup>_−_</sup>                            _N_ + _β ·_ _t_ =0 + ( _u_ P2M _t_ ) <sup>2</sup> + - _u_ SOIMain _,t_ _u_ P2M _t_ ) <sup>2</sup> + - _u_ SOIMain _,t_ �2 <u>�</u> �� <u>�</u> ...Effort Minimization ����� _R_ ˜ _∥Rt_ <sup>_−∥_</sup> <u>�</u> �� _R_ <sup>_−_</sup> Reward Staging + _ζ ·_ _∥Wt∥_ <u>�</u> �� <u>�</u> _W_ Constraint Violation                        �   (3) + _N_ _t_ =0 _∥Rt_ <sup>_−_</sup> _Rt_ <sup>_−_</sup> <sup>=</sup> <sup>_−_</sup> <sup>0</sup> <sup>_._</sup> <sup>0025</sup> <sup>_×_</sup> <sup>10</sup> <sup>_⌊_</sup> <sup>5</sup> <sup>_−_</sup> <sup>log10(</sup> <sup>_δ_</sup> <sup>IMEP</sup> <sup>_t_</sup> <sup>)</sup> <sup>_⌋,_</sup> (4) where _δ_ IMEP _t_ refers to _|r_ IMEP _t_ _−_ _y_ IMEP _t|_ . Finally, for the agent to discover a safe operating region in the output space, the constraint violation term _S_ signals safety violations caused by the agent’s actions, via large penalties _Wt_ . Safety bounds are pre-selected based on process knowledge and any violations outside the safe polytope result in an _L_ 1-style penalty. The formulation allows soft-safety to be directly included in the optimization objective of the problem and builds on previous work [Norouzi et al., 2023]. The resultant penalty polytope is visualized in Fig. 4 for two arbitrary output domains. The terms in _r_ and _q_ are weighted with weight matrices _R_ ˜ and _Q_ . Moreover, three constants _α, β, ζ_ are needed for relative weighting of the terms between _r_, _q_ and _S_, thus allowing large penalties for constraint violations and output deviations. Table 2. RL training hyperparameters Parameter Value Observation Space Size 16 Action Space Size 4 Training Stop Threshold 9 Optimizer Adam Learning Rate 0.0001 Gradient Threshold 2 Discount Factor 0.99 Experience Buffer Size 100,000 Sample Time 0.08 <u>#10</u> <sup>5</sup> <u>#10</u> <sup>!4</sup> <u>#10</u> <sup>!3</sup> TD3 PPO Reference Constraint:PPO Constraint:TD3 0 -20 -40 -60 -80 -100 10 0 <u>-10</u> -20 -30 <u>-40</u> -50 0 50 100 150 200 250 300 Average Reward TD3 (O,-Policy) Average Reward PPO (On-Policy) ~~Average~~ ~~Reward~~ ~~TD3~~ ~~(No~~ ~~State~~ ~~Feedback)~~ Average Reward PPO (No State Feedback) Training Stop Threshold 0 2000 4000 6000 8000 10000 #Episodes / Fig. 5. RL training for various agents _4.4_ _RL_ _Validation_ The trained RL agents are simulated over a random virtual trajectory with a network in the loop simulation. The agents observe the reference IMEP load to decide on control actions. To demonstrate the robustness of the proposed method, the validation trajectory is approximately 8 times longer than training trajectories with multiple load changes and ramps. The results are included in Fig. 6. Both methods demonstrate excellent tracking behavior, highlighting good credit assignment and generalization of the agents. Noteworthy is the difference in control action chosen by the different agents through the various training constraints. The choice of fuel is particularly of interest, where the PPO agent is able to learn to deploy more hydrogen for the same output load, whereas the TD3 agent prefers to use more diesel, since it has a higher NOx tolerance during training. Another key point is the difference in behavior of the SOI. While the TD3 agent chooses to almost replicate the requested trajectory, the PPO agent does not really change the SOI trajectory much. This behavior suggests that the engine is not particularly sensitive to SOI changes. 5. REAL-TIME IMPLEMENTATION The neural network policies from the trained agents are validated on the actual engine using an ARM CortexA72 64-bit Raspberry Pi 400. MATLAB’s Raspberry Pi interface, Coder, and the Deep Learning toolbox are used to generate executable C code. The Pi 400 receives the current engine states from the MABX, along with the 0 1000 2000 3000 4000 5000 #Cycles / Fig. 6. Constraint compliant load tracking: PPO and TD3 desired IMEP via User Datagram Protocol (UDP) and evaluates the policy network to get control actions. Based on the performance of various networks, a cascaded policy selection controller is developed. The total turnaround time is 1 ms which is 6 times faster than a comparative GRU-based MPC. The validation results are included in Fig. 7. 6. SUMMARY AND CONCLUSIONS This paper presents the integration of reinforcement learning with offline plant learning for controller implementation for a hydrogen diesel engine application. First, a deep learning-based Gated Recurrent Unit (GRU) encoderdecoder model is trained based on real engine data. The learned plant model is then used to train off-policy (TD3) and on-policy (PPO) agents, with a constraint aware reward model and state augmentation. The trained policies are then executed on a Raspberry Pi to control the real engine, which demonstrates a significant reduction in computation time. The paper presents a novel end-to-end data-driven approach to control a real process. The modular approach to plant learning and control can leverage the latest developments in deep learning and reinforcement learning in the future. The developed toolchain does not need any special hardware for real-time execution of the learned policies. 5 8 6 4 2 500 0 4 3 2 1000 500 0 -2 -4 4 3 2 8 6 4 2 1000 500 0 15 10 5 0 <u>#10</u> <sup>5</sup> <u>#10</u> <sup>5</sup> 0 1000 2000 3000 4000 5000 #Cycles/ ~~<mark>Measured</mark>~~ ~~<mark>Reference</mark>~~ on diesel engine emission control. _Energies_, 15(24), 9335. doi:10.3390/en15249335. Gordon, D.C., Winkler, A., Bedei, J., Schaber, P., Pischinger, S., Andert, J., and Koch, C.R. (2024). Introducing a deep neural network-based model predictive control framework for rapid controller implementation. In _2024_ _American_ _Control_ _Conference_ _(ACC)_, 5232– 5237. doi:10.23919/ACC60939.2024.10644830. Hu, B., Yang, J., Li, J., Li, S., and Bai, H. (2019). Intelligent control strategy for transient response of a variable geometry turbocharger system based on deep reinforcement learning. _Processes_, 7(9), 601. doi:10. 3390/pr7090601. Intergovernmental Panel on Climate Change (2022). Summary for policymakers. In _Global_ _Warming_ _of_ _1.5°C:_ _IPCC_ _Special_ _Report_ _on_ _Impacts_ _of_ _Global_ _Warming_ _of_ _1.5°C_ _above_ _Pre-industrial_ _Levels_ _in_ _Con-_ _text_ _of_ _Strengthening_ _Response_ _to_ _Climate_ _Change,_ _Sustainable_ _Development,_ _and_ _Efforts_ _to_ _Eradicate_ _Poverty_, 1–24. Cambridge University Press. doi:10. 1017/9781009157940.001. Koch, L., Brinkmann, T., Wegener, M., Badalian, K., and Andert, J. (2023a). Adaptive traffic light control with deep reinforcement learning: An evaluation of traffic flow and energy consumption. _IEEE_ _Transactions_ _on_ _Intelli-_ _gent_ _Transportation_ _Systems_, 24(12), 15066–15076. doi: 10.1109/TITS.2023.3305548. Koch, L., Picerno, M., Badalian, K., Lee, S.Y., and Andert, J. (2023b). Automated function development for emission control with deep reinforcement learning. _Engineer-_ _ing_ _Applications_ _of_ _Artificial_ _Intelligence_, 117, 105477. doi:10.1016/j.engappai.2022.105477. Li, Y., He, H., Khajepour, A., Chen, Y., Huo, W., and Wang, H. (2024). Deep reinforcement learning for intelligent energy management systems of hybrid-electric powertrains: Recent advances, open issues, and prospects. _IEEE_ _Transactions_ _on_ _Transportation_ _Electrification_, 1. doi:10.1109/TTE.2024.3377809. Malikopoulos, A.A., Papalambros, P.Y., and Assanis, D.N. (2009). A learning algorithm for optimal internal combustion engine calibration in real time. _ASME_ _2007_ _International Design Engineering Technical Conferences_ _and Computers and Information in Engineering Confer-_ _ence_, 91–100. doi:10.1115/DETC2007-34718. Norouzi, A., Shahpouri, S., Gordon, D., Shahbakhti, M., and Koch, C.R. (2023). Safe deep reinforcement learning in diesel engine emission control. _Proceedings_ _of_ _the_ _Institution_ _of_ _Mechanical_ _Engineers._ _Part_ _I,_ _Journal_ _of_ _systems and control engineering_, 237(8), 1440–1453. doi: 10.1177/09596518231153445. Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal policy optimization algorithms. URL `http://arxiv.org/pdf/1707.06347` . Tracking Clean Energy Progress 2023, IEA (2023). Iea (2023), tracking clean energy progress 2023, iea, paris https://www.iea.org/reports/tracking-cleanenergy-progress-2023, licence: Cc by 4.0. URL ``` https://www.iea.org/reports/tracking-clean``` `energy-progress-2023` . Tsujimura, T. and Suzuki, Y. (2017). The utilization of hydrogen in hydrogen/diesel dual fuel engine. _Inter-_ _national_ _Journal_ _of_ _Hydrogen_ _Energy_, 42(19), 14019– 14029. doi:10.1016/j.ijhydene.2017.01.152. Fig. 7. Real-time policy validation results on the actual engine using a neural cascaded controller Real-time capable online fine-tuning could further improve the presented results. The method could also be applied to carbon-free fuels for further emission reduction. ACKNOWLEDGMENTS The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The research was carried out as part of the NRC-MITACS-RWTH Globalink Research Award Program, which is funded by the National Research Council Canada (NRC), MITACS, and Rheinisch-Westf¨alische Technische Hochschule (RWTH) Aachen University. REFERENCES Badalian, K., Koch, L., Brinkmann, T., Picerno, M., Wegener, M., Lee, S.Y., and Andert, J. (2024). Lexci: A framework for reinforcement learning with embedded systems. _Applied Intelligence_, 54(17-18), 8384–8398. doi: 10.1007/s10489-024-05573-0. Crippa, M., Guizzardi, D., Schaaf, E., Monforti-Ferrario, F., Quadrelli, R., Risquez Martin, A., Rossi, S., Vignati, E., Muntean, M., Brandao De Melo, J., Oom, D., Pagani, F., Banja, M., Taghavi-Moharamli, P., K¨oykk¨a, J., Grassi, G., Branco, A., and San-Miguel, J. (2023). _GHG_ _emissions_ _of_ _all_ _world_ _countries:_ _2023_, volume 31658 of _EUR_ . Publications Office of the European Union, Luxembourg. doi:10.2760/953332. Egan, D., Zhu, Q., and Prucka, R. (2023). A review of reinforcement learning-based powertrain controllers: Effects of agent selection for mixed-continuity control and reward formulation. _Energies_, 16(8), 3450. doi: 10.3390/en16083450. Fujimoto, S., van Hoof, H., and Meger, D. (2018). Address ing function approximation error in actor-critic methods. URL `http://arxiv.org/pdf/1802.09477` . Gordon, D.C., Norouzi, A., Winkler, A., McNally, J., Nuss, E., Abel, D., Shahbakhti, M., Andert, J., and Koch, C.R. (2022). End-to-end deep neural network based nonlinear model predictive control: Experimental implementation 6

섹션 본문

섹션 본문이 없습니다.

참고문헌 16건

  1. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling arXiv (Cornell University) · Cornell University · 2014 10.48550/arxiv.1412.3555
  2. A Learning Algorithm for Optimal Internal Combustion Engine Calibration in Real Time 2007 10.1115/detc2007-34718
  3. The utilization of hydrogen in hydrogen/diesel dual fuel engine International Journal of Hydrogen Energy · Elsevier BV · 2017 10.1016/j.ijhydene.2017.01.152
  4. Diagnosing Non-Intermittent Anomalies in Reinforcement Learning Policy Executions (Short Paper) arXiv (Cornell University) · Cornell University · 2017 10.4230/oasics.dx.2024.16
  5. Addressing Function Approximation Error in Actor-Critic Methods arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1802.09477
  6. Intelligent Control Strategy for Transient Response of a Variable Geometry Turbocharger System Based on Deep Reinforcement Learning Processes · Multidisciplinary Digital Publishing Institute · 2019 10.3390/pr7090601
  7. Summary for Policymakers 2022 10.1017/9781009157940.001
  8. Automated function development for emission control with deep reinforcement learning Engineering Applications of Artificial Intelligence · Elsevier BV · 2022 10.1016/j.engappai.2022.105477
  9. End-to-End Deep Neural Network Based Nonlinear Model Predictive Control: Experimental Implementation on Diesel Engine Emission Control Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15249335
  10. Safe deep reinforcement learning in diesel engine emission control Proceedings of the Institution of Mechanical Engineers Part I Journal of Systems and Control Engineering · SAGE Publishing · 2023 10.1177/09596518231153445
  11. A Review of Reinforcement Learning-Based Powertrain Controllers: Effects of Agent Selection for Mixed-Continuity Control and Reward Formulation Energies · Multidisciplinary Digital Publishing Institute · 2023 10.3390/en16083450
  12. Deep Reinforcement Learning for Intelligent Energy Management Systems of Hybrid-Electric Powertrains: Recent Advances, Open Issues, and Prospects IEEE Transactions on Transportation Electrification · Institute of Electrical and Electronics Engineers · 2024 10.1109/tte.2024.3377809
  13. LExCI: A framework for reinforcement learning with embedded systems Applied Intelligence · Springer Science+Business Media · 2024 10.1007/s10489-024-05573-0
  14. Introducing a Deep Neural Network-Based Model Predictive Control Framework for Rapid Controller Implementation 2024 10.23919/acc60939.2024.10644830
  15. sharmavasu/Safe-Reinforcement-Learning-for-Hydrogen-Dual-Fuel-Engine-Control: Safe MBRL with QP Safety Filter Zenodo (CERN European Organization for Nuclear Research) · European Organization for Nuclear Research · 2025 10.5281/zenodo.14884074
  16. Safe reinforcement learning for hydrogen dual-fuel engine control RWTH Publications (RWTH Aachen) · RWTH Aachen University · 2025 10.18154/rwth-2025-02451