generate deep learning si engine model
if you have deep learning toolbox™, and statistics and machine learning toolbox™, you can generate a dynamic (transient) deep learning spark-ignition (si) engine model to use for hardware-in-the-loop (hil) testing, powertrain control, diagnostics, and estimator algorithm design. for example, from physical hardware or from a high-fidelity model, you can fit a deep learning model to measured engine-out transient emissions data and use it for aftertreatment control and diagnostic algorithm development.
to train the deep learning si engine model, powertrain blockset™ uses this transient si engine dataset with fixed sampling.
input data | output data |
---|---|
|
|
to generate the deep learning engine model,
start the si engine dynamometer reference application. enter this command in the matlab® command window.
the data used for the engine dynamometer unpacks.when the engine dynamometer window appears, double-click the generate deep learning engine model box in the lower part of the window. model generation can take several hours.
by default, to train the deep learning engine model, the reference application supplies input and response data from a design of experiment (doe) set of input data from the si core engine block. alternatively, you can use data acquired by physical testing, or generated by powertrain blockset from engine models or other high-fidelity engine models.
during model generation, the training progress window shows how the deep learning loss function (cost function) varies vs. iterations. you can also stop the training process from this window. when processing is complete, the stop button turns green.
note that the powertrain blockset uses half the data to train the model, and half to test the model.
once you generate the deep learning si model, you can view the results.
these pairwise overlays show “test versus train dataset input” at steady state. use them to check that the data used to train and to test the model span the same space, with roughly the same density.
these plots show the seven engine input signals the deep learning model uses to test its ability to create the output responses.
these four plots show the engine outputs. each plot displays the si engine deep learning model predicted output in red and the test data in blue.
these histograms display the modeling error distribution for the four engine outputs, under dynamic (transient) conditions. the error is the difference between the response predicted by the deep learning model and the measured test response of the engine.
the simulation data inspector displays the results of an engine performance test of the trained si engine deep learning model over a matrix of engine speeds and commanded engine torque. you can use the commanded versus measured torque response comparisons to assess the suitability of the deep learning model for use in a vehicle model.
-
this 3-d plot shows output torque versus commanded torque from the quasi-steady state portions of the previous plot. the plot shows each state as a blue dot. the mesh shows a curve fit to those states, so you can visualize the overall output of the si deep learning model.
you can choose the deep learning si model
sidlengine
as your engine plant model variant in the conventional vehicle and hybrid electric vehicle (hev) reference applications in the powertrain blockset. for example, in the conventional vehicle reference application, on the modeling tab, in the design section, open the variant manager. navigate to passenger car > engine. right-clicksidlengine
and select set as label mode active choice.to fit your own deep learning si engine model or adjust the deep learning training settings, go to the reference application project folder and run the
fitsienginedl.m
script in the reference application project folder.
see also
|