Abstract
The coffee industry has an economic impact of over 100 billion dollars per year, making it one of the most valuable markets in the world. Coffee roasting is a crucial step that occurs before the extraction process and is essential to the final quality of the coffee. The roasting of green coffee beans is a complex process involving various chemical reactions that play a crucial role in determining the taste, colour and aroma of the coffee. It consists of three steps: drying, roasting and cooling. All of them are characterised by heat and mass transfer. Heat transfer during the roasting process significantly influences the flavour profile of a coffee cup. The main chemical reaction that occurs during roasting is known as the “Maillard reaction”, which is fundamental for the sensory profile of roasted coffee. In this study, we first introduce a mathematical model for coffee roasting based on the chemical dynamics of key compounds. The kinetic model is used to determine the variation in concentration of the main chemical substances that characterise the taste and aroma of coffee. The calibration of the model is obtained through an optimisation procedure, capable of estimating the kinetic rate constants. Real data from chemical analyses carried out on coffee samples at the end of the roasting process were used to support the calibration phase, while the initial chemical composition of green coffee was obtained from the ranges available in the literature.
Keywords: Coffee, Roasting, Kinetics, Optimisation
Subject terms: Chemistry, Engineering, Mathematics and computing
Introduction
Coffee is one of the most popular commodities worldwide50. The intake of this drink approaches about two billion cups per day, making it the most widely consumed beverage after water and tea67. Coffee consumers and, consequently, the way in which this beverage is enjoyed vary considerably depending on factors such as age, culture and geographical location. What makes this beverage so appealing is undoubtedly the aroma released during the extraction phase, which results from the presence of over 1000 compounds found in coffee4.
The aroma is certainly not the only explanation for coffee’s popularity; in fact, the presence of nutrients essential for human health, such as lipids, proteins, carbohydrates, and minerals like potassium and magnesium, also plays a significant role. One of the main benefits of coffee is its high antioxidant content, natural compounds that help fight free radicals, which are responsible for cellular ageing and many diseases. The antioxidants found in coffee, such as polyphenols and chlorogenic acid, protect the body’s cells and support the immune system5. The presence of caffeine, the main active compound in coffee, provides a stimulating effect on the central nervous system. This effect can improve concentration, attention and cognitive performance. Numerous studies suggest that moderate coffee consumption may help control movement disorders associated to Parkinson’s disease51, as well as having anti-inflammatory60 and anti-carcinogenic properties66. Obviously, these beneficial effects are observed with moderate consumption of the beverage, otherwise they would turn into negative effects such as heart palpitations, insomnia and hyper-excitability18.
Research on coffee is important from both a nutritional and an industrial point of view. In particular, preparing coffee in a customised way is one of the next goals in the coffee sector45. Personal tastes are influenced by cultural and environmental factors, as well as health issues and temporary needs. For example, a cup with a higher caffeine content may be preferred during a long drive, whereas a lighter drink may be better after a heavy meal. When it comes to coffee, smell is the first sense involved, but immediately afterwards, and with no small effect, taste plays a major role. A wide variety of flavours can be evoked when drinking coffee, such as sour, nutty, sweet, tart, fruity, roasted and caramel. These flavours are associated with specific chemical compounds that are released from the coffee powder during the extraction process and end up in the cup of coffee2,7. From beans to cup, the final quality of coffee is the result of an integrated sequence of stages. First, there are cultivation and harvesting, processing of the drupe, drying and storage of green coffee37. Next, come the physicochemical processing stages, namely roasting, grinding and finally extraction with hot water. The first process that green coffee beans undergo is roasting. In some ways, this stage creates the bean’s signature, changing its colour, nutritional content and aromatic profile62, before grinding and percolation3, complete the transformation of the beverage.
Roasting is a heat treatment used not only on coffee beans but also on other foods such as cocoa and hazelnuts58. This process occurs at high temperatures, typically between
C and
C. During this operation, the beans lose most of their water content, tend to expand and undergo significant physical and chemical changes. There are various roasting methods, including drum roasting and hot air roasting. In any case, time and temperature are the key variables that determine the final profile of the beverage42. Roasting is a crucial step, as it defines the taste and aroma of the coffee, improves digestibility, and also contributes to the differentiation of the product on the market. Several chemical reactions occur during this phase, and they are essential for the development of the taste and colour of roasted coffee, namely thermal degradation, caramelisation, Maillard and Strecker reactions9.
At temperatures of
C, the carbonyl groups derived from sugars and the amino acids that comprise proteins react to form the key compounds responsible for the aroma and taste of the beverage. Hundreds of chemical compounds that influence the final taste are produced by Maillard reactions, including melanoidins35. Starting at temperatures of
C, the sugars in coffee begin to caramelise, turning brown and releasing aromatic compounds. During roasting, most of the sucrose is converted into other products49. At around
C, the heat absorbed by convection or conduction, depending on the method used, causes the bean to expand and produces the so-called first crack56. At this point, the colour of the beans changes from green/yellow to light brown. Additionally, the bean loses approximately 5% of its initial weight due to water evaporation. Once the first crack has ended, the roasting process continues, with the beans gradually darkening. Later, in the medium roast stage, as the temperature in the bean reaches around
C, the beans undergo a chemical reaction known as pyrolysis (thermal degradation), during which carbon dioxide (and other volatile compounds) is released from the bean’s structure27. This modulates the acidic flavours and produces a more rounded and integrated flavour within the bean. The beans also lose additional weight at this point (around 13%), as the carbon dioxide is gradually expelled. At the temperature of
C, the beans experience the so-called second crack56. In this phase, the bean is visibly characterised by colours ranging from dark brown to almost black. It also becomes shiny, as oil from inside migrates to the surface, coating the beans and giving them a glossy appearance25. Once the coffee has been heated to the desired roast level, the beans are removed from the roaster and cooled to halt the roasting process.
Experimental and sensory chemical analyses of roasted coffee can be combined with the development of mathematical models capable of describing and predicting the transformations that occur during roasting as a consequence of simultaneous heat and mass transfer and complex chemical reactions, which determine the evolution of the physical, chemical and organoleptic properties of the bean. Accurate models can support the design of a digital twin for the optimisation of industrial roasting processes by acting as a link between operating conditions, i.e., temperature, airflow, and roasting time, and the final composition and quality parameters of the product, such as colour, acidity, and aroma precursors. In addition, such prediction tools can also support the customisation of coffee preparation by providing important information, i.e., the chemical characterisation of the roasted coffee without the need for its chemical analysis. To this end, kinetic modelling has been extensively applied in the field of food processing to describe the evolution of chemical, physical and biochemical transformations occurring during thermal treatments. Kinetic approaches based on ordinary differential equations have been widely used to model degradation, formation and conversion reactions of key food constituents, such as nutrients, bioactive compounds, colour-related molecules and aroma precursors. These models provide a quantitative link between processing conditions, especially time and temperature, and the resulting product composition, enabling process optimisation, quality control and prediction of product behaviour under different operating scenarios. In recent years, the integration of kinetic modelling with experimental data has also supported the development of digital and predictive tools for food processing systems. A detailed description of such ideas can be found in Göncuüoğlu Tşs and Gökmen30; Şen and Gökmen68; Lee et al.39. However, other approaches have been used to analyse the internal transformations of the coffee bean; in this context, 6,21,22 describe the phenomena of mass and heat transfer within the bean. These are very often based on convective-diffusive partial differential equations and require careful study of the bean’s geometry.
In this work, we develop a chemical-kinetic model aimed at reproducing the evolution of the concentration of the most important chemical substances during roasting. This model is fundamental for the development of a digital twin for coffee customisation, together with another important mathematical model describing the coffee percolation process3,15,16,26, which we are currently developing. In particular, four roasted coffee powders from distinct geographical origins, Mexico and Rwanda (Coffea arabica L.), Nicaragua and Indonesia (Coffea canephora Pierre ex A. Froehner), were analysed. This preliminary model takes into account the main compounds that play a crucial role in the final profile of the beverage. A system of ordinary differential equations governs the dynamics of the substance concentrations. In the proposed model, we assume that each considered compound undergoes a first (or second) degradation or transformation reaction, and the parameters that determine the reaction rates are calibrated through an optimisation procedure. At the moment, the objective function is constructed by using the laboratory measurements of the most important chemical substances. This approach enables the quantification of the rates of degradation and formation of key compounds during roasting, highlighting the complex interaction between the loss of precursors and the generation of secondary products.
Ultimately, the main strengths of this work are the following.
Compared to the roasting models found in the literature, such as Fadai et al.22 or Şen and Gökmen68, here we provide a clear definition and implementation of a mathematical model capable of describing the evolution of the key chemicals that give coffee its taste and aroma.
The developed mathematical model paves the way for the creation of a tool able to meet the needs and requirements of the end consumer, and therefore for product customisation. This aspect is obviously closely linked to the concept of digital twins.
The proposed method translates the chemical-kinetic rules given by the literature into first-order and second-order reactions, where the rate constants are assumed to follow the Arrhenius law. The chemical-kinetic model is mass-preserving and depends on unknown kinetic parameters. Hence, the proposed model needs to be calibrated. This calibration uses literature data on initial conditions, final laboratory measurements of some chemical compounds considered in the model and some temperature measurements during roasting. Despite the limited laboratory data available to us, the calibrated model provides qualitatively good results.
The paper is organised as follows. Section “Experimental analyses” provides all the information on how the chemical analyses were obtained on the compounds of interest within the coffee bean at the end of the roasting phase. Section "Behaviour of chemical compounds during roasting and modelling assumptions" defines the various precursor-product relationships between the substances of interest, in order to appropriately justify the chemical network that has been hypothesised. Section “Kinetic modelling” introduces the basic mathematical language that allows to describe the kinetics of chemical reactions. Section "The mathematical model" introduces the network of chemical reactions involved in coffee roasting, formulates the mathematical model describing the temporal evolution of the concentrations of the chemical compounds, and develops a calibration procedure for estimating the reaction rate constants. Implementation details are also provided in this section. Section "Results and discussion" is dedicated to the results obtained from the mathematical model. Finally, Section “Conclusion” provides conclusions and information on future developments.
Experimental analyses
We describe the experimental work aimed at quantifying the main chemical constituents of roasted coffee beans, which are directly involved in the roasting kinetics. In detail, caffeine, trigonelline, chlorogenic and phenolic acids, lipids and major organic acids were analysed in coffee samples from four different geographical origins. The chemical analyses were performed using validated chromatographic and extraction procedures to provide reliable concentration data for the development and calibration of the kinetic model described in this study.
Chemicals and reagents
Organic acids, namely, tartaric acid (
99.5%, C4H6O6, CAS No 87-69-4), formic acid (solution for HPLC, 99%, CH2O2, CAS No 64-18-6), acetic acid (solution for HPLC, C2H4O2, CAS No 64-19-7), citric acid (
99.5%, C6H8O7, CAS No 77-92-9) were purchased from Sigma Aldrich (St. Louis, MO, USA). Deionised water was purified using a Milli-Q SP Reagent Water System (Millipore, Bedford, MA, USA). LC-MS grade methanol and formic acid were supplied by Sigma-Aldrich (Milano, Italy). HCl (37%, HCl, CAS No 7647-01-0) was supplied by Carlo Erba reagents, while NaOH (
98%, NaOH, CAS No 1310-73-2) was provided by Sigma-Aldrich (St. Louis, MO, USA). The solution of phosphoric acid (85%, H3PO4, CAS No 7664-38-2) and the ammonium hydroxide solution (30–33%, CAS No 1336-21-6) were provided by Sigma-Aldrich (St. Louis, MO, USA). Potassium dihydrogen phosphate (99.9%, KH2PO4, CAS No 7778-77-0) was supplied by Carlo Erba reagents. The analytical standards of 5-O-caffeoylquinic acid (5-CGA,
98%, C16H18O9, CAS No 906-33-2), 3-O-caffeoylquinic acid (3-CGA,
98%, C16H18O9, CAS No 327-97-9) and 3,5-dicaffeoylquinic acid (3,5-diCGA,
98%, C25H24O12, CAS No 2450-53-5), caffeine (
99%, C8H10N4O2, CAS No 58-08-2) were purchased from Sigma-Aldrich (Milano, Italy) and trigonelline (
99%, C7H7NO2, CAS No 535-83-1).
Coffee samples
Roasted coffee beans from four geographical origins - Mexico and Rwanda (Coffea arabica L.) and Nicaragua and Indonesia (Coffea canephora Pierre ex A. Froehner) - were used for the analyses. The first two single-origin coffee samples were medium-roasted using a drum roaster (IMF), with a drum speed ranging from 81% to 92%, an airflow temperature in the whole process from
C to
C, a bean temperature endpoint of
C and a total roasting time of 12–13 min. These conditions correspond to a medium roast profile. On the other hand, Nicaragua and Indonesia coffees were hard-roasted using a drum roaster (IMF), with a drum speed ranging from 88% to 94%, an airflow temperature in the whole process from
C to
C, a bean temperature endpoint of
C and a total roasting time of 14–15 min. All samples were stored under refrigeration (-
C). Grinding was carried out using a Mythos 1 grinder (Nuova Simonelli, Italy). The optimal grind setting was calibrated to yield
g of brewed coffee from
g of ground coffee, using a VST Competition filter (20 g basket) and applying a tamping force of 20 kgF with a PuqPress M2 automatic tamper. For each coffee origin, three grind sizes: optimal, finer and coarser, were prepared, immediately transferred into containers, and stored at -
C until analysis. For chemical and granulometric determinations, aliquots of the three grind sizes (optimal, finer and coarser) were combined in equal mass proportions (1:1:1, w/w/w) to obtain a representative composite sample for each origin. This compositing strategy was adopted to reduce the influence of grind-size heterogeneity on chemical composition, to approximate the average particle size distribution encountered in practical espresso preparation. The adoption of a composite sampling strategy based on the combination of different grind sizes was motivated by the need to obtain a representative sample of ground coffee, minimising the effect of particle size heterogeneity on chemical analyses. This approach is commonly used in coffee research, as it allows the reduction of sampling bias associated with segregation phenomena and grind-size-dependent extraction behaviour. By averaging fine, medium and coarse fractions in equal proportions, the resulting composite sample better reflects the overall composition of the roasted coffee batch rather than a specific granulometric class.
Particle size analysis
Particle size distribution of the ground coffee samples was determined using a Mastersizer 3000 Aero Series laser diffraction analyser (Malvern PANalytical Ltd., Malvern, UK) equipped with a dry dispersion unit. The instrument measurements particle size distributions over the range of 0.01–3500
m by detecting the angular scattering of laser light by dispersed particles. Dry dispersion was performed under continuous airflow generated by a mechanical compressor operating at 6.5 bar, while the powder was conveyed to the laser measurement zone at a dispersion pressure of 2 - 3 bar. Each sample was measured five times, and the mean distribution values were used for comparisons among coffee origins. The average median particle diameter (
) of the composite samples was approximately
m, consistent with a medium espresso grind.
Caffeine, trigonelline, chlorogenic and phenolic acids (ferulic acid) analysis
Briefly, 0.2 g of ground coffee powder from each origin (Indonesia, Nicaragua, Mexico and Rwanda) was extracted with 10 mL of a methanol: water (50:50, v/v) solution in an ultrasonic bath for 30 min. The obtained extracts were centrifuged at 4,500 rpm for 10 min and subsequently filtered through a 0.22
m PTFE membrane filter before HPLC-DAD analysis. HPLC-DAD analysis of caffeine, trigonelline, chlorogenic and phenolic acids was performed according to the method previously developed by Santanatoglia et al.53,54. The chromatographic system consisted of an Agilent 1100 series (Agilent Technologies, Santa Clara, CA, USA) equipped with a diode array detector (DAD), binary pump and autosampler. The Injection volume was 3
L, and separation was achieved using a Gemini C18 analytical column (250 mm
3.0 mm, 5
m) preceded by a SecurityGuard C18 guard column (4 cm
3 mm, 5
m) (Phenomenex, Torrance, CA, USA). The column temperature was maintained at
C and elution was performed in gradient mode using water (A) and methanol (B), both containing 0.1% formic acid, as the mobile phases. The gradient consisted of: 0–10 min: 20% B (isocratic); 10–15 min: linear increase to 35% B; 15–20 min: linear increase to 55% B; 20–25 min: linear increase to 85% B; 25–30 min: return to 20% B; 30–35 min: re-equilibration at 20% B. The flow rate was 0.8 mL/min, and detection was performed at 325 nm for chlorogenic and phenolic acids, and 270 nm for caffeine and trigonelline. Quantification was carried out by external calibration using standard solutions of each analyte (
99% purity, Sigma-Aldrich, St. Louis, MO, USA).
Organic acids analysis (citric, tartaric, acetic)
Briefly, approximately 1.0 g of ground coffee powder from Indonesia, Nicaragua, Mexico and Rwanda was weighed into centrifuge tubes and extracted with 10 mL of ultrapure Milli-Q water. The suspensions were vortex-mixed for 1 min and centrifuged at 5,000 rpm for 5 min. The supernatant was collected, and its pH was adjusted to 8 using a 0.1 M NaOH solution, then filtered through a 0.45
m membrane filter. For the purification step, a Strata-X SPE cartridge (200 mg/6 mL polymeric reversed phase, Phenomenex, Bologna, Italy) was used according to the method previously published by Santanatoglia et al.54. Before analyte purification, cartridges were activated with 1 mL of methanol, and conditioned with 1 mL of ultrapure water and 2 mL of 33% ammonia solution. Then, 0.6 mL of the filtered extract, previously adjusted to pH 7–8, was loaded onto the cartridge and washed with 1 mL of 33% ammonia solution (applied as two 0.5 mL portions). Finally, 4 mL of 1 M HCl was used for elution, dispensed as eight 0.5 mL fractions. The eluates were collected into clean glass tubes for subsequent instrumental analysis. HPLC-DAD analysis was performed using an Agilent 1100 series system (Agilent Technologies, Santa Clara, CA, USA) equipped with a diode array detector (DAD), binary pump and autosampler. The injection volume was 20
L, and a Luna Omega Polar C18 column (250 mm
4.6 mm, 3
m) preceded by a SecurityGuard C18 guard column (4 cm
3 mm, 5
m) (Phenomenex, Torrance, CA, USA) was employed for separation. The column temperature was maintained at
C and elution was performed in isocratic mode using a 0.1 M phosphate buffer (KH2PO4 adjusted to pH 2.5 with 0.85% phosphoric acid) at a flow rate of 0.8 mL/min. Detection was carried out at 210 nm for tartaric, acetic and citric acids. Quantification was achieved by external calibration using standard solutions of each organic acid (
99% purity, Sigma-Aldrich, St. Louis, MO, USA).
Lipid extraction
Roasted coffee powders from Rwanda, Nicaragua, Indonesia and Mexico were used for lipid extraction. The procedure was performed according to the method described by Hibbert et al.34, with slight modifications. Approximately 5.0 g of ground coffee were placed in a cellulose extraction thimble and subjected to Soxhlet extraction (Universal Extractor - Buchi, Mod. E-800, Uster, Switzerland) using 260 mL of cyclohexane as solvent. The extraction process was carried out for 4 h under continuous reflux conditions. After extraction, the solvent was removed under reduced pressure using a rotary evaporator (Rotavapor) until complete dryness. The residue obtained was weighed to determine the total lipid content on a dry-weight basis (
), which was calculated according to the following formula
![]() |
where
is the mass of the flask after solvent evaporation,
is the mass of the empty flask, and
is the mass of the coffee sample used for extraction.
Behaviour of chemical compounds during roasting and modelling assumptions
The enjoyable flavour of coffee is mainly attributed to a variety of biochemical compounds. These components depend on several factors, including botanical species, geographical origin, post-harvest processing and roasting conditions, all of which can influence the concentration of both volatile and non-volatile components29. In every variety of green coffee, from Arabica to Robusta, we can find different components19, for instance, methylxanthines (caffeine, theophylline, theobromine), chlorogenic acids (CGA), trigonelline, lipids, organic acids, sugars such as sucrose, free amino acids, water (moisture), fibers and minerals. These compounds undergo several physicochemical modifications due to the heat transfer. In fact, numerous chemical reactions occur, for example: simple thermal degradation, caramelisation, Maillard reaction and Strecker degradation. In our mathematical model, we consider the following key substances involved in the coffee roasting process: caffeine, trigonelline, chlorogenic acids, some organic acids, lipids, free amino acids and, among the carbohydrates, sucrose, glucose and fructose. We remark that the chemical analyses were carried out at the end of the roasting process on the substances described in the previous section, and the corresponding laboratory measurements are used in the calibration. On the other hand, sucrose, glucose, fructose and free amino acids, whose chemical analyses are not available in this study and have been parameterised from literature ranges, have been introduced for a better understanding and explanation of the chemical reactions that occur during roasting. Last but not least, this choice also provides completeness and significance to the mathematical model proposed in the sequel.
Caffeine
Caffeine is a non-volatile compound, and it is a precursor of coffee cup quality. It mainly contributes to bitterness and astringency rather than sourness55. Moreover, caffeine is one of the most active methylxanthines, since it affects the cardiovascular system, the central nervous system, the gastrointestinal system and the respiratory one. It is the compound with the major consequences in the psychological sphere, improving concentration and cerebral activity13. Caffeine is an alkaloid, and it is relatively thermostable. This means that it is not significantly degraded during roasting. Chemical experiments have shown that slight losses may occur during the first crack of roasting, accompanied by the release of roasting gases; additionally, a small amount may be lost during the sublimation process19. Several studies suggest that losses of this compound may increase as the roasting temperature rises. However, caffeine is not supposed to be involved in any other reaction as a reactant; instead, it undergoes simple thermal degradation.
Trigonelline
Trigonelline is a plant alkaloid, formed from the enzymatic methylation of nicotinic acid. It supplies the bitterness of the final beverage. In vitro studies show potential health effects, including an inhibition of the invasiveness of cancer cells32. Moreover, some research suggests that it can improve memory61. During the roasting, it is subject to a consistent degradation, as it is a thermolabile compound. It is a precursor for the formation of different classes of volatile compounds during roasting, such as pyridines and pyrroles, mainly responsible for the coffee aroma. Trigonelline, during the demethylation process, produces a B-complex vitamin, also known as niacin1.
Chlorogenic acids
Chlorogenic acids comprise a diverse range of phenolic compounds, derived from the esterification of trans-cinnamic acids, specifically caffeic, ferulic, and p-coumaric, with quinic acid52. The most relevant CGAs are 3-CGA, 5-CGA, and 3.5-diCGA. Chlorogenic acids contribute to the acidity, astringency and bitterness of the coffee brew19. In recent years, numerous epidemiological and clinical studies have focused on the health benefits of coffee consumption. In particular, a lower risk of developing type 2 diabetes38, Parkinson’s disease51 and Alzheimer’s disease17 has been reported. In vitro and animal studies are the primary evidence supporting the notion that the beneficial properties listed above are attributed to the presence of antioxidants and other mechanisms involving chlorogenic acids48. CGAs are thermolabile compounds; in fact, they undergo many changes during roasting, for example, isomerisation, epimerisation and so on. These substances degrade into lower molecular compounds, including lactones and phenolic derivatives such as caffeic acid47. Moreover, it contributes to the formation of a phenolic acid, i.e., the ferulic acid, in the initial phases of roasting. Regarding this one, it is known that it is a precursor for some important aroma compounds, such as 4-vinylguaiacol, suggesting a degradation of ferulic acid as the roasting goes on. From a kinetic modelling perspective, the degradation of chlorogenic acids during roasting involves multiple concurrent pathways, including: hydrolysis to caffeic and quinic acids, formation of chlorogenic acid lactones and subsequent rearrangements and decarboxylation reactions. In the present model, these complex transformations are represented through a lumped kinetic pathway linking the overall CGA pool (3-CGA, 5-CGA and 3,5-diCGA) to ferulic acid as a measurable secondary phenolic product. This simplification reflects the net effect of CGA degradation observed experimentally and allows the incorporation of phenolic acid evolution within a reduced reaction network suitable for parameter estimation.
Organic acids
Organic acids in coffee are an important source of sourness. At least thirty-eight compounds belong to this category. Individual acids have different inherent sensory properties; in fact, although citric, acetic, formic, malic, quinic, pyruvic, succinic, fumaric, tartaric, and lactic acids are all sour-tasting acids, each of them improves the aroma quality65. For example, the characteristic vinegar aroma of acetic acid, the burnt caramel flavour in pyruvic acid, or the pungent and fermented aroma in formic acid. Along with the sour taste, many acids such as formic, quinic, succinic and caffeic also have a perceptible bitter taste20. Moreover, organic acids can also help the sensorial rate by acting as savour enhancers. This is a property of fumaric, tartaric and oxalic acid. Regarding the roasting, we focus on citric, acetic, and tartaric acids, which are available through chemical analyses of roasted coffee. It is known that citric acid, already present in green coffee, can serve as a precursor to other acid breakdown products10. Moreover, the concentration of acetic acid tends to increase during roasting as it is a product of the Maillard reaction. The tartaric acid undergoes a simple thermal degradation during roasting.
Lipids
Lipids are one of the main constituents of coffee, most of which are contained in the endosperm19. The principal constituents are triglycerides, diterpenes, triterpens and sterols. Lipids influence cream’s stability and mouthfeel. Moreover, some research suggests that they affect the stability of the foam in the beverage and are significant for flavour retention. Additionally, lipids are known to retain volatile chemical compounds within the foam layer47. During the roasting process, the lipid fraction of triglycerides and sterols is quite thermostable. On the other hand, among the diterpenes, we find that cafestol and kahweol can isomerise and are involved in the formation of aromatic compounds via Strecker degradation. There is scientific evidence confirming the contribution of lipids to the formation of aldehydes and pyrazines together with amino acids36.
Carbohydrates and sugars
Carbohydrates make up more than 50% of the dry weight of green coffee beans. One of the most significant is sucrose, as it strongly influences the flavour and overall quality of coffee. Carbohydrates are precursors for the Maillard reaction and caramelisation, which are essential for colour and aroma development19. At temperatures of
C, sucrose begins to break down into simpler molecules, such as glucose and fructose. These two monosaccharides are involved in the Maillard reaction as reducing sugars. As the temperature rises above
C, glucose and fructose undergo caramelisation, a thermal degradation process occurring in the absence of amino compounds. At the end of the coffee roasting process, sucrose, glucose, and fructose are present in negligible quantities.
In this study, we also include the three main sugars in coffee beans (sucrose, fructose, glucose), which are not among the species we directly detect through laboratory analysis. In line with the literature, monosaccharides are present at very low levels in a cup of coffee, and the perceived sweetness is limited and influenced by sensory interactions rather than free sugars8,40. Therefore, we do not present the concentration profiles obtained for sucrose, fructose and glucose below; according to the literature, the numerical results show that only traces of these species remain at the end of the roasting process.
Free amino acids
Free amino acids represent approximately the 0.5−1.0% of the total weight of the coffee bean19. They are essential for colour, aroma and antioxidant activity of the final coffee drink. In fact, proteins, peptides, and free amino acids, such as asparagine, alanine, and proline, are relevant for the savour of coffee, as they are needed for Maillard reactions. They act as precursors with the reducing sugars (glucose, fructose) for the formation of a wide range of volatile and non-volatile products. For instance, the formed compounds include furans, pyridines, pyrazines, pyrroles, aldehydes, and melanoidins. The latter are responsible not only for the colour of coffee but also for its antioxidant activity35.
Other substances
In addition to the compounds discussed previously, other constituents of green coffee and their transformation during roasting are important to the depth of the beverage. First of all, water and minerals have to be mentioned as other major constituents of green coffee.
Moisture (i.e., water) typically represents 10−12% in green beans, and it evaporates rapidly during roasting. It influences the heat transfer and internal pressure of the bean and hence the occurrence of the first crack. Among minerals, potassium is the most present, approximately 40% of the mineral content. The remaining mineral consists of approximately 30 different elements, including sodium, magnesium, calcium and sulfur. Roasting does not particularly affect the concentration of minerals19.
It is well known that roasting triggers the formation of over 800 volatile molecules generally produced through Maillard, Strecker and caramelisation reactions. As previously mentioned, we can encounter furans, pyridines, pyrazines, pyrroles, aldehydes, and melanoidins. It is worth mentioning also 2-furfurylthiol28, methional, acetylmethylcarbinol, and guaiacol, all of which define the roasted and caramelised notes of coffee.
Kinetic modelling
Chemical kinetics studies the rate of chemical reactions by analysing the intrinsic mechanisms in order to determine the rate of such reactions. First of all, it is essential to acknowledge that a chemical substance and its concentration are two distinct entities and must be expressed using different symbols. The recommendations of the International Union of Biochemistry and Molecular Biology11 are to use square brackets to denote the concentrations. For example, [A] is the concentration of substance A, [B] is the concentration of substance B, and so on. Moreover, it is useful to examine how chemical reactions can be classified. One way is according to their molecularity, which defines the number of molecules involved in a reaction. We denote an unimolecular reaction as
![]() |
where A is the precursor and B the product. Meanwhile, a bimolecular reaction can be written as
![]() |
where A and B are precursors of the product C.
In the proposed mathematical model, unimolecular and bimolecular reactions are assumed to follow first-order and second-order reactions, respectively. In the following, we analyse these reactions from a mathematical point of view.
In a first-order reaction, the rate is proportional to a single concentration, while in a second-order reaction it is proportional to the product of two concentrations, and so forth.
By recalling that concentrations are functions of time, in particular
, we simplify the notation, by using [A] instead of [A](t). With this assumption, the rate r of a first-order reaction A
B can be expressed as
![]() |
1 |
where
is the initial concentration of A, zero is the initial concentration of B, and k is a first-order rate constant. Note that (1) can be equivalently rewritten as:
![]() |
2 |
Mathematically speaking, there is no difference in whether the rate is defined in terms of the formation of products or the degradation of reactants. Note that, from (1), the rate r provides two alternative characterisations. With the hypothesis used above, that
and
at time
, from (2) we have that [A] and [B] are related by
![]() |
By standard arguments of mathematical analysis12, we have that the solution of (1) is given by
![]() |
3 |
The reaction A + B
C can be described by
![]() |
4 |
If we assume that the initial concentrations of C is zero, we can write:
![]() |
5 |
where now k is a second-order rate constant,
and
are initial concentrations of A and B, respectively. In fact, the system of Ordinary Differential Equations (ODEs) (4) gives
![]() |
Then, with the above assumption that
at time
, we obtain
![]() |
which justifies the last equality in (5). Moreover, under the assumption that
, by rearranging (5) as
![]() |
a simple integration yields
![]() |
Finally, the solution for (5) is
![]() |
6 |
It is useful to notice that this expression has denominator different from zero so its qualitative behaviour resembles the one of expression in (3); moreover, if concentrations
are expressed as percentage mass fractions on a dry-weight basis (
) and time is measured in seconds, then first-order rate constants have units
, whereas second-order rate constants have units
.
In many cases, a more complex kinetics can occur in chemical reactions. The previously discussed chemical reactions are among the irreversible ones. In principle, chemical reactions can be reversible, i.e., reactants form products, while the products can simultaneously revert to form reactants, and the reaction can be represented as
![]() |
In this circumstance, if we assume that the initial concentration of B is zero, the rate r is given by
![]() |
7 |
and the corresponding ODEs are
![]() |
8 |
In detail, under the assumption
and from (8) we have that
and, a solution for (7) is given by
![]() |
9 |
where
is the concentration of the species B as
.
In classical chemical kinetics, rate constants are derived experimentally by analysing the temporal evolution of concentration, assuming that the reaction is of first-order64. From (9) we have
![]() |
then,
![]() |
Hence, a plot of
against t gives a straight line with slope
, which can be used to extract information on the rate constants. However, this requires knowledge of the asymptotic concentration
, which, in general, can be imprecise or difficult to obtain. For this reason, in most cases, the so-called Guggenheim method31 is preferable, since it provides an estimate of the rate constants by neglecting the dependence on
. In our work, we aim to calibrate the rate constants using a constrained optimisation procedure based on the available experimental data.
We conclude this section with a discussion of the influence of temperature on rate constants. The modern theory describing the impact of temperature on rate constants is based on the work of chemists van’t Hoff and Arrhenius41. Their contribution provides an exact relationship linking kinetic observations with the known properties of equilibrium constants.
We consider a reversible reaction, whose dynamics is described by Equation (7), and we suppose that the reaction is in chemical equilibrium, so that an equilibrium constant K can be defined as the ratio of product concentration to reactant concentration. The dependence of K on temperature T is described by the van’t Hoff equation, i.e.,
![]() |
10 |
where R is the universal gas constant and
is the reaction’s enthalpy variation. From the chemical kinetic laws, under equilibrium conditions33, we have that
![]() |
where
and
are the rate constants of the forward and reverse reaction, respectively. Hence, we can rearrange (10) as
![]() |
11 |
Hence, we obtain an expression for the rate constants in terms of the difference in their variations. We split equation (11) in such a way to obtain two separate evolutions for each rate constant
and
, i.e.,
![]() |
12 |
where
is an integration constant. Arrhenius, supplied by experimental data, postulates that the constant
is zero and that the temperature dependence of any rate constant k is described by the following differential equation
![]() |
13 |
where
is the so-called activation energy, i.e., a kinetic parameter representing the minimum energy required to trigger a chemical reaction. A simple integration with respect to T, and by exponentiation, yields an expression for the rate constant k in terms of the temperature T, i.e.,
![]() |
14 |
where
is the constant of integration. Formula (14) is called the Arrhenius law.
The mathematical model
We translate the chemical concepts presented in the previous section into mathematical language, making use of the tools described above. We take into account the chemical compounds identified in Sections “Experimental analyses” and "Behaviour of chemical compounds during roasting and modelling assumptions", i.e., caffeine (
), tartaric acid (
), acetic acid (
), citric acid (
), trigonelline (
), chlorogenic acids (
), ferulic acid (
), lipids (
), sucrose (
), glucose (
), fructose (
), and free amino acids (
).
We know that, during roasting, sucrose (being a disaccharide) is subject to thermal degradation, and in particular, it acts as a precursor for the monosaccharides considered in this study, i.e., glucose and fructose; this represents a first-order degradation step. Moreover, it is well known that, during roasting, chlorogenic acids act as precursors of several phenolic degradation products. In the proposed model, the transformation of
into ferulic acid is represented as a lumped unimolecular pathway, accounting for the net formation of ferulic acid from the
pool through multiple intermediate reactions. This modelling choice is motivated by the availability of experimental data for ferulic acid and by the need to limit model complexity while preserving chemical plausibility. Since we are only tracking a fixed number of substances, and the remaining ones available are not directly related as precursor-product pairs in specific chemical reactions, it is difficult to construct a chemical scheme that connects all the listed compounds. For this reason, and to highlight the presence of the most important chemical reactions in the coffee roasting process, we introduce a “sink” variable that accounts for other substances (
) that are not directly quantified by our chemical analyses. In fact, the Maillard reaction occurs between reducing sugars (glucose and fructose) and amino acids. The products of this reaction, which include both volatiles and non-volatile compounds (e.g., melanoidines, pyridines, and so on), are collected within
and the reaction is modelled by a second-order kinetics, as we have two reactants combining to form products.
In the context of the Maillard reaction, acetic acid can also be considered a Maillard product involving reducing sugars (
,
), hence in our formulation
is treated as an explicit product of second-order kinetics in which
acts as the second precursor. Another important reaction in which sugars are the only precursors is caramelisation, whose products are stored in
; accordingly, we model a first-order loss of each monosaccharide.
A further reaction that can be taken into account in our model is Strecker degradation, which involves lipids (in particular kahweol and cafestol) and amino acids (
) as precursors, whose products are mainly aldehydes and pyrazines. Thus, we have a second-order reaction in which
and
act as precursors and, again,
is the product. Trigonelline is thermally labile and generates products, such as niacin, that are not chemically analysed. Therefore, its consumption is represented as a first-order kinetic loss into
. The same discussion can be extended to citric and ferulic acid. Finally, for caffeine and tartaric acid, the chemical discussion in Section "Behaviour of chemical compounds during roasting and modelling assumptions" suggests that they are not considered precursors of other specific measured compounds and primarily undergo simple thermal degradation during roasting. However, to keep the reaction network connected and to impose mass conservation in our system, we route their first-order consumption into
. With this convention, the chemical network remains connected, and the total mass is conserved, i.e., the sum of the time derivatives over all concentration variables is zero by construction. Figure 1 provides a schematic representation of the reaction network adopted in this work. Arrows indicate precursor-product relationships.
Fig. 1.
Chemical reactions scheme of the proposed coffee-roasting kinetic model. State variables are:
(caffeine),
(tartaric acid),
(acetic acid),
(citric acid),
(trigonelline),
(chlorogenic acids),
(ferulic acid),
(lipids),
(sucrose),
(fructose),
(glucose),
(free amino acids), and
(other substances). Arrows indicate precursor–product relationships.
Let
be the roasting time interval expressed in seconds. For
, the mathematical roasting model can be formulated as follows
![]() |
15 |
![]() |
16 |
![]() |
17 |
![]() |
18 |
![]() |
19 |
![]() |
20 |
![]() |
21 |
![]() |
22 |
![]() |
23 |
![]() |
24 |
![]() |
25 |
![]() |
26 |
![]() |
27 |
where
,
,
, are the reaction rates, and, for the sake of simplicity, we omit the dependence on t. Note that the ODE system (15) - (27) must be equipped with appropriate initial conditions, and the factors 2 appearing as a multiplicative constant in some of the Equations (15) - (27) are introduced solely for mass-balance. In fact, we observe that the total mass is conserved by the proposed ODE system for the evolution of chemical compounds during the coffee roasting process. In particular, if we define the total mass at time t (in dry-weight basis) as
![]() |
then, a direct summation of Equations (15)–(27) yields
![]() |
28 |
Equation (28) implies that
. In particular, the initial conditions are normalised such that
, and then
.
Let
be the roasting temperature profile of the coffee beans. For
we assume that the reaction rates describing the evolution of the concentrations of the considered substances follow the Arrhenius law, as stated in formula (14), i.e.,
![]() |
29 |
where
,
are suitable kinetic parameters.
The calibration procedure
We now describe the calibration problem associated with the mathematical model of coffee roasting (15) - (27); the goal is to estimate the set of kinetic parameters,
and
,
capable of reproducing the experimentally measured composition of roasted coffee at the end of the process, i.e. at time
.
First of all, let
be the set of non-negative real numbers and let
be the number of measured aforementioned species, the first eight in (30).
We define
the column vector of the concentration values, whose unit of measurement is expressed as a percentage on a dry matter basis, and whose entries are ordered in the following way
![]() |
30 |
Given temperature profile
and the vector
![]() |
whose entries are the parameters of Arrhenius law, the system of ODEs (15) - (27) can be rewritten in a more compact form as
![]() |
31 |
where
is specified component-wise by (15) - (27) and
denotes the vector of initial concentrations determined as follows. Let m be the weight of the green coffee bean, and
,
be the weight of the species j in the green coffee bean, with the ordering given in (30), then we have
![]() |
The initial conditions are
![]() |
where for
are obtained as the mean value of the range given in the literature, see Table 1, as we have only the final laboratory measurements.
Table 1.
Representative literature ranges or mean chemical composition of green Arabica and Robusta coffee. Values are expressed in percentage as mass fractions on a dry-weight basis (
). For each coffee type, the fraction of other substances
is defined as 100 minus the sum of the listed compounds.
| Compound | Arabica ( ) |
Robusta ( ) |
|---|---|---|
Caffeine ( ) |
0.8–1.4 | 1.7–4.0 |
Tartaric acid ( ) |
0.02 | 0.02 |
Sucrose ( ) |
6.0–9.0 | 0.9–4.0 |
Fructose ( ) |
0.05 | 0.2 |
Glucose ( ) |
0.05 | 0.2 |
Free amino acids ( ) |
0.5 | 0.8–1.0 |
Acetic acid ( ) |
0.02 | 0.025 |
Citric acid ( ) |
0.2–0.6 | 0.2–0.7 |
Trigonelline ( ) |
0.6–1.3 | 0.3–0.9 |
Chlorogenic acids ( ) |
4.0–8.0 | 7.0–10.0 |
Ferulic acid ( ) |
0.03–0.09 | 0.04–0.12 |
Lipids ( ) |
10–17 | 11 |
Under these assumptions, for each admissible
, the initial value problem (31) has a unique solution
defined on the roasting interval I. Note that the solution
depends on
. Given
, by using the above-described model, we can compute the numerical concentrations at the final roasting time, the vector
. It depends on
, and we can compare its first N entries with the experimental data obtained from the chemical analyses of the roasted beans, denoted by
,
. In particular, this allows us to calibrate the model, that is, choose
. Hence the calibration procedure of the mathematical coffee roasting model is performed using the final concentrations of the measured species. Since these species can span different orders of magnitude, instead of minimising the simple sum of squares of the relative errors at the final time, we define a scale-invariant objective function based on the logarithmic residuals, defined as follows
![]() |
32 |
Note that under the assumptions made in the considered kinetic model, all concentrations are strictly positive, so that (32) is well-defined. Moreover, if
![]() |
then, when
,
and (32) can be written as
![]() |
i.e.,
approximates the usual relative error of the species j.
By collecting all the log-residuals into the vector
, i.e.,
![]() |
we can consider the following objective function
![]() |
33 |
This dimensionless function measures the overall discrepancy between the simulated and experimental final compositions.
The kinetic parameters that we want to estimate, i.e., the entries of the vector
, are restricted to the following admissible set
![]() |
34 |
where the bounds are introduced to enforce positivity and exclude unphysical values.
For any
, a solution
must satisfy the kinetic model, i.e., the ODE system (31), with initial conditions determined by the considered green coffee, which are literature-based, at this stage. Thus, the calibration procedure, i.e., the parameter estimation problem, can be written as the following nonlinear constrained optimisation problem
![]() |
35 |
We note that the objective function is based on
measurements obtained at the end of the roasting process, while the unknown kinetic parameters are
, so the problem is underdetermined. Hence, we expect that the parameters vector
is not uniquely identifiable. Moreover, despite the underdetermined nature of the problem and the initial conditions taken from the literature, the following numerical results confirm the flexibility of the proposed method.
Numerical implementation
The optimisation problem (35) is solved numerically by combining a variable-step, variable-order ODE solver, based on the numerical differentiation formulas of orders 1 to 5 used to obtain an approximate solution of the initial value problem (31) and a constrained non-linear least-squares algorithm. Moreover, since these kinds of problems are usually non-convex, the objective function may have many minima. For this reason, we adopt a multistart strategy to mitigate this issue.
First of all, for the numerical solution, it is convenient to reparametrise the Arrhenius law in terms of the reference rate constants,
. Given a reference temperature
, we can write
![]() |
36 |
Observe that
is the rate constant at temperature
, whereas
is the activation energy. This formulation is algebraically equivalent to the standard Arrhenius law (29) with
![]() |
37 |
As stated in Schwaab and Pinto57, the use of formula (36) leads to better scaling and reduces the correlation between the fitted parameters. The admissible set (34) must be therefore specified by bounds on
,
. These bounds are chosen to encode basic physicochemical knowledge on the evolution of the studied compounds during coffee roasting. In particular, for 
- (b1)
- the activation energies
are restricted to the interval with limits selected in accordance with typical values reported for the main chemical reactions involved, i.e. thermal degradation, the Maillard reaction, and so forth. For instance, based on van Boekel63, we typically select a range of the order of 40-
for the activation energies; 
- (b2)
the rate constants at temperature
, i.e., the parameters
, are bounded in a dimensionally consistent way. First-order constants, whose unit is
, are constrained as
for
, whereas second-order constants, whose unit is
, are constrained as
for
.
From the choice of bounds (b1), (b2) and from Equations (36), (37) we have that
![]() |
where
![]() |
and
![]() |
38 |
For each admissible parameter vector
(or equivalently
) the kinetic model (31) is integrated over the interval I using a stiff ODE algorithm with the initial concentration
and the bean temperature profile
as input. Given the final measured concentrations i.e., the values
,
, we evaluate the objective function
employing the simulated final concentration obtained from the numerical solution. Consequently, the constrained non-linear least-squares problem (35) is solved.
As previously noted, these kinds of optimisation problems are usually non-convex, which means that the global minimum is strongly affected by the choice of the starting point for the non-linear minimisation routine. For this reason, we adopt a multi-start strategy to reduce this dependence on the initial guess.
We summarise all the steps required for the implementation of the calibration procedure in Algorithm 1.
Algorithm 1.
Calibration of the kinetic parameters
Note that each evaluation of the objective function F within the minimisation routine, as described in Algorithm 1, requires the numerical solution of the ODE system (31) with the current kinetic parameters.
Algorithm 1 has been implemented in MATLAB44. In particular, we use the stiff ODE solver ode15s59 for the numerical solution of the initial value problem (31) and the MATLAB function lsqnonlin for the non-linear constrained optimisation problem (35) with explicit lower and upper bounds. In particular, the function ode15s is equipped with the option ‘NonNegative’ that ensures non-negativity of all chemical compounds. The optimisation performed in MATLAB by lsqnonlin uses the following options:
Algorithm = ‘levenberg-marquardt’;
MaxIterations = 300;
MaxFunctionEvaluations =
;StepTolerance =
;FunctionTolerance =
.
As discussed in the previous subsection, the calibration problem is underdetermined. Hence, the trust-region-reflective algorithm is not applicable, and lsqnonlin uses the Levenberg-Marquardt23 method. Moreover, in the presence of bound constraints, lsqnonlin modifies the Levenberg-Marquardt iterations as follows: if an iterative solution
lies outside the bounds, the algorithm projects the step onto the nearest feasible point43. In detail, the projection operator
, which projects infeasible points onto the feasible region, is defined as follows. Let
be the lower and upper bounds vectors, respectively, defined as
![]() |
Given
, for
the operator P is given by:
![]() |
Bound enforcement has been verified after the optimisation routine by checking that the optimal parameter
satisfies the prescribed bounds. In Tables 6 and 7, there are the optimal parameters obtained by choosing
.
Table 6.
Optimal reference rate constants
.
| Mexico (Arabica) | Rwanda (Arabica) | Nicaragua (Robusta) | Indonesia (Robusta) | |
|---|---|---|---|---|
![]() |
2.3763e-05 | 1.5166e-05 | 3.5328e-05 | 5.0141e-05 |
![]() |
1.4466e-04 | 2.8421e-04 | 1.7855e-04 | 1.4209e-04 |
![]() |
1.0922e-05 | 9.1560e-04 | 7.9492e-05 | 1.1630e-04 |
![]() |
5.2319e-04 | 4.7929e-04 | 5.0132e-04 | 4.1395e-04 |
![]() |
1.1896e-06 | 1.9342e-06 | 1.4989e-06 | 3.1343e-05 |
![]() |
1.0151e-03 | 1.7889e-03 | 8.2930e-02 | 7.6982e-04 |
![]() |
3.7263e-05 | 6.2401e-04 | 8.8913e-06 | 2.6232e-05 |
![]() |
1.0000e-06 | 1.1517e-06 | 1.0000e-06 | 2.6444e-05 |
![]() |
9.4181e-04 | 1.4146e-05 | 1.3745e-02 | 3.8173e-04 |
![]() |
9.9865e-04 | 5.1406e-05 | 1.0000e-03 | 3.6369e-05 |
![]() |
4.2515e-04 | 9.0666e-04 | 3.8697e-04 | 3.5367e-04 |
![]() |
4.2419e-04 | 5.1567e-04 | 4.6803e-04 | 4.2106e-04 |
![]() |
5.0386e-04 | 3.6364e-04 | 2.2884e-04 | 4.9929e-04 |
![]() |
1.9548e-02 | 2.4444e-02 | 2.4683e-02 | 2.5734e-02 |
![]() |
1.0000e-03 | 9.5798e-04 | 7.9041e-04 | 5.0210e-05 |
Table 7.
Optimal activation energies
.
| Mexico (Arabica) | Rwanda (Arabica) | Nicaragua (Robusta) | Indonesia (Robusta) | |
|---|---|---|---|---|
![]() |
109.9181 | 124.6180 | 122.3157 | 109.9405 |
![]() |
109.9752 | 90.8344 | 100.0190 | 109.9741 |
![]() |
104.9629 | 87.8731 | 121.3410 | 104.9826 |
![]() |
104.9773 | 112.6491 | 96.7950 | 105.0052 |
![]() |
104.9766 | 115.2129 | 115.6815 | 105.0028 |
![]() |
105.0229 | 105.7871 | 122.5968 | 105.0231 |
![]() |
104.9297 | 120.9254 | 123.4736 | 104.9468 |
![]() |
134.8449 | 145.8624 | 109.2285 | 135.0001 |
![]() |
110.0308 | 126.8107 | 139.7457 | 110.0046 |
![]() |
60.0827 | 51.7517 | 48.1179 | 59.9898 |
![]() |
100.0092 | 77.5419 | 95.4996 | 100.0035 |
![]() |
100.0092 | 96.2164 | 93.8043 | 100.0091 |
![]() |
100.0018 | 112.1700 | 121.7768 | 99.9926 |
![]() |
100.1420 | 93.3901 | 103.2257 | 100.1612 |
![]() |
100.1980 | 105.9417 | 111.7874 | 100.0466 |
Results and discussion
In this section, we present the experimental data used for the calibration of the kinetic model.
Green coffee composition
We first specify the initial composition of green coffee used as initial condition for numerically solving the ODE system in (31). Table 1 reports representative values for the main chemical species considered in the mathematical model for Coffea Arabica and Coffea Canephora (Robusta). These values are available among the various literature investigating the green coffee composition, see for example19,47 for more details.
Results of chemical analyses
We consider four roasted coffee powders provided by Gambilongo Caffè srl: two Coffea arabica L. samples (Mexico, Rwanda) and two Coffea canephora Pierre ex A. Froehner samples (Nicaragua, Indonesia). For each roasted sample, chemical analyses are carried out to quantify the concentration of caffeine, trigonelline, selected chlorogenic acids, ferulic acid, organic acids and lipids according to the procedure described in Section “Experimental analyses”. The corresponding final compositions are summarised in Table 2 as mean ± standard deviation over three measurements. The chemical composition of the roasted coffee powders showed marked differences between Coffea arabica (Mexico, Rwanda) and Coffea canephora (Nicaragua, Indonesia) samples. As expected, Robusta coffees exhibited higher caffeine and chlorogenic acid contents than Arabica, in agreement with previously reported species-dependent differences19. Caffeine levels ranged from 8491 to 8615
in Arabica and 15258 to 16607
in Robusta. Trigonelline concentrations were inversely correlated, being higher in Arabica (
) and lower in Robusta (
), consistent with the known thermolability of this compound during roasting and its species-dependent precursor abundance3,14. Chlorogenic acids represented the dominant phenolic fraction. The sum of 3-CGA, 5-CGA and 3,5-diCGA ranged between
in Arabica and
in Robusta samples. The higher levels in C. canephora agree with literature data reporting up to twice the total CGA content compared to C. arabica13. Among isomers, 5-CGA was the most abundant, confirming its thermodynamic stability under roasting conditions24. Ferulic acid, a degradation product of CGA, showed moderate differences among origins (
), indicating similar roasting intensities.
Table 2.
Final composition of roasted coffee powders at the end of roasting. Values are reported as mean ± standard deviation.
| Compound | Mexico (Arabica) | Rwanda (Arabica) | Nicaragua (Robusta) | Indonesia (Robusta) |
|---|---|---|---|---|
Caffeine ( ) [mg/kg] |
8491.40 ± 64.22 | 8615.33 ± 84.20 | 15258.71 ± 57.04 | 16607.39 ± 12.48 |
| 3,5-diCGA [mg/kg] | 195.23 ± 1.21 | 201.66 ± 0.53 | 310.24 ± 1.18 | 329.10 ± 1.09 |
| 5-CGA [mg/kg] | 675.62 ± 3.95 | 722.17 ± 3.27 | 980.82 ± 1.58 | 1050.11 ± 2.21 |
| 3-CGA [mg/kg] | 206.34 ± 0.40 | 218.64 ± 1.61 | 300.11 ± 0.29 | 315.08 ± 1.83 |
Trigonelline ( ) [mg/kg] |
321.67 ± 8.96 | 305.83 ± 7.26 | 227.18 ± 10.85 | 220.58 ± 10.55 |
Ferulic acid ( ) [mg/kg] |
28.35 ± 0.36 | 34.96 ± 2.49 | 32.31 ± 0.73 | 33.29 ± 2.42 |
Tartaric acid ( ) [mg/kg] |
41.24 ± 0.95 | 40.00 ± 0.80 | 43.72 ± 1.55 | 42.18 ± 1.38 |
Citric acid ( ) [mg/kg] |
134.41 ± 6.19 | 125.17 ± 4.1 | 258.96 ± 1.96 | 280.93 ± 3.56 |
Acetic acid ( ) [mg/kg] |
403.66 ± 1.14 | 456.24 ± 4.53 | 671.21 ± 2.01 | 693.39 ± 7.04 |
Lipids ( ) [ ] |
11.00 ± 1.35 | 12.30 ± 1.84 | 7.10 ± 1.56 | 10.20 ± 2.83 |
Non-lipid compounds are expressed in mg/kg (ppm) of roasted coffee powder. Lipids are expressed in percentage as mass fractions on a dry-weight basis (
).
The profile of low-molecular-weight organic acids (citric, tartaric and acetic acids) revealed the expected transformation patterns associated with the roasting process. Citric acid, the most heat-labile component, decreased substantially compared to reported concentrations in green coffee (typically
in Arabica and
in Robusta46). In the roasted samples, residual levels ranged from
in Arabica and
in Robusta, reflecting degradation via decarboxylation. Conversely, acetic acid accumulated as a secondary product of carbohydrate pyrolysis and Maillard reactions, with higher concentrations in Robusta (
) than Arabica (
). Tartaric acid, known for its greater thermal stability, remained nearly constant across origins (
). The overall acid profile indicates that the higher acetic acid concentrations observed in Robusta coffees are consistent with their distinct chemical composition and roasting behaviour. Acetic acid formation during roasting is primarily associated with carbohydrate degradation, Maillard reactions and pyrolytic pathways; rather than with chlorogenic acid decomposition. Therefore, the observed differences are more plausibly related to variations in carbohydrate content and thermal reaction pathways between Coffea arabica and Coffea canephora, rather than to CGA levels alone.
The lipid yield for each sample was calculated based on an initial mass of 5 g per sample. The total lipid content ranged from 7.1% to 12.3%, with higher levels in Arabica than Robusta, consistent with previous compositional reports9. Lipids in roasted coffee are mainly triglycerides, diterpenes and free fatty acids. These are mainly generated through lipid-related processes, including triglyceride hydrolysis and thermal degradation occurring during roasting. These reactions may be promoted by high temperatures and moisture release within the coffee bean matrix, leading to the partial cleavage of ester bonds in acylglycerols and the subsequent release of free fatty acids. Their abundance plays a critical role in the retention of hydrophobic aroma compounds and the formation of crema in espresso beverages. The relatively high lipid recovery in the Arabica samples (
) supports their smoother mouthfeel and aromatic richness, whereas the lower lipid content in Robusta (
) is associated with greater bitterness and less body in the cup.
It is also worth noting that the experimental variability associated with lipid determination is higher than that observed for the other quantified compounds. This behaviour can be attributed to the gravimetric nature of the Soxhlet extraction method, which is inherently more sensitive to sample heterogeneity, solvent penetration efficiency and matrix-related effects compared to chromatographic techniques used for other analytes.
These trends are consistent with the known green coffee composition listed in Table 1, and the behaviour of the studied compounds during roasting, as described in Section "Behaviour of chemical compounds during roasting and modelling assumptions". To ensure consistency with the kinetic model, all measured concentrations are converted into a dry-weight basis (
) before the calibration procedure.
Temperature profile
All four coffee samples were roasted on an industrial IMF drum roaster using standard production conditions. For each batch, Gambilongo Caffè srl provided the main temperature markers of the roasting curve: charge temperature, turning point, onset of the yellow phase, first crack and end-of-roast (drop) temperature. These markers are reported in Table 3. In the kinetic simulations, time is expressed in seconds, and the roasting temperature profile
for each sample is obtained as a continuous function by interpolation, and shown in Figures 2 and 3. This temperature profile
is used as a common input in the Arrhenius law for all reactions, hence no additional fitting of the thermal profile is introduced. In this way, the calibration procedure acts exclusively on the kinetic parameters, while the thermal history is prescribed by measurements.
Table 3.
Roasting conditions and main temperature markers for the four coffee samples.
| Marker | Mexico (Arabica) | Rwanda (Arabica) | Nicaragua (Robusta) | Indonesia (Robusta) |
|---|---|---|---|---|
Charge temperature [t, C] |
0:00, 180 | 0:00, 182 | 0:00, 190 | 0:00, 185.6 |
Turning point [t, C] |
1:33, 88.5 | 1:31, 88 | 1:39, 77.6 | 1:38, 77.4 |
Yellow phase [t, C] |
5:20, 151 | 5:15, 150 | 6:35, 156 | 6:55, 156 |
First crack [t, C] |
10:05, 202 | 10:06, 200 | 11:56, 201 | 11:52, 203 |
Drop/end of roast [t, C] |
13:03, 214.8 | 12:56, 213 | 15:20, 230 | 14:56, 228 |
Fig. 2.

The blue solid curve represents the temperature profile
for the Arabica single-origin samples used in the numerical simulation. The red markers denote the roaster temperature measurements, and the green marker denotes the assumed initial temperature.
Fig. 3.

The blue solid curve represents the temperature profile
for the Robusta single-origin samples used in the numerical simulation. The red markers denote the roaster temperature measurements, and the green marker denotes the assumed initial temperature.
In detail, the curves in Figs. 2 and 3 show the roasting temperature profiles used in the numerical simulation for the four considered single-origin samples. In particular, the red points represent the temperature measurements obtained from a thermocouple positioned on the wall of the drum and reported in Table 3. We assume that the bean temperature starts at
(green point in Figs. 2 and 3), which is close to the ambient temperature, and then grows rapidly to reach the measured temperature. Hence, from the second red point onward, the four points are assumed to represent the temperature of the beans. Accordingly, the bean temperature profile
is obtained by a piecewise cubic Hermite interpolation of the five data points described above and shown in Figs. 2 and 3. In detail, the curves
are computed in MATLAB by means of the interp1 function, with the option ‘pchip’. Finally, we also emphasise that the choice of the first marker is an assumption that at least affects the early-time kinetics.
Results of the kinetic model
We present the results of the calibration procedure for the proposed mathematical model for coffee roasting. First of all, we recall that we have introduced
, i.e. the fraction of other substances, to account for mass conservation. We notice that, also from a numerical point of view, the claimed mass conservation is reached within a tolerance of order
, see Table 4. In this table, the maximum relative percentage error is listed for all the single-origin coffee samples; these values are obtained as
![]() |
Table 4.
Maximum relative percentage errors of the computed total mass M(t) during the ODE integration.
| Blend | Variety | Relative percentage error |
|---|---|---|
| Mix Mexico | Arabica | 1.1638e-09 |
| Mix Rwanda | Arabica | 2.5580e-12 |
| Mix Nicaragua | Robusta | 1.6311e-10 |
| Mix Indonesia | Robusta | 1.6257e-11 |
Relative percentage errors between measured values and simulated ones at the final time, i.e., at
, are listed in Table 5. As we can see, excellent agreement is obtained for the majority of the quantified chemical species among the single-origin samples. This suggests that the proposed calibration procedure is able to closely match the available end-of-roast chemical measurements under the considered conditions. However, it is also worth noting that in some of the single-origin samples, lipids exhibit the largest discrepancies, which is consistent with a higher experimental variability associated with gravimetric lipid determination. At this stage, these results should be interpreted as an assessment of the model’s flexibility to describe the roasting processes of coffee beans.
Table 5.
Relative percentage errors at final time for each measured species and single-origin coffee.
| Species | Mexico (Arabica) | Rwanda (Arabica) | Nicaragua (Robusta) | Indonesia (Robusta) |
|---|---|---|---|---|
Caffeine ( ) |
7.2053e-08 | 8.9316e-08 | 5.0868e-07 | 8.6708e-12 |
Tartaric acid ( ) |
3.0326e-08 | 1.2606e-07 | 1.9282e-05 | 4.8583e-11 |
Acetic acid ( ) |
2.6011e-02 | 9.9023e-03 | 1.1727e-01 | 2.0092e-10 |
Citric acid ( ) |
4.8324e-10 | 6.7523e-07 | 3.5136e-05 | 2.2082e-10 |
Trigonelline ( ) |
8.5232e-11 | 6.3377e-07 | 2.4674e-05 | 3.0171e-10 |
Chlorogenic acids ( ) |
5.2831e-08 | 5.0630e-06 | 1.1017e-04 | 4.7222e-10 |
Ferulic acid ( ) |
5.8922e-08 | 3.0091e-05 | 1.2714e-04 | 6.8991e-10 |
Lipids ( ) |
1.8252e+01 | 5.7893e+00 | 4.2484e+01 | 2.8200e-12 |
In Mix Mexico (Arabica), for most species, the relative error in percentage lies between
and
, with the largest error for lipids. In Mix Rwanda (Arabica), the relative error in percentage at final time is less than
, for all species, with the exception of lipids, which show an error of 5.79. In Mix Nicaragua (Robusta), most species show a relative error less than 0.20, while lipids show the maximum error. In Mix Indonesia (Robusta), errors are essentially zero; indeed, they are less than
for all species.
The temporal profiles of the measured compounds are shown in Figs. 4 and 5. We remark that the intermediate-time concentration profiles shown are model-generated trajectories. In detail, the calibration procedure uses end-of-roast measurements, so that these intermediate-time trajectories should be interpreted as model-based predictions rather than experimentally confirmed kinetics. Across all four roasts, the model reproduces qualitatively reasonable trends for the tracked species. Caffeine, tartaric acid, citric acid, trigonelline and CGAs exhibit monotone decays compatible with an effective first-order behaviour. Acetic acid increases during roasting, while ferulic acid displays a formation-consumption pattern. Finally, lipids decrease smoothly. The corresponding optimal Arrhenius parameters
identified by the calibration are reported in Tables 6 and 7.
Fig. 4.
Concentration profiles of the measured compounds (
,
,
,
,
,
,
,
) for the two Arabica single-origin samples. The solid blue line represents the evolution over time of the Mix Mexico single-origin coffee, and the dotted red line represents the evolution of the Mix Rwanda single-origin coffee.
Fig. 5.
Concentration profiles of the measured compounds (
,
,
,
,
,
,
,
) for the two Robusta single-origin samples. The solid blue line represents the evolution over time of the Mix Nicaragua single-origin coffee, and the dotted red line represents the evolution of the Mix Indonesia single-origin coffee.
Within the Arabica panels, i.e. Fig. 4, the two single-origin samples show closely aligned trajectories for the most of the measured compounds, with only slight differences in the amplitude and/or decay rate. In the Robusta panels, i.e. Fig. 5, the profiles are more differentiated, particularly for ferulic acid and the CGA pool, consistently with their reactant-product relationship embedded in the mathematical model. Overall, the results indicate that this preliminary mathematical model for coffee roasting, driven by the measured temperature profile provided by Gambilongo Caffè srl, and calibrated only at the final time, can reproduce the end-of-roast concentrations with acceptable relative errors, listed in Table 5.
Moreover, the model yields qualitatively realistic temporal evolutions for the majority of the species. It should be noted that, since intermediate chemical measurements are not available, further experimental measurements during roasting will be necessary to confirm these dynamics and to enhance the predictive capabilities required for a digital twin.
Conclusion
In this work, we formulate a mathematical model to describe the temporal evolution of the main chemical compounds in coffee beans during roasting. Starting from the chemical evidence about precursor-product relationships, we develop a connected reaction network that includes caffeine, tartaric acid, acetic acid, citric acid, trigonelline, chlorogenic acids, ferulic acid, lipids, sucrose, glucose, fructose and free amino acids. Moreover, motivated by the need to account for the most important chemical reactions, we introduce a sink variable representing the fraction of other compounds. This network is translated into a system of ordinary differential equations with first- and second-order kinetics; furthermore, we take into account for mass conservation via the
variable. The concentration dynamics depend on the reaction rate constants, which in our model are all temperature-dependent through the Arrhenius law. The Arrhenius law is expressed in terms of two parameters, which are unknown and therefore must be estimated. For this reason, we devise a calibration procedure to estimate these parameters through a non-linear least-squares minimisation problem. The calibration was performed by minimising the discrepancy between the values simulated at the final roasting time and those obtained from chemical analyses carried out on four different types of coffee single-origin samples, specifically two varieties of Coffea arabica L. (Mix Mexico and Mix Rwanda) and two of Coffea canephora Pierre ex A. Froehner (Mix Indonesia and Mix Nicaragua). The results show a certain consistency with the theoretical evolution of the substances considered, and they represent a starting point for the development of a more complete and effective digital twin for coffee roasting. Future work will focus on acquiring intermediate time measurements during roasting. In particular, coffee samples collected at set intervals throughout the roasting process will undergo chemical laboratory analyses to monitor the evolution of each substance of interest. This will help refine the temporal behaviour of the concentration profiles. Furthermore, a second important future goal concerns the progressive refinement of the fraction of other substances, by performing appropriate chemical analyses on additional species that are not currently considered but are equally important, especially from a taste and sensory perspective.
Finally, in this paper, we consider only the kinematic aspects of the roasting process, as a first step toward the development of a digital twin for industrial applications. Additional conductive and diffusive processes relevant to coffee roasting modelling will be incorporated in future developments.
Acknowledgements
Nadaniela Egidi, Lorella Fatone, Josephin Giacomini, Pierluigi Maponi and Edin Trebović are members of the Gruppo Nazionale Calcolo Scientifico - Istituto Nazionale di Alta Matematica (GNCS-IN
AM). This research has been accomplished within Rete ITaliana di Approssimazione (RITA), the thematic group on “Approximation Theory and Applications”.
Author contributions
All authors whose names appear in alphabetical order on the submission have approved the version to be published. M.J.B. made substantial contributions to: providing the coffee powders for the four single-origin samples and the associated temperature profiles. N.E. made substantial contributions to: 1) theoretical model development; 2) writing and reviewing the mathematical sections of the manuscript; 3) interpretation of data. L.F. made substantial contributions to: 1) theoretical model development; 2) reviewing the manuscript; 3) interpretation of data. J.G. made substantial contributions to: 1) conceptualisation; 2) theoretical model development; 3) writing and reviewing the manuscript; 4) interpretation of data. P.M. made substantial contributions to: 1) design of the work; 2) theoretical model development; 3) reviewing the manuscript; 4) conceptualisation. G. S. provided the funds for the chemical analyses. A.S. made substantial contributions to: 1) chemical data collection and processing, extractions and chromatographic analyses; 2) writing and reviewing the chemical sections of the manuscript. E.T. made substantial contributions to: 1) theoretical model development; 2) software implementation and testing of the algorithm; 3) interpretation of data; 4) writing and reviewing the manuscript.
Data availability
The data are available in the manuscript.
Declarations
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
- 1.Adrian, J. & Frangne, R. Synthesis and availability of niacin in roasted coffee. Adv. Exp. Med. Biol.289, 49–59. 10.1007/978-1-4899-2626-5_4 (1991). [DOI] [PubMed] [Google Scholar]
- 2.Angeloni, G. et al. What kind of coffee do you drink? An investigation on effects of eight different extraction methods. Food Res. Int.116, 1327–1335. 10.1016/j.foodres.2018.10.022 (2019). [DOI] [PubMed] [Google Scholar]
- 3.Angeloni, S. et al. Computer percolation models for espresso coffee: State of the art, results and future perspectives. Appl. Sci.13, 2688. 10.3390/app13042688 (2023). [Google Scholar]
- 4.Angeloni, S. et al. Characterization of the aroma profile and main key odorants of espresso coffee. Molecules26(13), 3856. 10.3390/molecules26133856 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Açıkalın, B. & Sanlier, N. Coffee and its effects on the immune system. Trends Food Sci. Technol.114, 625–632. 10.1016/j.tifs.2021.06.023 (2021). [Google Scholar]
- 6.Al-Shemmeri, M., Fryer, P., Farr, R. & Lopez-Quiroga, E. Development of coffee bean porosity and thermophysical properties during roasting. Journal of Food Engineeering378, 112096. 10.1016/j.jfoodeng.2024.112096 (2024). [Google Scholar]
- 7.Buffo, R. A. & Cardelli-Freire, C. Coffee flavour: An overview. Flavour Fragr. J.19(2), 99–104. 10.1002/ffj.1325 (2004). [Google Scholar]
- 8.Batali, M. E., Frost, S. C., Lebrilla, C. B., Ristenpart, W. D. & Guinard, J.-X. Sensory and monosaccharide analysis of drip brew coffee fractions versus brewing time. J. Sci. Food Agric.100(7), 2953–2962. 10.1002/jsfa.10323 (2020). [DOI] [PubMed] [Google Scholar]
- 9.Belitz, H.-D., Grosch, W. & Schieberle, P. Food Chemistry 4th revised and extended edn. (Springer, 2009). 10.1007/978-3-540-69934-7. [Google Scholar]
- 10.Bahre, F. & Maier, H.G.: New non-volatile acids in coffee. Dtsche Lebensm.-Rundsck 95. https://www.semanticscholar.org/paper/New-non-volatile-acids-in-coffee-Bahre-Maier/d5a5c2d22a546eeadee5586ac5381cc4e4136c6e (1999).
- 11.Cornish-Bowden, A. Current IUBMB recommendations on enzyme nomenclature and kinetics. Perspect. Sci.1, 74–87. 10.1016/j.pisc.2014.02.006 (2014). [Google Scholar]
- 12.Coddington, E. A. An Introduction to Ordinary Differential Equations (Prentice-Hall, 1955). [Google Scholar]
- 13.de Paula, J. & Farah, A. Caffeine consumption through coffee: Content in the beverage, metabolism, health benefits and risks. Beverages5(2), 37. 10.3390/beverages5020037 (2019). [Google Scholar]
- 14.Daglia, M., Papetti, A., Gregotti, C., Bertè, F. & Gazzani, G. In vitro antioxidant and ex vivo protective activities of green and roasted coffee. J. Agric. Food Chem.48(5), 1449–1454. 10.1021/jf990510g (2000). [DOI] [PubMed] [Google Scholar]
- 15.Egidi, N., Giacomini, J., Larsson, E. & Perticarini, A. An improved numerical scheme for coffee extraction yield evaluation. Chaos. Solitons. Fractals.188, 115625. 10.1016/j.chaos.2024.115625 (2024). [Google Scholar]
- 16.Egidi, N., et al.: An advection–diffusion–reaction model for coffee percolation. Computational & Applied Mathematics 41(6). 10.1007/s40314-022-01929-9 (2022).
- 17.Eskelien, M. H. & Kivipelto, M. Caffeine as a protective factor in dementia and Alzheimer’s disease. J. Alzheimers Dis.20, 67–74. 10.3233/JAD-2010-1404 (2010). [DOI] [PubMed] [Google Scholar]
- 18.Dietetic Products, N. & (Nda), A. Scientific opinion on the safety of caffeine. EFSA J.13(5), 4102. 10.2903/j.efsa.2015.4102 (2015).
- 19.Farah, A.: 2. Coffee Constituents, 21–58 (John Wiley & Sons, Ltd, New Delhi, India, 2012). 10.1002/9781119949893.ch2
- 20.Frank, O., Blumberg, S., Kunert, C., Zehentbauer, G. & Hofmann, T. Structure determination and sensory analysis of bitter-tasting 4-vinylcatechol oligomers and their identification in roasted coffee by means of lc-ms/ms. Journal of Agricultural Food Chemistry55(5), 1945–1954. 10.1021/jf0632280 (2007). [DOI] [PubMed] [Google Scholar]
- 21.Fabbri, A., Cevoli, C., Alessandrini, L. & Romani, S. Numerical modeling of heat and mass transfer during coffee roasting process. Journal of Food Engineeering105(2), 264–269. 10.1016/j.jfoodeng.2011.02.030 (2011). [Google Scholar]
- 22.Fadai, N. T., Melrose, J., Please, C. P., Schulman, A. & Van Gorder, R. A. A heat and mass transfer study of coffee bean roasting. Int. J. Heat Mass Transf.104, 787–799. 10.1016/j.ijheatmasstransfer.2016.08.083 (2017). [Google Scholar]
- 23.Fischer, A., Izmailov, A.F. & Solodov, M.V.: The levenberg–marquardt method: an overview of modern convergence theories and more. Computational Optimization and Applications89, 33–67. 10.1007/s10589-024-00589-1 (2024).
- 24.Ginz, M., Balzer, H. H., Bradbury, A. G. & Maier, H. G. Formation of aliphatic acids by carbohydrate degradation during roasting of coffee. Eur. Food Res. Technol.211(6), 404–410. 10.1007/s002170000215 (2000). [Google Scholar]
- 25.Gallardo-Ignacio, J. et al. Chemical and biological characterization of green and processed coffee beans from Coffea arabica varieties. Molecules28(12), 4685. 10.3390/molecules28124685 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Giacomini, J., Maponi, P. & Perticarini, A. Cmmse: A reduced percolation model for espresso coffee. J. Math. Chem.61(3), 520–538. 10.1007/s10910-022-01428-6 (2023). [Google Scholar]
- 27.Geiger, R., Perren, R., Kuenzli, R.B. & Escher, F.: Carbon dioxide evolution and moisture evaporation during roasting of coffee beans, vol. 70, pp. 124–130 (2005). https://api.semanticscholar.org/CorpusID:96157180
- 28.Grosch, W. Evaluation of the key odorants of foods by dilution experiments, aroma models and omission. Chem. Senses.26(5), 533–545. 10.1093/chemse/26.5.533 (2001). [DOI] [PubMed] [Google Scholar]
- 29.Getachew, M. et al. The relationship between elevation, soil temperatures, soil chemical characteristics, and green coffee bean quality and biochemistry in southwest Ethiopia. Agron. Sustain. Dev.42(4), 61. 10.1007/s13593-022-00801-8 (2022). [Google Scholar]
- 30.Göncüoğlu Taş, N. & Gökmen, V. Maillard reaction and caramelization during hazelnut roasting: A multiresponse kinetic study. Food Chem.221, 1911–1922. 10.1016/j.foodchem.2016.11.159 (2017). [DOI] [PubMed] [Google Scholar]
- 31.Guggenheim, E. A. XLVI. On the determination of the velocity constant of a unimolecular reaction. Philos. Mag. J. Sci.2(9), 538–543. 10.1080/14786442608564083 (1926). [Google Scholar]
- 32.Hirakawa, N., Okauchi, R., Miura, Y. & Yagasaki, K. Anti-invasive activity of niacin and trigonelline against cancer cells. Biosci. Biotechnol. Biochem.10.1271/bbb.69.653 (2005). [DOI] [PubMed] [Google Scholar]
- 33.Houston, P. L. Chemical Kinetics and Reaction Dynamics 1st edn. (Courier Corporation, 2012). [Google Scholar]
- 34.Hibbert, S., Welham, K. & Zein, S. H. An innovative method of extraction of coffee oil using an advanced microwave system: In comparison with conventional Soxhlet extraction method. SN Appl. Sci.1, 1467. 10.1007/s42452-019-1457-5 (2019). [Google Scholar]
- 35.Wang, H.-Y., Qian, H. & Yao, W.-R. Melanoidins produced by the Maillard reaction: Structure and biological activity. Food Chem.128(3), 573–584. 10.1016/j.foodchem.2011.03.075 (2011). [Google Scholar]
- 36.Hidalgo, F. J. & Zamora, R. Amino acid degradations produced by lipid oxidation products. Crit. Rev. Food Sci. Nutr.56(8), 1242–1252. 10.1080/10408398.2012.761173 (2016). [DOI] [PubMed] [Google Scholar]
- 37.Illy, A. & Viani, R.: Espresso coffee: the science of quality. (2005). https://api.semanticscholar.org/CorpusID:106743768
- 38.Kolb, H. Coffee and lower risk of type 2 diabetes: Arguments for a causal relationship. Nutrients13(4), 1144. 10.3390/nu13041144 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Lee, S., Choi, E. & Lee, K.-G. Kinetic modelling of Maillard reaction products and protein content during roasting of coffee beans. LWT211, 116950. 10.1016/j.lwt.2024.116950 (2024). [Google Scholar]
- 40.Low, J. Y. Q., McBride, R. L., Lacy, K. E. & Keast, R. S. J. Psychophysical evaluation of sweetness functions across multiple sweeteners. Chem. Senses.42(2), 111–120. 10.1093/chemse/bjw109 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Logan, S. R. The origin and status of the Arrhenius equation. J. Chem. Educ.59(4), 279. 10.1021/ed059p279 (1982). [Google Scholar]
- 42.Münchow, M., Alstrup, J., Steen, I. & Giacalone, D. Roasting conditions and coffee flavor: A multi-study empirical investigation. Beverages10.3390/beverages6020029 (2020).
- 43.MathWorks: Least-Squares (Model Fitting) Algorithms. https://www.mathworks.com/help/optim/ug/least-squares-model-fitting-algorithms.html. Accessed 2026-01-30
- 44.MATLAB: Version 24.2.0.2833386 (R2024b). The MathWorks Inc., Natick, Massachusetts (2024). https://www.mathworks.com/?s_tid=gn_logo
- 45.Meeprom, S. & Kokkhangplu, A. Customer experience and satisfaction in coffee consumption: An experiential marketing perspective. Cogent Bus. Manag.12(1), 2450296. 10.1080/23311975.2025.2450296 (2025). [Google Scholar]
- 46.Moon, J. K. & Shibamoto, T. Role of roasting conditions in the profile of volatile flavor chemicals formed from coffee beans. J. Agric. Food Chem.57(13), 5823–5831. 10.1021/jf901136e (2009). [DOI] [PubMed] [Google Scholar]
- 47.Makiso, M. U., Tola, Y. B., Ogah, O. & Endale, F. L. Bioactive compounds in coffee and their role in lowering the risk of major public health consequences: A review. Food Sci. Nutr.12(2), 734–764. 10.1002/fsn3.3848 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Natella, F., Nardini, M., Giannetti, I., Dattilo, C. & Scaccini, C. Coffee drinking influences plasma antioxidant capacity in humans. J. Agric. Food Chem.50(21), 6211–6. 10.1021/jf025768c (2002). [DOI] [PubMed] [Google Scholar]
- 49.Oosterveld, A., Voragen, A. G. J. & Schols, H. A. Effect of roasting on the carbohydrate composition of Coffea arabica beans. Carbohydr. Polym.54(2), 183–192. 10.1016/S0144-8617(03)00164-4 (2003). [Google Scholar]
- 50.Pancsira, J.: International coffee trade: a literature review. Journal of Agricultural Informatics 13(1) (2022) 10.17700/jai.2022.13.1.654
- 51.Postuma, R. B. et al. Caffeine for treatment of Parkinson disease: A randomized controlled trial. Neurology79(7), 651–658. 10.1212/WNL.0b013e318263570d (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Pappalardo, V., Ravasio, N., Falletta, E., De Rosa, M. C. & Zaccheria, F. A green lipophilization reaction of a natural antioxidant. Antioxidants12(2), 218. 10.3390/antiox12020218 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Santanatoglia, A. et al. Effect of brewing methods on acrylamide content and antioxidant activity: Studying eight different filter coffee preparations. Antioxidants12(10), 1888. 10.3390/antiox12101888 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Santanatoglia, A. et al. Development of new analytical methods for the quantification of organic acids, chlorogenic acids and caffeine in espresso coffee by using solid-phase extraction (SPE) and high-performance liquid chromatography-diode array detector (HPLC-DAD). J. Food. Compos. Anal.125, 105732. 10.1016/j.jfca.2023.105732 (2024). [Google Scholar]
- 55.Sharma, H.: A detail chemistry of coffee and its analysis. In: (ed Castanheira, D.T.) Coffee - Production and Research. IntechOpen, London (2020). 10.5772/intechopen.91725
- 56.Siebald, H., Möller, M., Lenz, F., Kirchner, S. & Hensel, O. Acoustic condition monitoring of coffee beans, during the roasting process. LWT199, 116119. 10.1016/j.lwt.2024.116119 (2024). [Google Scholar]
- 57.Schwaab, M. & Pinto, J. C. Optimum reference temperature for reparameterization of the Arrhenius equation. Part 1: Problems involving one kinetic constant. Chem. Eng. Sci.62(10), 2750–2764. 10.1016/j.ces.2007.02.020 (2007). [Google Scholar]
- 58.Sruthi, N. U., Premjit, Y., Pandiselvam, R., Kothakota, A. & Ramesh, S. V. An overview of conventional and emerging techniques of roasting: Effect on food bioactive signatures. Food Chem.348, 129088. 10.1016/j.foodchem.2021.129088 (2021). [DOI] [PubMed] [Google Scholar]
- 59.Shampine, L. F. & Reichelt, M. W. The MATLAB ode suite. SIAM J. Sci. Comput.18, 1–22. 10.1137/S1064827594276424 (1997). [Google Scholar]
- 60.Surma, S., Sahebkar, A. & Banach, M. Coffee or tea: Anti-inflammatory properties in the context of atherosclerotic cardiovascular disease prevention. Pharmacol. Res.187, 106596. 10.1016/j.phrs.2022.106596 (2023). [DOI] [PubMed] [Google Scholar]
- 61.Tohda, C., Kuboyama, T. & Komatsu, K. Search for natural products related to regeneration of the neuronal network. Neurosignals14(1–2), 34–45. 10.1159/000085384 (2005). [DOI] [PubMed] [Google Scholar]
- 62.Tarigan, E. B., Wardiana, E. L., Hilmi, Y. S. & Komarudin, N. A. The changes in chemical properties of coffee during roasting: a review. IOP Conference Series: Earth and Environmental Science974, 012115. 10.1088/1755-1315/974/1/012115 (2022). [Google Scholar]
- 63.Boekel, M. A. Kinetic aspects of the Maillard reaction: A critical review. Nahrung Food45(3), 150–159. 10.1002/1521-3803(20010601)45:3<150::AID-FOOD150>3.0.CO;2-9. [DOI] [PubMed] [Google Scholar]
- 64.Boekel, M. A. J. S. Kinetic Modeling of Reactions in Foods 1st edn. (CRC Press, 2008). 10.1201/9781420017410. [Google Scholar]
- 65.Yeager, S. E., Batali, M. E., Guinard, J.-X. & Ristenpart, W. D. Acids in coffee: A review of sensory measurements and meta-analysis of chemical composition. Crit. Rev. Food. Sci. Nutr.10.1080/10408398.2021.1957767 (2023). [DOI] [PubMed] [Google Scholar]
- 66.Zhao, L. G. et al. Coffee drinking and cancer risk: An umbrella review of meta-analyses of observational studies. BMC Cancer20, 101. 10.1186/s12885-020-6561-9 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67.Özen, A. E., Mar Bibiloni, M., Pons, A. & Tur, J. A. Fluid intake from beverages across age groups: A systematic review. J. Hum. Nutr. Diet.28(5), 417–442. 10.1111/jhn.12250 (2015). [DOI] [PubMed] [Google Scholar]
- 68.Şen, D. & Gökmen, V. Kinetic modeling of Maillard and caramelization reactions in sucrose-rich and low moisture foods applied for roasted nuts and seeds. Food Chem.395, 133583. 10.1016/j.foodchem.2022.133583 (2022). [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The data are available in the manuscript.



































































































































