1. Introduction
Injection molding is a pivotal manufacturing process widely utilized for producing plastic components across industries including household appliances, automotive and medical devices [
1]. As the core equipment, injection molding machines represent the largest market share among plastic machinery in China. They are responsible for heating and melting plastic granules or powders, and then injecting the molten material into molds [
2]. Typically, the machine consists of several key components, including the injection unit, mold clamping device, ejector mechanism, heating system, electrical control system, and drive mechanism [
3]. The quality of molded products including dimensional accuracy, surface finish and mechanical properties, is critically influenced by process parameters such as holding pressure, storage speed, injection speed and cooling time [
4].
However, in actual injection molding production, process parameter adjustments frequently lack systematic theoretical guidance or data-driven analysis, relying predominantly on operator experience [
5]. There are differences in experience levels among workers, and even the same worker may produce inconsistent adjustment results at different times or under different conditions due to subjective judgment biases [
6]. Consequently, maintaining consistent product quality within batches is challenging, resulting in dimensional deviations, appearance defects, unstable performance, and elevated defective product rates [
7]. When new plastic materials, complex molds, or specialized requirements are encountered, experiential methods often fail to identify optimal parameter combinations. Extensive trial-and-adjustment iterations may be required, consuming significant time and resources to marginally satisfy quality standards. Even when achieved, the injection molding machine typically operates suboptimally, characterized by prolonged cycles, reduced efficiency, and excessive energy consumption [
8]. Moreover, personal experience is often an intuitive understanding accumulated by workers over a long period of practice, which is difficult to describe and record with precise data and language. The transmission of such experience mainly depends on verbal communication and on-site demonstrations between mentors and apprentices, which is inefficient and prone to information loss or misunderstanding [
9]. The departure of skilled personnel may necessitate extended training periods for new operators, potentially disrupting production or compromising quality. With the increasing demand for high-precision, high-efficiency, and energy-saving manufacturing, intelligent multi-objective optimization methods are urgently needed to minimize cycle times while ensuring quality compliance [
10].
To address the pressing demand for intelligent multi-objective optimization highlighted above, metaheuristic algorithms such as particle swarm optimization (PSO) have been actively explored for automating process parameter tuning [
11,
12,
13,
14,
15,
16]. PSO is particularly attractive for engineering optimization due to its simplicity, rapid convergence, and competence in handling high-dimensional search spaces [
17,
18]. However, when applied to the multi-objective, constrained optimization of injection molding parameters, the standard PSO algorithm exhibits significant limitations that hinder its practical efficacy: (1) Premature convergence in complex search landscapes: The highly nonlinear and often multimodal nature of the injection molding parameter–property relationship renders standard PSO susceptible to premature convergence at local optima [
19,
20]. This tendency frequently yields suboptimal parameter sets that fail to achieve globally balanced solutions for critical objectives like product quality and cycle time. (2) Parameter sensitivity and convergence issues: The performance of PSO is critically dependent on the manual tuning of control parameters (e.g., inertia weight, acceleration coefficients) [
21,
22]. In the context of multi-objective injection molding optimization—where conflicting goals (e.g., minimizing cycle time vs. ensuring quality) must be reconciled—improper parameter selection often results in either sluggish convergence or entrapment in inferior solutions, undermining optimization efficiency and reliability. (3) Inadequate handling of process-specific constraints: Crucially, standard PSO lacks inherent mechanisms to rigorously enforce domain-specific constraints, such as stringent product quality specifications and process feasibility limits (e.g., maximum injection pressure) [
23,
24]. Solutions generated may thus violate critical production constraints, reducing their practical applicability and necessitating costly post-optimization verification or adjustment.
In this paper, an improved particle swarm optimization (IPSO) algorithm integrating dynamic inertia weight adjustment, and adaptive variation in acceleration coefficients was proposed to enhance global search capabilities while avoiding local optima in this paper. In addition, quality constraints have been incorporated to ensure that compliance with product qualification standards is maintained at every positional iteration. This integration ensures that predefined product quality requirements are strictly adhered to by each particle’s positional update throughout the optimization process. A qualitative analysis model based on support vector machine (SVM) is established to ensure the conformity of product quality, while a quantitative analysis model utilizing extreme gradient boosting (XGBoost) is constructed to calculate the injection molding cycle time as the fitness value.
Two primary contributions are made in this research to advance multi-objective optimization in injection molding. Firstly, the IPSO algorithm is proposed, integrating dynamic inertia weight adjustment and adaptive acceleration coefficients. Through this architecture, premature convergence is systematically mitigated, and global search capabilities are enhanced—addressing a critical limitation of standard PSO in complex, constrained problems. Secondly, a dual-model optimization framework is introduced: an SVM-based constraint validation mechanism is employed to ensure iterative quality compliance, while an XGBoost-derived fitness function is utilized to minimize cycle time. Collectively, this study provides a pragmatic yet efficacious resolution to the intricate challenge of injection molding parameter optimization. The proposed IPSO-based methodology markedly curtails cycle time while guaranteeing product quality conformance, thereby constituting a pivotal contribution to the enhancement of production efficiency and the reduction in manufacturing costs in injection molding.
3. Results and Discussion
3.1. Qualitative Classification of Injection Quality
The qualitative classification model for injection molding quality plays a crucial role in the IPSO algorithm, as it ensures that only solutions meeting the specified quality requirements are retained during the optimization process. A detailed description is provided in this section regarding the construction results of the qualitative classification model of injection quality based on SVM.
3.1.1. Sample Set Partitioning
Through the implementation of the experiments in
Section 2.2, a total of 405 pieces of data were obtained, with each type of injection molding machine yielding 81 pieces of data. Subsequently, 25 pieces of data corresponding to qualified product quality and 25 pieces of data corresponding to unqualified product quality were randomly selected from the data of each type of injection molding machine. In total, 250 pieces of data were thus obtained for the construction of the injection molding quality qualitative classification model. Balancing the number of positive and negative samples enables the model to focus more evenly on the features of both classes during the training process.
For each type of injection molding machine, the Kennard-Stone method was employed to select 20 pieces of data from both the qualified and unqualified quality samples, respectively, for the establishment of the qualitative classification model. The remaining samples were then used to evaluate the performance of the quantitative classification model. In this manner, the entire dataset was divided into a training set and a prediction set in a ratio of 4:1. Specifically, the training set comprised 200 pieces of data, while the prediction set included 50 pieces of data. Compared with the random selection method, this sample set partitioning approach ensures that the samples in the training set are uniformly distributed in the feature space. This uniformity allows the training set to more accurately represent the overall feature distribution of the entire dataset, thereby enhancing the generalization capability of the model. Moreover, the uniform distribution of samples in the training set exposes metrics the model to a more diverse range of data during the training process, which helps to mitigate the risk of overfitting.
3.1.2. Results of Model
An SVM-based model is designed to address the qualitative classification of injection molding quality. The model was trained using cross-validation and grid search, with a regularization parameter of 10 and a kernel parameter of 0.001 for the radial basis function (RBF) kernel.
The qualitative classification model for product quality was evaluated using a confusion matrix to analyze its performance in distinguishing between qualified and unqualified products. The confusion matrix obtained from the test dataset is presented as described in
Figure 4. As delineated in
Table 1, the model’s accuracy, precision, recall, and F1 score all attain a value of 0.92, as computed from the confusion matrix. These results suggest that the proposed model effectively captures the critical features influencing product quality in injection molding.
3.2. Quantitative Prediction of Cycle Time
3.2.1. Sample Set Partitioning
In the course of conducting the experiments detailed in
Section 2.2, a comprehensive dataset comprising 405 pieces of data were successfully amassed. Specifically, each distinct type of injection molding machine contributed precisely 81 pieces of data to this aggregate dataset. For each type of injection molding machine, 50 pieces of data were randomly selected from the 81 available pieces of data, resulting in a dataset comprising 250 pieces of data. This dataset was specifically utilized for the construction of the quantitative prediction model for injection molding cycle time.
The SPXY method was utilized to partition the dataset for each type of injection molding machine, with 40 pieces of data being selected for the development of the quantitative prediction model. The residual samples were subsequently employed to assess the model’s performance. Consequently, the entire dataset was segmented into a training set and a prediction set, maintaining a ratio of 4:1. Specifically, the training set consisted of 200 pieces of data, whereas the prediction set contained 50 pieces of data.
3.2.2. Results of Model
A model based on XGBoost was constructed to quantitatively analyze the injection cycle time through injection molding process parameters. The model was trained using cross-validation and grid search, with the number of trees of 100, the maximum depth of each tree of 7, the learning rate of 0.01, the subsampling rate for instances of 0.7, the subsampling rate for features of 0.9, the minimum loss reduction threshold of 0, and the L2 regularization coefficient of 1.5.
As listed in
Table 2, the model achieved an R
2 value of 0.93, indicating that 93% of the variance in cycle time can be explained by the selected process parameters and their interactions. This high R
2 value demonstrates the model’s strong alignment with the experimental data and its effectiveness in capturing the nonlinear relationships inherent in the injection molding process. The RMSE, a measure of prediction accuracy, was calculated as 1.05, reflecting the average deviation between the predicted and actual cycle times. This low error value suggests that the model provides precise and reliable estimates, which are critical for real-time process optimization. A visual comparison of predicted versus actual cycle time values, as illustrated in
Figure 5, further corroborates the model’s performance. The data points are closely distributed along the diagonal line (y = x), with minimal outliers, indicating a high degree of consistency between predictions and experimental observations.
3.3. Optimization of Injection Molding Process Parameters
In pursuit of the optimal combination of process parameters to ensure product quality while minimizing injection molding cycle time, the improved particle swarm optimization (IPSO) algorithm was employed for parameter optimization. The algorithm was configured with the following settings: the maximum inertia weight was set to 0.9, the minimum inertia weight to 0.1, the maximum individual acceleration factor to 2, the minimum individual acceleration factor to 1, the maximum social acceleration factor to 2, the minimum social acceleration factor to 1, and the maximum number of iterations was established at 100. To demonstrate the superiority of the IPSO algorithm, the standard PSO algorithm was also employed. In the standard PSO algorithm, the inertia weight was set to 0.7, while both the individual acceleration coefficient and the social acceleration coefficient were configured to 2.
The IPSO algorithm was empirically validated within the context of actual injection molding production processes. Operators were required to input the injection molding machine identification number, mold number, ambient temperature, and ambient humidity. Upon receiving this information, the program would generate a recommendation for the optimal combination of process parameters. The testing procedure was as follows: at the commencement of each production batch, the operator initially adjusted the process parameters based on their experience. Once stable and qualified product production was achieved, the current injection molding cycle time was recorded. Subsequently, the parameters were adjusted to the optimal combination recommended by the algorithm, and injection molding was performed again. The qualification of the product and the current injection molding cycle time were then documented. For each injection molding machine used in the modeling process, 20 experiments were conducted, yielding a total of 100 pieces of data. The mean fitness values for 50 independent runs for the IPSO and the standard PSO algorithms corresponding to the first data are presented in
Figure 6. It is evident that the fitness value variation in the IPSO algorithm is more stable and gradual, with a significantly lower fitness value achieved upon completion of the iterations. In contrast, the standard PSO algorithm is observed to prematurely converge near a local optimum. Consistent trends are also observed in the other data. These results suggest that the IPSO algorithm demonstrates enhanced stability and global search capability during the optimization process, thereby enabling more effective identification of solutions that approach the global optimum. The product quality obtained based on the process parameters recommended by the algorithm is all qualified. Moreover, the comparison of injection molding cycle times for the 100 experiments is depicted in
Figure 7. The blue and orange points in the figure correspond to the injection molding cycle times obtained using the process parameters before and after optimization by the proposed algorithm, respectively. It is evident that the optimization of process parameters via the proposed algorithm yields a significant improvement in injection molding cycle time. Calculations indicate an average reduction of 9.41% relative to the performance of operator-defined parameters, decreasing the mean cycle time from 55.30 s to 50.09 s. A paired
t-test confirmed the statistical significance of this reduction (t (99) = 15.6539,
p < 0.0001). Notably, the algorithm-optimized parameters substantially reduced process variability (SD = 2.39) compared to operator-defined parameters (SD = 4.23). The mean reduction of 5.20 s (95% CI [4.54, 5.86]) was further supported by an exceptionally low
p-value (
p ≈ 1.0 × 10
−6 at α = 0.05) and a large t-statistic, underscoring the robustness of the improvement. In addition, statistical analysis via the two-sided Wilcoxon rank-sum test revealed a significant difference in cycle time distributions between the operator-defined and IPSO-optimized parameter sets (
p < 0.0001, α = 0.05). Consequently, the null hypothesis asserting equal distributions is rejected, indicating that the IPSO algorithm yields a statistically significant reduction in injection molding cycle times relative to manual parameter adjustment.
These results demonstrate that the improved particle swarm optimization (IPSO) algorithm proposed in this paper performs remarkably well in the optimization of process parameters. Through continuous iteration and optimization, it can efficiently search for more optimal combinations of process parameters. This enables various aspects of the injection molding process (such as injection speed, holding pressure, cooling time, etc.) to achieve more rational and efficient configurations while meeting the quality requirements of the products. Consequently, the cycle time is effectively reduced. The reduction in cycle time implies that more products can be manufactured within the same time frame. In a given working day, multiple additional production cycles can be added, thereby significantly enhancing production efficiency. The improvement in production efficiency leads to cost reduction. On one hand, the energy consumption per unit product is decreased due to the shortened operating time of the equipment. On the other hand, labor costs are also reduced, as the same workforce can produce a greater number of products within a unit of time.
Despite the satisfactory performance of the IPSO algorithm in optimizing injection molding process parameters, several limitations and practical constraints must be acknowledged when applying this method. The algorithm demands considerable computational resources to execute optimization tasks, and its runtime escalates markedly with an increasing number of parameters to be optimized. Additionally, the construction of the optimization model relies heavily on actual data from the injection molding process. However, acquiring high-quality and comprehensive data in real production settings is challenging. For example, certain injection molding machines may lack the capability to accurately measure key parameters, such as the temperature distribution within the mold, thereby compromising the accuracy of the optimization model. Theoretically, this approach is universally applicable to the optimization of injection molding process parameters, irrespective of machine model, mold design, or material type. However, in practical applications, it is essential to fine-tune the algorithm parameters in accordance with specific machines and production conditions to ensure optimal performance across diverse scenarios.