Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Identification of pear tissue mechanical parameters by integrating machine learning and optimization methods

  • Yuanyuan Dai,

    Roles Conceptualization, Formal analysis, Investigation, Methodology, Validation, Writing – original draft

    Affiliation School of Food and Environmental Engineering, Chuzhou Vocational and Technical College, Chuzhou, China

  • Fei Meng,

    Roles Conceptualization, Data curation, Investigation, Software, Validation

    Affiliation School of Food and Environmental Engineering, Chuzhou Vocational and Technical College, Chuzhou, China

  • Xiaohua Xie,

    Roles Data curation, Formal analysis, Investigation, Methodology, Software

    Affiliation School of Food and Environmental Engineering, Chuzhou Vocational and Technical College, Chuzhou, China

  • Yangyang Liu

    Roles Conceptualization, Formal analysis, Investigation, Validation, Writing – original draft

    lyy@ahut.edu.cn

    Affiliations School of Mechanical Engineering, Anhui University of Technology, Ma’anshan, China, School of Engineering, Anhui Agricultural University, Hefei, China

Abstract

The mechanical properties of fruit tissue play a crucial role in various food processing activities, including sorting, packaging, and transportation. Most traditional testing processes are destructive, time-consuming, and cannot capture the mechanical response under loading conditions. The present research proposes a parameter identification model that combines experimental analysis, finite element analysis, and a hybrid machine learning model to describe the viscoelastic behaviour of pear tissue. To obtain a rapid mapping from the intrinsic material constants to mechanical behavior, we develop a feasible surrogate architecture. This framework incorporates convolutional layers to extract spatial features, along with an attention-based bidirectional LSTM, which ensures a high-fidelity approximation of mechanical behavior. An enhanced genetic algorithm is suggested as a solution to the identification problem. The framework is tested through compression tests on Huangguan pears. The results indicate that the mean absolute percentage error of the surrogate model can reach a minimum of 0.05, and the force-displacement plots show an error of less than 0.08 compared to experimental data. The suggested technique minimizes the need for extensive physical testing while preserving predictive accuracy, providing a computationally efficient and experimentally economical solution for determining the material parameters of fruit tissues. It has the potential to assist in designing and optimizing food protection equipment for transporting fresh fruits, thereby reducing storage losses.

1. Introduction

Mechanical sorting, packaging, and transportation cause external forces on fruits that may result in tissue damage and quality loss [1,2]. Even a small injury can cause visible bruising and quick decay in pears and influence customer acceptance and economic value. The mechanical behavior of fruit tissues in these processing-related loading conditions is thus important in designing optimum equipment and minimizing postharvest losses. Traditional ways of estimating mechanical properties usually involve destructive tests and empirical constitutive equations. They require a large number of samples, and cannot be easily applied to online processing situations [39]. Recent advances in deep learning provide an opportunity to overcome such challenges. Neural networks have the ability to learn highly nonlinear interactions among high-dimensional experimental data without a predefined mathematical structure and hold great potential in material modeling and parameter identification [10]. Deep learning application to the mechanical research of pears might assist in decreasing postharvest damage, optimizing the supply chain, increasing product quality, and ensuring industry sustainability [1113].

The cell structure, tissue composition, and physiological condition govern the mechanical behavior of pears. The flesh exhibits typical viscoelastic solid properties when it is loaded under quasi-static conditions. Stress relaxation tests suggest that the rheological behavior of the flesh can be modeled by combinations of elastic and viscous components, including the Maxwell or generalized Maxwell models [14]. The mechanical properties of pears change dynamically during ripening and postharvest maturation. Generally, as maturity increases, degradation of cell wall components and weakening of intercellular adhesion lead to decreased fruit firmness and elastic modulus, making the fruit more susceptible to mechanical damage [15]. Classical parameter identification methods are based on continuum mechanics theory. However, constructing precise analytical models for highly nonlinear damage behaviors is itself a challenge. To meet the demand for online, non-destructive testing, acoustic, optical, and electromagnetic techniques have been extensively explored [16,17]. Nevertheless, these approaches are often based on empirical black-box correlations and lack a clear physical basis. Moreover, models such as PLS regression and SVM struggle to generalize when handling nonlinear problems with significant individual variation and complex causal influences [18].

In general, a feedforward neural network comprising one or more hidden layers can model any continuous function arbitrarily precisely, thus serving as an attractive tool to build input‑output mappings for complex nonlinear systems [19]. In computational mechanics, neural networks can be directly used as material constitutive models [20]. Compared to traditional models, neural network constitutive models do not require predefined specific functional forms, only sufficient training data covering the material’s behavior space. Another common paradigm uses neural networks as surrogate models to accelerate computationally expensive parameter inversion processes. Specifically, a finite element model is first used to generate a large amount of simulation data under different parameter combinations; subsequently, a neural network is trained to learn the inverse mapping from mechanical responses to material parameters [21]. Once this network has been trained, actual measured response data can be placed into it to invert the corresponding mechanical parameters in real-time in a fast manner. Such an approach substitutes the computationally intensive forward problem solving with an offline phase, which is run once only, with a single effective forward propagation performed in the online stage. The mechanical response of fruit is basically a loading history function. RNNs and various related models are specifically trained to work with sequence data and long-term interactions, which makes them quite appropriate to model rate-dependent behavior and stress relaxation properties of viscoelastic materials [22]. For problems involving spatial field information, convolutional neural networks are favored for their powerful spatial feature extraction capabilities [23]. One-dimensional convolutional neural networks have been successfully applied to process vibration spectrum data of fruits for predicting indicators like firmness [24]. Purely data-driven neural networks might contradict well-known laws of physics and often need large volumes of training data. The physics-informed neural networks tackle this issue by incorporating governing equations into the loss function as regularization, constraining network predictions to obey physical rules [25].The paradigm of physics-guided machine learning is much more efficient in terms of data and more accurate in terms of model generalization and extrapolation reliability, which represents a good opportunity in developing high-fidelity mechanical parameter identification models using small sets of high-quality experimental data, even though it has not yet been used in agricultural biomaterials applications [26]. From an engineering perspective, these physics-informed methodologies provide a reliable way to identify parameters that can be incorporated into the design process of fruit protection devices.

To this end, the present study aims to establish an efficient mechanical parameter identification strategy that integrates experimental testing, finite element simulation, and machine learning to overcome the limitations of conventional destructive methods. Unlike existing surrogate‑based parameter identification methods that rely on standard RNNs or simple feedforward networks, the proposed CNN-BiLSTM-Attention model uniquely captures both local spatial features and bidirectional temporal dependencies in viscoelastic responses. Furthermore, the improved genetic algorithm (IGA) introduces a three‑layer hybrid initialization, dynamic fitness‑based subgroup evolution, and an adaptive diversity adjustment mechanism, which significantly enhances convergence speed and global search capability on high‑dimensional material parameter spaces.

2. Materials and methods

2.1. Parameter identification

Similar to other fruits, in the course of transportation and storage, pears may be damaged mechanically, including the effects of falling and mechanical extrusion [2730]. Small injuries may cause a reduction in the quality of fruits and the development of decay. Taking transportation as an example, Fig 1 shows a schematic diagram of pear damage protection during long-distance cargo ship transportation. In order to minimize pear damage as much as possible, a protective device with buffering effect needs to be designed. However, to efficiently protect fruits, it is necessary to establish a high-precision fruit simulation model. Hence, there is a need to carry out a study regarding mechanical damage to fruits. To determine the mechanical parameters of pears, the given study establishes a data-driven method to calibrate the minor damage model of pears under potential mechanical loads.

thumbnail
Fig 1. Description of low-speed damage scenarios of pears during transportation.

https://doi.org/10.1371/journal.pone.0353997.g001

The proposed approach starts by modelling the pear by creating its finite element representation. Only a small number of low‑cost experiments are performed to obtain the mechanical response data, i.e., compression load‑displacement curves. The findings of these experiments are the starting point of developing a machine learning based surrogate model. In particular, it is through this data that a predictive model is trained to make predictions of the mechanical response of the pear in a more efficient and accurate manner when presented with certain material parameters. Having such a surrogate model, the approach uses an algorithm that searches the parameter space. The optimisation process is expected to reduce the difference between the numerical surrogate model and the experimental result. With repeated changes in the material parameters, the error is reduced to a reasonable level. This is to make sure that the parameters identified are a good representation of the mechanical properties. The proposed method is not only very accurate, but also minimizes the use of elaborate, expensive, and time-consuming testing that involves experimentation. Although validated on pears, the framework is not limited to this specific fruit or loading condition. The combination of finite element simulation, surrogate modeling, and global optimization can be adapted to other biomaterials and processing scenarios where mechanical interactions between product and equipment influence final quality.

2.2. Predictive model

Sequence data prediction is an important research direction in data science and machine learning, widely applied in fields such as finance, meteorology, energy, and transportation. Traditional approaches like autoregressive moving average and its integrated variant are limited when applied to nonlinear, non-stationary time series [3133]. With the development of deep learning techniques, neural network-based prediction methods demonstrate powerful nonlinear modeling capabilities. Convolutional neural networks (CNNs) specialize in spatial feature extraction, whereas long short-term memory networks (LSTMs) are adept at modeling long-range sequential dependencies. However, a single model often struggles to simultaneously handle spatiotemporal features and long-range dependencies. Therefore, this work develops a CNN-BiLSTM-Attention hybrid prediction model [34,35]. Here, the framework of the network is designed based on the training sample point data in this study, and some major network parameters can be adjusted as necessary according to the complexity of the problem and the sample data.

The framework for sequence data prediction combines CNN-based local feature extraction, BiLSTM-based bidirectional temporal modeling, and attention-based feature selection. The proposed CNN-BiLSTM-Attention model is composed of a sequence of processing stages: beginning with data preprocessing, followed by feature extraction (CNN), attention-based feature weighting, bidirectional temporal modeling (BiLSTM), and culminating in a prediction output layer. The prediction model takes four material parameters as input. After normalization, they first go into a convolutional feature extraction module. Since the input dimensionality is low, the convolution part uses a lightweight two-layer structure, with kernel size set to 2 × 1 and the number of kernels being 16 and 32 respectively. A ReLU activation function is added after each convolutional layer to enhance nonlinear expressiveness. Then, an SE type channel attention mechanism adaptively weights the convolutional features. After global average pooling, two fully connected layers with 8 and 32 neurons are used to highlight key channel information and suppress redundant features. The attention-weighted features are then fed into a BiLSTM network with 16 hidden units, which captures bidirectional dependencies among deep features and improves the modeling of the overall trend of the load curve. Finally, a fully connected layer with 10 neurons outputs the load values at 10 discrete time points, achieving complete prediction of the compression load curve. To improve convergence stability and prediction accuracy, the CNN-BiLSTM-Attention model is trained with a piecewise learning rate decay strategy and the Adam algorithm.

The computational flow of the model can be formally expressed as:

(1)

where represents the input data, and represents the predicted output. represents the weight of the fully connected layer, and represents the bias of the fully connected layer. The input data is first normalized, mapping the original data to the [0,1] interval to eliminate scale effects and accelerate model convergence:

(2)

where represents the original data. After normalization, the data is reshaped into a multidimensional tensor form:

(3)

where is the number of samples, denotes the number of channels, and and represent the spatial height and width dimensions, respectively. A sequence folding layer then converts this spatial representation into a sequence of feature vectors, enabling the subsequent temporal modeling by the BiLSTM network. The loss function is:

(4)

In Equation 4, represents the true value, represents the estimated value. To assess the performance in a comprehensive way, the following evaluation measures are used in this work:

(5)

where MAPE is the mean absolute percentage error and R² is the coefficient of determination [36,37]. The CNN module is based on a two-layer convolutional architecture for local feature extraction. The first convolutional layer is characterized by:

(6)

where denotes the convolution operation. More detailed features are further elicited:

(7)

SE (Squeeze-and-Excitation) attention mechanism: This mechanism is an adaptive mechanism of recalibration of feature responses by interdependency modeling across channels [38]. In this module, there are three important steps, which include the Squeeze operation, the Excitation operation, and the Reweight operation. The Squeeze operation derives statistics channel wise through global average pooling:

(8)

where represents the feature of the -th channel.

This study uses MATLAB to establish a CNN-BiLSTM-Attention prediction model and reads the training data [39]. The experimental data used for training and validation includes force–displacement curves, capturing the viscoelastic behavior of pear tissue. The input features to the CNN-BiLSTM-Attention model consist of four viscoelastic model parameters: instantaneous shear modulus (G0), relaxation rate constant (β), long-term shear modulus (G), and bulk modulus (K). The output is the predicted force-displacement curve under a specified compression condition. The viscoelastic behavior is described by a generalized Maxwell model, where the shear relaxation modulus is expressed as [40]:

(9)

Here, the relaxation time constant β= . The pear flesh is assumed to be a homogeneous, isotropic, and linearly viscoelastic material under quasi‑static compression. The shear relaxation behavior is described by a single‑branch generalized Maxwell model.

2.3. Optimization algorithm

The paper presents an improved genetic algorithm (IGA), which is aimed at solving single-objective optimization problems in high-dimensional parameter spaces. It is well known that classical genetic algorithms (GA) suffer from various drawbacks such as slow convergence, vulnerability to local optima, and inability to explore and exploit high-dimensional optimization problems [4143]. To overcome these issues, the proposed IGA introduces several enhancements, including a three-layer hybrid initialization scheme, a dynamic grouping algorithm, and adaptive approach selection to improve performance. IGA divides the population into three classes consisting of elite, medium, and exploration and applies different evolution strategies to each group to strike a dynamic equilibrium between exploration and exploitation. The initial population is generated using the three-layer hybrid strategy in the cyclic process. In the evaluation stage, the fitness value of every individual is estimated. These fitness values are used to dynamically divide the population into three subgroups by iterative optimization where each subgroup uses a different evolutionary strategy. The periodic adaptive modifications are also employed to guarantee the ongoing effectiveness of optimization. The algorithm stops at max iteration or convergence, returning the optimal solution and fitness value. This optimization problem can be regarded as minimization problem. Fitness function is the mean square error between the experimental force-displacement curve and the curve forecasted by the CNN-BiLSTM-Attention surrogate model

(10)

where denotes the four viscoelastic parameters to be identified, is the number of time steps. and are experimental and predictive data, respectively. Classical genetic algorithms normally employ randomization of starting points and therefore the distribution of population is uneven. The improved GA uses a three-layer hybrid initialization strategy:

(11)

where is a Latin Hypercube sequence, is a chaotic sequence, and is the perturbation strength.

The improved GA dynamically subdivides the population into three groups according to the fitness of an individual:

(12)

where denotes the population size, and is the fitness ranking function. The improved GA makes use of group-specific evolutionary strategies: Elite Group (20%): Used for local refinement: ; Intermediate Group (60%): Used for adaptive crossover and mutation: , ; Exploration Group (20%): Used for global exploration: . Here, is the normalized iteration progress, is the learning rate, and is a random vector. The improved GA incorporates an adaptive balancing adjustment mechanism. The algorithm periodically monitors population diversity and dynamically adjusts the balance between exploration and exploitation:

(13)

The performance of IGA, standard GA, and standard PSO is evaluated on four classical test functions [44]::

(14)

For the selected high-dimensional test functions (including Sphere, Rastrigin, Ackley, and Rosenbrock functions), this experiment uniformly sets the problem dimension D = 50, the population size N = 80, and the maximum iteration number is 400, ensuring that the algorithms have sufficient search and convergence space. As shown in the iterative curves in Fig 2, the IGA exhibits a faster declining trend and a smoother convergence pattern during the evolutionary process. Fig 3 further confirms the superiority of IGA across multiple test functions through the changes in average fitness values. Compared with the general Particle Swarm Optimization (PSO) and GA, IGA not only achieves significantly higher final convergence accuracy but also demonstrates noticeably faster convergence speed, along with stronger stability and robustness over multiple independent runs. In comparison, with traditional GA, IGA minimizes the fitness values of Sphere, Rastrigin, Ackley, and Rosenbrock functions by 99.44%, 97.01%, 81.89%, and 99.95% respectively when minimizing the fitness. Similarly, for the Sphere, Rastrigin, Ackley, and Rosenbrock functions, IGA reduces the fitness values by 94.25%, 91.84%, 72.73%, and 99.34%, respectively, as opposed to the traditional PSO. These findings show that the three-layer hybrid initialization strategy, dynamic grouping mechanism, and real-time adaptive updating strategy used in IGA are good at balancing global exploration and local exploitation resulting in excellent overall performance on high-dimensional complex optimisation problems. This offers it a solid foundation to be used in real world high-dimensional optimization problems such as the identification of mechanical parameters for pears.

thumbnail
Fig 2. Iterative process of optimization algorithms: (a) Sphere function; (b) Rastrigin function; (c) Ackley function; (d) Rosenbrock function.

https://doi.org/10.1371/journal.pone.0353997.g002

thumbnail
Fig 3. Average fitness function values: (a) Sphere function; (b) Rastrigin function; (c) Ackley function; (d) Rosenbrock function.

https://doi.org/10.1371/journal.pone.0353997.g003

3. Results and discussion

3.1. Experiment and simulation

All Huangguan pears used in this study are selected from those harvested at commercial maturity from Dangshan County, Anhui Province, China. Before testing, representative samples are assessed for firmness and soluble solids content (SSC) to confirm uniformity. The pear tissue is modeled as a homogeneous, isotropic viscoelastic material, with key parameters including the G0, G, β, and K. Fifteen pears from the same season are selected. All samples are first scanned with a 3D contour scanner to reconstruct their numerical models (as illustrated in Fig 4). Among the experimental samples, one subset is used to establish finite element models for predictive model training, and the other subset is used to validate the feasibility of the identified material parameters. 3D contour scanning technology is commonly used for establishing fruit models to make them more in line with real physical models [45,46]. Pears labeled A1 to A5 and a1 to a5 are used for parameter identification, while pears B1 to B5 are reserved for validating the identified parameters.

thumbnail
Fig 4. Physical samples: (a) Samples for generating finite element data during parameter identification; (b) Samples for testing the accuracy of parameter identification.

https://doi.org/10.1371/journal.pone.0353997.g004

Uniaxial compression tests are conducted using a material testing machine at a rate of 5 mm/min, with the pear stem placed against the moving upper platen, as shown in Fig 5(a). Correspondingly, the finite element model is established on the LS-DYNA platform (Fig 5(b)), simulating compression between a fixed and a movable rigid plate. The pear geometry is discretized using solid elements and is assigned the *MAT_VISCOELASTIC material model to capture its viscoelastic response [47,48]. The model can be used to explain simultaneously the instantaneous effects of elastic response and viscous flow of the flesh and thus be more representative of the internal deformation of the flesh during harvesting, storage, and transportation. This gives a specific simulation foundation to the damage reduction design and equipment parameters optimization. In this case, the flesh and peel are considered isotropic materials. The size and the type of elements in the finite element model meshing are an important factor in determining the accuracy of the simulations. A suitable mesh size not only guarantees an accurate model but also enhances the level of computational efficiency. In the finite element model (LS‑DYNA), the pear is positioned between a stationary lower rigid plate and a movable upper rigid plate. The upper plate moves downward at a constant velocity of 5 mm/min, and the contact friction is defined. The bottom plate is fully fixed. The pear geometry is discretized with 1 mm solid elements after mesh convergence analysis.

thumbnail
Fig 5. Experimental and simulation model: (a) The experimental instruments; (b) The finite element model.

https://doi.org/10.1371/journal.pone.0353997.g005

The training data used in this study are all from the same origin and are gathered through random sampling. The compression tests on all pears are shown in Fig 6 by using a universal testing machine. During the early compression stage, the pears show no visible cracking, and the main deformation occurs within the flesh. It can be observed that, during the initial compression stage of pears, the load curves of all samples show a relatively small slope at the beginning, appearing slightly convex upward. The load increases slowly, while the displacement changes significantly. At this stage, this is primarily due to the gentle closure of the porous internal structure of the pear material, such as the intercellular spaces, which allows the pear cell walls to undergo elastic bending easily, resulting in an overall compliant behavior. However, as compression continues, the slope of the load curve, that is, the stiffness, increases steadily, entering a nearly linear stage. At this point, the pear cell walls become sufficiently compacted and begin to bear the main load, exhibiting characteristics similar to the elasticity of a solid. These data will be used separately for the subsequent identification of material parameters.

thumbnail
Fig 6. Experiment for generating finite element sample points.

https://doi.org/10.1371/journal.pone.0353997.g006

3.2. Parameter calibration results

During the training process, a total of 10000 numerical simulation samples are constructed for model training, based on 10 sets of experimental data. We obtained a final set of viscoelastic constitutive parameters for this variety of Huangguan pears by averaging the material parameters inverted from each experimental dataset. The overall training framework is shown in Fig 7. All pears used in the training phase are from the same season and origin. For each different pear size, 1000 sample points are generated. These points are sampled using the optimal Latin hypercube method, and the sampling space is required to satisfy fundamental viscoelastic mechanical constraints [49]. Based on the constraint relationship between viscoelastic constitutive parameters, assuming the Poisson’s ratio of the Huangguan pear is between 0.3 and 0.45, the obtained sample point data is shown in Fig 8. In this simulation on the LS-DYNA platform, the unit system of material mechanics is defined as GPa. Among these parameters, K is greater than G0, and G0 is greater than G. The Poisson’s ratio of pear material is mainly influenced by bulk modulus, instantaneous shear modulus, and long-term shear modulus. The measured data from a given experiment are input into the trained predictive model to obtain the mechanical parameters for that specific pear contour type. For a single physical pear prototype, the dataset is randomly split into training (70%), validation (15%), and test (15%). Input features (G₀, G, β, K) are normalized to [0,1]. Finally, after averaging the 10 sets of parameters, they are substituted into another 5 sets of independent experimental data for validation.

thumbnail
Fig 7. Parameter identification process for Huangguan pears.

https://doi.org/10.1371/journal.pone.0353997.g007

thumbnail
Fig 8. Sample points obtained using optimal Latin hypercube sampling: (a) G0, G, K; (b) (c) G0, G, β; (d) G0, K, β; (e) G0, G; (f) G, β.

https://doi.org/10.1371/journal.pone.0353997.g008

The CNN-BiLSTM-Attention surrogate model takes four viscoelastic model parameters (G0, G, β, K) as input and predicts the force-displacement curve. The IGA iteratively searches for the optimal parameters by minimizing the error between predicted and experimental curves. This surrogate model thus learns the mapping from viscoelastic parameters to mechanical response, enabling rapid evaluation during the inverse optimization process. Fig 9 shows the statistical information of MAPE for the prediction models of A1 ~ A5 and a1 ~ a5 pears. It can be observed that the MAPE is between 0.05 and 0.08, indicating that the prediction error is generally low and stable. The R² distribution of all prediction models is in the high range of 0.90 ~ 0.96, further indicating that all prediction models have excellent fitting ability. Compared with conventional LSTM, BiLSTM, and CNN-BiLSTM, the CNN-BiLSTM-Attention model exhibits a lower overall MAPE and a higher overall R², indicating its superior predictive performance over the other models. By adopting the prediction model introduced in this study, it can be found that it has excellent performance in prediction accuracy and fitting effect, and can be used for global optimization algorithms for optimization.

thumbnail
Fig 9. Accuracy evaluation of predictive models: (a) MAPE; (b) R2.

https://doi.org/10.1371/journal.pone.0353997.g009

As shown in Fig 10, the pear first undergoes compression in the contact surface area with the moving pressure plate. As the compression displacement progresses, the end of the pear undergoes significant material shrinkage, and there is a slight expansion in the transverse direction of the pear. During the experiment, there will be a small liquid overflow. The experimental results are compared with the finite element simulation results calibrated by material mechanics parameters, and the two are consistent in the main deformation mode and triggered deformation sequence. The simulation model obtained through material mechanics parameter identification can simulate the main characteristics of the outer contour compression deformation of Huangguan pear.

thumbnail
Fig 10. The main deformation modes of pears used for testing.

https://doi.org/10.1371/journal.pone.0353997.g010

As shown in Fig 11, the internal deformation modes of the validation samples in compression experiments and the simulation model are highly consistent. To further describe the compression deformations within the fruit, the pear is longitudinally cut open to see that both in the experiment and simulation there are uniform crushing deformations zones. Discoloration of pear flesh following bruising mainly occurs due to the enzymatic browning reactions caused by cell damage. Mechanical injury causes phenolic substrates that were initially compartmentalized in various areas of the cells to interact with polyphenol oxidase [50]. The fact that the experimental and simulated deformation zones are nearly identical suggests that the calibrated model is a reliable tool for predicting where and how much bruising occurs, allowing the estimation of quality loss during the postharvest stage in commercial supply chains. In practical storage and processing control, the effective reduction of browning can be achieved by adding an antioxidant or by altering pH to inhibit the activity of PPO. Besides, the analysis of compression load-displacement curves of the experiment and simulation shows that the trends of the curves are approximately similar.

thumbnail
Fig 11. Parameter identification results and verification: (a) Compression deformation profiles of different pears;(b) Compression load and accuracy analysis.

https://doi.org/10.1371/journal.pone.0353997.g011

The mean error is used to quantify the difference between the two. The average error remains below 0.08, confirming that the proposed identification method can reliably determine the constitutive parameters of pear tissue. The identified viscoelastic parameters satisfy the physical constraints expected for biological materials, with the instantaneous shear modulus consistently larger than the long-term shear modulus, and the bulk modulus greater than both. This consistency across multiple samples indicates that the identification process not only fits the force displacement curves but also respects the underlying material behavior, enhancing the credibility of the identified parameters for engineering applications. The optimized system framework is utilized to calibrate the fruit damage model, achieving high accuracy through minimal physical testing. It is effective to simulate the small deformation damage of pears by using a viscoelastic constitutive model. Of course, the effectiveness of using viscoelastic constitutive models to simulate the mechanical behavior of fruits has also been mentioned in existing literature [5154]. Beyond pear tissue, this technique can be extended to mechanical parameter identification for other fruit varieties. The approach is efficient and effective in constitutive model parameter acquisition, and it reduces experimental costs. From a food processing engineering perspective, the ability to obtain reliable viscoelastic parameters from limited physical tests is particularly valuable. These parameters can be incorporated into simulation models used to evaluate equipment designs before physical prototypes are built, reducing development time and improving processing outcomes. The current framework assumes homogeneous and isotropic material properties for each individual pear, without explicitly accounting for biological variability across fruits. In practice, factors such as maturity stage, harvest time, and storage conditions can significantly affect the mechanical behavior of pear tissue. Future work will extend the proposed methodology by incorporating probabilistic modeling techniques, such as Bayesian inversion or variational inference, to quantify parameter uncertainty and enhance the robustness of the identification framework across a broader range of fruit conditions. Such developments would further improve the practical applicability of the approach in real-world food processing environments.

4. Conclusions

The present work proposes an optimization-based framework to calibrate a minor-damage model of Huangguan pears subjected to mechanical loading. Combining experimental measurement, finite element simulations, and inverse parameter identification, it offers an effective way of determining the mechanical properties of fruits without the constraints associated with the conventional destructive testing methods. In the CNN-BiLSTM-Attention prediction model tasks, the model achieves MAPE values between 0.05 and 0.08 and R² values between 0.90 and 0.96, indicating satisfactory predictive ability. A new global optimization algorithm was developed based on an improved genetic algorithm (IGA). IGA also shows significantly better results on the benchmark functions compared to standard GA and PSO, with the best reduction in fitness value reaching 99.95%. This increased optimization ability allows identifying important viscoelastic constitutive parameters, such as the instantaneous shear modulus, long-term shear modulus, relaxation rate constant, and bulk modulus, with confidence. Experimental validation through independent experiments proved that the predicted deformation modes and load-displacement responses based on identified parameters have good agreement with experiment, with an error of less than 0.08. These results confirm the validity, practicality, and reliability of the developed methodology. The suggested strategy is both computationally efficient and experimentally economical when characterizing the mechanical behavior of fruit tissues. The framework has less reliance on large-scale physical testing and has significant potential to be extended to other areas of use, including the prediction of slight damage to fruits, constitutive modelling, and the design and optimisation of equipment used for harvesting, handling, and transporting fruits.

Supporting information

References

  1. 1. Chen H, Guo T, Jin L, Wang J, Zhu Y, Ban Z, et al. Prediction of damage characteristics of apple fruit based on test and finite element method. Journal of Stored Products Research. 2025;111:102543.
  2. 2. Zhu Y, Zhu L, Guo W, Han Z, Wang R, Zhang W, et al. Multiscale static compressive damage characteristics of kiwifruit based on the finite element method. Foods. 2024;13(5):785. pmid:38472898
  3. 3. Opara UL, Pathare PB. Bruise damage measurement and analysis of fresh horticultural produce—A review. Postharvest Biology and Technology. 2014;91:9–24.
  4. 4. Wang L-J, Zhang Q, Song H, Wang Z-W. Mechanical damage of ‘Huangguan’ pear using different packaging under random vibration. Postharvest Biology and Technology. 2022;187:111847.
  5. 5. Ahmadi E. Bruise susceptibilities of kiwifruit as affected by impact and fruit properties. Res Agric Eng. 2012;58:107–13. http://dx.doi.org/10.17221/57/2011-RAE
  6. 6. Hu T, Cheng L, Song S. Finite element simulation in fruit mechanical damage research: A review. Food Reviews International. 2026. http://dx.doi.org/10.1080/87559129.2026.2644551
  7. 7. Hou J, Zhu Z, Hu W, He Z, Sun Q, Yue X. Analysis of damage caused by drop impacts for mulberry fruits: An dropping experiment and numerical simulation. J Food Process Engineering. 2023;46(5).
  8. 8. Opara UL, Fadiji T. Compression damage susceptibility of apple fruit packed inside ventilated corrugated paperboard package. Sci Hortic. 2018;227:154–61.
  9. 9. Van Zeebroeck M, Tijskens E, Dintwa E, Kafashan J, Loodts J, De Baerdemaeker J, et al. The discrete element method (DEM) to simulate fruit impact damage during transport and handling: Model building and validation of DEM to predict bruise damage of apples. Postharvest Biology and Technology. 2006;41(1):85–91.
  10. 10. Sharma H, Arora G, Singh MK, Ayyappan V, Bhowmik P, Rangappa SM, et al. Review of machine learning approaches for predicting mechanical behavior of composite materials. Discov Appl Sci. 2025;7(11).
  11. 11. Ma L, Wu X, Zhu T, Huang Y, Chen X, Ning J, et al. Enhanced attention-driven hybrid deep learning with harris hawks optimizer for apple mechanical damage detection. Food Measure. 2024;18(11):9508–18.
  12. 12. Sharma H, Arora G, Bhowmik P, Singh MK, Ayyappan V, Sehgal AK, et al. Predictive modeling of thermoplastic nanocomposites using machine learning algorithms. Discov Mechanical Engineering. 2025;4(1).
  13. 13. Vasighi-Shojae H, Gholami-Parashkouhi M, Mohammadzamani D, Soheili A. Predicting mechanical properties of golden delicious apple using ultrasound technique and artificial neural network. Food Anal Methods. 2019;13(3):699–705.
  14. 14. Singh KK, Reddy BS. Post-harvest physico-mechanical properties of orange peel and fruit. Journal of Food Engineering. 2006;73(2):112–20.
  15. 15. Abbott JA. Quality measurement of fruits and vegetables. Postharvest Biology and Technology. 1999;15(3):207–25.
  16. 16. Taniwaki M, Hanada T, Tohro M, Sakurai N. Non-destructive determination of the optimum eating ripeness of pears and their texture measurements using acoustical vibration techniques. Postharvest Biology and Technology. 2009;51(3):305–10.
  17. 17. Nicolaï BM, Beullens K, Bobelyn E, Peirs A, Saeys W, Theron KI, et al. Nondestructive measurement of fruit and vegetable quality by means of NIR spectroscopy: A review. Postharvest Biology and Technology. 2007;46(2):99–118.
  18. 18. Chen L, Opara UL. Texture measurement approaches in fresh and processed foods — A review. Food Research International. 2013;51(2):823–35.
  19. 19. Chen Z, Cao F. Construction of feedforward neural networks with simple architectures and approximation abilities. Math Methods in App Sciences. 2020;44(2):1788–95.
  20. 20. Dornheim J, Morand L, Nallani HJ, Helm D. Neural networks for constitutive modeling: From universal function approximators to advanced models and the integration of physics. Arch Computat Methods Eng. 2023;31(2):1097–127.
  21. 21. Shen Y, Chandrashekhara K, Breig WF, Oliver LR. Neural network based constitutive model for rubber material. Rubber Chemistry and Technology. 2004;77(2):257–77.
  22. 22. Qin B, Zhong Z. A Physics-guided machine learning model for predicting viscoelasticity of solids at large deformation. Polymers (Basel). 2024;16(22):3222. pmid:39599312
  23. 23. Rao C, Liu Y. Three-dimensional convolutional neural network (3D-CNN) for heterogeneous material homogenization. Comput Mater Sci. 2020;184:109850.
  24. 24. Wang D, Feng Z, Ji S, Cui D. Simultaneous prediction of peach firmness and weight using vibration spectra combined with one-dimensional convolutional neural network. Comput Electron Agric. 2022;201:107341.
  25. 25. Raissi M, Perdikaris P, Karniadakis GE. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J Comput Phys. 2019;378:686–707.
  26. 26. Gao H, Sun L, Wang JX. PhyGeoNet: Physics-informed geometry-adaptive convolutional neural networks for solving parameterized steady-state PDEs on irregular domain. J Comput Phys. 2021;428:110079.
  27. 27. Liu D, Lv F, Wang C, Wang G, Zhang H, Guo J. Classification of early mechanical damage over time in pears based on hyperspectral imaging and transfer learning. J Food Sci. 2023;88(7):3022–35. pmid:37219393
  28. 28. Berardinelli A, Donati V, Giunchi A, Guarnieri A, Ragni L. Damage to pears caused by simulated transport. Journal of Food Engineering. 2005;66(2):219–26.
  29. 29. Ding C, Chen P, Liao L, Chu S, Yang X, Gai G, et al. A numerical model for simulating force-induced damage in Korla Fragrant pears at different maturity stages. Agriculture. 2025;15(15):1611.
  30. 30. Ayyappan V, Arora G, Kumar M, Raghunathan V, Mavinkere R, Siengchin S. Sustainable composite products: Industry 4.0 to 5.0. Appl Sci Eng Prog. 2025;18(4):7883.
  31. 31. Dhiman B, Kamboj S, Srivastava V. Leveraging bidirectional long short-term memory in a encoder-decoder architecture to fuse inter-slice information for enhancing burn tissue segmentation using optical coherence tomography. Biomedical Signal Processing and Control. 2025;107:107873.
  32. 32. Liu B, Li J, Jiang X, Gibbs M, Zhu Z, Wang X, et al. Enhancing riverine cyanobacterial bloom prediction: A hybrid deep learning approach combining wavelet decomposition, double-layer LSTM, ARIMA, and residual compensation. Environ Model Softw. 2026;196:106764.
  33. 33. Bahadur FT, Shah SR, Nidamanuri RR. Geospatial time series forecasting of air quality across Delhi using ARIMA and LSTM models. J Atmos Sol Terr Phys. 2026;279:106723.
  34. 34. Mohamed Abdul Cader J, Newton MAH, Sattar A. Efficient drug-target affinity prediction via interaction features and parallel CNN-BiLSTM with attention. Comput Biol Chem. 2026;121:108862. pmid:41478193
  35. 35. Kumari KSN, Vijayabaskar S, Praynlin E, Aravinda K. Advanced ECG classification with improved optimized feature selection and attention CNN-BILSTM technique. Biomedical Signal Processing and Control. 2025;110:108299.
  36. 36. Abdullhadi S, Al-Qudah DA, Abu-Salih B. Time-aware forecasting of search volume categories and actual purchase. Heliyon. 2024;10(3):e25034. pmid:38317988
  37. 37. Olawumi MA, Oladapo BI, Olawale RA. Revolutionising waste management with the impact of Long Short-Term Memory networks on recycling rate predictions. Waste Management Bulletin. 2024;2(3):266–74.
  38. 38. Saleem N, Elmannai H, Bourouis S, Trigui A. Squeeze-and-excitation 3D convolutional attention recurrent network for end-to-end speech emotion recognition. Applied Soft Computing. 2024;161:111735.
  39. 39. Ahmadi M, Aly H, Khashei M. Enhancing power grid stability with a hybrid framework for wind power forecasting: Integrating Kalman Filtering, Deep Residual Learning, and Bidirectional LSTM. Energy. 2025;334:137752.
  40. 40. Wineman A. Nonlinear viscoelastic solids—A review. Mathematics and Mechanics of Solids. 2009;14(3):300–66.
  41. 41. Ali MZ, Awad NH, Suganthan PN, Shatnawi AM, Reynolds RG. An improved class of real-coded Genetic Algorithms for numerical optimization✰. Neurocomputing. 2018;275:155–66.
  42. 42. Katoch S, Chauhan SS, Kumar V. A review on genetic algorithm: Past, present, and future. Multimed Tools Appl. 2021;80(5):8091–126. pmid:33162782
  43. 43. Liu T, Li J, Zhang X, Zhang D, Hu C, Feng K, et al. Optimization of high-frequency transmission line reflection wave compensation and impedance matching based on a DQN-GA hybrid algorithm. Electronics. 2026;15(3):645.
  44. 44. Ferreira OP, Iusem AN, Németh SZ. Concepts and techniques of optimization on the sphere. TOP. 2014;22(3):1148–70.
  45. 45. Wang J, Xie Z, Mao P, Sun M, Guo J. Fruit modeling and application based on 3D imaging technology: A review. Food Measure. 2024;18(6):4120–36.
  46. 46. Wang Y, Chen Y. Fruit morphological measurement based on three-dimensional reconstruction. Agronomy. 2020;10(4):455.
  47. 47. Kalman P. A mathematical model of produce damage mechanisms. Transactions of the ASAE. 1984;27(1):287–93.
  48. 48. Li Z, Andrews J, Wang Y. Mathematical modelling of mechanical damage to tomato fruits. Postharvest Biology and Technology. 2017;126:50–6.
  49. 49. Li GS, Yang JW, Wu ZP, Zhang WH, Okolo P, Zhang DQ. A sequential optimal Latin hypercube design method using an efficient recursive permutation evolution algorithm. Eng Optim. 2024;56:179–98.
  50. 50. Toivonen PMA, Brummell DA. Biochemical bases of appearance and texture changes in fresh-cut fruit and vegetables. Postharvest Biology and Technology. 2008;48(1):1–14.
  51. 51. Salinas DE, Garvin A, Ibarz R, Ibarz A. Viscoelastic properties and compensation study of apple juice enriched with apple fiber. LWT. 2021;151:111971.
  52. 52. Stropek Z, Golacki K. Viscoelastic response of apple flesh in a wide range of mechanical loading rates. Int Agrophys. 2018;32:335–40.
  53. 53. Aina AM, Harith HH, Hashim N, Mohamad Shukery MF. Finite element modelling of the mechanical behavior of papaya fruit under compression. Postharvest Biology and Technology. 2025;226:113565.
  54. 54. Mahiuddin M, Godhani D, Feng L, Liu F, Langrish T, Karim MA. Application of Caputo fractional rheological model to determine the viscoelastic and mechanical properties of fruit and vegetables. Postharvest Biology and Technology. 2020;163:111147.