Modeling the Water Sorption Behavior of Pistachio (Pistacia vera L.) using a Three-level Factorial Experimental Design 

M
Mohamed Sami1,*
Z
Zouhair Jemali1
S
Soufiane Ghanimi2
M
Morad Oubouali2
M
Morad Kaddouri2
R
Reda Elkacmi1
A
Abdelali Boulli1
A
Aziz Hasib1
1Laboratory of Environmental, Ecological and Agro-industrial Engineering, Faculty of Science and Technology, University of Sultan Moulay Slimane, 23000- Beni Mellal, Morocco.
2Laboratory of Engineering and Applied Technologies, Higher school of Technology of Beni Mellal, University of Sultan Moulay Slimane, 23000- Beni Mellal, Morocco.

Background: Optimizing preservation parameters for pistachios (Pistacia vera L.), such as temperature, relative humidity (water activity) and moisture content, is crucial for maintaining their quality over time. Temperature control helps prevent microbial growth while preserving the nutrients and flavors of pistachios.

Methods: A regression model was developed to assess the impact of temperature, water activity and moisture content on pistachio quality. The model aims to provide accurate predictions for optimal storage conditions.

Result: Water activity was found to be the most influential factor on pistachio quality, followed by temperature. Higher water activity increases moisture content, while higher temperatures reduce moisture content. The regression model confirmed these effects, offering valuable insights for optimizing pistachio preservation.

Despite the significant expansion of global pistachio production, particularly in the United States, Iran, and Turkey, the processing and valorization capacities in several importing countries, including Morocco, have not progressed at the same rate. This imbalance has created a disparity between imported volumes and local processing infrastructures. In Morocco, pistachio consumption continues to increase, with most of the supply relying on imports from the United States, Turkey, and Iran (USDA, 2023). In a context marked by increasing global food demand and growing concerns regarding food quality and safety, the intersection between food security, nutrition, and sustainable agriculture has become essential for achieving global development goals. Therefore, improving storage practices and post-harvest management is now considered a major challenge to ensure the quality and safety of marketed food products (Dhineshkumar and Vigneshwaran, 2025).
       
However, major challenges persist in post-import management, quality control, storage practices and conservation conditions, all of which significantly influence product stability. Pistachios are highly sensitive to environmental factors such as humidity, temperature and oxygen exposure. Their moisture status is therefore a critical determinant of their physicochemical stability, microbiological safety and shelf life (Kader, 2006). Proper control of storage conditions is therefore essential for preserving food quality during storage. Indeed, the shelf life of fresh products depends on numerous parameters such as storage temperature, respiration rate, film gas permeability, headspace composition, product weight, as well as their interactions throughout the storage period (Hlungwani et al., 2025).
       
Moisture content and water adsorption behavior directly affect the risks of mold growth, aflatoxinss production and lipid oxidation in pistachios (Mousavi et al., 2018). Inadequate storage conditions-particularly high relative humidity in certain Moroccan warehouses or retail environments-can promote fungal proliferation and increase the likelihood of aflatoxins contamination in imported pistachios (Ernest et al., 2015).
       
Beyond fungal hazards, microbial safety also represents a serious concern. Several cases of salmonellosis have been associated with pistachio consumption (Aycicek and Yarsan, 2020, Centers for Disease Control and Prevention, 2016) and contamination by Salmonella has been confirmed through product investigations and recalls (Harris et al., 2016; Yada and Harris, 2018). Studies have demonstrated that Salmonella, Escherichia coli and Listeria monocytogenes can persist in pistachios under typical storage conditions (Kimber et al., 2012). Among these pathogens, Salmonella is considered the most heat-resistant and is therefore used as the reference microorganism for validating pathogen reduction processes in low-moisture foods, including pistachios (Lambertini et al., 2017).
       
Water activity (aw) plays a central role in these deterioration mecWater activity (aw) plays a central role in these deterioration mechanisms. It governs physicochemical reactions such as lipid oxidation and enzymatic activity, as well as microbial growth and survival (Mousavi et al., 2018). Consequently, understanding the hygroscopic behavior of pistachios through adsorption isotherms is essential. Sorption isotherms describe the relationship between moisture content and water activity at constant temperature, enabling prediction of product behavior under various environmental conditions. This approach helps anticipate quality losses such as texture softening, oxidative degradation, and microbial persistence. Similar observations have been reported in various agricultural and food products, where water activity and temperature significantly influence moisture dynamics and storage stability (Sharma et al., 2021; Patel et al., 2020). Moreover, studies on food and legume systems have demonstrated that sorption behavior is strongly dependent on environmental conditions and product composition (Kaur and Sandhu, 2022; Verma et al., 2019). In this perspective, primary processing technologies also play a key role in enhancing the added value of agricultural products. They contribute to reducing post-harvest losses, improving product quality, and strengthening product stability during storage and commercialization. Beyond these benefits, such technologies also support farmers and promote better valorization of agricultural resources (Mohanapriya et al., 2025).
       
Water adsorption in food systems is a complex phenomenon influenced by structural and compositional factors. To describe this behavior, numerous mathematical models have been developed and can generally be classified into theoretical, empirical and semi-empirical models. Empirical models such as Oswin, Smith and Henderson are typically based on two parameters. Semi-empirical models, notably the Peleg model (1993), involve four parameters and are widely applied due to their flexibility. Theoretical models, derived from Langmuir’s concept, include the BET (Brunauer-Emmett-Teller) and GAB (Guggenheim-Anderson-de Boer) equations, which are extensively used to model water sorption in food matrices.
       
In this context, the present study aimed to analyze the combined effects of water activity and temperature on the moisture content of pistachios (Pistacia vera L.). The objective was to establish a predictive mathematical model capable of describing moisture evolution as a function of these two parameters. Ultimately, this work seeks to contribute to the optimization of storage conditions for pistachios marketed in Morocco by improving control over their physical, chemical and microbiological stability.
The experimental study was conducted during the 2024 research period at the Laboratory of Environmental, Ecological and Agro-Industrial Engineering, Faculty of Sciences and Techniques, Université Sultan Moulay Slimane, Beni Mellal, Morocco.
 
Raw material
 
Roasted and salted pistachios (Pistacia vera L.), imported from the United States and commercialized in bulk in various retail outlets within the Fes-Meknes region (Morocco), were selected for this study. The sample analyzed was collected during the 2024 marketing campaign.
 
Experimental design
 
The equilibrium moisture content (Mc) was measured experimentally at three different temperatures (25oC, 35oC and 45oC) and five distinct water activity levels (aw = 0.0019, 0.0483, 0.3524, 0.5809, 0.8280) (Sami et al., 2026). These conditions formed a 3 x 5 factorial design, resulting in 15 trials that covered a wide range of sorption environments relevant to pistachio storage. Moisture uptake was measured using the static gravimetric method until hygroscopic equilibrium was reached (Fig 1).

Fig 1: Experimental setup for the sorption isotherm: (1) temperature-controlled water bath; (2) sample containers; (3) sample supports; (4) pistachio samples; (5) sulfuric acid solutions (Oubouali et al., 2025).


       
The equilibrium moisture content (Mc) was determined using the static gravimetric method, a reference technique known for its precision, reproducibility and thermodynamic reliability in sorption studies (Yazdani et al., 2006) Spiess and Wolf, 1983). A full factorial experimental design was adopted to ensure unbiased estimation of main effects and potential interactions between temperature and water activity. Factorial designs are widely recommended for studying multivariable hygroscopic systems because they improve statistical efficiency and allow comprehensive evaluation of environmental influences on equilibrium moisture behavior (Montgomery, 2017). The selected temperature and water activity ranges were chosen to reflect realistic storage conditions for low-moisture food products (Labuza and Altunakar, 2007).
 
Statistical modeling
 
The combined effects of temperature (T) and water activity (aw) on equilibrium moisture content were evaluated through statistical modeling. A multiple polynomial regression model was used to develop a predictive equation covering the full range of temperatures and water activities. This approach integrates regression analysis (for estimating functional relationships and making predictions) with factorial design principles (to assess the contributions and interactions of the factors).
       
The initial model included the linear effects of T and aw, the quadratic term aw2 to capture curvature and the interaction term T x aw, the model form was:
 
Mc = β0 + β1T + β2𝑎w3𝑎w2 + β4 (T x aw) + ε
 
       
The inclusion of a quadratic aw2 term is theoretically justified by the nonlinear nature of moisture sorption phenomena, particularly in intermediate and high-water activity regions where multilayer adsorption and capillary condensation may occur (Brunauer et al., 1938; van den Berg, 1984). The interaction term (T x aw) was initially introduced to assess potential thermo-hygroscopic coupling effects.
       
All regression analyses were performed using Minitab® 18 (Minitab LLC, State College, PA, USA). Residuals, predicted values, confidence intervals and model diagnostics were generated automatically by the software.
 
Model optimization
 
Model refinement followed standard statistical criteria, including:
• Significance of regression coefficients (p-values).
•  Goodness-of-fit indicators (R2, adjusted R2, predicted R2).
•  And model adequacy checks using residual analysis.
       
Although the interaction term (T x aw) was initially considered, statistical testing revealed its non-significance (p>0.05). Moreover, multicollinearity diagnostics indicated increased variance inflation when the interaction term was retained. Model reduction was therefore performed in accordance with the principle of parsimony, which recommends selecting the simplest model that adequately describes the data while minimizing estimation variance (Kutner et al., 2005). The reduced model improved parameter stability without compromising predictive performance, as confirmed by predicted R2 values:
 
Mc = β0 + β1T + β2aw + β3 aw2
 
This reduced model provided a better balance between simplicity, stability and predictive accuracy.
 
Validation and assumption checking
 
The validation of the model assumptions was carried out through various diagnostic tests, such as a normal probability plot, residuals vs. fitted values, residuals vs. observation order and a histogram of residuals. These tests all confirmed that the residuals were normally distributed and independent (Fig 2). The predictive capability of the model was assessed using a predicted versus experimental plot (Fig 3), while the model surface was visually represented through contour plots (Fig 4) and response surface plots (Fig 5).

Fig 2: Residual plots for Water content.



Fig 3: observed versus predicted Mc values.



Fig 4: Contour plot of MC vs T; aw.



Fig 5: Surface plot of Mc vs T; aw.


       
The diagnostic analysis revealed no discernible patterns in the residual plots and a strong concordance was observed between predicted and experimental values. These findings indicate that the fundamental assumptions of linear regression normality, independence and homosce- dasticity of residuals were satisfactorily fulfilled. Consequently, the proposed model demonstrates adequate statistical validity, stability and predictive performance within the investigated experimental domain. Overall, the integration of a controlled experimental design with rigorous statistical modeling ensures both thermodynamic consistency and analytical robustness, thereby providing a reliable predictive framework for assessing the moisture-related stability of roasted and salted pistachios during storage.
Table 1 presents a summary of the experimental results obtained in the study.

Table 1: Water content in function of Temperature and water activity.


       
A polynomial regression model was developed to describe the equilibrium moisture content (Mc) of pistachios, with temperature (T) and water activity (aw) as the key determining factors. According to the data presented in (Table 2), the model is highly significant (p<0.001) and accounts for 94.52% of the total variation (R2). The adjusted R2 is 93.03%, while the predicted R2 is 88.16%.

Table 2: Statistic properties of the model.


       
The quadratic term in water activity (aw2) exhibited the strongest effect (p<0.0001), confirming the highly nonlinear nature of the isotherm. Temperature had a moderate negative effect (p = 0.058), while the linear term in aw was marginally significant (p = 0.063), as shown in Table 3.

Table 3: Coded coefficients used in the analysis of the regression equation's variability.


       
These findings are in agreement with previous studies conducted on agricultural and food products, where moisture sorption behavior is significantly affected by water activity and temperature interactions (Sharma et al., 2021; Patel et al., 2020). In addition, similar nonlinear trends in sorption isotherms have been reported in legumes and other biological materials, confirming the dominant effect of water activity (Kaur and Sandhu, 2022; Verma et al., 2019).

Residual diagnostics confirmed that the model met all key assumptions. The normal probability plot indicated that the residuals followed a nearly linear pattern, suggesting normality, while the histogram displayed a symmetric distribution centered around zero. The plots of residuals versus fitted values and residuals versus observation order showed no obvious pattern or heteroscedasticity (Fig 2).
       
A comparison of observed versus predicted Mc values revealed a strong agreement, confirming the predictive accuracy of the model (Fig 3).
       
The contour plot clearly illustrated the combined influence of temperature and water activity on moisture content, showing a marked increase in Mc at higher water activity values and a general decrease in Mc as the temperature increased (Al-Muhtaseb et al., 2004). The plots show that the equilibrium moisture content of the product decreases as the temperature rises at a constant water activity, a trend attributed to increased thermal motion. The figure also highlights the range of water activities where temperature has a particularly significant effect. This pattern has also been observed in pumpkin (Benseddik et al., 2018). Another study on figs found that moisture content increases as temperature decreases (Hssaini et al., 2022).
       
The 3D response surface further emphasized the dominance of the aw2 term and the curvature of the isotherm (Fig 5).
       
Using the final regression equation, the sorption isotherms of pistachio (Pistacia vera L.) kernels were predicted across the entire water activity range (0.01-0.95) for the three experimental temperatures (25oC, 35oC and 45oC). The resulting curves, shown in Fig 6, display the typical Type III J-shaped profile common to high-lipid and high-soluble-solid foods. This pattern has also been noted by other researchers in a variety of food products (Karatas and Battalbey, 1991; Maskan and Karatas, 1997; Basunia and Abe, 2000; Nikoly, 2000; Saravacos et al., 1986). Moisture content increased gradually at low aw values, followed by a more rapid rise at intermediate aw and then a sharp increase above aw ≈ 0.70. The effect of temperature was clearly evident: the isotherm curves shifted downward with increasing temperature, indicating a lower equilibrium moisture content at higher temperatures This thermodynamic behavior has been widely reported for pistachio kernels and other oil-rich seeds, where increasing temperature reduces moisture adsorption due to increased vapor pressure and reduced binding energy between water molecules and the food matrix (Mousavi et al., 2018).

Fig 6: Adsorption isotherms of pistachio (Pistacia vera L.) at 25oC, 35oC and 45oC.


       
Binding energy and increased vapor pressure of water at elevated temperatures. Overall, the modeled curves offer a smooth, continuous representation of moisture-water activity relationships and visually confirm the strong nonlinear effect captured by the aw² term in the regression model.
The final regression equation is:
Mc = 2.322 - 3.60· aw - 0.039·T + 12.19· aw2
 
       
Several studies have proposed alternative mathematical and intelligent modeling approaches to better describe the adsorption and desorption behavior of high-fat foods, as conventional models often fail to accurately represent sorption phenomena at high water activity levels in such products (Soleimanifard and Hamdami, 2018; Bo et al., 2017; Mokhtarian et al., 2020; Kraiem et al., 2023). More recently, advanced computational techniques, including fuzzy logic and machine learning methods, have been explored to enhance the prediction accuracy of moisture sorption isotherms in pistachio-based products (Mokhtarian et al., 2020).
       
In contrast, temperature showed a moderate yet consistent negative effect on equilibrium moisture content (Mc). This trend aligns well with previous findings for pistachios: for example, in the study by (Yazdani et al., 2006), Equilibrium moisture content decreased with increasing temperature for both pistachio powder and kernels. The negative temperature coefficient in our model reflects the increased vapor pressure and reduced adsorption affinity at higher temperatures, this results in a lower equilibrium moisture content at a given water activity. The (marginal) significance of the linear aw term in our model, along with the strong quadratic (aw2) effect, further supports the typical sigmoidal or J-shaped sorption behavior (i.e., minimal moisture uptake at low aw, followed by accelerated uptake as aw increases) observed in high- oil/solids foods.
       
During model development, an initial regression including the interaction term (T x aw) was tested. However, this interaction term was found to be statistically non-significant (p>0.39) and introduced high multicollinearity, without enhancing the model’s accuracy or predictive power. Upon removal of the interaction term, the model became more stable and parsimonious, with an improved predicted R². This outcome suggests that, within the studied range, the impact of temperature and water activity on moisture absorption largely operates independently of each other. This independence is consistent with some adsorption isotherm studies, where temperature shifts affect the vertical position of the isotherm curves (i.e., Mc at fixed aw) but do not noticeably alter the curvature of the aw-Mc response. For example, in a study on pistachio (Pistacia vera L.) kernels (Soleimanifard and Hamdami, 2018), temperature changes shifted the sorption curves but did not significantly alter the shape hysteresis aside.
       
Overall, the final model effectively captures the nonlinear adsorption behavior in pistachio kernels and offers a reliable predictive framework for moisture uptake under varying storage conditions. The contour and surface plots (Fig 3-4) clearly demonstrate these trends, emphasizing the sensitivity of pistachio (Pistacia vera L.) kernels to environments with high water activity, where moisture uptake accelerates rapidly. By correlating our findings with established isotherm behavior studies in pistachio systems and other high-oil foods, the model gains both empirical and mechanistic validity.
The uncoded regression equations establishing the relationship between moisture content (Mc) and hygroscopic and thermal parameters were analyzed. The resulting model, Mc = 2.322 - 3.60• aw - 0.039•T + 12.19• aw2, demonstrates a high predictive capacity, with a correlation coefficient of 94.52%. Analysis of the coefficients reveals that water activity is the dominant factor governing moisture content, particularly due to the quadratic term aw2, which indicates a significant nonlinear influence. In contrast, temperature has a minor effect, as evidenced by its low regression coefficient (-0.039). Thus, the developed uncoded regression model serves as a valuable tool for optimizing pistachio storage conditions, allowing moisture content to be primarily estimated based on water activity, with a much smaller influence from temperature.
The authors declare that there are no conflicts of interest regarding the publication of this article. No funding or sponsor- ship influenced the design of the study, data collection, analysis, decision to publish, or preparation of the manuscript.

  1. Al-Muhtaseb, A.H., McMinn, W.A.M. and Magee, T.R.A. (2004). Water sorption isotherms of starch powders. Part I: Mathematical description of experimental data. Journal of Food Engineering. 61: 297-307.

  2. Aycicek, H. and Yarsan, E. (2020). Aflatoxins contamination in imported pistachios and public health implications. Food Control. 115: 107-118.

  3. Basunia, M.A. and Abe, T. (2000). Moisture desorption isotherms of medium-grain rough rice. Journal of Stored Products Research. 37: 205-219.

  4. Benseddik, A., Azzi, A. and Allaf, K. (2018). Modeling of desorption isotherms of pumpkin for their solar drying. Journal of Food Processing and Preservation. 42(6): e13625.

  5. Bo, L., Zhao, H., Liu, Y. and Chen, X. (2017). Moisture sorption charac- teristics of full-fat and defatted pistachio kernel flour. International Journal of Agricultural and Biological Engineering. 10: 202-210.

  6. Brunauer, S., Emmett, P.H. and Teller, E. (1938). Adsorption of gases in multimolecular layers. Journal of the American Chemical Society60: 309-319.

  7. Centers for Disease Control and Prevention (2016). Multistate outbreak of Salmonella Montevideo and Salmonella Senftenberg infections linked to Wonderful Pistachios.

  8. Dhineshkumar, V. and Vigneshwaran, C. (2025). Storage and packaging material effects on pomegranate (Punica granatum) arils quality attributes during storage. Asian Journal of Dairy and Food Research. 44(6): 1016-1020. doi: 10.18805/ajdfr.DR-2074.

  9. Ernest, K.K., Ernest, K.K., Clément, A.D., Verdier, A.N., Emmanuel, A.N. and Sébastien, N.L. (2015). Isotherme d’adsorption d’eau des fèves de cacao (Theobroma cacao L.). European Scientific Journal. 11: 355-370.

  10. Harris, L.J., Lieberman, V., Mashiana, R.P., Atwill, E., Yang, M., Chandler, J.C., Bisha, B. and Jones, T. (2016). Prevalence and amounts of Salmonella found on raw California inshell pistachios. Journal of Food Protection. 79: 1304-1315.

  11. Hlungwani, C., Xasane, B.H., Kunene, T.R.M. and Nkonki-Mandleni, B. (2025). Collaborating for social impact: Enhancing food security through participatory action research. Journal of Dairy Foods and Home Sciences. https:// doi.org/10.18805/ajdfr.

  12. Hssaini, L., et al. (2022). Hygroscopic properties of fig (Ficus carica L.). South African Journal of Botany. 145: 265-274.

  13. Kader, A.A. (2006). Postharvest biology and technology of nuts and seeds. Horticultural Reviews. 32: 245-271.

  14. Karatas, S. and Battalbey, M.F. (1991). Determination of moisture diffusivity of pistachio nut meat during drying. Lebensmittel- Wissenschaft und Technologie. 24: 484-487.

  15. Kimber, M.A., Kaur, H., Wang, L. and Danyluk, M.D. (2012). Survival of Salmonella, Escherichia coli O157:H7 and Listeria monocytogenes on pistachios. Journal of Food Protection. 75: 1394-1403.

  16. Kraiem, H., Belghith, A. and Mihoubi, N.B. (2023). Experimental analysis and modeling of moisture sorption isotherms. Processes. 11: 184.

  17. Kaur, M. and Sandhu, K.S. (2022). Moisture sorption characteristics of legumes: Modeling and storage stability. Legume Research. 45(4): 456-462. 

  18. Kutner, M.H., Nachtsheim, C.J., Neter, J. and Li, W. (2005). Applied Linear Statistical Models. McGraw-Hill.

  19. Labuza, T.P. and Altunakar, B. (2007). Water activity prediction and moisture sorption isotherms. In: Water Activity in Foods. Blackwell Publishing. pp.109-154.

  20. Lambertini, E., Barouei, J., Schaffner, D.W., Danyluk, M.D. and Harris, L.J. (2017). Modeling the risk of salmonellosis. Food Microbiology. 67: 85-96.

  21. Maskan, M. and Karatas, S. (1997). Sorption characteristics of whole pistachio nuts. Drying Technology. 15: 1119-1130.

  22. Mohanapriya, M., Ravi, R. and Kumar, S. (2025). Optimizing dehulling quality in barnyard millet through preprocessing techniques. Asian Journal of Dairy and Food Research. 45(1): 101- 105. doi: 10.18805/ajdfr.DR-2420.

  23. Mokhtarian, M., Yazdanpanah, M. and Azizi, M. (2020). Application of fuzzy logic modeling. Journal of Food Measurement and Characterization. 14: 1815-1825.

  24. Montgomery, D.C. (2017). Design and Analysis of Experiments. John Wiley and Sons.

  25. Mousavi, S.M., Miri, T. and Askari, G. (2018). Water sorption isotherms of pistachio nuts. Drying Technology. 36: 475-486.

  26. Nikoly, D.M. (2000). Moisture sorption isotherms of chickpea seeds. Journal of Food Engineering. 45: 189-194.

  27. Oubouali, M., Zine-Eddine, Y., Ajbli, N., Kzaiber, F., Oussama, A., Ellaite, M. and Boutoial, K. (2025). Sorption isotherm properties of date. Current Research in Nutrition and Food Science. 13(2): 1007-1016.

  28. Patel, R., Meena, H. and Joshi, N. (2020). Influence of temperature and relative humidity. Indian Journal of Agricultural Research. 54(6): 722-728. 

  29. Sami, M., Oubouali, M., Kaddouri, M., Ghanimi, S., Atmani, F.E., Elkacmi, R., Bouali, A. and Hasib, A. (2026). Adsorption isotherm modeling of pistachio. Journal of Food and Chemical Nutrition. 12(1). doi: 10.17756/jfcn.2026-221.

  30. Saravacos, G.D., Tsiouras, D.A. and Tsami, E. (1986). Effect of temperature on water sorption. Journal of Food Science. 51: 331-334.

  31. Sharma, R., Singh, P. and Kumar, V. (2021). Effect of storage conditions. Asian Journal of Dairy and Food Research. 40(3): 245-251.

  32. Soleimanifard, S. and  Hamdami, N. (2018). Modelling of sorption isotherms. Czech Journal of Food Sciences. 36: 268-275.

  33. Spiess, W.E.L. and Wolf, W. (1983). The results of the COST 90 project. In: Physical Properties of Foods. pp. 65-91.

  34. USDA (2023). Tree Nuts: World Markets and Trade. United States Department of Agriculture.

  35. Van den Berg, C. (1984). Description of water activity. In: Engineering and Food. pp.311-321.

  36. Verma, A., Kumar, R. and Singh, B. (2019). Effect of environmental factors. Agricultural Reviews. 40(2): 123-130. 

  37. Yada, S., Harris, L.J. (2018). Recalls of tree nuts and peanuts in the United States.

  38. Yazdani, M., Sazandehchi, P., Azizi, M., Ghobadi, P. (2006). Moisture sorption isotherms for pistachio. European Food Research and Technology. 223(4): 577-584.

Modeling the Water Sorption Behavior of Pistachio (Pistacia vera L.) using a Three-level Factorial Experimental Design 

M
Mohamed Sami1,*
Z
Zouhair Jemali1
S
Soufiane Ghanimi2
M
Morad Oubouali2
M
Morad Kaddouri2
R
Reda Elkacmi1
A
Abdelali Boulli1
A
Aziz Hasib1
1Laboratory of Environmental, Ecological and Agro-industrial Engineering, Faculty of Science and Technology, University of Sultan Moulay Slimane, 23000- Beni Mellal, Morocco.
2Laboratory of Engineering and Applied Technologies, Higher school of Technology of Beni Mellal, University of Sultan Moulay Slimane, 23000- Beni Mellal, Morocco.

Background: Optimizing preservation parameters for pistachios (Pistacia vera L.), such as temperature, relative humidity (water activity) and moisture content, is crucial for maintaining their quality over time. Temperature control helps prevent microbial growth while preserving the nutrients and flavors of pistachios.

Methods: A regression model was developed to assess the impact of temperature, water activity and moisture content on pistachio quality. The model aims to provide accurate predictions for optimal storage conditions.

Result: Water activity was found to be the most influential factor on pistachio quality, followed by temperature. Higher water activity increases moisture content, while higher temperatures reduce moisture content. The regression model confirmed these effects, offering valuable insights for optimizing pistachio preservation.

Despite the significant expansion of global pistachio production, particularly in the United States, Iran, and Turkey, the processing and valorization capacities in several importing countries, including Morocco, have not progressed at the same rate. This imbalance has created a disparity between imported volumes and local processing infrastructures. In Morocco, pistachio consumption continues to increase, with most of the supply relying on imports from the United States, Turkey, and Iran (USDA, 2023). In a context marked by increasing global food demand and growing concerns regarding food quality and safety, the intersection between food security, nutrition, and sustainable agriculture has become essential for achieving global development goals. Therefore, improving storage practices and post-harvest management is now considered a major challenge to ensure the quality and safety of marketed food products (Dhineshkumar and Vigneshwaran, 2025).
       
However, major challenges persist in post-import management, quality control, storage practices and conservation conditions, all of which significantly influence product stability. Pistachios are highly sensitive to environmental factors such as humidity, temperature and oxygen exposure. Their moisture status is therefore a critical determinant of their physicochemical stability, microbiological safety and shelf life (Kader, 2006). Proper control of storage conditions is therefore essential for preserving food quality during storage. Indeed, the shelf life of fresh products depends on numerous parameters such as storage temperature, respiration rate, film gas permeability, headspace composition, product weight, as well as their interactions throughout the storage period (Hlungwani et al., 2025).
       
Moisture content and water adsorption behavior directly affect the risks of mold growth, aflatoxinss production and lipid oxidation in pistachios (Mousavi et al., 2018). Inadequate storage conditions-particularly high relative humidity in certain Moroccan warehouses or retail environments-can promote fungal proliferation and increase the likelihood of aflatoxins contamination in imported pistachios (Ernest et al., 2015).
       
Beyond fungal hazards, microbial safety also represents a serious concern. Several cases of salmonellosis have been associated with pistachio consumption (Aycicek and Yarsan, 2020, Centers for Disease Control and Prevention, 2016) and contamination by Salmonella has been confirmed through product investigations and recalls (Harris et al., 2016; Yada and Harris, 2018). Studies have demonstrated that Salmonella, Escherichia coli and Listeria monocytogenes can persist in pistachios under typical storage conditions (Kimber et al., 2012). Among these pathogens, Salmonella is considered the most heat-resistant and is therefore used as the reference microorganism for validating pathogen reduction processes in low-moisture foods, including pistachios (Lambertini et al., 2017).
       
Water activity (aw) plays a central role in these deterioration mecWater activity (aw) plays a central role in these deterioration mechanisms. It governs physicochemical reactions such as lipid oxidation and enzymatic activity, as well as microbial growth and survival (Mousavi et al., 2018). Consequently, understanding the hygroscopic behavior of pistachios through adsorption isotherms is essential. Sorption isotherms describe the relationship between moisture content and water activity at constant temperature, enabling prediction of product behavior under various environmental conditions. This approach helps anticipate quality losses such as texture softening, oxidative degradation, and microbial persistence. Similar observations have been reported in various agricultural and food products, where water activity and temperature significantly influence moisture dynamics and storage stability (Sharma et al., 2021; Patel et al., 2020). Moreover, studies on food and legume systems have demonstrated that sorption behavior is strongly dependent on environmental conditions and product composition (Kaur and Sandhu, 2022; Verma et al., 2019). In this perspective, primary processing technologies also play a key role in enhancing the added value of agricultural products. They contribute to reducing post-harvest losses, improving product quality, and strengthening product stability during storage and commercialization. Beyond these benefits, such technologies also support farmers and promote better valorization of agricultural resources (Mohanapriya et al., 2025).
       
Water adsorption in food systems is a complex phenomenon influenced by structural and compositional factors. To describe this behavior, numerous mathematical models have been developed and can generally be classified into theoretical, empirical and semi-empirical models. Empirical models such as Oswin, Smith and Henderson are typically based on two parameters. Semi-empirical models, notably the Peleg model (1993), involve four parameters and are widely applied due to their flexibility. Theoretical models, derived from Langmuir’s concept, include the BET (Brunauer-Emmett-Teller) and GAB (Guggenheim-Anderson-de Boer) equations, which are extensively used to model water sorption in food matrices.
       
In this context, the present study aimed to analyze the combined effects of water activity and temperature on the moisture content of pistachios (Pistacia vera L.). The objective was to establish a predictive mathematical model capable of describing moisture evolution as a function of these two parameters. Ultimately, this work seeks to contribute to the optimization of storage conditions for pistachios marketed in Morocco by improving control over their physical, chemical and microbiological stability.
The experimental study was conducted during the 2024 research period at the Laboratory of Environmental, Ecological and Agro-Industrial Engineering, Faculty of Sciences and Techniques, Université Sultan Moulay Slimane, Beni Mellal, Morocco.
 
Raw material
 
Roasted and salted pistachios (Pistacia vera L.), imported from the United States and commercialized in bulk in various retail outlets within the Fes-Meknes region (Morocco), were selected for this study. The sample analyzed was collected during the 2024 marketing campaign.
 
Experimental design
 
The equilibrium moisture content (Mc) was measured experimentally at three different temperatures (25oC, 35oC and 45oC) and five distinct water activity levels (aw = 0.0019, 0.0483, 0.3524, 0.5809, 0.8280) (Sami et al., 2026). These conditions formed a 3 x 5 factorial design, resulting in 15 trials that covered a wide range of sorption environments relevant to pistachio storage. Moisture uptake was measured using the static gravimetric method until hygroscopic equilibrium was reached (Fig 1).

Fig 1: Experimental setup for the sorption isotherm: (1) temperature-controlled water bath; (2) sample containers; (3) sample supports; (4) pistachio samples; (5) sulfuric acid solutions (Oubouali et al., 2025).


       
The equilibrium moisture content (Mc) was determined using the static gravimetric method, a reference technique known for its precision, reproducibility and thermodynamic reliability in sorption studies (Yazdani et al., 2006) Spiess and Wolf, 1983). A full factorial experimental design was adopted to ensure unbiased estimation of main effects and potential interactions between temperature and water activity. Factorial designs are widely recommended for studying multivariable hygroscopic systems because they improve statistical efficiency and allow comprehensive evaluation of environmental influences on equilibrium moisture behavior (Montgomery, 2017). The selected temperature and water activity ranges were chosen to reflect realistic storage conditions for low-moisture food products (Labuza and Altunakar, 2007).
 
Statistical modeling
 
The combined effects of temperature (T) and water activity (aw) on equilibrium moisture content were evaluated through statistical modeling. A multiple polynomial regression model was used to develop a predictive equation covering the full range of temperatures and water activities. This approach integrates regression analysis (for estimating functional relationships and making predictions) with factorial design principles (to assess the contributions and interactions of the factors).
       
The initial model included the linear effects of T and aw, the quadratic term aw2 to capture curvature and the interaction term T x aw, the model form was:
 
Mc = β0 + β1T + β2𝑎w3𝑎w2 + β4 (T x aw) + ε
 
       
The inclusion of a quadratic aw2 term is theoretically justified by the nonlinear nature of moisture sorption phenomena, particularly in intermediate and high-water activity regions where multilayer adsorption and capillary condensation may occur (Brunauer et al., 1938; van den Berg, 1984). The interaction term (T x aw) was initially introduced to assess potential thermo-hygroscopic coupling effects.
       
All regression analyses were performed using Minitab® 18 (Minitab LLC, State College, PA, USA). Residuals, predicted values, confidence intervals and model diagnostics were generated automatically by the software.
 
Model optimization
 
Model refinement followed standard statistical criteria, including:
• Significance of regression coefficients (p-values).
•  Goodness-of-fit indicators (R2, adjusted R2, predicted R2).
•  And model adequacy checks using residual analysis.
       
Although the interaction term (T x aw) was initially considered, statistical testing revealed its non-significance (p>0.05). Moreover, multicollinearity diagnostics indicated increased variance inflation when the interaction term was retained. Model reduction was therefore performed in accordance with the principle of parsimony, which recommends selecting the simplest model that adequately describes the data while minimizing estimation variance (Kutner et al., 2005). The reduced model improved parameter stability without compromising predictive performance, as confirmed by predicted R2 values:
 
Mc = β0 + β1T + β2aw + β3 aw2
 
This reduced model provided a better balance between simplicity, stability and predictive accuracy.
 
Validation and assumption checking
 
The validation of the model assumptions was carried out through various diagnostic tests, such as a normal probability plot, residuals vs. fitted values, residuals vs. observation order and a histogram of residuals. These tests all confirmed that the residuals were normally distributed and independent (Fig 2). The predictive capability of the model was assessed using a predicted versus experimental plot (Fig 3), while the model surface was visually represented through contour plots (Fig 4) and response surface plots (Fig 5).

Fig 2: Residual plots for Water content.



Fig 3: observed versus predicted Mc values.



Fig 4: Contour plot of MC vs T; aw.



Fig 5: Surface plot of Mc vs T; aw.


       
The diagnostic analysis revealed no discernible patterns in the residual plots and a strong concordance was observed between predicted and experimental values. These findings indicate that the fundamental assumptions of linear regression normality, independence and homosce- dasticity of residuals were satisfactorily fulfilled. Consequently, the proposed model demonstrates adequate statistical validity, stability and predictive performance within the investigated experimental domain. Overall, the integration of a controlled experimental design with rigorous statistical modeling ensures both thermodynamic consistency and analytical robustness, thereby providing a reliable predictive framework for assessing the moisture-related stability of roasted and salted pistachios during storage.
Table 1 presents a summary of the experimental results obtained in the study.

Table 1: Water content in function of Temperature and water activity.


       
A polynomial regression model was developed to describe the equilibrium moisture content (Mc) of pistachios, with temperature (T) and water activity (aw) as the key determining factors. According to the data presented in (Table 2), the model is highly significant (p<0.001) and accounts for 94.52% of the total variation (R2). The adjusted R2 is 93.03%, while the predicted R2 is 88.16%.

Table 2: Statistic properties of the model.


       
The quadratic term in water activity (aw2) exhibited the strongest effect (p<0.0001), confirming the highly nonlinear nature of the isotherm. Temperature had a moderate negative effect (p = 0.058), while the linear term in aw was marginally significant (p = 0.063), as shown in Table 3.

Table 3: Coded coefficients used in the analysis of the regression equation's variability.


       
These findings are in agreement with previous studies conducted on agricultural and food products, where moisture sorption behavior is significantly affected by water activity and temperature interactions (Sharma et al., 2021; Patel et al., 2020). In addition, similar nonlinear trends in sorption isotherms have been reported in legumes and other biological materials, confirming the dominant effect of water activity (Kaur and Sandhu, 2022; Verma et al., 2019).

Residual diagnostics confirmed that the model met all key assumptions. The normal probability plot indicated that the residuals followed a nearly linear pattern, suggesting normality, while the histogram displayed a symmetric distribution centered around zero. The plots of residuals versus fitted values and residuals versus observation order showed no obvious pattern or heteroscedasticity (Fig 2).
       
A comparison of observed versus predicted Mc values revealed a strong agreement, confirming the predictive accuracy of the model (Fig 3).
       
The contour plot clearly illustrated the combined influence of temperature and water activity on moisture content, showing a marked increase in Mc at higher water activity values and a general decrease in Mc as the temperature increased (Al-Muhtaseb et al., 2004). The plots show that the equilibrium moisture content of the product decreases as the temperature rises at a constant water activity, a trend attributed to increased thermal motion. The figure also highlights the range of water activities where temperature has a particularly significant effect. This pattern has also been observed in pumpkin (Benseddik et al., 2018). Another study on figs found that moisture content increases as temperature decreases (Hssaini et al., 2022).
       
The 3D response surface further emphasized the dominance of the aw2 term and the curvature of the isotherm (Fig 5).
       
Using the final regression equation, the sorption isotherms of pistachio (Pistacia vera L.) kernels were predicted across the entire water activity range (0.01-0.95) for the three experimental temperatures (25oC, 35oC and 45oC). The resulting curves, shown in Fig 6, display the typical Type III J-shaped profile common to high-lipid and high-soluble-solid foods. This pattern has also been noted by other researchers in a variety of food products (Karatas and Battalbey, 1991; Maskan and Karatas, 1997; Basunia and Abe, 2000; Nikoly, 2000; Saravacos et al., 1986). Moisture content increased gradually at low aw values, followed by a more rapid rise at intermediate aw and then a sharp increase above aw ≈ 0.70. The effect of temperature was clearly evident: the isotherm curves shifted downward with increasing temperature, indicating a lower equilibrium moisture content at higher temperatures This thermodynamic behavior has been widely reported for pistachio kernels and other oil-rich seeds, where increasing temperature reduces moisture adsorption due to increased vapor pressure and reduced binding energy between water molecules and the food matrix (Mousavi et al., 2018).

Fig 6: Adsorption isotherms of pistachio (Pistacia vera L.) at 25oC, 35oC and 45oC.


       
Binding energy and increased vapor pressure of water at elevated temperatures. Overall, the modeled curves offer a smooth, continuous representation of moisture-water activity relationships and visually confirm the strong nonlinear effect captured by the aw² term in the regression model.
The final regression equation is:
Mc = 2.322 - 3.60· aw - 0.039·T + 12.19· aw2
 
       
Several studies have proposed alternative mathematical and intelligent modeling approaches to better describe the adsorption and desorption behavior of high-fat foods, as conventional models often fail to accurately represent sorption phenomena at high water activity levels in such products (Soleimanifard and Hamdami, 2018; Bo et al., 2017; Mokhtarian et al., 2020; Kraiem et al., 2023). More recently, advanced computational techniques, including fuzzy logic and machine learning methods, have been explored to enhance the prediction accuracy of moisture sorption isotherms in pistachio-based products (Mokhtarian et al., 2020).
       
In contrast, temperature showed a moderate yet consistent negative effect on equilibrium moisture content (Mc). This trend aligns well with previous findings for pistachios: for example, in the study by (Yazdani et al., 2006), Equilibrium moisture content decreased with increasing temperature for both pistachio powder and kernels. The negative temperature coefficient in our model reflects the increased vapor pressure and reduced adsorption affinity at higher temperatures, this results in a lower equilibrium moisture content at a given water activity. The (marginal) significance of the linear aw term in our model, along with the strong quadratic (aw2) effect, further supports the typical sigmoidal or J-shaped sorption behavior (i.e., minimal moisture uptake at low aw, followed by accelerated uptake as aw increases) observed in high- oil/solids foods.
       
During model development, an initial regression including the interaction term (T x aw) was tested. However, this interaction term was found to be statistically non-significant (p>0.39) and introduced high multicollinearity, without enhancing the model’s accuracy or predictive power. Upon removal of the interaction term, the model became more stable and parsimonious, with an improved predicted R². This outcome suggests that, within the studied range, the impact of temperature and water activity on moisture absorption largely operates independently of each other. This independence is consistent with some adsorption isotherm studies, where temperature shifts affect the vertical position of the isotherm curves (i.e., Mc at fixed aw) but do not noticeably alter the curvature of the aw-Mc response. For example, in a study on pistachio (Pistacia vera L.) kernels (Soleimanifard and Hamdami, 2018), temperature changes shifted the sorption curves but did not significantly alter the shape hysteresis aside.
       
Overall, the final model effectively captures the nonlinear adsorption behavior in pistachio kernels and offers a reliable predictive framework for moisture uptake under varying storage conditions. The contour and surface plots (Fig 3-4) clearly demonstrate these trends, emphasizing the sensitivity of pistachio (Pistacia vera L.) kernels to environments with high water activity, where moisture uptake accelerates rapidly. By correlating our findings with established isotherm behavior studies in pistachio systems and other high-oil foods, the model gains both empirical and mechanistic validity.
The uncoded regression equations establishing the relationship between moisture content (Mc) and hygroscopic and thermal parameters were analyzed. The resulting model, Mc = 2.322 - 3.60• aw - 0.039•T + 12.19• aw2, demonstrates a high predictive capacity, with a correlation coefficient of 94.52%. Analysis of the coefficients reveals that water activity is the dominant factor governing moisture content, particularly due to the quadratic term aw2, which indicates a significant nonlinear influence. In contrast, temperature has a minor effect, as evidenced by its low regression coefficient (-0.039). Thus, the developed uncoded regression model serves as a valuable tool for optimizing pistachio storage conditions, allowing moisture content to be primarily estimated based on water activity, with a much smaller influence from temperature.
The authors declare that there are no conflicts of interest regarding the publication of this article. No funding or sponsor- ship influenced the design of the study, data collection, analysis, decision to publish, or preparation of the manuscript.

  1. Al-Muhtaseb, A.H., McMinn, W.A.M. and Magee, T.R.A. (2004). Water sorption isotherms of starch powders. Part I: Mathematical description of experimental data. Journal of Food Engineering. 61: 297-307.

  2. Aycicek, H. and Yarsan, E. (2020). Aflatoxins contamination in imported pistachios and public health implications. Food Control. 115: 107-118.

  3. Basunia, M.A. and Abe, T. (2000). Moisture desorption isotherms of medium-grain rough rice. Journal of Stored Products Research. 37: 205-219.

  4. Benseddik, A., Azzi, A. and Allaf, K. (2018). Modeling of desorption isotherms of pumpkin for their solar drying. Journal of Food Processing and Preservation. 42(6): e13625.

  5. Bo, L., Zhao, H., Liu, Y. and Chen, X. (2017). Moisture sorption charac- teristics of full-fat and defatted pistachio kernel flour. International Journal of Agricultural and Biological Engineering. 10: 202-210.

  6. Brunauer, S., Emmett, P.H. and Teller, E. (1938). Adsorption of gases in multimolecular layers. Journal of the American Chemical Society60: 309-319.

  7. Centers for Disease Control and Prevention (2016). Multistate outbreak of Salmonella Montevideo and Salmonella Senftenberg infections linked to Wonderful Pistachios.

  8. Dhineshkumar, V. and Vigneshwaran, C. (2025). Storage and packaging material effects on pomegranate (Punica granatum) arils quality attributes during storage. Asian Journal of Dairy and Food Research. 44(6): 1016-1020. doi: 10.18805/ajdfr.DR-2074.

  9. Ernest, K.K., Ernest, K.K., Clément, A.D., Verdier, A.N., Emmanuel, A.N. and Sébastien, N.L. (2015). Isotherme d’adsorption d’eau des fèves de cacao (Theobroma cacao L.). European Scientific Journal. 11: 355-370.

  10. Harris, L.J., Lieberman, V., Mashiana, R.P., Atwill, E., Yang, M., Chandler, J.C., Bisha, B. and Jones, T. (2016). Prevalence and amounts of Salmonella found on raw California inshell pistachios. Journal of Food Protection. 79: 1304-1315.

  11. Hlungwani, C., Xasane, B.H., Kunene, T.R.M. and Nkonki-Mandleni, B. (2025). Collaborating for social impact: Enhancing food security through participatory action research. Journal of Dairy Foods and Home Sciences. https:// doi.org/10.18805/ajdfr.

  12. Hssaini, L., et al. (2022). Hygroscopic properties of fig (Ficus carica L.). South African Journal of Botany. 145: 265-274.

  13. Kader, A.A. (2006). Postharvest biology and technology of nuts and seeds. Horticultural Reviews. 32: 245-271.

  14. Karatas, S. and Battalbey, M.F. (1991). Determination of moisture diffusivity of pistachio nut meat during drying. Lebensmittel- Wissenschaft und Technologie. 24: 484-487.

  15. Kimber, M.A., Kaur, H., Wang, L. and Danyluk, M.D. (2012). Survival of Salmonella, Escherichia coli O157:H7 and Listeria monocytogenes on pistachios. Journal of Food Protection. 75: 1394-1403.

  16. Kraiem, H., Belghith, A. and Mihoubi, N.B. (2023). Experimental analysis and modeling of moisture sorption isotherms. Processes. 11: 184.

  17. Kaur, M. and Sandhu, K.S. (2022). Moisture sorption characteristics of legumes: Modeling and storage stability. Legume Research. 45(4): 456-462. 

  18. Kutner, M.H., Nachtsheim, C.J., Neter, J. and Li, W. (2005). Applied Linear Statistical Models. McGraw-Hill.

  19. Labuza, T.P. and Altunakar, B. (2007). Water activity prediction and moisture sorption isotherms. In: Water Activity in Foods. Blackwell Publishing. pp.109-154.

  20. Lambertini, E., Barouei, J., Schaffner, D.W., Danyluk, M.D. and Harris, L.J. (2017). Modeling the risk of salmonellosis. Food Microbiology. 67: 85-96.

  21. Maskan, M. and Karatas, S. (1997). Sorption characteristics of whole pistachio nuts. Drying Technology. 15: 1119-1130.

  22. Mohanapriya, M., Ravi, R. and Kumar, S. (2025). Optimizing dehulling quality in barnyard millet through preprocessing techniques. Asian Journal of Dairy and Food Research. 45(1): 101- 105. doi: 10.18805/ajdfr.DR-2420.

  23. Mokhtarian, M., Yazdanpanah, M. and Azizi, M. (2020). Application of fuzzy logic modeling. Journal of Food Measurement and Characterization. 14: 1815-1825.

  24. Montgomery, D.C. (2017). Design and Analysis of Experiments. John Wiley and Sons.

  25. Mousavi, S.M., Miri, T. and Askari, G. (2018). Water sorption isotherms of pistachio nuts. Drying Technology. 36: 475-486.

  26. Nikoly, D.M. (2000). Moisture sorption isotherms of chickpea seeds. Journal of Food Engineering. 45: 189-194.

  27. Oubouali, M., Zine-Eddine, Y., Ajbli, N., Kzaiber, F., Oussama, A., Ellaite, M. and Boutoial, K. (2025). Sorption isotherm properties of date. Current Research in Nutrition and Food Science. 13(2): 1007-1016.

  28. Patel, R., Meena, H. and Joshi, N. (2020). Influence of temperature and relative humidity. Indian Journal of Agricultural Research. 54(6): 722-728. 

  29. Sami, M., Oubouali, M., Kaddouri, M., Ghanimi, S., Atmani, F.E., Elkacmi, R., Bouali, A. and Hasib, A. (2026). Adsorption isotherm modeling of pistachio. Journal of Food and Chemical Nutrition. 12(1). doi: 10.17756/jfcn.2026-221.

  30. Saravacos, G.D., Tsiouras, D.A. and Tsami, E. (1986). Effect of temperature on water sorption. Journal of Food Science. 51: 331-334.

  31. Sharma, R., Singh, P. and Kumar, V. (2021). Effect of storage conditions. Asian Journal of Dairy and Food Research. 40(3): 245-251.

  32. Soleimanifard, S. and  Hamdami, N. (2018). Modelling of sorption isotherms. Czech Journal of Food Sciences. 36: 268-275.

  33. Spiess, W.E.L. and Wolf, W. (1983). The results of the COST 90 project. In: Physical Properties of Foods. pp. 65-91.

  34. USDA (2023). Tree Nuts: World Markets and Trade. United States Department of Agriculture.

  35. Van den Berg, C. (1984). Description of water activity. In: Engineering and Food. pp.311-321.

  36. Verma, A., Kumar, R. and Singh, B. (2019). Effect of environmental factors. Agricultural Reviews. 40(2): 123-130. 

  37. Yada, S., Harris, L.J. (2018). Recalls of tree nuts and peanuts in the United States.

  38. Yazdani, M., Sazandehchi, P., Azizi, M., Ghobadi, P. (2006). Moisture sorption isotherms for pistachio. European Food Research and Technology. 223(4): 577-584.
In this Article
Published In
Asian Journal of Dairy and Food Research

Editorial Board

View all (0)