Abstract
This research established an experimental database characterizing the solar drying behavior of seven distinct agricultural products (including fruits, vegetables, and meat) in a tunnel-type solar dryer. Based on this experimental data, a dual-model architecture using multilayer perceptron (MLP) neural network was developed to predict both the internal microclimate and the drying kinetics. The first network (ANN 1) mapped meteorological variables to the dryer’s internal conditions, while the second (ANN 2) predicted moisture loss. The results demonstrate distinct predictive capabilities for each physical phenomenon: the thermodynamic model (ANN 1) captured stochastic weather fluctuations, with an R2 of 0.9878 and an MAPE of 4.64%. The kinetic model (ANN 2) achieved near-perfect linearity with an R2 of 0.9997 and an MAPE of 0.49%, significantly outperforming baseline linear regression models (R2 approx 0.78). These findings confirm the system’s capacity to generalize across diverse food types and variable weather conditions, providing a robust tool for future Model Predictive Control (MPC) applications.
1. Introduction
Food loss and waste have social and environmental impacts. When food is discarded, a large number of resources involved and necessary in its cultivation, harvesting, transportation, and packaging are also wasted. According to information published by UNEP (2024), food loss and waste generate between 8% and 10% of global greenhouse gas (GHG) emissions and a significant decrease in biodiversity by taking up almost a third of global agricultural lands, representing a cost of close to 1 trillion dollars [1]. In addition to this, approximately 31% of food is wasted worldwide, of which approximately 14% of the food, valued at around 400,000 million USD, is wasted between harvesting and distribution, while 17% [2] is lost during distribution and in the hands of end consumers.
While solar drying offers a sustainable preservation alternative, passive systems are prone to thermal instability due to stochastic weather fluctuations, making consistent product quality difficult to achieve [3]. To mitigate these variability issues, the integration of intelligent control systems based on robust predictive models is essential [4,5].
From a physical perspective, drying involves complex simultaneous heat and mass transfer phenomena, typically governed by coupled differential equations (e.g., Luikov’s equations) [6]. While numerical methods like CFD offer high accuracy, their computational cost is often prohibitive for real-time control applications [7].
On the other hand, from a mathematical perspective, these kinetics are typically approximated using semi-empirical models [8] such as the Newton model
or Page model
where k and n are constants representing the drying rate and material resistance, respectively.
However, Artificial Neural Networks (ANNs) provide an efficient data-driven alternative, capable of capturing non-linear drying kinetics and environmental interactions without the rigid simplifications of traditional semi-empirical models [9,10].
This work proposes a Dual Artificial Neural Network (Dual-ANN) architecture explicitly conceived as a predictive core for future Model Predictive Control (MPC) implementation. The principal methodological contribution lies in the functional decoupling of the drying process into two physically meaningful submodels. The first network (ANN 1) captures the thermal dynamics of the drying chamber, mapping external meteorological variables (solar irradiance, ambient temperature, relative humidity) to the dryer’s internal microclimate. This model represents the system’s thermal response independently of the product being dried.
The second network (ANN 2) focuses on the mass transfer phenomena of the product to estimate weight evolution and drying time for a given product load.
By structurally separating environmental dynamics from product-dependent drying kinetics, the proposed framework enables weather-driven prediction of internal operating conditions and modular product-specific drying performance assessment. This dual structure allows the drying system to adapt to varying product types, loading conditions, and control actions.
2. Materials and Methods
Solar drying is configured as a hydraulic–thermal system, segmented into four essential components: the thermal component, the photovoltaic system, the hydraulic system, and the drying chamber. The solar dryer is located at 23.9916, −104.7268 within the facilities of the Center for Research in Advanced Materials (Figure 1). The drying system consists of a hydraulic circuit (Figure 1). The system operates by heating water using four flat-plate solar collectors connected in series, which is conducted through a heat exchanger before being stored in a thermal tank that completes the circuit, allowing restart. The energy needed for water pumping and air supply to the drying chamber is provided by a photovoltaic panel or by grid electricity.
Figure 1.
Tunnel-type solar dryer experimental design.
The drying chamber is a square-sectioned chamber covered with translucent glass (Figure 2). Inside the drying chamber are three racks with a capacity of 10 trays each, each tray measuring 0.3 m × 0.3 m, providing a total capacity of 2.7 m2, and beneath them is a load cell that supports the drying trays to record weight loss in real time. This drying chamber incorporates a water–air heat exchanger with an area of 0.16 m2, which is coupled to a 12 V axial fan. This fan forces outside air through the heat exchanger. For heating the water, 4 solar collectors (Model MS 2.5, Modulo Solar, Cuernavaca, Mexico), each with an area of 2.5 m2, are used.
Figure 2.
Drying chamber.
2.1. Experimental Drying Process
Experimental data on drying were collected at 5 min intervals for different foods. This was done to obtain data for training the neural network. The dried foods are listed in Table 1. The experimental procedure comprised several distinct stages. First, fresh produce was purchased at a local market, then cleaned, disinfected, and sliced (if necessary). Next, the data acquisition system was powered on, configured, and calibrated. Finally, the product was distributed on the dryer trays, with a sample reserved to determine the initial moisture content, and the system was activated until complete dehydration was achieved in the tunnel-type solar dryer (Figure 2).
Table 1.
Products selected for obtaining experimental data.
Data Acquirer
The system consists of four probes that measure temperature and relative humidity inside the drying chamber using the SHT4X sensor (Sensirion AG, Stäfa, Switzerland). These probes are distributed along the tunnel at 40 cm intervals (Figure 3) and share the same communication bus with three load cells (TAL220 strain gauges of 5 kg from HT Sensor Technology Co., Ltd. (Xi´an, China)). These load cells are calibrated with a certified weight of 300 g and tared before each test (Figure 3).
Figure 3.
Distribution of sensors inside the drying chamber (Orange: temperature sensors; Green: load cells).
Both configurations feature independent microcontrollers that manage the sensors and communicate with the main microcontroller (ESP32 (Espressif Systems, Shanghai, China)), while remaining under the latter’s control. By default, every 5 min, or at a configured interval, the ESP32 sends a command to collect and log data. Simultaneously, data from the pyranometer is obtained, and the fan speed is adjusted. After completing this procedure, the data is transmitted to the server for later visualization on the webpage, and the cycle repeats every 5 min. For the prediction process, the data obtained will serve as the training set; the first step in any neural design is to select inputs and outputs [11].
The input and output variables were segmented to design two distinct neural models. This is to develop a model that, in the future, can serve as a basis for a control system, with the distribution of inputs and outputs as described in Table 2. The neural network architecture was designed using evolutionary algorithms to determine the number of hidden layers, the number of neurons per layer, and the training function.
Table 2.
Inputs and outputs of the neural model.
2.2. Statistical Analysis for Evaluating the Performance of the ANNs
The closeness between the actual obtained values and the model’s projections was evaluated using the coefficient of determination (R2) (Equation (3)) [12], the root mean square error (RMSE) (Equation (4)), and the mean absolute percentage error (MAPE) (Equation (5)), which are commonly used in machine learning applications [13].
where
- SSE, Error Sum of Squares;
- SSR, Regression Sum of Squares;
- TSS, Total Sum of Squares.
- are the predicted values;
- yi are the actual values;
- n is the number of values.
Development of the Neural Model
A neural network of the cascade-forwardnet-type multilayer perceptron was used, similar to feed-forward networks, but it is distinguished by including direct connections from the input layer and the previous hidden layer to all subsequent layers, including the output layer [11].
This configuration allows for more agile information flow and optimal convergence, favoring the capture of both linear and nonlinear relationships in the data, which can be expressed mathematically [14], in the following Equation (6):
where represents the input vector with inputs. The term denotes the weights of the direct connections from the input layer to the output layer, while represents the activation function associated with this direct path. Regarding the hidden structure, represents the weights connecting the input layer to the hidden neurons, and denotes the weights connecting the hidden neurons to the output layer.
The terms and correspond to the activation functions of the hidden and output layers, respectively. By incorporating bias terms and specifying the hyperbolic tangent as the activation function, the model transforms into Equation (7):
The activation function employed is the hyperbolic tangent function, which in its most general form is defined by Equation (8) [15]:
where
- vi(n) is the induced local field (weighted sum of inputs) for neuron i.
- a is the amplitude parameter that determines the output range of the function.
- b is the slope parameter that controls the steepness of the activation curve.
The selection of hidden layers and the number of neurons per layer was carried out using an evolutionary algorithm (EA) employing the elitism variant with Integer Encoding. In this approach, each individual represents a specific vector of structural hyperparameters. A subset of the best-performing individuals (the elite) within the current population is not only preserved for the next generation but also serves as the primary source of genetic material for creating new individuals via single-point crossover. To ensure a balance between exploration of the search space and exploitation of the best solutions, an Adaptive Mutation strategy was implemented, defined by Equation (9):
where µ is the mutation rate; this mutation operator applies a uniform random perturbation to the integer values of neurons or layers. On the other hand, the fitness of each individual was determined by the MAPE, defined mathematically as shown in Equation (10):
where is the number of samples in the validation set. is the actual value (target). is the neural network’s predicted value (output).
Finally, the evolutionary process was terminated exclusively upon reaching the maximum number of generations, ensuring that the algorithm fully utilized the allocated computational budget for both global search and local refinement.
The above-mentioned development was carried out using MATLAB 2024a software. The model inputs and outputs are presented in Table 2 and the AE configuration in the Table 3. The data from the data acquisition system were used in their original form, without treatment or normalization, and split into two blocks: training (70%) and testing (30%). On the other hand, the same evolutionary algorithm was used to initialize the weights of both neural networks, as this is crucial for achieving fast convergence in MLP-type neural networks [16].
Table 3.
Configuration for the evolutionary algorithm.
3. Results
3.1. Drying Data
The drying kinetics and moisture content for seven distinct food products were experimentally determined and are summarized in Table 4. It is important to note that these values correspond to single experimental runs for each food. These specific experimental datasets subsequently served for training and validating the neural network models.
Table 4.
Dehydrated foods.
Figure 4 illustrates the experimental drying curves (weight loss vs. time) for the seven selected materials: apple, banana, grape, beef, poblano chili, orange peel, and lemon slices. These datasets constituted the training and validation data for the developed ANN models. A marked variability in moisture removal behavior is observed, reflecting inherent differences in biological structure. Most products (apple, banana, beef, chili, orange, lemon) exhibit a characteristic rapid drying trend, completing the process within a single solar cycle. In contrast, the grape curve shows a significantly slower kinetic rate, requiring 3 days to reach equilibrium, due to its waxy, impermeable cuticle acting as a mass transfer barrier.
Figure 4.
Drying kinetics derived from the food dehydration process.
However, the diversity of behaviors observed in Figure 4, ranging from fast-drying porous tissues to highly resistant waxy structures, combined with the stochastic fluctuations in solar radiation, makes it difficult for these rigid algebraic models to generalize effectively with a single set of parameters. This complexity justifies adopting the proposed ANN architecture, which was trained on this heterogeneous dataset to learn a non-linear mapping between environmental variables and the diverse drying kinetics.
3.2. Artificial Neural Network Training
The results will be presented below, organized into two main categories: Artificial Neural Network 1 (ANN 1), which predicts the operational conditions of the drying chamber, and Artificial Neural Network 2 (ANN 2), which predicts drying kinetics.
In both categories, an analysis of the performance obtained during training will be provided first, followed by descriptions of two experimental tests.
The model evaluation employed a two-stage validation strategy. First, the data used for training were split into two blocks: training (70%) and test (30%). These segments can be evaluated using the correlation coefficient to assess the relationship between network predictions and actual values. Additionally, the histogram is presented, allowing precise, objective observation of aspects of the neural network’s performance, such as the central tendency of the error and its dispersion. As mentioned earlier, the number of hidden layers and the number of neurons per layer were determined after implementing an elitist evolutionary algorithm. A total of 8066 training sessions were carried out for ANN 1, and 5475 for ANN 2, both according to the configuration set out in Table 3. Below are the results obtained.
Second, to rigorously rule out overfitting, four additional complete experimental runs were kept strictly isolated from the entire training process. These unseen datasets were introduced to the model only after the training phase was concluded, serving as an external generalization test to verify the model’s performance under novel weather conditions.
3.2.1. Artificial Neural Network 1 (ANN 1)
The results for ANN 1 with the implementation of the evolutionary algorithm are shown below in Figure 5. A maximum error of 30.76% was obtained with a 3-8-4-9-1-8 architecture with four hidden layers, and a minimum error of 4.97% with a 3-4-7-7-3-3-8 architecture with five hidden layers, which is the architecture used for ANN 1.
Figure 5.
Training using the evolutionary algorithm ANN 1.
Subsequently, using the 3-4-7-7-3-3-8 architecture, which yielded an error of 4.97%, 2400 additional training runs were performed using the evolutionary algorithm to select initial weights. This training is based on configuring an evolutionary algorithm with 60 generations and a population of 40 individuals, aiming to reduce error further and facilitate faster convergence, achieving an MAPE of 4.64% and an R2 of 0.9878.
Figure 6 illustrates the global regression analysis, consolidating the relationship between the neural network’s forecasted values and the observed experimental data. The plot reveals a notable linear fit, described by Equation (11):
Figure 6.
Regression analysis of the ANN 1 model for predicting temperature and humidity. The plot displays the correlation coefficient (R = 0.9939), which corresponds to a global coefficient of determination of R2 = 0.9878.
With a global coefficient of determination R2 of 0.9878, to assess the model’s generalization capability, the performance was examined across the specific data subsets. The model achieved an R2 train = 0.9930 during the training phase, evidencing efficient learning of the relationships within the known set. Crucially, this high accuracy was maintained in the testing phase with an R2 test = 0.9590. The close alignment between the training and testing metrics confirms that the model explains approximately 96% of the variability even on unseen data, demonstrating robust generalization and ruling out overfitting.
The difference between the training and testing determination coefficients is minimal (ΔR2 = 0.034), suggesting that the model has not overfitted the training data and maintains its predictive power on unseen datasets. This robustness is further corroborated by the error analysis presented in Figure 7a. The histogram reveals a normal (Gaussian-like) distribution of residuals, sharply centered near the zero-error line (indicated in orange). The highest concentration of instances falls within the bin centered at −0.6957, which is negligible compared to the full range of the target variables (0–120). This symmetric bell shape validates that the model is statistically unbiased; the residuals represent random white noise rather than systematic errors. Furthermore, the overlapping distributions of training (blue) and test (red) errors confirm that the model generalizes consistently, maintaining high precision across both subsets without significant outliers.
Figure 7.
ANN1 Network Performance Analysis: (a) error histogram with 20 bins showing the distribution of residuals (targets−outputs); (b) learning curves showing the evolution of Mean Squared Error (MSE) for training and testing datasets over 1000 epochs with the blue circle marking the best training performance.
Figure 7b illustrates the training performance for the ANN 1. The learning curves exhibit a characteristic behavior for models dealing with stochastic meteorological data. While the training error (blue line) decreases monotonically, the testing error (red line) shows transient oscillations between epochs 150 and 300. These fluctuations are attributed to the optimization algorithm navigating the complex loss landscape generated by the highly variable solar radiation and ambient temperature inputs.
Crucially, despite these intermediate adjustments, the testing curve does not diverge; instead, it stabilizes and follows a downward trend alongside the training curve towards the end of the process (1000 epochs). The absence of a sustained increase in the testing error confirms that the network has not memorized the noise (overfitting) but has successfully captured the underlying non-linear thermal dynamics.
The resulting architecture is organized as 3-5-4-9-10-2-8, with an input layer of three units, five hidden layers, and an output layer of eight units. This structure is depicted in Figure 8.
Figure 8.
ANN Architecture 1.
To demonstrate the added value of the proposed MLP architecture, a quantitative comparison was conducted against a Baseline Multiple Linear Regression (MLR) model. The baseline model achieved a global average R2 of 0.8006 and a high MAPE of 33.85%. In strong contrast, the optimized MLP model significantly outperformed the linear approach, achieving a global R2 of 0.9878 and reducing the error to an MAPE of just 4.64%. This substantial improvement confirms that the linear model is insufficient to capture the system’s complexity, justifying the use of the neural network.
3.2.2. Artificial Neural Network 2 (ANN 2)
While the network responsible for predicting drying kinetics obtained a maximum error of 9.49% with a 17-1-3 architecture with one hidden layer and a minimum error of 0.67% with a 17-6-6-3-3 architecture with three hidden layers, a model with an error of less than 1% is presented in Figure 9.
Figure 9.
Training using the evolutionary algorithm ANN 2.
Subsequently, a sensitivity or weights analysis was conducted, progressively reducing the number of inputs to identify the most relevant and which could be eliminated without significantly affecting the model’s accuracy or generalization [17].
This heuristic process involved progressively eliminating variables with the lowest influence weights. As illustrated in Figure 10, this reduction was performed iteratively: starting from the full set of 17 inputs, variables were discarded while monitoring both the computational cost (training time) and model precision (MAPE). The plot shows that reducing the dimensionality to an optimal set of seven inputs significantly reduced training time (blue line) without compromising accuracy.
Figure 10.
Sensitivity analysis for ANN 2.
From a process engineering perspective, this reduction aligns with the fundamental theory of drying kinetics. The analysis revealed that the ANN successfully identified the primary thermodynamic driving forces while discarding redundant sensor data. For instance, the retention of variables such as solar radiation and temperature is physically consistent, as they represent the energy required to provide the latent heat of vaporization. Similarly, relative humidity dictates the vapor pressure deficit, which is the driving force for mass transfer. The elimination of spatially redundant sensor readings indicates that the network found a sufficient correlation between the reduced sensor set and the global drying behavior. This confirms that the simplified model relies on the dominant thermodynamic driving forces, effectively mapping the heat and mass transfer behavior without the need for over-instrumentation.
Table 5 presents a comparison between the initial set of input variables and the selected final inputs.
Table 5.
ANN 2 inputs.
Finally, as previously mentioned, selecting optimal weights is crucial, so the architecture that achieved an error of 0.5% 7-6-6-3-3 was used. Analogous to the previous network, 2400 additional training sessions were conducted using an evolutionary algorithm configuration composed of 60 generations and 40 individuals. This was done to identify initial weights, thereby reducing the error to 0.49% and achieving an of 0.99974.
The error analysis presented in Figure 11a reveals a residual distribution that closely follows a Gaussian (Normal) profile, sharply centered near the zero-error line (indicated in orange). The histogram exhibits a high degree of symmetry, with the peak frequency located in the bin adjacent to zero (centered at 1.202). Given that the target variable (drying kinetics) reaches values up to 2500, a residual deviation of 1.2 units represents a negligible percentage of the total range, confirming the model’s high precision.
Figure 11.
ANN2 Network Performance Analysis: (a) error histogram with 20 bins showing the distribution of residuals (targets−outputs); (b) learning curves showing the evolution of Mean Squared Error (MSE) for training and testing datasets over 1000 epochs with the blue circle marking the best training performance.
Furthermore, the absence of skewed tails indicates that the model is statistically unbiased, tending neither to overestimate nor underestimate the drying rate systematically. Crucially, the error distribution for the test dataset (red) mirrors that of the training dataset (blue), demonstrating that the model’s generalization capability is consistent and robust across unseen data.
Figure 11b shows the training performance for the drying kinetics neural network. Unlike the thermodynamic model, these learning curves exhibit exceptionally smooth, rapid convergence, stabilizing within the first 100 epochs. The training error (blue line) settled at a minimum Mean Squared Error (MSE) of 29.98 at epoch 999.
While an MSE of 30 might initially appear significant, it must be interpreted relative to the physical magnitude of the target variable (sample weight), which ranges up to 2500 g. Consequently, this corresponds to an RMSE of approximately 5.47 g, representing a deviation of just 0.2% relative to the maximum load. Furthermore, the testing curve (red line) maintains a constant parallel distance to the training curve throughout the 1000 epochs without any upward divergence. This stable asymptotic behavior confirms that the network has reached a robust global minimum and validates its ability to generalize the monotonic drying process without overfitting.
The final architecture is organized as follows: 7-6-6-3-3, with an input layer of seven units, three hidden layers, and an output layer of three units. This structure is illustrated in Figure 12.
Figure 12.
ANN Architecture 2.
Figure 13 displays the global regression analysis for the drying kinetics neural network, consolidating the predictions across all datasets. The results demonstrate a near-perfect linear relationship between the experimental targets and the network outputs, described by Equation (12):
with a global coefficient of determination of for all of 0.99974. The regression slope of exactly 1 indicates a unitary response, meaning the model tracks the drying kinetics without any proportional scaling error. Furthermore, the intercept of 0.28 is statistically negligible considering the magnitude of the target variables, confirming the absence of systematic bias. Regarding generalization, the model achieved an train of 0.99976 during training and maintained an test of 0.99968 on the unseen test data. The infinitesimal difference between these metrics () serves as conclusive evidence that the network has captured the underlying physical laws of the drying process without overfitting.
Figure 13.
Regression analysis of the ANN 2 model for predicting drying kinetics. The plot displays the correlation coefficient (R = 0.99987), which corresponds to a global coefficient of determination of R2 = 0.99974.
On the contrary, studies such as the one conducted by Tiwari, which predicted the amount of moisture evaporated during the drying of bitter melon, obtained R2 train = 0.99875 and R2 test = 0.95951. Incorporating a wider range of products improved performance during training [18].
Similarly to ANN1, an MLR model was used to conduct a comparative analysis of the neural network’s predictions of drying kinetics. The results indicated that the linear baseline was insufficient to capture the complexity of the mass transfer phenomena, yielding a global average R2 of 0.7843 and an MAPE of 11.06%. In strong contrast, the proposed MLP architecture demonstrated superior robustness, achieving a global average R2 of 0.9997 and reducing the estimation error to a negligible MAPE of 0.49%. This substantial reduction in error confirms that the non-linear approach is essential for the precise prediction of the drying rate and moisture content evolution.
3.3. Experimental Validation
3.3.1. Dryer Test Without Food Load (Experiment 1)
The first test corresponds to the period from 10 to 14 March 2023. In this test, the camera was in a vacuum, the air velocity was 1.5 m/s, and the volumetric flow of water in the solar heaters was 7 L/min with the following environmental conditions shown below in Figure 14.
Figure 14.
Environmental conditions in experiment 1: (a) ambient temperature and relative humidity; (b) solar irradiance.
We obtained the following results: Table 6.
Table 6.
Parameters evaluated in experiment 1.
The results are presented in the graphs below, showing that the estimated temperatures and humidities correspond to the conditions inside the drying chamber, as illustrated in Figure 2, and provide a highly accurate approximation of the actual conditions. However, some discrepancies are observed in the case of temperature (Figure 15a). Regarding relative humidity, some peaks are observed in Figure 15b under certain conditions; however, for temperature, a quite accurate approximation is achieved, with a margin of error of less than 6%.
Figure 15.
Operational conditions inside the drying chamber experiment 1: (a) average temperature; (b) average relative humidity.
3.3.2. Beef Drying (Experiment 2)
For experiment 2, data were collected experimentally on 26 September 2024. The experiment involved the beef chamber, an air speed of 1.5 m/s, and a volumetric water flow in the solar heaters of 7 L/min, with the following environmental conditions (Figure 16) and obtaining the following results (Table 7).
Figure 16.
Environmental conditions, experiment 2: (a) ambient temperature and relative humidity; (b) solar irradiance.
Table 7.
Parameters evaluated in experiment 2.
The results are quite satisfactory, achieving an error of less than 6%, despite this experiment being conducted over a shorter period than the previous one. The values closely approximate real conditions for both temperature (Figure 17a) and relative humidity (Figure 17b). The metrics evaluated indicate good performance. Since the model predicts temperature and relative humidity within the drying chamber, it has likely learned intrinsic correlations between them, such as a relationship between temperature and relative humidity. This indicates that the model creates a phenomenologically consistent representation of the system, demonstrating robustness beyond simple statistical fitting. This contrasts with the model presented by Farhat Mahmood et al. [19], which focused exclusively on temperature, whereas the proposed approach successfully generalizes to multiple variables. Similarly, the specific design and hyperparameter optimization proved effective for modeling these complex nonlinear behaviors.
Figure 17.
Conditions inside drying chamber experiment 2: (a) average temperature; (b) average relative humidity.
3.3.3. Beef Drying (Experiment 3)
It corresponds to 15 October 2024, an experiment in which beef was dried at an air velocity of 1.5 m/s and a water volumetric flow rate in solar heaters at 7 L/min, with the following environmental conditions (Figure 18) and results (Table 8).
Figure 18.
Environmental conditions, experiment 3: (a) ambient temperature and relative humidity; (b) solar irradiance.
Table 8.
Parameters evaluated in experiment 3.
It demonstrates a highly accurate approximation, although it exhibits some flaws, as seen in Figure 19, which may be due to environmental electrical noise, thermal noise, or interference with components of the data acquisition system itself. Therefore, both the actual and predicted data contain noise, which affects both training and prediction at that scale. However, the error remains below 2%.
Figure 19.
Predicted vs. real drying kinetics, experiment 3.
3.3.4. Grape Drying (Experiment 4)
The environmental conditions recorded during the drying of seedless red globe grapes are illustrated in Figure 20. The process spanned three consecutive days (21–23 August 2024) and exhibited the characteristic cyclic behavior of solar drying. Figure 20a shows the inverse relationship between ambient temperature and relative humidity, while Figure 20b displays the intermittency of solar irradiance, with peaks reaching approximately 1200 W/m2 during the day and falling to zero at night.
Figure 20.
Environmental conditions, experiment 4: (a) ambient temperature and relative humidity; (b) solar irradiance.
These environmental fluctuations directly influenced the drying kinetics shown in Figure 21. The weight loss curve exhibits a distinct “step-like” pattern: rapid moisture reduction occurs during daylight hours (high irradiance and temperature), followed by periods of stagnation or slight reabsorption during the night. Despite these complex dynamics and the longer process duration compared to other foods, the proposed neural network model demonstrated high accuracy in tracking weight loss, as evidenced by the close overlap between the predicted line and the experimental data points. The statistical performance of the model for this experiment is summarized in Table 9.
Figure 21.
Predicted vs. real drying kinetics, experiment 4.
Table 9.
Parameters evaluated in experiment 4.
3.4. Limitations and Scope of the Study
While the proposed MLP architecture demonstrated high precision in modeling drying kinetics, it is essential to acknowledge specific limitations inherent to the study’s scope:
Geographic Specificity: The model was trained using climatic data specific to Durango, Mexico, a region characterized by high solar radiation and low humidity. Consequently, the direct applicability of the trained weights to regions with drastically different climatic profiles (e.g., humid tropical zones) may be limited.
Sensor Noise and Data Integrity: As observed in the experimental curves (e.g., Figure 4e), the data acquisition system is susceptible to interruptions, such as power failures or sensor drift. Although the neural network demonstrated robustness to these discontinuities, future implementations should integrate automated data-cleaning algorithms or redundant sensor systems to minimize the impact of “hardware noise” on real-time predictions.
Product Variability: The study covered seven distinct biological materials, ranging from porous fruits to waxy skins. While this validates the model’s generalization capacity, the current architecture is optimized specifically for these food groups. Extending the model to products with radically different porosities or shrinkage behaviors would require expanding the training dataset to avoid extrapolation errors.
Scalability to Industrial Systems: The current research was conducted on a solar dryer (pilot scale). Industrial scale drying operations typically involve active components (blowers, auxiliary heaters) and larger, disparate volumes. Upscaling this ANN solution to an industrial level would necessitate increasing the input vector dimensionality to include control variables (e.g., airflow velocity, heater power) that are not present in the current prototype.
Exclusion of Quality Parameters: Finally, it is important to note that the current model (ANN 2) focuses exclusively on macroscopic mass transfer (drying kinetics). It does not predict organoleptic or nutritional changes, such as color degradation or vitamin loss. Future work should aim to incorporate these quality indices into the network’s output to provide a holistic optimization of the food preservation process.
4. Conclusions
An experimental study was successfully conducted to characterize the solar drying kinetics of seven distinct agricultural products (including fruits, vegetables, and meat) under variable climatic conditions in a tunnel-type solar dryer. Based on this dataset, the proposed thermodynamic model (ANN 1) demonstrated a high capacity to map stochastic weather fluctuations to the dryer’s internal microclimate. This model achieved an R2 of 0.9878 and an MAPE of less than 6%, validating its reliability for predicting internal temperature and humidity without systematic bias. Furthermore, the neural network (ANN 2) that predicts the drying kinetics exhibited exceptional precision after optimizing its input vector through sensitivity analysis, reducing the required variables from 17 to 7 without sacrificing prediction accuracy. The ANN2 model achieved a near-perfect linear fit to the experimental data, yielding a global R2 of 0.9997 and an MAPE of less than 2%, significantly outperforming traditional linear regression baselines. These findings confirm that the proposed dual architecture effectively captures the process non-linearities, providing a computationally efficient tool for future Model Predictive Control (MPC) strategies.
Author Contributions
Methodology, software, data curation, writing—original draft preparation, D.R.-O. and E.C.L.-V.; software, formal analysis, A.Y.A.; validation data curation, visualization, Á.T.B., J.E.B. and J.D.R. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data will be made available on request to the corresponding author.
Acknowledgments
We would like to thank José Rafael Irigoyen Campuzano for his assistance with the statistical analysis of the experimental data.
Conflicts of Interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| MLP | Multilayer perceptron |
| AI | Artificial intelligence |
| ANN | Artificial neural network |
| GHG | Global greenhouse gas |
| RMSE | Root mean square error |
| MAPE | Mean absolute percentage error |
| R2 | Coefficient of determination |
| EA | Evolutionary algorithm |
References
- U.N.E.P. Obtenido de El Mundo Desperdicia Más de 1.000 Millones de Platos de Comida Al Día. 2024. Available online: https://www.unep.org/es/noticias-y-reportajes/comunicado-de-prensa/el-mundo-desperdicia-mas-de-1000-millones-de-platos-de (accessed on 13 October 2024).
- F.A.O. Pérdida y Desperdicio de Alimentos. 2024. Available online: https://www.fao.org/policy-support/policy-themes/food-loss-and-food-waste/es (accessed on 7 December 2024).
- López Vidaña, E.C.; César Munguía, A.L.; García Valladares, O.; Pilatowsky Figueroa, I.; Brito Orosco, R. Thermal performance of a passive, mixed-type solar dryer for tomato slices (Solanum lycopersicum). Renew. Energy 2020, 147, 845–855. [Google Scholar] [CrossRef] [Scilit]
- Martynenko, A.; Bück, A. Intelligent Control in Drying; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar]
- Ogata, K. Ingeniería de Control Moderna; Pearson Educación: London, UK, 2010. [Google Scholar]
- Amiri, M.; Ayani, M.B.; Ziolkowski, P.; Mikielewicz, D. Numerical analysis of vacuum drying of a porous body in the integrated domain. J. Food Process Eng. 2022, 45, e14006. [Google Scholar] [CrossRef] [Scilit]
- Norton, T.; Sun, D.-W. CFD: An Innovative and Effective Design Tool for the Food Industry. In Food Engineering Interfaces; Springer: New York, NY, USA, 2010; pp. 45–68. [Google Scholar] [CrossRef] [Scilit]
- Ertekin, C.; Yaldiz, O. Drying of eggplant and selection of a suitable thin layer drying model. J. Food Eng. 2004, 63, 349–359. [Google Scholar] [CrossRef] [Scilit]
- Zuo, Y.; Jibril, A.; Yan, J.; Xia, Y.; Liu, R.; Chen, K. Optimization of Online Moisture Prediction Model for Paddy in Low-Temperature Circulating Heat Pump Drying System with Artificial Neural Network. Sensors 2025, 25, 2308. [Google Scholar] [CrossRef] [Scilit]
- Topal, M.; Şahin, B.; Vela, S. Artificial Neural Network Modeling Techniques for Drying Kinetics of Citrus medica Fruit during the Freeze-Drying Process. Processes 2024, 12, 1362. [Google Scholar] [CrossRef] [Scilit]
- The MathWorks, Inc. Coeficiente de Determinación (R Cuadrado). 2024. Available online: https://la.mathworks.com/help/stats/coefficient-of-determination-r-squared.html (accessed on 23 January 2025).
- Bulus, H.N. Adaptive Neuro-Fuzzy Inference System and Artificial Neural Network Models for Predicting Time-Dependent Moisture Levels in Hazelnut Shells (Corylus avellana L.) and Prina (Oleae europaeae L.). Processes 2024, 12, 1703. [Google Scholar] [CrossRef] [Scilit]
- The MathWorks, Inc. Cascadeforwardnet. 2025. Available online: https://la.mathworks.com/help/deeplearning/ref/cascadeforwardnet.html?searchHighlight=cascadeforwardnet&s_tid=srchtitle_support_results_1_cascadeforwardnet (accessed on 24 January 2025).
- Warsito, B.; Santoso, R.; Suparti; Yasin, H. Cascade Forward Neural Network for Time Series Prediction. In Proceedings of the 7th International Seminar on New Paradigm and Innovation on Natural Science and Its Application, Semarang, Indonesia, 17 October 2017. [Google Scholar] [CrossRef] [Scilit]
- Haykin, S.S. Neural Networks and Learning Machines; Pearson International Edition: London, UK, 2009. [Google Scholar]
- Thimm, G.; Fiesler, E. Neural network initialization. In From Natural to Artificial Neural Computation; Springer: Berlin/Heidelberg, Germany, 2005; pp. 535–542. Available online: https://link.springer.com/chapter/10.1007/3-540-59497-3_220 (accessed on 27 March 2024).
- Pizarroso, J.; Portela, J.; Muñoz, A. NeuralSens: Sensitivity Analysis of Neural Networks. J. Stat. Softw. 2022, 102, 1–36. [Google Scholar] [CrossRef] [Scilit]
- Tiwari, S. ANN and mathematical modelling for moisture evaporation with thermal modelling of bitter gourd flakes drying in SPVT solar dryer. Heat Mass Transf. 2020, 56, 2831–2845. [Google Scholar] [CrossRef] [Scilit]
- Mahmood, F.; Govindan, R.; Bermak, A.; Yang, D.; Al-Ansari, T. Data-driven robust model predictive control for greenhouse temperature control and energy utilisation assessment. Appl. Energy 2023, 343, 121190. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






















