In this paper the acoustic response of a combustion chamber is studied by assuming different pressure field excitation. The viscous effects on the combustion chamber and the finite impedance of the walls have been modeled with a first order system, which damps the resonance oscillation created by combustion. The characterization of the acoustic response of the combustion chamber has been used to identify the source of the excitation in order to distinguish normal combustion from knock. Two engines, a conventional spark ignited (SI) and a turbulent jet ignition (TJI) engine, were used, fueled with gasoline and compressed natural gas (CNG), respectively. The pressure fluctuations in the combustion chambers are analyzed and a pattern recognition system identifies the most likely source of excitation. This new criteria for knock identification permits a more consistent differentiation between knocking and no-knocking cycles, independent on the amplitude of the phenomenon, thus allowing the improvement for knock control algorithms, specially with combustion modes which heavily excite resonance, such as turbulent jet ignition or homogeneous charge compression ignition (HCCI).