You are on page 1of 8

918 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 29, NO.

2, MARCH 2021

Beta-Distribution-Based Knock Probability Estimation, Control Scheme, and


Experimental Validation for SI Engines
Kai Zhao , Yuhu Wu , Member, IEEE, and Tielong Shen , Member, IEEE

Abstract— The fuel efficiency and power output of spark m Length of a segment.
ignition (SI) engines are closely related to the spark timing. n seg Amount of segments.
Advancing the spark timing is usually used as an approach to ns Sample amount.
increase the efficiency. However, under some operating condi-
tions, advanced spark timing can trigger abnormal combustion, pest Estimated knock probability.
which causes knocking. To avoid cylinder damage and to increase ps Knock probability of the sample obtained from
the engine efficiency, feedback control, which addresses the the frequentist approach.
knocking phenomenon as a stochastic process, is required. In this ptar Target knock probability.
brief, a Bayesian estimate of knock probability is used to replace w α0 + β0 .
the maximum likelihood estimate in a likelihood-ratio-based
knock control strategy. The beta distribution is used to represent xi Observed binary knock event at i th cycle, {0, 1}.
the distribution of the knock probability estimate based on the CI Credible interval [–].
independent and identically distributed property of knock events. KI Knock intensity.
The proposed control algorithm is validated on a full-scale test SA Spark advance [◦ BTDC].
bench with a production SI engine and is compared with the TA Throttle angle [◦ ].
conventional spark advance control approach and the maximum-
likelihood-based approach. The results show that the proposed
approach is able to control and maintain a knock probability
close to the target and introduce a low dispersion of spark timing
I. I NTRODUCTION
after convergence.
Index Terms— Bayes’ rule, beta distribution, knock, likelihood
ratio test, spark ignition (SI) engine, statistic control.
I N SPARK ignition (SI) engines, the combustion process
is initiated by a spark, whose timing is required to be
optimized to maintain a certain engine power output, fuel
economy, and emission profile [1], [2]. In most operating
conditions, the spark timing is often advanced and optimized
N OMENCLATURE
toward the maximum brake torque (MBT) location [3]. How-
K adv Gain for the spark timing increase. ever, advanced spark timing can trigger the end gas of the
K ret Gain for the spark timing reduction. combustion and cause a metallic-sounding noise known as
K seg Number of knock events in the segment. knocking. The rapid energy release and pressure oscillations
Pm Intake manifold pressure [bar]. behind such phenomenon lead to vibration through the engine
TKI Threshold of the KI. block and can potentially damage engine structures [4], [5].
X Total observation of binary knock events, In some operating conditions, especially under heavy engine
{x 1 , . . . , x n }. load conditions, the MBTs are located beyond the feasible
α, β Parameters of the beta distribution. SA regions that are free of knocking. To maximize the brake
α0 , β0 Initial parameters of the beta distribution. torque in such conditions while avoiding engine damage, the
λ Likelihood ratio. knock probability, therefore, has to be controlled at or under
λT Threshold of the likelihood ratio. a certain upper bound [6]–[8].
θ Knock probability obtained from the Bayesian A considerable number of studies have addressed knock
approach. phenomenon analysis and detection. Zhen et al. [9] and Shen
ks Number of knock events in the sample. et al. [10] provided reviews on the knock phenomenon and
detection methods. In [11], a transformation that combines a
Manuscript received May 27, 2019; revised September 15, 2019 and
December 20, 2019; accepted March 4, 2020. Date of publication April 6, resonance theory with signal analysis is proposed as a new
2020; date of current version February 9, 2021. Manuscript received in final mathematical tool for in-cylinder pressure resonance intensity
form March 10, 2020. This work was supported by Toyota Motor Corporation, analysis. In [12], the KI is analyzed and modeled using a dual
Japan. Recommended by Associate Editor E. Hellstrom. (Corresponding
author: Tielong Shen.) lognormal model to improve the quality of fit. Bares et al.
Kai Zhao and Tielong Shen are with the Department of Engineering [13] analyzed the in-cylinder pressure using a time–frequency
and Applied Sciences, Sophia University, Tokyo 102-8554, Japan (e-mail: method and proposed a new knock event definition to improve
tylerzhaokai@eagle.sophia.ac.jp; tetu-sin@sophia.ac.jp).
Yuhu Wu is with the School of Control Science and Engineer- knock detection. For knock detection, in-cylinder pressure-
ing, Dalian University of Technology, Dalian 116024, China (e-mail: based methods are proposed in [14]. In [15], the vibration
wuyuhu@dlut.edu.cn). of the engine block is used for knock detection. In [16],
Color versions of one or more of the figures in this article are available
online at https://ieeexplore.ieee.org. rather than knock events, more effort is applied to knock
Digital Object Identifier 10.1109/TCST.2020.2980799 margin estimation. Two approaches, one based on a physical
1063-6536 © 2020 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See https://www.ieee.org/publications/rights/index.html for more information.

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.
ZHAO et al.: BETA-DISTRIBUTION-BASED KNOCK PROBABILITY ESTIMATION, CONTROL SCHEME, AND EXPERIMENTAL VALIDATION 919

model and one employing a gray box for margin estimation, Given that the probability change is small after a slight
are proposed and compared. In addition to this research on SA adjustment, prior knowledge can provide a favorable
knock phenomena, Wu and Naik [17] introduced hardware start for updating the probability estimation. Since the
implementations for digital signal processing, including knock beta distribution is conjugate to the binomial distribu-
and misfire detection, from a more industrial point of view. tion, which represents the likelihood of the observations,
In contrast to the vast number of studies on the knock phe- the estimation update is largely simplified and requires
nomenon, knocking control, which is equally important, has less computing power for real-time control.
received less attention due to the difficulties in the stochastic 3) For knock probability control, motivated by the
control of knock events. A widely used control strategy in likelihood-based method, a likelihood ratio test using the
both production and experimental engines, often called the estimated knock probability and the target probability is
conventional strategy, advances the SA for every nonknocking utilized for decision-making regarding whether an SA
cycle and retards the SA when knock occurs [18]. As a adjustment is necessary.
result, SA is cycled in and out of the knock region, causing Preliminary work can be found in [27], which briefly
a large SA dispersion and a mean SA value that substantially explains knock probability estimation using the Bayesian
below the borderline, which leads to a lower engine efficiency method, and initial experimental results are shown. In this
[19]. In [20], the conventional approach is combined with an brief, more details are described in the online sequential
adaptive method using the likelihood for control gain adjust- estimation of the knock probability and controller parameter
ment, which efficiently reduces the SA variation. Regarding settings. More experimental validations and comparisons are
the stochastic characteristics of combustion and knocking also made in this brief. This brief is organized as follows.
[8], [21], knocking control, in a statistical way, has been In Section II, the experimental environment of the engine test
carried out in many research efforts. In [19] and [21]–[23], bench is introduced. Following that introduction, the charac-
maximum likelihood (ML) estimation-based controllers are teristics of the binary knock signals sampled from a production
proposed and validated in simulations. In [24], the likelihood engine are analyzed. In Section III, the conventional and
controller is further tested on an engine test bench with a the likelihood-based knock probability control schemes are
production SI gasoline engine. In [25], knock limit controllers described. In Section IV, knock probability estimation using
based on the logarithm of the KI and probability estimation the Bayesian method is introduced first. The overall control
with the exponential moving average method are developed structure and parameter settings for the control adjustment are
and tested. Recently, the borderline SA is directly estimated then described in detail. The validation results of the proposed
using the Bayesian method in [26]. This brief indicates that approach are analyzed in Section V. Some challenges and
with a similar response speed as the conventional method, problems of the proposed method are discussed in Section VI.
the Bayesian method can provide less SA dispersion and Finally, brief conclusions are provided in Section VII.
operates closer to the borderline. The experimental results of
these methods have shown a lower SA dispersion than that II. S TOCHASTICITY A NALYSIS OF K NOCK E VENTS
of the conventional method and have shown the viability and
In this section, the relationship between the SA, KI, and
effectiveness of controlling the knock probability statistically.
knock probability is described. Furthermore, the characteristics
Due to the stochasticity of the knock phenomenon, the sta-
of a knock event sequence are analyzed from statistical aspects
tistically estimated knock probability as well as the knowl-
to show that the knock events can be considered i.i.d., and the
edge of the associated uncertainty can help decision-making
sequence can be idealized as a Bernoulli process at a steady
regarding SA adjustment. In addition, we also want to integrate
engine operating condition. However, before discussing the
prior knowledge, if there is any, with the observations in the
property validations, the engine test bench setup is described
estimation process. In this brief, a novel stochastic knock
since all of the data collection, along with the control algo-
control approach based on the Bayesian probability estimation
rithm implementation and validation, is conducted on this
method is proposed. To the best of our knowledge, this is
platform.
the first time that the Bayesian method combined with the
beta distribution has been applied to online knock probability
estimation and control. The main contribution of this brief can A. Engine Test Bench Setup
be summarized as follows. The experiments in this brief are performed on a full-size
1) Classifying KI into binary signals {0, 1} according to a engine test bench with a production engine. The equipped
threshold for knock and nonknock events, respectively, engine is a four-cylinder TOYOTA 2ZR-FXE spark ignition
the independent and identically distributed (i.i.d.) prop- engine (1797 cc, 13:1 compression ratio, 80.5-mm bore, and
erty of the binary knock events is validated using the 88.3-mm stroke). The engine speed and load are controlled
data from a production SI engine. through a dynamometer from Horiba. An ECU from TOYOTA
2) For knock probability estimation, different from the and a CPU-field-programmable gate array (FPGA) embedded
single-point estimation in the frequentist approach, system from dSPACE are used to provide real-time signal
the knock probability with uncertainty is represented by processing and engine control. The in-cylinder pressure is
a beta distribution and is updated in a Bayesian way sampled by piezoelectric pressure sensors from Kistler every
involving the observed binary samples and prior knowl- 0.1 crank angle. The KI is calculated by means of the discrete
edge of the previously estimated knock probability. Fourier transform (DFT) of the measured pressure over a

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.
920 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 29, NO. 2, MARCH 2021

III. E XISTING A PPROACHES


A. Conventional Controller
Conventional knock strategies [3], [18] essentially use only
the target knock probability ptar and binary knock event x for
control. This method is widely utilized in production vehicles.
The SA at each combustion cycle n is calculated as
SA(n + 1) = SA(n) + K adv (1 − x(n)) − K ret x(n). (2)
For every nonknock cycle, the SA is increased by the amount
K adv . If a knock is detected, the SA is decreased by the amount
K ret . To let the knock probability be ptar , the values of K adv
and K ret are assigned to satisfy
K adv (1 − ptar ) = K ret ptar .
In the approach, the knock probability is controlled at ptar ,
but the SA continues to ramp up and drop down around the
Fig. 1. Validation of the knock i.i.d. property. Top: cycle-to-cycle autocor-
SA borderline of the ptar knock probability rather than settle
relation with enlarged section from Lag 1 to Lag 20. Bottom: binary knock down at the borderline, and the resultant distribution of SA,
binomial distribution test. therefore, exhibits a widespread. This control approach is used
as a baseline in the comparison of experimental results.

frequency band from 8 to 10 kHz [28]. The DFT algorithm B. ML-Based Controller
is implemented on a DS5203 FPGA board for real-time
computing. In [23] and [24], the knock probability is estimated using
the ML method as pMLE = k/n, which is the ratio between
the number of knock cycles k and the number of total
observations n. Then, a likelihood ratio test, given by (3),
B. Binary Knock i.i.d. Property Validations is used to determine whether an SA adjustment is necessary,
and the adjustment volume is needed. More details on the
Given a KI threshold TKI , the KI data can be converted into
likelihood ratio test are described in Section IV
the binary values {x i }, where
k
ptar (1 − ptar )n−k
 λ= . (3)
1, K I ≥ TKI
k
pMLE (1 − pMLE)n−k
xi = ∀i ∈ {1, 2, . . . , n s } (1)
0, K I < TKI This control approach uses only observations for probability
estimation and control, that is, when the engine operating
with n s the number of engine cycles, 0 nonknock, and 1 knock. condition is changed, i.e., after SA adjustment, the probability
To validate the cyclically independent property, the auto- estimator resets and restarts from the initial state.
correlation of the binary knock event is calculated. A total
of 39 000 cycles of data are collected at a steady operating IV. A LGORITHM D ESIGN AND C ONTROL S TRUCTURE
condition of 1200 r/min, 70 Nm, and SA = 17◦ before top Regarding the stochastic property of the knock events,
dead center (BTDC). As shown in the top of Fig. 1, all the knock probability control algorithms can be divided into
the autocorrelation values are close to or within the 95% two steps: knock probability estimation and spark timing
confidence bounds (blue lines); thus, it is reasonable to assume control. In this section, the mathematical preliminaries on the
that the binary knock events are cyclically independent. Next, knock probability estimation in a Bayesian way are first intro-
to validate the identically distributed property, the sample duced. Following that step, the proposed control algorithm and
data are equally divided without overlapping into n = 195 details about the parameter settings for control are described.
segments with m = 200 cycles in each. The empirical knock
probability of the whole sample is ps = 1/n ni=1 x i = ks /n s .
If the knock events are identically distributed, then the relative A. Bayesian Method for Knock Probability Estimation
frequency of the knock amount in each segment, kseg , should For probability estimation, due to the stochasticity of the
follow a binomial distribution, that is, kseg ∼ Binom(m, ps ). knock events, a single-value estimation is not enough to
The results are shown in the bottom of Fig. 1. A chi-square express both the estimated knock probability and the degree
goodness-of-fit test (MATLAB chi2gof function) was further of uncertainty in the estimation. The Bayesian method handles
used to give a more statistically quantified measure. The test these problems in a natural way in which the value of the
gives a p-value of p = 0.4785, which indicates that the test knock probability is treated as a variable that follows some
fails to reject the null hypothesis that kseg ∼ Binom(m, ps ) at probability distribution and is updated when more observations
the significance level of 0.05. are made.

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.
ZHAO et al.: BETA-DISTRIBUTION-BASED KNOCK PROBABILITY ESTIMATION, CONTROL SCHEME, AND EXPERIMENTAL VALIDATION 921

observations X in a Bayesian way. The update process can be


simply expressed in the Bayesian inference form as
f (X|θ ) p(θ )
p(θ |X) =  . (7)
 f (X|θ ) p(θ )dθ
1) p(θ ) is the prior probability distribution. In this case,
the beta distribution is used as this prior distribution
that incorporates an estimate of how θ is probably
distributed.
2) f (X|θ ) is the likelihood function. X is a fixed parameter
since it is the observed knock event sequence, while θ
can be varied
n!
f (X|θ ) = L(θ ) = θ k (1 − θ )n−k . (8)
k!(n − k)!
Fig. 2. Beta distribution of different parameters. 3) p(θ |X), the posterior probability distribution, can then
be calculated using the prior distribution and the likeli-
hood. Leaving out the normalizing constant, the denom-
1) Representing a Knock Probability With Uncertainty: Let inator, in (7), it is clear that the posterior is proportional
θ ∈ [0, 1] be the knock probability to be estimated. To repre- to the product of the prior and the likelihood. More
sent θ with uncertainty, a probability density distribution that details on the Bayesian inference can be found in [29]
ranges within [0, 1] is used. Under the assumption that the and [30].
binary knock events are i.i.d., the beta distribution is a natural 3) Conjugate Prior: Replacing the prior distribution and
candidate for its ease of comprehension and computing [29]. likelihood function in (7) with (4) and (8), respectively,
The function of the beta distribution is defined as the posterior distribution becomes
1
Beta(θ |α, β) = θ α−1 (1 − θ )β−1 I(0,1) (θ ) (4) p(θ |X) = Beta(θ |k + α, (n − k) + β) (9)
B(α, β)
where which is therefore another beta distribution, the parameters of
 +∞ which are updated according to the number of knocks k and
(α)(β)
B(α, β) = , (α) = x α−1 e−x dx the total engine cycles n in the observations. The posterior
(α + β) 0 expectation can be simply derived as
and I(0,1) is the characteristic function of (0, 1), that is
 α+k
E(θ |X) = (10)
1, θ ∈ (0, 1) α+β +n
I(0,1) (θ ) =
0, θ ∈
/ (0, 1). without the need to calculate the integral in (7). Let w = α +β
be the sum of the parameters of the prior beta distribution;
The expectation and variance of the beta distribution are as
then, the posterior expectation can be seen as a weighted
follows:
combination of the prior information and observations as
α
E(θ ) = (5) w α0 n k
α+β E(θ |X) = + . (11)
αβ w + n 
w w + n 
n
Var(θ ) = . (6)
(α + β)2 (α + β + 1) prior observation

Let α and β be the amount of knocks and nonknocks in the Taking pest = E(θ |X) as a point estimation of the knock
observed samples, respectively. Since α and β are sufficient probability θ for ease of use in the spark timing control aspect,
to represent the beta distribution, the estimation of the knock we can determine that if the sample size n of the observations
probability θ can also be sufficiently described by the amount is sufficiently large, the prior information is then overwhelmed
of knocks and nonknocks. so that pest = E(θ |X) ≈ nk , which converges to the estimated
Fig. 2 shows the beta distribution with different values of value of pMLE in the ML method.
α and β as its parameters. When α = β = 1, the distribution
becomes the uniform distribution, and when α > 1, β > 1,
the distribution becomes a unimodal distribution where there B. Spark Timing Adjustment Rule
exists only one peak. For the real-world knock probability, The overall control scheme is motivated by the algorithm
the distribution forms a narrow peak close to 0 (α  β). in [23], where the knock probability is estimated using the
2) Estimation Update: Given a proper initial distribution of ML method and the SA adjustment decision is made by the
the knock probability θ , when new observations of n knock likelihood ratio test. In this brief, the probability estimation
events X = x 1 , . . . , x n containing k knocks have been made, is modified in the aforementioned Bayesian way with the
the probability distribution of θ can be updated in light of the decision-making part being retained.

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.
922 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 29, NO. 2, MARCH 2021

1) Likelihood Ratio Test: Given a target knock probability Algorithm 1 Algorithm for Online SA Control
ptar , a likelihood ratio test is used to determine whether an SA
adjustment is necessary. The adjustment volume is similar to
that in the maximum-likelihood-based method in Section III,
with pMLE replaced by the Bayesian knock probability esti-
mation pest as
k
ptar (1 − ptar )n−k
λ= . (12)
k
pest (1 − pest )n−k
Though α and β are used in deriving pest according to (9), n
and k are still used in (12) instead of n+α+β and k +α so that
the test aims to determine whether pest or ptar fits the current
observation better. If pest is identical to ptar , then λ = 1, which
indicates that the estimated probability is equal to the target
probability; thus, there is no need to adjust the spark timing.
If λ > 1, it indicates that observation X is more consistent
with ptar than pest . Therefore, regardless of whether the actual
knock probability is lower or higher than ptar , no action should
be taken at this point. If λ < 1, it suggests that pest is more
consistent with the observation X than ptar . Therefore, if λ is
lower than a preset threshold, λT < 1, it can be considered
that the knock probability in the engine operating condition
has diverged from the target probability and that spark timing
adjustment is necessary.
2) Overall Control Structure and Algorithm: Based on the
aforementioned Bayesian knock probability estimation method
and the likelihood-ratio-based decision-making method, Algo-
rithm 1 shows the details of the control scheme.
In this algorithm, the beta distribution parameters α0 and
β0 are initialized according to w and ptar and are reinitialized
according to pest after an SA adjustment. w is fixed throughout
the whole algorithm. We provide the initial estimate that the
knock probability is close to ptar , and therefore, α0 and β0 are
initialized as w ∗ ptar and w ∗(1− ptar ), respectively. Regarding
SA adjustment, after each SA adjustment, the engine oper-
ating condition changes, which means that the knock event
follows a new probability distribution and that the previous
knock probability estimation is no longer appropriate. Thus,
a reinitialization step is required for the prior beta distribution, likely to fall asleep when the knock probability is close to Ptar
which is triggered by δ = 0 in line 29. As the change of and the likelihood ratio λ stays above λT for a large number
SA is minor for each adjustment, it can be assumed that the of engine cycles. In this brief, at a cost of larger SA dispersion
knock probability change before and after the SA adjustment in the long term, a buffer contains a maximum of one knock
is also small; therefore, pest before the adjustment is used to event that is chosen to retain the alertness to knock probability
reassign the values of α0 and β0 to provide a favorable starting changes and sudden consecutive knock events.
point for knock probability estimation. To keep the controller
alert to consecutive knock events, a buffer of dynamic knock V. E XPERIMENTAL VALIDATION
signal data length is used, and the reinitialization is triggered Experiments were conducted on the engine test bench
as shown in line 29, under condition “knock == 1.” This described in Section II. To validate the proposed control
means that the buffer stores the knock signal data (i.e., method and to compare it to the ML-based method (see [19,
knockNum and nonknockNum) until the first knock event Algorithm 2]) and the conventional method, the parameter
occurs as {0, 0, . . . , 0, 1}. When a knock event occurs, α0 and settings are shown in Table I. The prior number w of α0 + β0
β0 are updated and reinitialized using pest from line 18, which of the proposed method is set to 100 in all experiments
contains the knock information from both the prior values and to retain controller alertness to the knock events. The SA
the data in the buffer, whereas knockNum and nonknockNum adjustment gains K adv and K ret and the likelihood ratio test
are reset to 0. With this buffering mechanism, the controller threshold λT are chosen to be the same as the parameters
focuses more on the short-term knock signal observations, and used in the ML-based method in [20] and [23]. The SA retard
the knock estimation can be frequently updated when knock gain of the conventional method is set to 1.5 (typical for a
occurs consecutively. In other words, the controller is less production system [23]).

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.
ZHAO et al.: BETA-DISTRIBUTION-BASED KNOCK PROBABILITY ESTIMATION, CONTROL SCHEME, AND EXPERIMENTAL VALIDATION 923

TABLE I TABLE II
PARAMETERS OF E ACH A PPROACH R ESULTS OF THE P ROPOSED M ETHOD

Fig. 3. Results of the proposed method [beta 1 (top) and beta 4 (bottom),
from Fig. 4].

A. Steady Operating Condition


To validate the proposed control method under the steady
condition, the engine speed was regulated at 1200 r/min by the
dynamometer, and the engine torque was 70 N·m. The initial
SA was set at SA0 = −2◦ for an overly retarded condition and Fig. 4. Results of each approach. Top row: (B) proposed. Middle row: (M)
SA0 = +2◦ for an overly advanced condition. Experiments ML-based. Bottom row: (C) conventional. Left column: retared start. Right
column: advanced start. Knock signals are corresponding to instances 1 and
were repeated three times for each initial condition. Control 4 of each method in the left and right columns, respectively.
started at the 300th cycle (at the end of the gray section)
in all cases and methods. The results of the SA adjustment
TABLE III
of the proposed method are shown in the top row of Fig. 4. R ESULTS OF THE L AST 1500 C YCLES OF E ACH A PPROACH
The SA adjustment and knock occurrence of cases, betas 1
and beta 4, are shown in Fig. 3. In the overly retarded case,
it takes approximately 1500 cycles for the proposed controller
to increase SA to the borderline. In the overly advanced case,
as can be seen in the bottom of Fig. 3, the SA is decreased
close to the borderline. Besides, SA is retarded more rapidly
in the high knock probability region around the 500th cycle
where consecutive knock events occur more often. The results
of the proposed method corresponding to the six instances in method, the SA and the knock events between the 1500th and
the first row of Fig. 4 are shown in Table II, where the SA sta- the 3000th cycle of the six instances are concatenated to form
tistics and the knock probabilities are calculated using the data a 9000-cycle-long data set for the calculation. The results are
between the 1500th and the 3000th cycle. As a comparison, given in Table III.
the conventional approach and the ML-based approach were In terms of reacting time, the conventional method regulates
performed and the parameters are shown in Table I. Due to the the SA the fastest in both the retarded and the advanced
differences in the algorithm designs, there is no completely initial conditions since the SA adjustment occurs in each cycle.
fair way to compare the performance of the three method; From the perspective of the knock probabilities after control,
therefore, the parameters were chosen as the ones used in the conventional method shows the best matching, whereas
[20] and [23] for the proposed and the ML-based methods, the knock probabilities of the proposed and the ML-based
and a typical retard gain for the conventional method [23], methods slightly deviate from the target. Regarding the SA
as shown in Table I. The results of each method are shown dispersion, as shown in Fig. 4 and Table III, the conventional
in Fig. 4. Regarding the steady-state statistics, for each control method adjusts SA most frequently with large gains and results

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.
924 IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, VOL. 29, NO. 2, MARCH 2021

in the largest SA dispersion. With the same the SA adjust


gains and the threshold for the likelihood ratio test, the SA of
the ML-based method changes more frequently near the SA
borderline with a larger standard deviation than that of the
proposed method.

B. Transient Operating Condition


A tip-in/tip-out experiment was also performed to vali-
date the proposed controller under transient conditions. For
the experimental condition, the engine speed was fixed at
1200 r/min. Controller was enabled at the first cycle with
an initial operating condition as TA = 9.4◦ and SA = 11◦
BTDC, where the SA was the 1% knock borderline SA under
this condition. At the 1000th and the 4000th cycle, the TA was
increased from 9.4◦ (70 N·m) to 10.4◦ (75 N·m) to simulate
a tip-in event; at the 200th cycle, the TA was decreased Fig. 5. Tip-in/tip-out transient response of the proposed method (knock
from 10.4◦ (75 N·m) back to 9.4◦ (70 N·m) to simulate a signals are corresponding to instance 1). Top: SA command. Bottom: TA
sensor read.
tip-out event. The experiment was repeated three times and
the results are shown in Fig. 5, where the knock signal is
corresponding to Instance 1. The horizontal dashed line in
the top plot is the 1% knock probability SA borderline (11◦
BTDC) at T A = 9.4◦ , and the horizontal solid line is the SA
borderline (8.5◦ BTDC) at T A = 10.4◦ . As shown in Fig. 5,
since the initial SA is set to the borderline, the SA remains
close to the borderline in the first 1000 cycles. Once a tip-
in manipulation occurs at the 1000th cycle, the SA is rapidly
retarded at first to reduce knock probability and is finely tuned
near the borderline. For the tip-out event at the 2000th cycle,
the controller takes approximately 200 cycles to determine
that the knock probability is lower than the target and starts
to increase SA toward the upper borderline. When another
tip-in manipulation occurs at the 4000th cycle, the controller
reacts to the change of knock probability within 50 cycles and
reverses the SA adjustment direction to retard SA back to the
lower borderline. Theoretically, the Bayesian estimation will Fig. 6. Instance 1 in Fig. 5 at the second tip-in manipulation.
cause a bias to the prior condition and delay the adjustment.
In the proposed algorithm, α0 and β0 are repetitively reinitial-
ized upon knock events (line 30 in Algorithm 1); therefore, short-term fast reaction to knock events, i.e., a buffer with
with a low value w = 100 for the prior, the bias to the low- higher maximum knock event count limits can contribute to
knock-probability prior condition will be eliminated quickly a more accurate long-term knock probability estimation and a
when knock occurs frequently. Fig. 6 shows the SA adjustment lower SA dispersion but delays the controller reaction to knock
at the second tip-in manipulation of Instance 1 in Fig. 5. probability changes. With a limited number of experiments,
The SA adjustment does not occur immediately after the tip- it is not easy to claim a more general conclusion in a statistical
in manipulation since the SA controller does not detect the sense, but the proposed method exhibits a promising balance
throttle manipulation explicitly. When two knock events occur between the response time and the steady-state behavior.
in a short period after the 4010th cycle, the SA is retarded. Regarding the overall control algorithm, the robustness and
Therefore, though the Bayesian estimation inevitably delays how different gain and likelihood threshold values can affect
the response, the controller still start to retard the SA when the SA adjustment require further analysis. The minimum SA
knock events occur frequently. adjustment is limited to K adv ∗ (1 − λT ) or K ret ∗ (1 − λT ),
as shown in lines 22 and 24 in Algorithm 1. With the use of the
VI. D ISCUSSION CI length, the adjustments can be smaller, but this approach
In the proposed control method, the beta parameters are does not guarantee that the SA will be regulated exactly to
reinitialized whenever a knock event occurs so that the con- the borderline; instead, the resultant SA may fluctuate near
troller is forced to focus more on short-term knock regulation the borderline.
and can react to sudden consecutive knock events more Moreover, since the Bayesian method is used in the prob-
quickly. It is, however, worth noting that there exists an ability estimation step, better prior distributions can lead to
inevitable tradeoff between the long-term SA stability and better control results. In the proposed algorithm, the prior

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.
ZHAO et al.: BETA-DISTRIBUTION-BASED KNOCK PROBABILITY ESTIMATION, CONTROL SCHEME, AND EXPERIMENTAL VALIDATION 925

estimation is based on the previously estimated knock prob- [7] T. Shen, M. Kang, J. Gao, J. Zhang, and Y. Wu, “Challenges and
ability, and the only available input to the controller is the solutions in automotive powertrain systems,” J. Control Decis., vol. 5,
no. 1, pp. 61–93, Jan. 2018.
binary knock signal; therefore, the controller does not directly [8] G. G. Zhu, I. Haskara, and J. Winkelman, “Closed-loop ignition timing
respond to the changes of other factors, i.e., fuel, air, tempera- control for SI engines using ionization current feedback,” IEEE Trans.
ture, speed, and load, until the changes have affected the binary Control Syst. Technol., vol. 15, no. 3, pp. 416–427, May 2007.
[9] X. Zhen et al., “The engine knock analysis—An overview,” Appl.
knock probability. Thus, if these parameters are incorporated Energy, vol. 92, pp. 628–636, Apr. 2012.
within the prior information to provide a better prior beta [10] X. Shen, Y. Zhang, and T. Shen, “Cylinder pressure resonant
distribution, it is reasonable to believe that the responding frequency cyclic estimation-based knock intensity metric in combustion
engines,” Appl. Thermal Eng., vol. 158, Jul. 2019, Art. no. 113756.
speed of the control can be improved. [Online]. Available: http://www.sciencedirect.com/science/
article/pii/S135943111837248X
[11] C. Guardiola, B. Pla, P. Bares, and A. Barbier, “An analysis of the in-
VII. C ONCLUSION cylinder pressure resonance excitation in internal combustion engines,”
In this brief, a beta-distribution-based statistical knock Appl. Energy, vol. 228, pp. 1272–1279, Oct. 2018.
[12] J. C. P. Jones, S. Shayestehmanesh, and J. Frey, “Parametric mod-
probability estimation and control approach for SI engines elling of knock intensity data using a dual log-normal model,”
is presented. The i.i.d. property of binarized knock events Int. J. Engine Res., Sep. 2018, Art. no. 146808741879633, doi:
is first experimentally validated. Based on the i.i.d. property, 10.1177/1468087418796335.
[13] P. Bares, D. Selmanaj, C. Guardiola, and C. Onder, “A new knock event
the knock probability is presented by a beta distribution, definition for knock detection and control optimization,” Appl. Thermal
the estimation of which is updated online under Bayes’ rule. Eng., vol. 131, pp. 80–88, Feb. 2018.
To control the knock probability, the estimated probability and [14] F. Bi, T. Ma, J. Zhang, L. Li, and C. Shi, “Knock detection in spark
ignition engines base on complementary ensemble empirical mode
likelihood ratio test are used along with the CI of the beta decomposition-Hilbert transform,” Shock Vibrat., vol. 2016, pp. 1–17,
distribution of the probability estimation as one of the gains 2016.
for SA adjustment. The proposed approach is implemented [15] N. Li, J. Yang, R. Zhou, and Q. Wang, “Knock detection in spark ignition
engines using a nonlinear wavelet transform of the engine cylinder
and validated on a full-scale test bench equipped with a head vibration signal,” Meas. Sci. Technol., vol. 25, no. 11, Nov. 2014,
production SI gasoline engine. The results of the validation Art. no. 115002.
under steady-state operating conditions show that the proposed [16] G. Panzani, F. Ostman, and C. H. Onder, “Engine knock margin esti-
mation using in-cylinder pressure measurements,” IEEE/ASME Trans.
approach is capable of regulating the knock probability to a Mechatronics, vol. 22, no. 1, pp. 301–311, Feb. 2017.
target value both from overly retarded and overly advanced [17] Z. J. Wu and S. M. Naik, “DSP applications in engine control
spark timing initial conditions. Moreover, compared to the and onboard diagnostics: Enabling greener automobiles,” IEEE Signal
Process. Mag., vol. 34, no. 2, pp. 70–81, Mar. 2017.
conventional and ML-based methods, the proposed method [18] L. Eriksson and L. Nielsen, Modeling and Control of Engines and
exhibits less SA dispersion after the knock probability has Drivelines. Hoboken, NJ, USA: Wiley, 2014.
converged to the target. In future work, more experiments [19] J. C. Peyton Jones, J. M. Spelina, and J. Frey, “Likelihood-based control
of engine knock,” IEEE Trans. Control Syst. Technol., vol. 21, no. 6,
will be performed to analyze the controller performance under pp. 2169–2180, Nov. 2013.
various operating conditions and driving scenarios. It is worth [20] D. Selmanaj, G. Panzani, S. van Dooren, J. Rosgren, and C. Onder,
noting that this brief is an extension of the previous research “Adaptive and unconventional strategies for engine knock control,” IEEE
Trans. Control Syst. Technol., vol. 27, no. 4, pp. 1838–1845, Jul. 2019,
works on knock control [24], [25], [27] that the Bayesian doi: 10.1109/TCST.2018.2827898.
method is intensively used in both the knock probability esti- [21] J. C. P. Jones, J. Frey, K. R. Muske, and D. J. Scholl, “A cumulative-
mation and the online control and presents the latest research summation-based stochastic knock controller,” Proc. Inst. Mech.
Eng. D, J. Automobile Eng., vol. 224, no. 7, pp. 969–983, Jul. 2010.
results. [22] J. Frey, J. C. Peyton Jones, and S. Shayestehmanesh, “Stochastic
simulation of a CumSum knock controller,” IFAC-PapersOnLine, vol. 49,
ACKNOWLEDGMENT no. 11, pp. 210–216, 2016.
[23] J. C. P. Jones, J. Frey, and K. R. Muske, “A statistical likelihood based
The authors would like to thank Toyota Motor Corporation, knock controller,” IFAC Proc. Volumes, vol. 43, no. 7, pp. 809–814,
Japan, for providing laboratory equipment. Jul. 2010.
[24] H. Shi, J. Yang, T. Shen, and J. C. P. Jones, “A statistical likelihood based
knock control scheme,” in Proc. 32nd Chin. Control Conf. (CCC), 2013,
R EFERENCES pp. 7768–7773.
[25] X. Shen and T. Shen, “Real-time statistical learning-based stochastic
[1] L. Guzzella and C. Onder, Introduction to Modeling and Control of knock limit control for spark-ignition engines,” Appl. Thermal Eng.,
Internal Combustion Engine Systems. Berlin, Germany: Springer-Verlag, vol. 127, pp. 1518–1529, Dec. 2017.
2010. [26] J. C. Peyton Jones, S. Shayestehmanesh, and J. Frey, “A Bayesian knock
[2] P. Emiliano, “Spark ignition feedback control by means of combustion event controller,” IEEE Trans. Control Syst. Technol., to be published.
phase indicators on steady and transient operation,” J. Dyn. Syst., Meas., [27] K. Zhao, Y. Wu, and T. Shen, “Stochastic knock control with beta
Control, vol. 136, no. 5, Sep. 2014, Art. no. 051021. distribution learning for gasoline engines,” in Proc. 5th IFAC Conf.
[3] R. Stone, Introduction to Internal Combustion Engines. London, U.K.: Engine Powertrain Control, Simul. Modeling, 2018, pp. 131–136.
MACMILLAN PRESS LTD Houndmills, 1999. [28] M. J. Kearney, “Knock signal conditioning using the discrete
[4] J. B. Heywood et al., Internal Combustion Engine Fundamentals. Fourier transform and variable detection window length,” SAE Tech.
New York, NY, USA: McGraw-Hill, 1988. Paper 2007-01-1509, 2007.
[5] U. Kiencke and L. Nielsen, Automotive Control Systems: For Engine, [29] P. D. Hoff, A First Course in Bayesian Statistical Methods. Dordrecht,
Driveline, and Vehicle. Bristol, U.K.: IOP Publishing, 2000. The Netherlands: Springer, 2009.
[6] Y. Zhang, X. Shen, and T. Shen, “A survey on online learning and [30] M. Allmaras et al., “Estimating parameters in physical models through
optimization for spark advance control of Si engines,” Sci. China Inf. Bayesian inversion: A complete example,” SIAM Rev., vol. 55, no. 1,
Sci., vol. 61, no. 7, Jul. 2018, Art. no. 70201. pp. 149–167, Jan. 2013.

Authorized licensed use limited to: ETH BIBLIOTHEK ZURICH. Downloaded on January 01,2024 at 17:24:41 UTC from IEEE Xplore. Restrictions apply.

You might also like