Next Article in Journal
Carbonation Perception and Texture Characteristics of Carbonated Beverages Using Focus Group Interviews and Free-Sorting Tasks
Previous Article in Journal
Role of Endogenous and Exogenous Phenolic Compounds on the Formation of Acrylamide and Fluorescent Advanced Glycation End Products in Heated Quinoa and Cañihua Flours
Previous Article in Special Issue
Multivariate Quantitative Prediction of Soluble Solids Content, Moisture Content, and Fruit Firmness in ‘Dinosaur Egg’ Apricot Plum via Near-Infrared Spectroscopy with Cross-Parameter Feature Fusion and SHapley Additive exPlanations-Based Optimization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Estimating Acrylamide and 5-Hydroxymethylfurfural Levels in Crackers Using Computer Vision: Effects on Consumer Acceptance

by
Franco Pedreschi
1,*,
Darwin Castillo
2,
Andrea Bunger
2,†,
Romina Pedreschi
3,4,
Diego García-Ríos
3,
Juan E. Alvaro
3,
María Salomé Mariotti-Celis
5,
Marcela Medel-Maraboli
6,
Américo Contreras
6 and
Domingo Mery
7,*
1
Departamento de Ingeniería Química y Bioprocesos, Facultad de Ingeniería, Pontificia Universidad Católica de Chile, P.O. Box 306, Santiago 6904411, Chile
2
Departamento de Ciencia de los Alimentos y Tecnología Química, Facultad de Ciencias Químicas y Farmacéuticas, Universidad de Chile, P.O. Box 233, Santiago 8380000, Chile
3
Escuela de Agronomía, Facultad de Ciencias Agronómicas y de los Alimentos, Pontificia Universidad Católica de Valparaíso, Calle San Francisco s/n, La Palma, Quillota 2260000, Chile
4
Millennium Institute Center for Genome Regulation, Santiago 8320000, Chile
5
Escuela de Nutrición y Dietética, Facultad de Medicina, Universidad Finis Terrae, Pedro de Valdivia 1509, Santiago 7501015, Chile
6
Facultad de Ciencias Agronómicas, Universidad de Chile, Santa Rosa 11315, La Pintana, Santiago 8820808, Chile
7
Departamento de Ciencia de la Computación, Facultad de Ingeniería, Pontificia Universidad Católica de Chile, P.O. Box 306, Santiago 6904411, Chile
*
Authors to whom correspondence should be addressed.
Deceased.
Foods 2026, 15(11), 2011; https://doi.org/10.3390/foods15112011
Submission received: 30 April 2026 / Revised: 27 May 2026 / Accepted: 2 June 2026 / Published: 4 June 2026

Abstract

Crackers are a popular and convenient snack; however, the baking process can produce neo-formed contaminants (NFCs), such as acrylamide (AA) and 5-hydroxymethylfurfural (HMF), through non-enzymatic browning reactions. Conventional analytical methods for quantifying these NFCs are complex, labor-intensive, and require specialized personnel. The main objective of this study was to develop computer vision (CV) models based on surface digital image analysis for the rapid prediction of AA and HMF in crackers. Therefore, five baking temperatures (160, 170, 180, 190, and 200 °C) and times (15, 20, 25, 30, and 35 min) were tested and analyzed using CV alongside conventional analytical methods. CV estimates and analytical measurements for AA (4.35–829 µg kg−1) and HMF (0.004–105.4 mg kg−1) contents were compared using cross-validation with a “leave-one-treatment-out” approach. The average error for missing measurements was 3.10% for AA and 3.28% for HMF, validating CV as an efficient tool for the rapid estimation of these NFCs in crackers. Among the cracker samples with AA content below the EU benchmark of 400 μg/kg, evaluated using the Check-All-That-Apply (CATA) test, consumers preferred the samples baked at 180 °C for 25 min, which also exhibited the lowest levels of both AA and HMF.

1. Introduction

Bakery products are staple foods globally, supplying proteins, carbohydrates, fiber, and micronutrients [1]. Among them, crackers which are thin, dry baked products made primarily from soft wheat flour, are widely consumed (5.6 kg per capita in 2023, https://www.marketresearch.com/GlobalIndustry-Analysts-v1039/Crackers-0824702/ accessed on 20 March 2026) due to their affordability, convenience, and long shelf life [2,3,4].
However, high-temperature processing promotes the formation of neo-formed contaminants (NFCs), notably acrylamide (AA) and 5-hydroxymethylfurfural (HMF), mainly via the Maillard reaction (MR) and sugar degradation pathways [1,5,6,7]. AA, classified by the International Agency for Research on Cancer as a Group 2A probable carcinogen, is primarily generated through reactions between free asparagine and carbonyl compounds, with asparagine acting as a rate-limiting precursor [8,9,10]. Thus, the European Commission has established a benchmark level of 400 μg kg−1 for crackers [11]. In addition, HMF, formed through MR and sugar dehydration, is also associated with potential genotoxic, hepatotoxic, and carcinogenic effects, particularly following conversion to reactive intermediates [12,13,14,15,16,17,18,19].
A positive correlation between AA and HMF in thermally processed starchy foods suggests that HMF can serve as a practical proxy for AA due to its lower analytical cost and simpler quantification [20,21]. Conventional analytical techniques such as LC/GC-MS (Liquid chromatography/gas chromatography-mass spectrometry) and HPLC-DAD (High performance liquid chromatography-diode array detector) provide accurate quantification but are labor-intensive, costly, and unsuitable for real-time industrial applications [21,22,23,24,25].
Consequently, computer vision (CV) has emerged as a non-destructive, rapid, and cost-effective alternative for monitoring food quality through surface color and texture analysis [26,27,28]. Recent studies demonstrate high predictive performance of CV-based models for AA in potato chips, including hyperspectral imaging, convolutional neural networks, and machine learning approaches, achieving accuracies above 94–98% [29,30,31,32,33,34]. Similar approaches have been extended to other matrices such as toasted bread, with robust predictive capacity based on color and thermal features [35,36]. Nevertheless, the relationship between browning and AA is not always linear, limiting predictive robustness across heterogeneous food systems [27,29].
In parallel, sensory characterization remains critical in product development. Consumer-based methodologies such as the Check-All-That-Apply (CATA) test provide rapid and reliable sensory profiling by capturing consumer perceptions using predefined descriptors, typically requiring 50–100 participants [37,38,39,40,41].
While previous CV-based studies have successfully predicted AA utilizing deep learning or hyperspectral imaging, they often face implementation barriers due to high computational and data requirements. This study introduces a highly efficient, low-complexity methodology utilizing rotation-invariant Local Binary Patterns (LBPs) [42] to facilitate real-time industrial deployment. Furthermore, this study presents a novel comparative framework that tests the predictive limits of CV against chemical proxies (HMF), ultimately integrating these safety metrics with Check-All-That-Apply (CATA) sensory profiles to optimize both consumer acceptance and chemical safety.

2. Materials and Methods

2.1. Cracker Production

The cracker dough was prepared according to the formulation specified in Table 1, using commercial wheat flour without baking powder (Selecta brand, Santiago, Chile), vegetable lard (Astra brand, Chile), table salt (Lobos brand, Iquique, Chile), and warm water at 37 °C. These ingredients were mixed for 4 min until a homogeneous dough was achieved using a mixer machine (Pro Line® Series 7 Quart Bowl-Lift Stand Mixer, KitchenAid, Troy, OH, USA), without any fermentation period. Subsequently, the dough was rolled out to a thickness of approximately 1 mm using an electric laminator (RAM, model Q50B/700, Schio, Italy), and circular pieces (4 cm in diameter) were cut using a stainless steel circular mold. The formed dough pieces were perforated at several points on their surface and then baked in a convection electric oven (Garbin Industries, model 43 DX UMI, Vicenza, Italy). Sixteen dough pieces were placed on each tray of the oven for each predetermined experimental baking condition as shown in Table 2, with temperatures ranging from 160 °C to 200 °C and durations spanning from 15 to 35 min. To ensure consistent heating, the convection oven was preheated and stabilized for 1 h. Finally, the crackers obtained under each baking condition were either allowed to cool at room temperature (20 °C) for immediate top surface image acquisition and sensory evaluation (when applicable) or stored in airtight low-density polyethylene bags and frozen at −20 °C for rapid subsequent AA and HMF analysis.

2.2. Analytical Determinations

2.2.1. Acrylamide Analysis

The AA content in crackers was quantified using gas chromatography-mass spectrometry (GC-MS) based on the methodology of Ciesarová et al. [43], with some modifications. A two gram portion of homogenized cracker sample was placed in a centrifuge tube, followed by the addition of 40 μL of the internal standard (IS, AA-D3) working solution (20 mg/L) and 10 mL of methanol. The mixture was vortexed for 30 s and sonicated at 60 °C for 20 min. The samples were centrifuged at −4 °C at 6000 rpm. Five mL of the supernatant was collected and passed through a C18 reversed-phase cartridge, followed by an additional 5 mL of methanol. The extract was transferred to a 50 mL centrifuge tube, and 10 mL of n-hexane was added. The mixture was sonicated for 5 min and centrifuged at −10 °C at 6000 rpm for 10 min. The methanol phase (lower phase) was collected, and the solvent was evaporated at 40 °C until dry. One mL of methanol was added, and the solution was filtered through a 0.2 μm filter to reconstitute the extract; the final extract was placed in 2 mL vials for analysis. The analysis used an Agilent 7890A GC System equipped with an Agilent DB-FFAP column (0.25 µm, 30 m × 0.25 mm) and an Agilent 597C XL EI/CI MSD mass spectrometer (Agilent Technologies, Santa Clara, CA, USA). An injection volume of 2 µL in splitless-pulsed mode was used with a GC inlet temperature of 200 °C. The oven temperature gradient was as follows: started at 60 °C for 1 min, then increased to 190 °C at 10 °C min−1, then increased to 240 °C at 50 °C min−1. High purity helium was used as carrier gas at 0.8 mL min−1. The MS source and quadrupole temperatures were set at 150 °C, while the transfer line temperature was 250 °C. Data were acquired using SIM mode in negative polarity and AA (m/z = 70) and AA-D3 (m/z = 73) areas were measured. A standard curve was constructed using AA and AA-D3, and the ratios were calculated and used to calculate AA concentrations in the samples. The results were reported as µg of AA per kg of dry solids. The method validation parameters (linearity, precision and accuracy are shown in Supplementary Section S1.1.

2.2.2. 5-Hydroxymethylfurfural Analysis

The HMF content was carried out by high-performance liquid chromatography coupled to a diode array detector (HPLC-DAD) according to the method reported by Toker et al. [44] with some modifications [45]. One gram of homogenized cracker sample was combined with 20 mL of distilled water, 1.5 mL of Carrez I, and 1.5 mL of Carrez II. The mixture was centrifuged at 4800 g for 15 min. The supernatant was collected and passed through a 0.22 μm syringe filter before being injected. Chromatographic separation was performed on an HPLC system with a diode array detector (Dionex UltiMate 3000, Thermo Scientific, Waltham, MA, USA) and an Acclaim TM 120 C18 column. The mobile phase comprised a 95% acetic acid solution (1% in water) and 5% acetonitrile (v/v). Isocratic elution was performed at a flow rate of 1 mL/min, with an injection volume of 20 μL and a detection wavelength of 284 nm. The results were expressed as mg of HMF per kg of dry solids. The method validation parameters (linearity, precision and accuracy are shown in Supplementary Section S1.2.

2.3. Statistical Design

A full factorial experimental design, comprising 25 combinations of independent heating variables for baking (5 temperatures and 5 times), was conducted with three replicates to investigate the effect of baking conditions (temperature: 160, 170, 180, 190, and 200 °C; time: 15, 20, 25, 30, 35 min) on the formation of AA and HMF in crackers, as outlined in Table 2.
Sixteen crackers were baked for each condition in triplicate, resulting in 48 samples per treatment, and photographs were taken of the top surface of each piece, totaling 1200 photographs. Simultaneously, for the laboratory experimental analysis of AA and HMF, samples from the three replicates for each baking condition were crushed and homogenized in one sample which was measured by duplicate.

2.4. Computer Vision Strategy

This section introduces the proposed computer vision strategy to estimate the formation of AA and HMF in crackers processed during baking at different high constant temperatures and different times. Our method consists of nine steps, each of which will be explained in further detail.

2.4.1. Image Acquisition

The images of the cracker samples used for the experiment were meticulously acquired using a state-of-the-art laboratory image acquisition system (DVS-Computer Vision System, Divisol, Santiago, Chile), implemented by Pedreschi et al. [46], with some modifications as illustrated in Figure 1. This system consists of four fluorescent lamps (Halux, 18 W, 60 cm long) with a color temperature of 6500 K and a color rendering index (Ra) close to 95%. These lamps were arranged as a square 35 cm above the sample and at a 45° angle to the sample plane, ensuring a uniform light intensity to the sample. The D5600 digital color camera (DCC) (Nikon, Japan) was placed vertically at 22.5 cm from the sample at an angle of about 45° between the axis of the camera lens and the light sources. The lamps and the DCC were placed inside a wooden box with black inner walls to avoid light and reflection from the camera walls.
Images were captured with the DCC mentioned above manually set to its maximum resolution: 6016 × 4016 pixels; ISO speed: ISO-100, F-stop: f/5.6, exposure time: 1/60 s, flash mode: no flash, focal length: 55 mm, and connected to an ITR-N3 remote trigger (Godox, Shenzhen, China) via the N3 port of the camera. The acquired images, in original format NEF (Nikon Electronic Format, files that contain a RAW format unique to digital photographs taken with Nikon cameras). The raw image format contains the entire image data as captured by the camera’s digital sensor, photographic or otherwise. They were stored directly on the digital camera’s removable memory (PNY brand, 64 GB). In total, 25 × 16 × 3 = 1200 digital images (25 treatments, 16 crackers per treatment, and 3 replicates) were taken from the top side of the crackers, one at a time, under the above conditions. Top surface image examples of the 25 treatments are shown in Figure 2.

2.4.2. Image Conversion

The original NEF images were converted to PNG format using Adobe’s Lightroom software (version 2023), a widely used tool for professional image editing. The images were then resized to 600 × 400 pixels using Matlab’s Image Processing Toolbox (version 2023), using a bicubic interpolation.
In our experiments, the 1200 color images were stored as Ii, with
i = 48 t 1 + 3 c 1 + r
where the indices are defined as follows:
i = 1, …, 1200: for the 1200 images.
t = 1, …, 25: for the 25 treatments,
c = 1, …, 16: for the 16 crackers per treatment, and
r = 1, …, 3: for the 3 replicates.

2.4.3. Segmentation

Each color image was segmented using an algorithm implemented in Matlab (version 2022) and the Balu library [47]:
J i = s e g m e n t I i   for i = 1 ,   ,   1200
where Ji corresponds to the color pixels of the cracker of image Ii.

2.4.4. Feature Extraction

The rotation-invariant Local Binary Pattern (LBP) features [42] were extracted in the segmented color image only (the background of the cracker’s image is removed). Local Binary Pattern (LBP) features might be more practical than deep learning methods for some computer vision tasks because of their low computational complexity. LBP can be implemented and run efficiently even on hardware with limited processing power and memory. This simplicity also means that LBP requires significantly less data to perform effectively, avoiding the extensive data collection and training periods needed for deep learning models. Using the rotation-invariant LBP for texture features in color images of foods offers several advantages. This method is computationally efficient and straightforward, making it ideal for many applications. It is robust against changes in illumination and insensitive to rotations, capturing consistent textures across various orientations of food items, such as the surface textures or the smoothness of the crackers. When applied to individual color channels, it effectively extracts color texture features, which is crucial for assessing the variations in each color channel. Additionally, the rotation-invariant LBP can be easily integrated with the next steps of our proposed method. In our case we use the rotation-invariant version of Balu library [47] in the R, G, and B channels of each segmented image giving 36 features per color channel. In this way, for each image, an LBP descriptor of 36 × 3 = 108 elements is obtained. Thus, for the 1200 color images, we store this information in a 1200 × 108 element matrix, called X. In this case, the i-th row of the matrix is:
x i = L B P r i J i   for i = 1 ,   ,   1200
where xi corresponds to the 108 LBP rotation-invariant features of the color pixels of image Ii, here we use the corresponding segmentation image Ji.
Finally, each column of our matrix X is linearly scaled between 0 and 1, for j = 1, …, 108. Linear normalization of features equalizes the influence of different features by scaling them uniformly, which enhances the performance and convergence of machine learning algorithms. Additionally, it helps maintain consistency during further data processing and visualization, ultimately contributing to better model generalization. The normalized matrix X is shown in Figure 3.

2.4.5. Averaging of Features per Treatment

For each of the 25 treatments, there are 48 = 3 × 16 images (3 groups and 16 images per group), that correspond to the 48 measurements of the 108 features extracted in the 25 treatments were averaged (see Y in Figure 3), as follows:
y t =   1 48 i = i 0 + 1 i 0 + 48 x i with i 0 = 48 ( t 1 ) and t = 1 , , 25
To facilitate industrial batch-level monitoring, our experimental design captures the mean characteristics of each treatment rather than individual unit variance. We mathematically averaged visual features from 48 images per treatment to structurally align with the homogenized chemical ground truth. This aggregation is essential because it filters out localized visual anomalies on individual crackers, prevents overfitting, and ensures the model learns the true mean batch response to processing parameters. Furthermore, model robustness is maintained through the wide inter-treatment variability generated across the 25 distinct baking conditions.

2.4.6. Filtering

From the 108 characteristics, those with a standard deviation of less than 0.15 in each treatment are selected. In this way, those features that are relatively constant in each treatment are maintained. In this step, 79 characteristics are removed, and only 29 remain, for k = 1, …, 29 matrix S in Figure 3.

2.4.7. Output Normalization

Normalizing variables of varying scales is crucial as it ensures each feature contributes equally to the analysis. This prevents features with larger values from disproportionately influencing the calculations and distorting the outcomes. The physical variable (AA or HMF) with 25 measurements is scaled non-linearly using the square root and then linearly between 0 and 1 as follows:
y a = l i n A A
y h = l i n H M F
for AA and HMF respectively, where the function “lin(x)” linearly scales x between 0 and 1, i.e., (x − min(x))/(max(x) − min(x)).

2.4.8. Feature Selection

Using the Sequential Forward Selection method [48] implemented in the Balu library [47], the m = 5 features (z1, z2, z3, z4, z5), that maximize the correlation between the output with a linear combination of the selected features are selected. Thus, we seek for the best five features of S, that maximizes:
c o r r y , y ^ m a x
where:
y ^ =   a 0 +   a 1 z 1 + a 2 z 2 + a 3 z 3 + a 4 z 4 + a 5 z 5
In our case, we repeat this method for y = ya, using (5) for the AA, and y = yh, using (6) for HMF.
To mitigate the risk of overfitting inherent in a dataset of 25 treatments, the dimensionality of the predictive model was strictly constrained. Before selection, the initial 108 LBP features were reduced to 29 by discarding those with a standard deviation below 0.15. Subsequently, the Sequential Forward Selection (SFS) algorithm was capped at exactly five features. This enforces a conservative 5-to-1 sample-to-feature ratio, which is optimal for linear models trained on small datasets. Furthermore, during the 25-fold ‘leave-one-treatment-out’ cross-validation, feature selection demonstrated robust stability across folds, confirming that the selected textural features consistently represent the variance in chemical contaminant formation rather than localized dataset noise.

2.4.9. Extra Step

Given that HMF is considerably more straightforward and cost-effective to measure than AA, we explored the feasibility of estimating ya using yh alone, that is:
y ^ a = a 0 +   a 1 y h
and in conjunction with the visual features extracted in previous steps, that is:
y ^ a = a 0 +   a 1 z 1 + a 2 z 2 + a 3 z 3 + a 4 z 4 + a 5 z 5 1

2.5. CATA (Check-All-That-Apply) Sensory Test

Three cracker baking treatments were selected for consumer preference analysis using the CATA test based on: (i) visual surface color evaluation, (ii) an AA content lower than the European Commission benchmark value of 400 µg/kg. The selected cracker samples were the ones baked at 180 °C, 190 °C, and 200 °C for 25 min to avoid excessive surface darkening, high AA levels and to ensure that the crunchiness attribute was present in all samples. A total of 101 consumers participated in this preference test.
The CATA test was conducted in the Food Processing Laboratory at the University of Chile, located within the Faculty of Chemical and Pharmaceutical Sciences. The samples were presented monadically and randomly on glass plates, each identified with a three-digit numerical code. Purified water was provided as a neutralization medium between samples, and consumers were instructed to take a few sips of water before tasting each sample. The sensory evaluations were carried out by students and staff from the University of Chile. The study was conducted in accordance with the tenets of the Declaration of Helsinki [49] and was approved by the Faculty of Chemical and Pharmaceutical Sciences, University of Chile Ethics Committee.
For the CATA test, descriptors (words or phrases) were presented according to previous studies by Vidal et al. [50] for crackers, with some modifications. Since this method is consumer-oriented, the determination of attributes was carried out using concepts simple enough for consumers to understand and apply. The selected attributes were: toasted color, light color, thin, thick, greasy sensation, dry, crunchy, soft, hard, brittle, salty, toasted flavor, bitter flavor, tasteless, aftertaste, would consume frequently, would not consume, would recommend to family or friends, with 1 indicating the attribute selected by the consumer and 0 indicating it was not selected. The test instructions also indicated that if there was any attribute they did not understand, they could ask for clarification.
The statistical analysis of the data from the CATA test was conducted using correspondence analysis for non-parametric data and Cochran’s Q test, utilizing XLSTAT Version 2014.5.03 software developed by Addinsoft.

3. Results and Discussion

3.1. Acrylamide and 5-Hydroxymethylfurfural Formation

The formation of AA and HMF at different baking temperatures and times is shown in Figure 4. Both NFCs levels were dependent on the baking time and temperature. Interestingly, no significant AA formation was found at 160 °C regardless of baking time, and at 170 °C and 180 °C the AA levels started to increase from 25 min of baking onwards. Similar results were found by Hradecka et al. [51] in white flour crackers baked at 180 °C where AA levels were below the limit of quantification (<10 µg kg−1) for 25 min of baking time and increased at longer times, reaching mean values of 122 µg kg−1 at 35 min and 594 µg kg−1 at 45 min. At the higher temperatures (190 °C and 200 °C) AA formed at all baking times and it increased exponentially (Figure 4a). Only at 200 °C and with baking times of 30 and 35 min the AA levels exceeded the EU benchmark level of 400 µg kg−1. Flour composition largely influences the formation of AA, for instance flours with higher levels of sugars and asparagine such as whole grain wheat flour produced crackers with AA levels exceeding the benchmark value after baking at 180 °C and 35 min (517 µg kg−1, [51]). The average AA levels found in crackers were lower than the amounts found in other bakery products such as cookies (which include sugars in the formulation) baked at similar temperatures and times [52] highlighting the influence of free sugars in AA formation. In the case of HMF, it was detected at all baking temperatures and increased with baking times with the highest increase at 200 °C where it increased by roughly two orders of magnitude from 15 min (1.2 mg kg−1) to 35 min (105.4 mg kg−1) (Figure 4b). HMF is produced during baking by thermal decomposition and hydrolysis of sugars [53]. In the case of crackers, maltose and sucrose are the main sugars present in white wheat flour and thus are the main substrates for HMF formation [51].
Previous studies in both model systems and food matrices have shown that HMF could play a role as an AA intermediate in the Maillard reaction. In this study, HMF and AA concentrations were found to be highly linearly correlated (R2 = 0.9329, Figure 5). In fried potato chips, exponential (R2 = 0.85, [20]) and linear (R2 = 0.7591, [21]) relationships have been found between HMF and AA. It has been reported that HMF reacts with asparagine at a higher rate than glucose to form AA [54]. Therefore, both our results and previously published studies suggest that HMF levels could be a good predictor of the AA content in thermally treated foods (such as crackers). Nevertheless, further studies focusing on the formation mechanism of AA from HMF in real food matrices should be conducted.

3.2. Computer Vision

The process described in previous section is performed 25 times, for each treatment using the strategy of “leave-one-treatment-out”, that is a cross-validation methodology with 25 folds. The idea is to estimate the measurement of one treatment using the remaining 24 treatments. In this method, one treatment is left out (to leave it as a test), and the five characteristics are selected using the data from the remaining 24 treatments.
Using Equation (8) we obtained estimations of the normalized AA and HMF, these values are then transformed to the original scale with the inverse of Equations (5) and (6) respectively. The results are given in Table 3 and Figure 6, where the average error is 3.10% for AA and 3.28% for HMF. In this case, the error has been calculated as the mean of the absolute difference between modeled and measured divided by the maximum of the measured values.
Finally, if we aim to estimate the variable AA from HMF, as outlined in step 9 of the preceding section, we utilized the same 25-group cross-validation method to obtain the following results: Estimating AA solely from HMF, as per Equation (9), results in a considerable higher error rate of 4.84% (refer to Figure 7a). Additionally, when AA is estimated using both HMF and visual characteristics, according to Equation (10), the error rate is reduced significantly to 3.12% (see Figure 7b). Notably, this error is slightly higher than 3.10%, the error rate achieved when the model does not incorporate the HMF variable.
Our experiments demonstrate that standardized image acquisition procedures, utilizing controlled lighting and consistent camera–object distances, enable the accurate estimation of AA and HMF levels directly from visual features extracted from cracker images. This finding is highly significant: by relying exclusively on computer vision, we can eliminate the need for time-consuming and costly analytic chemical measurements. Furthermore, because this vision-based approach bypasses expensive physical sampling entirely, it opens the door to implementing this system as a real-time monitoring instrument directly within the production chain. Regarding the estimation models, our results indicate that predicting AA solely from HMF is not advisable due to higher error rates. Interestingly, while combining HMF with visual features significantly reduces this error, the error rate (3.12%) remains slightly higher than when AA is calculated entirely from visual features alone (3.10%, as shown in Equation (10)), further underscoring the efficacy of a purely vision-based approach.
While the overall mean errors for the model are highly competitive, Table 3 highlights that absolute deviations increase under extreme baking conditions (e.g., 200 °C for extended times). This occurs because the relationship between surface browning and acrylamide is not perfectly linear across all stages of heating. At extreme temperatures, contaminant formation becomes highly exponential, while surface darkening begins to visually saturate the linear model to under- or over-predict the precise extreme value. However, this does not affect the system’s practical reliability. For extreme treatments, the model still confidently predicts values far exceeding the 400 µg kg−1 EU benchmark, successfully flagging the batch as a safety failure. Furthermore, sensory CATA data confirms that crackers baked at these extreme conditions are firmly rejected by consumers due to burnt flavor and color (See Section 3.3), rendering the precise quantification of these extreme outliers less critical for industrial application.
The 5 × 5 factorial design yields 25 distinct treatments; however, this represents a relatively small sample size for training predictive models, carrying a risk of overfitting. To ensure robust generalization, the methodology enforces strict dimensionality control. By restricting Sequential Forward Selection to exactly five variables, the model maintains a conservative 5:1 sample-to-feature ratio, ideal for linear regression. Furthermore, the input vector for each of the 25 treatments is highly stabilized, being derived from the average of 48 individual images, effectively filtering out visual noise. Combined with a 25-fold ‘leave-one-treatment-out’ cross-validation, this simple linear architecture ensures the model captures the underlying kinetics of browning rather than memorizing a limited dataset.
A detailed analysis of Table 3 reveals that the model’s accuracy varies depending on the thermal regime:
Standard Baking Conditions (160–180 °C): In treatments 1–15, which represent standard and consumer-acceptable baking parameters, the model demonstrates exceptionally high precision. The absolute differences between measured and modeled AA are negligible, often within a few µg kg−1 (e.g., Treatments 1–7). This precision in the lower-temperature range is critical, as it confirms that the CV system can reliably monitor normal industrial production without triggering false safety alarms.
Extreme Baking Conditions (190–200 °C): As processing temperatures reach 190 °C and 200 °C (Treatments 16–25), absolute errors increase noticeably. For instance, in Treatment 20 (190 °C, 35 min), the model significantly overestimates the AA content (modeled 444.3 vs. measured 186.5 µg kg−1), and in Treatment 22, it underestimates it (modeled 174.9 vs. measured 269.0 µg kg−1). These discrepancies occur because, under extreme thermal conditions, the kinetics of AA and HMF formation become highly exponential, while the visual browning of the cracker surface approaches saturation. Consequently, the strictly linear relationship between color/texture features and chemical concentration begins to decouple, leading to larger absolute deviations.
Despite higher absolute errors at these extreme temperatures, the system’s practical reliability remains intact. The primary objective of the CV model is to flag batches that exceed the EU benchmark of 400 µg kg−1. In extreme cases where safety is genuinely compromised (e.g., Treatments 24 and 25, measured at 591.5 and 829.0 µg kg−1, respectively), the model correctly predicts overwhelmingly high values (545.5 and 886.0 µg kg−1), successfully identifying the safety failure. Furthermore, as demonstrated by the sensory CATA results, crackers subjected to these extreme conditions are strongly rejected by consumers due to burnt flavor and texture, meaning they would be discarded for quality reasons regardless of precise analytical quantification.
While the computer vision methodology presented here is highly robust, it is important to note that the specific predictive model coefficients are matrix-dependent. Variations in dough formulation (e.g., different sugar or amino acid profiles) or industrial baking mechanics (e.g., tunnel ovens versus convection ovens) will alter the specific relationship between surface browning and contaminant formation. For real-world industrial applications, this CV framework is highly generalizable. Still, it would require a standard calibration phase (correlating initial visual features of the new formulation with baseline chemical measurements) to update the linear weights before autonomous, real-time monitoring can commence.

3.3. CATA Test

The responses of 101 consumers who reported consuming crackers at least once a month were considered for CATA test. Among them, 52% were female, 46% were male, and 2% did not declare their gender. Finally, 87% of these consumers were in the age range of 18–25-year-old, 10% were in the age range of 26–30-year-old, 2% were in the age range of 31–40-year-old, and 1% were 41-year-old or older. Therefore, the obtained results could only be extrapolated to young people (18–25-year-old) in similar conditions within a population.
According to Figure 8, consumers preferred the crackers baked at 180 °C for 25 min, which also had the lowest levels of AA and HMF among the three samples sensorially tested (8.5 mg kg−1 and 1.2 mg kg−1, respectively). Crackers baked at 180 °C for 25 min were associated by consumers with being soft, brittle, thin, and light in color. Additionally, due to the lower baking temperature, their moisture loss was lower compared to the other two samples. This sample was also selected by consumers with the statements “I would recommend it” and “I would consume it frequently”. When the crackers were baked at 200 °C for 25 min, consumers perceived them as having a thick texture, a residual flavor, and a toasted color, and they indicated they would not consume them. This sample also contained the highest levels of AA and HMF among the three samples sensorially tested (383 μg kg−1 and 31.3 mg kg−1, respectively). Its AA content was very close to the benchmark level of 400 μg kg−1 for crackers. Finally, crackers baked at 190 °C for 25 min were described by consumers as salty, crunchy, and tasteless. As expected, their AA and HMF contents were intermediate between those of the samples baked at 180 °C and 200 °C (79 μg kg−1 and 3.4 mg kg−1, respectively).
In visual perception, the attribute color intensity (light color), and in the mouth, texture attributes (soft, brittle and thin) were decisive in the consumers preference (I would recommend it and I would consume it frequently), to choose the crackers baked at 180 °C for 25 min. These results agree with the studies on biscuits by Ervina [55], in addition to color intensity and textural attributes, sweetness and bitterness were considered in the hedonic and sensory characteristics of the crackers, using the CATA method as a descriptive analysis of consumers.
It is important to note that a closer relationship between computer vision and sensory analysis would require a more detailed study designed in such a way that sensory variables could be directly related to visual and chemical features. On the other hand, it is important to emphasize that sensory analysis encompasses a broad spectrum of perception, involving all the senses and how consumers perceive those sensorial attributes. Therefore, reducing sensory perception only to visual features may seem interesting from a market quality perspective; however, the consumer’s sensory perspective is the interaction between of all the senses and should be considered.

4. Conclusions

This work showed that HMF formation in salty crackers is highly correlated with acrylamide and thus could be used as a predictor for the levels of this harmful neo-contaminant. Furthermore, by applying a computer vision-based approach, AA content of crackers could be accurately predicted after its validation under standard industrial production conditions, reducing the need for conventional analytical techniques at an industrial scale. In conjunction with sensory analysis, a systematic approach to estimate both neo-formed contaminants and consumer preference could be developed which can greatly improve the development of new bakery products.
Our experiments demonstrate that under strictly standardized image acquisition procedures (utilizing controlled lighting and consistent camera–object distances) the extracted visual features allow for highly stable estimations of AA and HMF levels. While the predictive model demonstrated high statistical reliability across the 25 distinct baking treatments evaluated in this study, it is important to clarify that this algorithmic stability relies on the uniform optical environment. The hardware and environmental robustness of this technique (such as its performance using different camera sensors or under fluctuating ambient factory conditions) has not yet been evaluated and remains an important next step before industrial deployment. Transitioning this technique from a controlled laboratory prototype to a seamless industrial tool will require the development of integrated, commercially viable devices (similar to current inline colorimeters) that encapsulate the necessary controlled lighting, camera hardware, and predictive software.
This work demonstrates that computer vision can accurately predict AA and HMF content; however, it is not intended to eliminate the need for conventional analytical techniques completely. In an industrial environment, potential lighting variability and product heterogeneity must be managed by deploying the camera within a strictly controlled, enclosed illumination setup. Ultimately, this CV approach is proposed as a real-time, non-destructive screening tool to reduce reliance on routine, batch-by-batch chemical sampling drastically. Conventional analytical methods remain essential for baseline calibration, periodic auditing, and the validation of borderline batches, ensuring a robust framework that combines rapid AI estimation with necessary human validation.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/foods15112011/s1. The main analytical validation parameters for AA and HMF chromatographic methods is provided.

Author Contributions

Conceptualization, F.P., D.C., A.B. and D.M.; methodology, F.P., D.C., A.B., D.M.; software, D.M.; formal analysis, F.P., D.C., A.B., R.P., D.G.-R., J.E.A., M.S.M.-C., M.M.-M., A.C. and D.M.; investigation, D.C., A.B. and M.M.-M.; data curation, F.P., D.C., A.B. and D.M.; writing—original draft preparation, F.P. and D.M.; writing—review and editing, F.P., R.P., D.G.-R., J.E.A., M.S.M.-C., M.M.-M. and D.M.; visualization, F.P., D.G.-R., M.M.-M. and D.M.; supervision, F.P., A.B. and D.M.; project administration, F.P.; funding acquisition, F.P., R.P. and J.E.A. Author Andrea Bunger passed away prior to the publication of this manuscript. All other authors have read and agreed to the published version of this manuscript.

Funding

This research was supported by Fondecyt Regular grants N° 1190080 and N° 1240031. We also acknowledge the Peruvian National Scholarship and Educational Credit Program (PRONABEC) for funding Darwin Castillo’s master’s studies. D. García-Ríos acknowledges VINCI PUCV Postdoctoral Fellowship (2025–2027). R. Pedreschi, J. Álvaro and D. García acknowledge VINCI-PUCV grant 039.771/2025. R. Pedreschi acknowledges ANID-MILENIO-ICN2021-044.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki and approved by the Faculty of Chemical and Pharmaceutical Sciences, University of Chile Ethics Committee (No: 230521003, date: 24 April 2024).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The original contributions presented in this study are included in the article/Supplementary Material. Further inquiries can be directed to the corresponding authors. The computational code for image processing and the 1200 digital images acquired and analyzed in this study can be accessed at (URL will be available once the manuscript is accepted for publication).

Acknowledgments

We would like to express our gratitude to Andrea Bunger for her valuable contributions to the execution of this research. Andrea passed away before the publication process could be completed. Her dedication and insights will be greatly missed, and her legacy will continue to inspire our work. The authors would also like to extend their gratitude for the technical assistance provided by Juan Pablo Gómez. During the preparation of this work the authors used ChatGPT (GPT-5.5, OpenAI Group PCB) in order to improve English academic writing. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
AAAcrylamide
CATACheck-All-That-Apply
CVComputer Vision
HMF5-Hydroxymethylfurfural
MRMaillard reaction
NFCNeo-formed Contaminant

References

  1. Sarion, C.; Codină, G.G.; Dabija, A. Acrylamide in Bakery Products: A Review on Health Risks, Legal Regulations and Strategies to Reduce Its Formation. Int. J. Environ. Res. Public Health 2021, 18, 4332. [Google Scholar] [CrossRef]
  2. Giannoutsos, K.; Zalidis, A.P.; Koukoumaki, D.I.; Menexes, G.; Mourtzinos, I.; Sarris, D.; Gkatzionis, K. Production of functional crackers based on non-conventional flours. Study of the physicochemical and sensory properties. Food Chem. Adv. 2023, 2, 100194. [Google Scholar] [CrossRef]
  3. Global Industry Analysts Inc. Global Crackers Market Industry Analysis and Forecast (2024–2030). Available online: https://www.marketresearch.com/GlobalIndustry-Analysts-v1039/Crackers-40824702/ (accessed on 20 March 2026).
  4. Ahmed, Z.S.; Abozed, S.S. Functional and antioxidant properties of novel snack crackers incorporated with Hibiscus sabdariffa by-product. J. Adv. Res. 2015, 6, 79–87. [Google Scholar] [CrossRef] [PubMed]
  5. Capuano, E.; Fogliano, V. Acrylamide and 5-hydroxymethylfurfural (HMF): A review on metabolism, toxicity, occurrence in food and mitigation strategies. LWT—Food Sci. Technol. 2011, 44, 793–810. [Google Scholar] [CrossRef]
  6. Pedreschi, F.; Matus, J.; Bunger, A.; Pedreschi, R.; Huamán-Castilla, N.L.; Mariotti-Celis, M.S. Effect of the Integrated Addition of a Red Tara Pods (Caesalpinia spinosa) Extract and NaCl over the Neo-Formed Contaminants Content and Sensory Properties of Crackers. Molecules 2022, 27, 1020. [Google Scholar] [CrossRef]
  7. Wei, S.; Yang, X.; Lin, M.; Chen, N.; Gao, X.; Hu, X.; Chen, F.; Zhu, Y. Development of a two-step pretreatment and UPLC-MS/MS-based method for simultaneous determination of acrylamide, 5-hydroxymethylfurfural, advanced glycation end products and heterocyclic amines in thermally processed foods. Food Chem. 2024, 430, 136726. [Google Scholar] [CrossRef]
  8. International Agency for Research on Cancer. Acrylamide. In IARC Monographs on the Evaluation of the Carcinogenic Risk of Chemicals to Humans; International Agency for Research on Cancer, Ed.; International Agency for Research on Cancer: Lyon, France, 1994; Volume 60, pp. 389–433. [Google Scholar]
  9. Cankaya, S.; Günal, R.; Somuncu, E.İ.; Navruz-Varlı, S. Acrylamide mitigation in cereal-based foods: A comprehensive review of enzymatic treatments, additives and novel technologies. Eur. Food Res. Technol. 2025, 251, 2077–2096. [Google Scholar] [CrossRef]
  10. De Vivo, A.; Balivo, A.; Esposito, F.; Romano, R.; Cirillo, T.; Sarghini, F.; Genovese, A. Mitigation of acrylamide in cookies through partial replacement of conventional sugars with erythritol and maltitol. Food Chem. 2026, 512, 148821. [Google Scholar] [CrossRef]
  11. Juncker, J.; European Commission. Commission Regulation (EU) 2017/2158 of 20 November 2017 establishing mitigation measures and benchmark levels for the reduction of the presence of acrylamide in food. Off. J. Eur. Union 2017, 204, 24–44. [Google Scholar]
  12. Murkovic, M.; Pichler, N. Analysis of 5-hydroxymethylfurfual in coffee, dried fruits and urine. Mol. Nutr. Food Res. 2006, 50, 842–846. [Google Scholar] [CrossRef]
  13. Abraham, K.; Gürtler, R.; Berg, K.; Heinemeyer, G.; Lampen, A.; Appel, K.E. Toxicology and risk assessment of 5-Hydroxymethylfurfural in food. Mol. Nutr. Food Res. 2011, 55, 667–678. [Google Scholar] [CrossRef]
  14. Lee, C.-H.; Chen, K.-T.; Lin, J.-A.; Chen, Y.-T.; Chen, Y.-A.; Wu, J.-T.; Hsieh, C.-W. Recent advances in processing technology to reduce 5-hydroxymethylfurfural in foods. Trends Food Sci. Technol. 2019, 93, 271–280. [Google Scholar] [CrossRef]
  15. Qi, Y.; Zhang, H.; Wu, G.; Zhang, H.; Wang, L.; Qian, H.; Qi, X. Reduction of 5-hydroxymethylfurfural formation by flavan-3-ols in Maillard reaction models and fried potato chips. J. Sci. Food Agric. 2018, 98, 5294–5301. [Google Scholar] [CrossRef] [PubMed]
  16. Pastoriza de la Cueva, S.; Álvarez, J.; Végvári, Á.; Montilla-Gómez, J.; Cruz-López, O.; Delgado-Andrade, C.; Rufián-Henares, J.A. Relationship between HMF intake and SMF formation in vivo: An animal and human study. Mol. Nutr. Food Res. 2017, 61, 1600773. [Google Scholar] [CrossRef]
  17. Wang, C.; Liu, Z.; Hu, T.; Li, Y.; Liu, R.; Zhang, J.; He, H. Potential neurotoxicity of 5-hydroxymethylfurfural and its oligomers: Widespread substances in carbohydrate-containing foods. Food Funct. 2020, 11, 4216–4223. [Google Scholar] [CrossRef]
  18. Zhang, Z.; Wu, W.; Zhang, C.; Li, L.; Hu, W.; Guo, Y.; Lu, G. Simultaneous Mitigation of Acrylamide, 5-HMF, and Browning Formation by Combining Three Additives in Commercial Crackers. J. Food Nutr. Res. 2022, 10, 536–545. [Google Scholar] [CrossRef]
  19. Suri, P.; Chhabra, P. A Review Presence of 5-Hydroxymethylfurfural (HMF) in Food Products: Positive and Negative Impacts on Human Health. Int. J. Forensic Sci. 2020, 5, 000194. [Google Scholar] [CrossRef]
  20. Miao, Y.; Zhang, H.; Zhang, L.; Wu, S.; Sun, Y.; Shan, Y.; Yuan, Y. Acrylamide and 5-hydroxymethylfurfural formation in reconstituted potato chips during frying. J. Food Sci. Technol. 2014, 51, 4005–4011. [Google Scholar] [CrossRef]
  21. Pedreschi, F.; Ferrera, A.; Bunger, A.; Alvarez, F.; Huaman-Castilla, N.L.; Mariotti-Celis, M.S. Ultrasonic-assisted leaching of glucose and fructose as an alternative mitigation technology of acrylamide and 5-hydroxymethylfurfural in potato chips. Innov. Food Sci. Emerg. Technol. 2021, 73, 12752. [Google Scholar] [CrossRef]
  22. Gökmen, V.; Şenyuva, H.Z.; Acar, J.; Sarıoğlu, K. Determination of acrylamide in potato chips and crisps by high-performance liquid chromatography. J. Chromatogr. A 2005, 1088, 193–199. [Google Scholar] [CrossRef] [PubMed]
  23. Pedreschi, F.; Saavedra, I.; Bunger, A.; Zuñiga, R.N.; Pedreschi, R.; Chirinos, R.; Campos, D.; Mariotti-Celis, M.S. Tara pod (Caesalpinia spinosa) extract mitigates neo-contaminant formation in Chilean bread preserving their sensory attributes. LWT 2018, 95, 116–122. [Google Scholar] [CrossRef]
  24. Barrera, J.; Pedreschi, F.; Gómez, J.P.; Zúñiga, R.N.; Mariotti-Celis, M.S. In house validation for the direct determination of 5-hydroxymethyl-2-furfural (HMF) in “dulce de leche”. J. Food Compos. Anal. 2021, 95, 103665. [Google Scholar] [CrossRef]
  25. Gökmen, V.; Mogol, B.A. Computer vision-based image analysis for rapid detection of acrylamide in heated foods. Qual. Assur. Saf. Crops Foods 2010, 2, 203–207. [Google Scholar] [CrossRef]
  26. Mery, D.; Pedreschi, F.; Soto, A. Automated Design of a Computer Vision System for Visual Food Quality Evaluation. Food Bioprocess Technol. 2013, 6, 2093–2108. [Google Scholar] [CrossRef]
  27. Mogol, B.A. Chapter 25—Color image analysis for detection of acrylamide. In Acrylamide in Food, 2nd ed.; Gökmen, V., Mogol, B.A., Eds.; Academic Press: Cambridge, MA, USA, 2024; pp. 515–528. [Google Scholar]
  28. Mogol, B.A.; Gökmen, V. Computer vision-based analysis of foods: A non-destructive colour measurement tool to monitor quality and safety. J. Sci. Food Agric. 2014, 94, 1259–1263. [Google Scholar] [CrossRef] [PubMed]
  29. Bruno, F.; Mishra, P.; Davies, B.; Sturrock, K.; Fiore, A. Portable and handheld hyperspectral imaging for non-destructive acrylamide prediction in ground potato crisps. Food Control 2025, 178, 111512. [Google Scholar] [CrossRef]
  30. Garg, R.; Singla, N. An architecture for acrylamide detection in carbohydrate-rich food products using deep learning method. J. Food Compos. Anal. 2025, 142, 107497. [Google Scholar] [CrossRef]
  31. Maurya, R.; Singh, S.; Pathak, V.K.; Dutta, M.K. Computer-aided automatic detection of acrylamide in deep-fried carbohydrate-rich food items using deep learning. Mach. Vis. Appl. 2021, 32, 79. [Google Scholar] [CrossRef]
  32. Yadav, A.; Sengar, N.; Issac, A.; Dutta, M.K. Image processing based acrylamide detection from fried potato chip images using continuous wavelet transform. Comput. Electron. Agric. 2018, 145, 349–362. [Google Scholar] [CrossRef]
  33. Dutta, M.K.; Singh, A.; Ghosal, S. A computer vision based technique for identification of acrylamide in potato chips. Comput. Electron. Agric. 2015, 119, 40–50. [Google Scholar] [CrossRef]
  34. Dutta, M.K.; Singh, A.; Ghosal, S. An imaging technique for acrylamide identification in potato chips in wavelet domain. LWT 2016, 65, 987–998. [Google Scholar] [CrossRef]
  35. Sepehr, A.; Carraro, A.; Napoli, M.; Pescatore, A.; Guerrini, L. Non-destructive acrylamide quantification in whole-grain bread using RGB-thermal images. Eur. Food Res. Technol. 2026, 252, 73. [Google Scholar] [CrossRef]
  36. Sáez-Hernández, R.; Ruiz, P.; Mauri-Aucejo, A.R.; Yusa, V.; Cervera, M.L. Determination of acrylamide in toasts using digital image colorimetry by smartphone. Food Control 2022, 141, 109163. [Google Scholar] [CrossRef]
  37. Ares, G.; Besio, M.; Giménez, A.; Deliza, R. Relationship between involvement and functional milk desserts intention to purchase. Influence on attitude towards packaging characteristics. Appetite 2010, 55, 298–304. [Google Scholar] [CrossRef]
  38. Dooley, L.; Lee, Y.-s.; Meullenet, J.-F. The application of check-all-that-apply (CATA) consumer profiling to preference mapping of vanilla ice cream and its comparison to classical external preference mapping. Food Qual. Prefer. 2010, 21, 394–401. [Google Scholar] [CrossRef]
  39. Varela, P.; Ares, G. Sensory profiling, the blurred line between sensory and consumer science. A review of novel methods for product characterization. Food Res. Int. 2012, 48, 893–908. [Google Scholar] [CrossRef]
  40. Ares, G.; Antúnez, L.; Giménez, A.; Jaeger, S.R. List length has little impact on consumers’ visual attention to CATA questions. Food Qual. Prefer. 2015, 42, 100–109. [Google Scholar] [CrossRef]
  41. Plaehn, D. CATA penalty/reward. Food Qual. Prefer. 2012, 24, 141–152. [Google Scholar] [CrossRef]
  42. Ojala, T.; Pietikainen, M.; Maenpaa, T. Multiresolution gray-scale and rotation invariant texture classification with local binary patterns. IEEE Trans. Pattern Anal. Mach. Intell. 2002, 24, 971–987. [Google Scholar] [CrossRef]
  43. Ciesarová, Z.; Kiss, E.; Boegl, P. Impact of L-asparaginase on acrylamide content in potato products. J. Food Nutr. Res. 2006, 45, 141–146. [Google Scholar]
  44. Toker, O.S.; Dogan, M.; Ersöz, N.B.; Yilmaz, M.T. Optimization of the content of 5-hydroxymethylfurfural (HMF) formed in some molasses types: HPLC-DAD analysis to determine effect of different storage time and temperature levels. Ind. Crops Prod. 2013, 50, 137–144. [Google Scholar] [CrossRef]
  45. Mariotti-Celis, M.S.; Martínez-Cifuentes, M.; Huamán-Castilla, N.; Pedreschi, F.; Iglesias-Rebolledo, N.; Pérez-Correa, J.R. Impact of an integrated process of hot pressurised liquid extraction–macroporous resin purification over the polyphenols, hydroxymethylfurfural and reducing sugars content of Vitis vinifera ‘Carménère’ pomace extracts. Int. J. Food Sci. Technol. 2018, 53, 1072–1078. [Google Scholar] [CrossRef]
  46. Pedreschi, F.; León, J.; Mery, D.; Moyano, P. Development of a computer vision system to measure the color of potato chips. Food Res. Int. 2006, 39, 1092–1098. [Google Scholar] [CrossRef]
  47. Mery, D. BALU: A Matlab Toolbox for Computer Vision, Pattern Recognition and Image Processing. Available online: http://dmery.ing.puc.cl/index.php/balu (accessed on 20 March 2026).
  48. Jain, A.K.; Duin, R.P.W.; Mao, J. Statistical Pattern Recognition: A Review. IEEE Trans. Pattern Anal. Mach. Intell. 2000, 22, 4–37. [Google Scholar] [CrossRef]
  49. World Medical Association. WMA Declaration of Helsinki—Ethical Principles for Medical Research Involving Human Participants. Available online: https://www.wma.net/policies-post/wma-declaration-of-helsinki/ (accessed on 20 March 2026).
  50. Vidal, L.; Tárrega, A.; Antúnez, L.; Ares, G.; Jaeger, S.R. Comparison of Correspondence Analysis based on Hellinger and chi-square distances to obtain sensory spaces from check-all-that-apply (CATA) questions. Food Qual. Prefer. 2015, 43, 106–112. [Google Scholar] [CrossRef]
  51. Hradecka, B.; Stara, L.; Kourimsky, T.; Stupak, M.; Svec, I.; Slukova, M.; Skrivan, P.; Hajslova, J. Salty crackers enriched with cricket (Acheta domesticus) powder: A comprehensive quality and safety assessment study. Food Chem. X 2025, 30, 102918. [Google Scholar] [CrossRef]
  52. Gökmen, V.; Açar, Ö.Ç.; Köksel, H.; Acar, J. Effects of dough formula and baking conditions on acrylamide and hydroxymethylfurfural formation in cookies. Food Chem. 2007, 104, 1136–1142. [Google Scholar] [CrossRef]
  53. Choudhary, A.; Kumar, V.; Kumar, S.; Majid, I.; Aggarwal, P.; Suri, S. 5-Hydroxymethylfurfural (HMF) formation, occurrence and potential health concerns: Recent developments. Toxin Rev. 2021, 40, 545–561. [Google Scholar] [CrossRef]
  54. Gökmen, V.; Kocadağlı, T.; Göncüoğlu, N.; Mogol, B.A. Model studies on the role of 5-hydroxymethyl-2-furfural in acrylamide formation from asparagine. Food Chem. 2012, 132, 168–174. [Google Scholar] [CrossRef]
  55. Ervina, E. The sensory profiles and preferences of gluten-free cookies made from alternative flours sourced from Indonesia. Int. J. Gastron. Food Sci. 2023, 33, 100796. [Google Scholar] [CrossRef]
Figure 1. Computer vision system for the analysis of crackers.
Figure 1. Computer vision system for the analysis of crackers.
Foods 15 02011 g001
Figure 2. Surface top images of crackers from 25 baking treatments (5 different temperatures across 5 different times).
Figure 2. Surface top images of crackers from 25 baking treatments (5 different temperatures across 5 different times).
Foods 15 02011 g002
Figure 3. Feature extraction and processing diagram. X: color image matrix; Y: treatment-average matrix; S: filtered data matrix; Z: selected feature matrix; a1, a2, a3, a4, a5: linear coefficients. Red, green, and blue represent the RGB color components.
Figure 3. Feature extraction and processing diagram. X: color image matrix; Y: treatment-average matrix; S: filtered data matrix; Z: selected feature matrix; a1, a2, a3, a4, a5: linear coefficients. Red, green, and blue represent the RGB color components.
Foods 15 02011 g003
Figure 4. Log-linear plots of the formation of AA (a) and HMF (b) at different temperature–time baking conditions tested for cracker production. The red dashed line in (a) indicates the EU AA benchmark level for crackers (400 µg kg−1).
Figure 4. Log-linear plots of the formation of AA (a) and HMF (b) at different temperature–time baking conditions tested for cracker production. The red dashed line in (a) indicates the EU AA benchmark level for crackers (400 µg kg−1).
Foods 15 02011 g004
Figure 5. Correlation between AA and HMF experimental values in crackers.
Figure 5. Correlation between AA and HMF experimental values in crackers.
Foods 15 02011 g005
Figure 6. Comparison of measurements and estimations for AA and HMF using cross-validation from visual features.
Figure 6. Comparison of measurements and estimations for AA and HMF using cross-validation from visual features.
Foods 15 02011 g006
Figure 7. Estimation for AA with cross-validation using (a) HMF only and (b) HMF and visual features.
Figure 7. Estimation for AA with cross-validation using (a) HMF only and (b) HMF and visual features.
Foods 15 02011 g007
Figure 8. Sensory profiles of the three cracker samples (baked at 180 °C, 190 °C, and 200 °C for 25 min) based on correspondence analysis of the CATA test.
Figure 8. Sensory profiles of the three cracker samples (baked at 180 °C, 190 °C, and 200 °C for 25 min) based on correspondence analysis of the CATA test.
Foods 15 02011 g008
Table 1. Cracker dough formulation *.
Table 1. Cracker dough formulation *.
IngredientsWeight (g)
Wheat flour100
Vegetal lard7
Salt2
Water42
* Based on 100 g of wheat flour.
Table 2. Full factorial design for the different temperature–time baking.
Table 2. Full factorial design for the different temperature–time baking.
Treatment *Temperature (°C)Time (min)
116015
216020
316025
416030
516035
617015
717020
817025
917030
1017035
1118015
1218020
1318025
1318030
1518035
1619015
1719020
1819025
1919030
2019035
2120015
2220020
2320025
2420030
2520035
* Twenty-five combinations of temperature and baking time treatments were tested in random order. Both the baking and image acquisition processes were conducted in triplicate. Sixteen pieces were baked under each condition, resulting in 48 crackers per treatment and a total of 1200 photographs of the manufactured crackers.
Table 3. Measured and modeled values for AA and HMF.
Table 3. Measured and modeled values for AA and HMF.
AA: Acrylamide (µg kg−1)HMF: Hydroxymethylfurfural (mg kg−1)
TreatmentMeasuredModeledErrorMeasuredModeledError
14.05.11.10.000.180.2
24.04.00.00.010.000.0
34.04.00.00.040.320.3
44.04.00.00.090.530.4
54.07.83.80.110.710.6
64.05.71.70.010.000.0
74.05.81.80.060.370.3
86.54.02.50.180.000.2
915.04.210.80.350.250.1
1016.020.24.20.590.000.6
114.04.70.70.090.000.1
124.013.99.90.500.340.2
138.516.07.51.170.300.9
1414.011.62.41.921.200.7
1519.546.527.05.492.812.7
1652.538.613.90.350.530.2
1753.557.13.61.060.200.9
1879.082.33.33.387.534.1
19119.0104.914.18.677.451.2
20186.5444.3257.814.5120.335.8
2183.068.814.21.221.550.3
22269.0174.994.17.0012.245.2
23383.0318.564.531.2533.272.0
24591.5545.546.060.1055.344.8
25829.0886.057.0105.4250.7554.7
MEAN = 3.10% MEAN = 3.28%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Pedreschi, F.; Castillo, D.; Bunger, A.; Pedreschi, R.; García-Ríos, D.; Alvaro, J.E.; Mariotti-Celis, M.S.; Medel-Maraboli, M.; Contreras, A.; Mery, D. Estimating Acrylamide and 5-Hydroxymethylfurfural Levels in Crackers Using Computer Vision: Effects on Consumer Acceptance. Foods 2026, 15, 2011. https://doi.org/10.3390/foods15112011

AMA Style

Pedreschi F, Castillo D, Bunger A, Pedreschi R, García-Ríos D, Alvaro JE, Mariotti-Celis MS, Medel-Maraboli M, Contreras A, Mery D. Estimating Acrylamide and 5-Hydroxymethylfurfural Levels in Crackers Using Computer Vision: Effects on Consumer Acceptance. Foods. 2026; 15(11):2011. https://doi.org/10.3390/foods15112011

Chicago/Turabian Style

Pedreschi, Franco, Darwin Castillo, Andrea Bunger, Romina Pedreschi, Diego García-Ríos, Juan E. Alvaro, María Salomé Mariotti-Celis, Marcela Medel-Maraboli, Américo Contreras, and Domingo Mery. 2026. "Estimating Acrylamide and 5-Hydroxymethylfurfural Levels in Crackers Using Computer Vision: Effects on Consumer Acceptance" Foods 15, no. 11: 2011. https://doi.org/10.3390/foods15112011

APA Style

Pedreschi, F., Castillo, D., Bunger, A., Pedreschi, R., García-Ríos, D., Alvaro, J. E., Mariotti-Celis, M. S., Medel-Maraboli, M., Contreras, A., & Mery, D. (2026). Estimating Acrylamide and 5-Hydroxymethylfurfural Levels in Crackers Using Computer Vision: Effects on Consumer Acceptance. Foods, 15(11), 2011. https://doi.org/10.3390/foods15112011

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop