Abstract:
A spark knock detection system is disclosed which has a vibration detector connected in proximity to the engine for converting a vibration into an electrical output signal representative of the vibration. A sampler which is connected to the vibration detector samples the electrical output signal and converts the electrical output signal into a numerical data pattern corresponding to the electrical output signal. A feature extractor which is connected to the sampler converts the numerical data pattern into frequency domain signal portions which have a magnitude. A classifier which is connected to the feature extractor receives the frequency domain signal portions. The classifier has predetermined coefficients for classifying the frequency domain signal portions to indicate the presence of spark knock.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates generally to internal combustion engines and more specifically to an apparatus for recognizing spark knock during the operation of the engine. 
     Spark knock is the phenomenon that occurs when a combustion flame in a cylinder of an engine propagates near the speed of sound. If knock is left uncontrolled, engine damage may occur and emissions levels may increase. Many engine control strategies have developed to remedy spark knock. For example, retarding the ignition point and making the air fuel mixture richer are both strategies employed to reduce spark knock. 
     Accurate detection of spark knock is essential to the durability of an internal combustion engine. Previously, there have been several attempts at accurately determining spark knock. Commonly, systems for determining spark knock use a peak detection-type configuration which compares a vibration signal from an engine sensor to a predetermined threshold. However, such systems have proved unreliable due to increased mechanical and electrical noise in the engine compartment especially at high engine speeds. Increased mechanical and electrical noise decreases the signal-to-noise ratio, making accurate detection difficult. Such systems also have proven to be unreliable in the long term because the threshold values are determined for new engines. Prior art thresholds do not compensate for aging of an engine, causing a generally decreasing detection during the life cycle of the engine. 
     One method of spark knock detection using a threshold is disclosed in U.S. Pat. No. 5,201,292. The &#39;292 patent describes a spark knock detection system which breaks the signal up into energy components and spectral components. Each portion is compared to predetermined thresholds. If the energy component signal or spectral component exceeds its corresponding threshold then there is knock. However, even if the thresholds are adaptively predetermined, the system may very well give errors based on the system noise particularly when the vehicle is running at high RPM. In other words, if the noise peak rises above a predetermined threshold then a knock signal is detected. Another source of error in such a system is if a rock hits the oil pan or other engine component. The noise produced may be determined as a spark knock. Such a system is believed detect an undesirable number of errors. 
     It would therefore be desirable provide a system with a having a high accuracy rate at all portions of the life cycle of an engine. 
     SUMMARY OF THE INVENTION 
     One advantage of the present invention is that an individual vibration sensor output can be analyzed to give the degree of knock which results in a more accurate correction to the engine control strategy. 
     Another advantage is that the whole acoustic signature of spark knock is analyzed which improves the accuracy of the spark knock determination. 
     The present invention has a vibration detection means connected in proximity to the engine for converting a vibration into an electrical output signal representative of the vibration. A sampling means which is connected to the vibration detection means samples the electrical output signal and converts the electrical output signal into a numerical data pattern corresponding to the electrical output signal. A feature extraction means which is connected to the sampling means converts the numerical data pattern into frequency domain signal portions each having a magnitude. A classification means which is connected to the feature extraction means receives the frequency domain signal portions. The classification means has predetermined coefficients for classifying the frequency domain signal portions to indicate the presence of spark knock. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram of a spark knock detection system according to the present invention. 
     FIG. 2 is a graph representing an output of a knock sensor. 
     FIG. 3 is a block diagram of a knock detection system weight determination device. 
     FIG. 4 is a flowchart of the spark knock determination method according to the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Referring to FIG. 1, the function of spark knock detection in an internal combustion engine 10 is monitored by a spark knock detection system 14 according to the present invention. Spark knock detection system 14 receives a signal from sensor 12 to determine the degree of spark knock. Spark knock detection system 14 provides an output signal to an electronic engine controller 16 which adjusts the operating parameters of engine 10 reduce the occurrence of spark knock. 
     Spark knock manifests itself in a vibration (i.e., a ringing) in the block of engine 10 in a particular frequency range. Input sensor 12 is used to convert the vibration of engine 10 into an analog electrical signal. The location of sensor 12 can be either physically on engine 10 or in close proximity to engine 10, as long as it is vibrational coupled. In one configuration, sensor 12 is comprised of a plurality of sensors, each mounted directly to the engine block adjacent a respective cylinder. However, this configuration is cost prohibitive in many applications. Alternatively, one sensor may be used per cylinder bank or one sensor may be used per engine. 
     The physical location of sensor 12 within engine 10 varies depending on the physical characteristics of engine 10 and the number of sensors provided. Every engine type transmits ringing throughout the engine block in different ways due to the physical mass and geometry of the engine block itself. Sensor 12 is optimally located in a position to receive the greatest amplitude of spark knock vibration. Other possible locations of sensor 12 include the oil pan, near a cylinder wall in the water jacket of engine 10 or in the cylinder itself. 
     Sensor 12 is a commonly known sensor which converts vibrations into an analog electrical signal. Examples of such sensors include an accelerometer, an acoustic sensor, a pressure sensor, or stress/strain sensor. These sensors come in many forms such as piezoelectric, capacitive, broad, medium or narrow band, directional, and omni-directional. In one implementation a piezoelectric sensor was found to give desirable results. These sensors can have a linear type output and resonant type output. A linear type output gives a response over a broad frequency span, where as a resonant sensor would provide an output only over a narrow frequency band. 
     Spark knock detection system 14 has a sampler 18, a feature extractor 20, a classifier 22, and an output generator 24. 
     Sampler 18 receives the analog electrical signal from sensor 12 and converts the signal into digital data. Preferably, sampler 18 continuously samples the analog signal from sensor 12 rather than looking only at a particular time window to prevent missing a spark knock event which falls between windows. The frequency of sampling is preferably fixed, for example, at 1024 Hz or integer multiples thereof. The frequency may also be continuously variable, for example between 1024 Hz and 4096  Hz. Increasing the sampling rate is particularly useful when the engine is at high RPM since more electrical and mechanical noise is generated at higher RPM. Increasing the sampling rate reduces error in the spark knock determination by reducing the effect of electrical and mechanical noise introduced into the system. The rate of sampling must be chosen so that the system can make the spark knock determination as rapidly as possible. Too many sampled data points will slow down the processing time of the system. 
     Feature extractor 20 receives the numerical data from sampler 18 and converts it into a usable form for processing. Feature extractor 20 is used to obtain frequency domain data using commonly known data processing techniques. Preferably, feature extractor 20 uses a fast fourier transform, a discrete fourier transform or wavelets to give the power spectrum density which contains frequency and magnitude information. The magnitude and frequency signal corresponding to spark knock varies depending on the engine type. The frequency and magnitude data provides a fingerprint of the sensor signal which is later classified as to whether and to what severity spark knock is occurring. Classifier 22 continuously receives the frequency and magnitude data from feature extractor 20 and determines whether spark knock is present in the system by looking at a predetermined number of prior data points. The number of data points used in the classification is typically a number which corresponds to the length of a power stroke in the individual engine. Classifier 22 preferably uses either an artificial neural network, fuzzy logic or a combination of the two. For example, a neural network may contain fuzzy logic, or the neural network may be placed in series with the fuzzy logic. Classifier 22 is trained to recognize an acoustic signature of spark knock based on a series of preset internal weights which correspond to different portions of the received signal. Weights are multiplied and interpolated using the magnitude of signal portion received from feature extractor 20 to obtain a weighted calculation. The weighted calculation is compared to predetermined values to determine the presence and severity of knock. 
     Output generator 24 receives information from classifier 22 and provides an output signal to the electronic engine control 16 based on the weighted calculation. Output generator 24 can be configured to provide a variety of types of output signals to electronic engine control 16 depending on the capabilities of the inputs to electronic engine output 16. For example, the output signal from output generator 24 to the input of electronic engine control 16 can be either an analog signal, a digital signal a frequency based signal, pulse width modulated signal, a parallel, or a serial signal. 
     If an analog output is provided, the severity of knock is represented by the magnitude of an AC or DC voltage. The output can be configured in a variety of ways. For example, if the output generator had a 0 to 5 volt AC output the sensor could be configured as follows: 
     
         ______________________________________0.0 VAC         Sensor Failure1.0 VAC         0% Knock Occurrence3.0 VAC         50% Knock Occurrence5.0 VAC         100% Knock Occurrence______________________________________ 
    
     Several variations to such a system include increasing the voltage span or reducing the output to span a greater voltage or the percentage breakdown in smaller increments. 
     If a digital output is provided, output generator provides a knock, no-knock indication. An output voltage of 5 volts represents a knock condition. An output voltage of 0 volts represents a no-knock condition. The polarity of the voltages may also be reversed. 
     If a frequency output is provided, the severity of knock is indicated by the modulated of the output signal. The duty cycle in such a configuration is constant (preferably a 50% duty cycle). For example, a designated frequency span between 50 and 150 Hz may have 50 Hz representing 0% knock and 150 Hz representing 100% knock. If the output is linear, 100 Hz represents 50% knock. 
     A pulse width modulated output is another alternative for the output. In such a configuration the pulse width of the signal corresponds to the severity of knock. For example, if the pulse width varies between 1 and 5 msec, 1 msec represents 0% knock and 5 msec represents 100% knock. If the configuration is linear, a pulse width of 3 msec represents 50% knock. 
     If the output generator is configured as a serial or parallel output, the severity of knock is encoded in a digital signal between a pair of start and stop bits as would be commonly known to those in the art. Preferably, the encoded signal would correspond to a standard protocol format. A serial or parallel output configuration is particularly useful for interfacing with external diagnostic devices. For example, information from a particular cylinder or cylinder bank can be analyzed. 
     Referring now to FIG. 2, a representation of an output signal from a sensor is shown from a linear type knock signal, however a resonant type knock sensor signal may also be used. The signal shown is in terms of millivolts/gravity versus frequency in hertz. The signal is sampled by sampler 18 at intervals 26 as shown. Intervals 26 are constant if a constant sampling frequency is used, but the intervals may be variable if a variable sampling frequency is used. Classifier 22 assigns weights to each portion of the signal and multiplies these weights by the signal magnitude for each sampled portion in the determination of the presence of spark knock. 
     Referring now to FIG. 3, internal weights 28 which are used in classifier 29 for spark knock determination are determined by providing a series of engines 30 exhibiting different severities spark knock. These engines are preferably of the same type but are at different stages of their life cycles so as to provide the system with the broadest range of knocking characteristics. A sensor 32, sampler 34 and a feature extractor 36 perform the same function as in FIG. 1 but can be a separate unit from that of FIG. 1. Over time, the internal weights are recursively adjusted until the weights determine spark knock within a desired value of percentage of correct determinations. The wider the variety of engines, engine conditions and spark knock severity provided while determining weights, the closer the system will be to determining knock at 100 percent accuracy. A system according to the foregoing description has correctly determined spark knock at 90-95 percent. Prior art systems are typically 50-60 percent accurate. 
     Referring now to FIG. 4, the system operates according to the flowchart as shown. In step 50 a sensor receives a vibratory signal from the engine from which a determination of knock is to be made. The sensor converts the vibratory signal to an analog electrical signal which is sampled in step 52. In step 54 the sampled sensor signal is converted into numerical data preferably in the frequency domain. 
     The numerical data is then classified as to whether knock has occurred in step 56. If no knock is present in step 58, the sequence is returned to step 50. In step 58 if knock is present a severity of knock signal is output to the engine electronic engine control which is then sent to the engine control strategy in step 62. The engine control strategy is then modified to correct the spark knock in step 64. The engine control strategy may be modified in several ways including retarding the ignition point and/or making the air fuel mixture richer.