Infections due to Gram-negative bacteria Helicobacter pylori may result in humans having gastritis, gastric or duodenal ulcer, and even gastric cancer. Investigation of quantitative changes of soluble biomarkers, correlating with H. pylori infection, is a promising tool for monitoring the course of infection and inflammatory response. The aim of this study was to determine, using an experimental model of H. pylori infection in guinea pigs, the specific characteristics of infrared spectra (IR) of sera from H. pylori infected (40) vs. uninfected (20) guinea pigs. The H. pylori status was confirmed by histological, molecular, and serological examination. The IR spectra were measured using a Fourier-transform (FT)-IR spectrometer Spectrum 400 (PerkinElmer) within the range of wavenumbers 3000–750 cm−1 and converted to first derivative spectra. Ten wavenumbers correlated with H. pylori infection, based on the chi-square test, were selected for a K-nearest neighbors (k-NN) algorithm. The wavenumbers correlating with infection were identified in the W2 and W3 windows associated mainly with proteins and in the W4 window related to nucleic acids and hydrocarbons. The k-NN for detection of H. pylori infection has been developed based on chemometric data. Using this model, animals were classified as infected with H. pylori with 100% specificity and 97% sensitivity. To summarize, the IR spectroscopy and k-NN algorithm are useful for monitoring experimental H. pylori infection and related inflammatory response in guinea pig model and may be considered for application in humans.