A method to detect and reduce auto-ignition in a spark-ignited internal combustion engine having at least one cylinder which, together with a piston connected to a crankshaft, bounds a combustion chamber, a combustion chamber pressure sensor configured to measure a pressure in the combustion chamber, a crankshaft angle sensor that supplies a signal which represents a rotation angle of the crankshaft, and a control device configured to perform open-loop and/or closed-loop control of the internal combustion engine, the method comprising:
- during a compression stroke of the internal combustion engine, acquiring values for the combustion chamber pressure at defined crankshaft angles within an evaluation window,
- determining a filtered pressure value from the acquired values for the combustion chamber pressure,
- determining, for the defined crankshaft angles, theoretical pressure values in the combustion chamber that would occur if no combustion were to take place in the combustion chamber,
- determining a value of the pressure difference between the filtered pressure value and the theoretical pressure values,
- comparing the value of the pressure difference with a predefined threshold value,
- if the pressure difference exceeds the predefined threshold value, increasing a counter value associated with a counter of the control device by an increment corresponding to the defined crankshaft angle associated with the corresponding acquired value for the combustion chamber pressure, wherein a lower crankshaft angle generates a larger increment,
- determining an auto-ignition in the combustion chamber if the counter value exceeds a predefined counter threshold value, and
- if auto-ignition is detected, initiating measures to decrease the temperature in the combustion chamber by means of the control device.