A method for predicting ink droplet landing point error in inkjet printing
The LSTM neural network model is optimized through the improved double particle swarm optimization algorithm, which solves the problem of low ink drop point error prediction efficiency in inkjet printing, achieves a more efficient printing process, reduces the time and consumables of trial printing, and improves The prediction accuracy of the ink droplet landing point error is improved.
Patent Information
- Application Number
- CN202210189969.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-02-28
AI Technical Summary
The prediction efficiency of ink drop point error in inkjet printing technology is low, which affects the uniformity and efficiency of the luminescent layer of high-resolution displays. The existing trial printing method is time-consuming and consumable and has low printing efficiency.
An improved double particle swarm optimization algorithm is used to optimize the LSTM neural network model. A model for predicting the drop point error of jet printing ink is obtained through training with a training sample set. Levy flight perturbation and Tent chaos mapping are used to improve the diversity and ergodicity of the particle swarm. , adaptively adjust hyperparameters to improve prediction accuracy.
It shortens the printing cycle, avoids ink consumption caused by trial printing, improves printing efficiency, and is suitable for manufacturing high-resolution displays and electronic components.
Smart Images

Figure CN114565039B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of inkjet printing, and more specifically, relates to a method for predicting inkjet printing ink drop landing point errors. Background Art
[0002] As an emerging OLED manufacturing process, inkjet printing technology has incomparable advantages in material utilization, manufacturing cost, manufacturing size, and manufacturing difficulty compared to the traditional vacuum evaporation process. It is considered to be the next generation of large-scale manufacturing method for OLED production.
[0003] The premise for inkjet printing technology to be industrially applied in the field of OLED manufacturing is high printing accuracy. The droplet landing error will directly affect the uniformity and efficiency of the light emitting layer of the high-resolution display. Therefore, how to obtain the droplet landing error and compensate for it has become one of the main challenges facing inkjet printing technology as an OLED manufacturing process.
[0004] In actual industrial production, the droplet landing error is affected by different factors, including droplet volume, droplet flight speed, droplet flight angle and other droplet flight characteristics. However, the mapping relationship between these factors and droplet landing error involves multi-parameter coupling, and the quantitative relationship research is very difficult. Whether it is theoretical research or regression analysis through experimental data in a mathematical way, there are certain problems.
[0005] The prior art has proposed some solutions to obtain and compensate for the ink droplet landing point error of inkjet printing, such as performing a trial print before the formal printing stage, using a downward-looking camera to observe the ink droplet landing point, obtaining the ink droplet landing point error, and compensating it in the formal printing stage. However, in actual application, this solution is not only time-consuming and material-consuming, but also has low printing efficiency. Therefore, it is urgent to propose a more effective and efficient prediction solution to make up for the defects of the existing methods. Summary of the invention
[0006] In view of the defects of the prior art and the need for improvement, the present invention provides a method for predicting the landing point error of a printed ink droplet, which aims to solve the problem of low prediction efficiency of the existing method of directly measuring the landing point error.
[0007] To achieve the above-mentioned purpose, according to one aspect of the present invention, a method for constructing an LSTM neural network model for predicting the ink droplet landing point error of inkjet printing is provided, characterized in that it includes: determining the network structure of the LSTM neural network model, optimizing the hyperparameters of the network structure using an improved double particle swarm optimization algorithm, training the network structure after the hyperparameter optimization using a training sample set, and obtaining an LSTM neural network model for predicting the ink droplet landing point error of inkjet printing; the hyperparameter optimization method is:
[0008] S1. Setting and initializing the main particle swarm and the auxiliary particle swarm, including initializing the initial speed and initial position of each particle, each particle represents a set of hyperparameters of the network structure; setting the fitness function, and calculating the fitness value of each particle to determine the initial global optimal solution;
[0009] S2. Based on the current global optimal solution, the speed and position of each particle are updated for the tth iteration within the set spatial search range, wherein a global search is performed on the main particle swarm and a diversity search is performed on the auxiliary particle swarm; and the updated position of each particle is perturbed using the Levy flight step length, and the particle position with the best fitness value before and after the perturbation is taken as the final particle position of the particle; based on the final particle position of each particle, the fitness value of each particle is calculated to obtain the global optimal solution of the particle swarm; a chaotic local search is performed on the global optimal solution to obtain the global optimal solution after t iterations;
[0010] S3, update t=t+1, repeat S2 until the optimization iteration target is reached, and use the final global optimal solution as the hyperparameter set of the optimized network structure;
[0011] Among them, the fitness function is characterized by the prediction accuracy index of the network model, and the model is obtained after the network structure corresponding to the particle is trained with a training sample set. Each sample includes ink droplet flight characteristic data as model input and its corresponding ink droplet landing point error data as model output.
[0012] Furthermore, when initializing the main particle swarm and the auxiliary particle swarm, the sequence generated by the Tent chaotic map is used as a random number source for initialization.
[0013] Furthermore, the speed and position update formula of the main particle group is:
[0014]
[0015] Where t is the number of iterations; c1 and c2 are learning factors; ω i is the inertia weight; rand takes a random number from [0,1]; V i (t) and X i (t) are the velocity and position variables of the ith particle after t iterations; P i (t) is the individual optimal solution of the ith particle after t iterations; G(t) is the global optimal solution after t iterations;
[0016] When the speed and position of the auxiliary particle group are updated, the fitness values of all particles of the two populations at their current positions are sorted, the first K particles are taken out and a particle is randomly selected from the K particles to replace the G(t), and the bestk (t) indicates updating the speed and position of the auxiliary particle to be updated. The updating formula is:
[0017]
[0018] Among them, when V is calculated for each particle i After (t+1), V i (t+1) and the set V max 、V min Compare to determine V i The final value of (t+1).
[0019] Furthermore, the V i The final value of (t+1) is determined as follows:
[0020]
[0021] Where V max is the upper limit of speed, V min is the lower limit of the speed, respectively defined as:
[0022]
[0023] Where, X max is the upper bound of the position, X min is the lower bound of the position.
[0024] Furthermore, the inertia weight is dynamically adjusted using an adaptive function, specifically including:
[0025] The fitness value of each particle is dimensionlessly processed using the inverse tangent function, as shown below:
[0026]
[0027] fstd i =2×tan -1 (f(X i (t)) / f avg ) / π
[0028] Using the properties of the Logistic function, the size of the inertia weight changes according to the fitness value. The calculation method is shown in the formula:
[0029]
[0030] Where i = 1, 2, ..., N, N is the population size; f avg is the average fitness value of the particle swarm; fstd i is the particle fitness value after dimensionless processing; f(X i(t)) is the fitness value of the i-th particle; ω max is the maximum value of the inertia weight, which is a constant; a is the inertia factor, which is a constant between [0, 1].
[0031] Furthermore, the learning factor is dynamically adjusted using an adaptive function, specifically including:
[0032] Using the jump strategy, a logarithmic function is introduced into c1(t):
[0033]
[0034]
[0035] Where ε is a constant, which takes a small positive value to prevent the independent variable of the logarithmic function from being 0; a(t) is a linearly decreasing dynamic individual parameter; [X max , X min ] is the particle confinement range; α(X max -X min ) is the dynamic regulator index; κ and α (X max -X min ) are defined as:
[0036]
[0037]
[0038] a(t+1)=d(t)·a(t); d(t+1)=k·d(t); d(t) is the dynamic damping coefficient, k is the damping coefficient, and the initial values are a(0)=e, d(0)=0.9995, k=0.99999.
[0039] Furthermore, the chaotic local search is implemented as follows:
[0040] S41, let k = 0, randomly generate a positive integer m in the interval (0, D], which means to perform chaotic search on the m-dimensional component and randomly generate a random variable between [0, 1] Among them, D is the dimension of each particle, that is, the number of hyperparameters;
[0041] S42. Generating chaotic variables using the Tent chaotic mapping model Perturbing the vicinity of the ith particle produces a local solution: Where j = 1, 2, ..., m; the right side of the equation The initial value of is the global optimal solution obtained in the current iteration;
[0042] S43. Determine local solution Whether the constraints are met and the solution is limited to the range of variables;
[0043] S44, calculation fitness value, if the solution after the disturbance is better than the solution before the disturbance, the solution after the disturbance replaces the original solution, otherwise k=k+1, and returns to S42; if a solution better than the original particle cannot be generated after reaching the maximum number of chaotic times, the local solution is discarded.
[0044] Furthermore, each sample in the training sample set and the test sample set is obtained in the following manner:
[0045] The ink droplet flight is observed by a high-speed camera to obtain the ink droplet flight characteristic data, and the ink droplet landing point is observed by a downward-looking camera to obtain the ink droplet landing point error number;
[0046] Performing outlier screening and normalization preprocessing on the ink droplet flight feature data and the ink droplet landing point error data to obtain the training sample set and the test sample set;
[0047] The ink droplet flight characteristic data includes ink droplet volume, ink droplet flight speed and ink droplet flight angle.
[0048] The present invention also provides a method for predicting the inkjet printing ink droplet landing point error, comprising:
[0049] The flight characteristic data of the ink drop to be predicted is collected, and the LSTM neural network model constructed by the LSTM neural network model construction method for predicting the landing point error of the ink drop is input as described above. The model outputs the landing point error of the ink drop to complete the prediction of the landing point error of the ink drop.
[0050] The present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is executed by a processor, the device where the storage medium is located is controlled to execute the LSTM neural network model construction method for inkjet ink droplet landing point error prediction as described above and / or the inkjet ink droplet landing point error prediction method as described above.
[0051] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0052] (1) The present invention provides a method for predicting the ink droplet landing point error of inkjet printing, which uses an LSTM neural network based on an improved dual particle swarm algorithm to predict the ink droplet landing point error of inkjet printing, and compensates the printing process according to the prediction result. Compared with the traditional trial printing method, this method shortens the printing cycle and avoids the ink consumption caused by trial printing. It is particularly suitable for applications such as manufacturing high-resolution displays and electronic components using inkjet printing.
[0053] (2) The LTSM neural network prediction model is based on a dual particle swarm optimization algorithm. The population dimension of the particle swarm is set as a partial hyperparameter of the LSTM neural network, which can improve the prediction accuracy of the LSTM neural network model.
[0054] (3) The two particle swarms of the dual particle swarm optimization algorithm evolve collaboratively, with the main particle swarm responsible for overall search and the auxiliary particle swarm responsible for diversity search. Tent chaos mapping is used to initialize the particle swarm and local search, thereby improving the diversity and traversal of particle search. An adaptive parameter adjustment strategy is used to enhance the overall and local optimization capabilities of the algorithm. Levy flight is used for particle perturbation to maintain the diversity of particles and enable the particle swarm to evolve in a better direction. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A flowchart of a method for constructing an LSTM neural network model for predicting ink droplet landing point errors provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0057] While the present invention aims to improve the prediction efficiency of the ink droplet drop point error, the prior art is analyzed as follows: Since the training data is gradually acquired over time in the actual application of the ink droplet drop point error prediction model, the ideal model should be able to make some changes to the trained parameters so as to learn the knowledge contained in the new data, while ensuring that the acquired knowledge can be well retained. In artificial neural networks, LSTM neural networks are an improved RNN neural network that adopts gate design to avoid the gradient explosion and long-term dependency problems in traditional RNN neural networks. Since each cycle uses the information of the previous cycle, each output state is affected by the previous state, so the LSTM network can better remember the long-term rules and is widely used in time series prediction problems. As various scientists have a more comprehensive understanding of natural organisms, relevant scholars have been constantly exploring in recent decades and have proposed many intelligent algorithms that can optimize the structure of neural networks, including genetic algorithms based on the natural evolution of organisms as theoretical sources, ant colonies, bee colonies, and particle swarm algorithms that simulate the thermodynamic annealing process, etc. These algorithms can be more or less integrated with the neural network algorithm to create a more effective and targeted composite algorithm. Among them, the particle swarm algorithm is widely used in the training of neural networks due to its simple principle, few parameters and easy implementation. Compared with the traditional particle swarm algorithm, many scholars have proposed some improvement methods, but the particle swarm algorithm is still prone to fall into local optimality, slow convergence speed in the later stage, and insufficient accuracy of the algorithm optimization results. Therefore, optimizing the particle swarm algorithm to improve the accuracy of the LSTM prediction model in predicting the ink droplet landing point error is becoming another key technical problem that needs to be solved in this field. In response to the above problems, the present invention proposes the following solutions:
[0058] Embodiment 1
[0059] A method for constructing an LSTM neural network model for predicting ink droplet landing error, such as Figure 1 As shown, it includes: determining the network structure of the LSTM neural network model, optimizing the hyperparameters of the network structure by using an improved dual particle swarm optimization algorithm, training the network structure after the hyperparameter optimization by using a training sample set, and obtaining an LSTM neural network model for predicting the ink droplet landing point error of the inkjet printing; the hyperparameter optimization method is:
[0060] S1. Setting and initializing the main particle swarm and the auxiliary particle swarm, including initializing the dimensions and scales of various swarms, as well as the initial speed and initial position of each particle, wherein each particle represents a set of hyperparameters of the network structure; setting the fitness function, and calculating the fitness value of each particle to determine the initial individual optimal solution and the global optimal solution; setting the optimization iteration target;
[0061] S2. Based on the current individual optimal solution and global optimal solution, the speed and position of each particle are updated for the tth iteration within the set spatial search range, wherein a global search is performed on the main particle swarm and a diversity search is performed on the auxiliary particle swarm; and the updated position of each particle is perturbed using the Levy flight step length, and the particle position with the best fitness value before and after the perturbation is taken as the final particle position of the particle; based on the final particle position of each particle, the fitness value of each particle is calculated to obtain the individual optimal solution and the global optimal solution of the particle swarm; a chaotic local search is performed on the global optimal solution to obtain the global optimal solution after t iterations;
[0062] S4, performing a chaotic local search on the global optimal solution to obtain a new global optimal solution;
[0063] S5, updating t=t+1, and repeatedly executing S2-S4 until the optimization iteration target is reached, and taking the final global optimal solution as the hyperparameter set of the optimized network structure;
[0064] Among them, the fitness function is the mean square error between the output value of the LSTM neural network model under the input of the test sample set and the true label value of the test sample set. The LSTM neural network model is a model structure corresponding to the particle obtained after training with the training sample set, and each sample includes the ink droplet flight feature data as the model input and its corresponding ink droplet landing point error data as the model output.
[0065] It should be noted that the parameters of the network structure of the LSTM model include the number of neurons in the input layer, hidden layer, and output layer, the weights of the connections between neurons in each layer, the hidden layer activation function, and the time window size and batch_size during model training.
[0066] When setting two populations, {h1, h2, n, m} is used as the dimension D of the population, the size of the population is determined, and the initial speed and initial position of each particle in the two populations are set. Wherein, h1 is the number of neurons in the first hidden layer, h2 is the number of neurons in the second hidden layer, n is the time window (i.e., sliding window) size, and m is the batch_size of the LSTM neural network; f(·) is set as the fitness of the particle, and the preferred fitness function is the mean square error between the output value of the LSTM neural network model under the input of the test sample set and the true label value of the test sample set. The LSTM neural network model is the model structure corresponding to the particle obtained after training with the training sample set. The formula of the fitness function is:
[0067]
[0068] Where, X i (t) represents the position of the ith particle after t updates, f(Xi (t)) represents X i (t) The fitness of the particle position, N is the size of the test data set, y j is the jth true value, is the predicted value of the jth data.
[0069] Secondly, a simple mathematical model of Levy flight is as follows:
[0070]
[0071] In the formula, Levy β is the random step length of Levy flight, β is a constant, set to 1.5; Γ is the gamma function; the particle position formula after disturbance is as follows:
[0072]
[0073] Where α0 is the step size control parameter, which is set to 0.01.
[0074] Introducing a greedy strategy into the Levy flight perturbation, the fitness of the perturbed particle The fitness f(X i (t)) is compared and the position with better fitness is selected to avoid the Levy flight disturbance which may cause the fitness of the particle to deteriorate after the disturbance. The greedy strategy formula is as follows:
[0075]
[0076] In addition, when determining the global optimal solution in each iteration, the determination method is: the current fitness of each particle Compared with the fitness f(P best,i (t-1)) for comparison. If the fitness at this moment is better than the previous position, replace the position at the previous moment, otherwise remain unchanged; if the fitness at this moment is the optimal result, replace this result with the result of the optimal position:
[0077]
[0078]
[0079] The prediction method of this embodiment can predict the landing point error of the printed ink droplets and can directly compensate the prediction results in the formal printing stage. There is no need to conduct a traditional trial printing stage to obtain the ink droplet landing point error of each nozzle, which simplifies the printing process, shortens the printing cycle, improves printing efficiency, and saves materials.
[0080] Preferably, when initializing the main particle swarm and the auxiliary particle swarm, a sequence generated by the Tent chaotic map is used as a source of random numbers for initialization.
[0081] The Tent chaotic map is introduced into the population initialization, and the sequence generated by the Tent chaotic map is used to replace the rand() random number, so that the particles are evenly distributed in the search space, the diversity of the particle swarm is increased, and the convergence speed of the algorithm is improved. The Tent chaotic map model is:
[0082]
[0083] Where k is the number of iterations; i = 1, 2, ..., N, N is the population size; j = 1, 2, ..., D, D is the dimension of the particle; is the chaotic unknown number on the j-dimensional component of the ith particle after the k+1th iteration. When k=0, is a random number between [0,1].
[0084] There are fixed points and periodic points in the sequence of Tent chaotic mapping. is 0, 0.25, 0.5, 0.75, the sequence will iterate to 0; if The sequence will eventually fall into a periodic loop. Therefore, when the above situation occurs, the Tent chaos map model is changed to the following form:
[0085]
[0086] The initial position of the particle population after Tent chaos mapping is:
[0087]
[0088] Where, X max,j , X min,j are the upper and lower bounds of the particle in the j-dimension, j=1,2,…,D;
[0089] The initial position of the particle population after Tent chaos mapping is:
[0090]
[0091] Where V max,j 、V min,j are the maximum and minimum velocities of the particle in j dimension respectively.
[0092] Preferably, the main particle swarm is mainly responsible for the global search to ensure that the algorithm can search for the global optimal solution. The update formula is as follows:
[0093]
[0094] Where t is the number of iterations; c1 and c2 are learning factors; ω iis the inertia weight; rand takes a random number from [0,1]; V i (t) and X i (t) are the velocity and position variables of the ith particle after t iterations; P i (t) is the individual optimal solution of the ith particle after t iterations; G(t) is the global optimal solution after t iterations;
[0095] The auxiliary particle swarm performs a search with diversity. When the speed and position of the auxiliary particle swarm are updated, the fitness values of all particles of the two populations at their current positions are sorted, the first K particles are taken out and a particle is randomly selected from the K particles to replace the G(t); or, when the speed and position of the auxiliary particle swarm are updated, the fitness value of the auxiliary particle to be updated is arranged with the fitness value of the main particle swarm after t iterations and the fitness value of each auxiliary particle updated before in this iteration after t iterations, the first K particles are taken out and a particle is randomly selected from the K particles to replace the G(t), and the best k (t) indicates that this enables particles to track different excellent individuals for search, rather than all tracking the global optimal individual for search. The update formula is:
[0096]
[0097] Among them, in finding the update speed V of the next iteration i After (t+1), it is necessary to set V max 、V min Compare and determine V i The final value of (t+1);
[0098]
[0099] Where V max is the upper limit of speed, V min is the lower limit of the speed, respectively defined as:
[0100]
[0101] Where, X max is the upper bound of the position, X min is the lower bound of the position.
[0102] Preferably, the inertia weight is dynamically adjusted using an adaptive function, and the adaptive function dynamic adjustment specifically includes:
[0103] The fitness value of each particle is processed dimensionlessly using the inverse tangent function, and the data is uniformly limited to [-1, 1]. The value range of the variable is symmetrical about the origin, which can reflect the fitness status of each particle in the population. The dimensionless processing is as follows:
[0104]
[0105] fstd i =2×tan -1 (f(X i (t)) / f avg ) / π
[0106] Where i = 1, 2, ..., N, N is the population size; f avg is the average fitness value of the particle swarm; fstd i is the fitness of the particle; f(X i (t)) is the fitness value of the ith particle.
[0107] On this basis, using the properties of the Logistic function, the size of the inertia weight changes according to the fitness, and the calculation method is shown in the formula:
[0108]
[0109] Where i = 1, 2, ..., N, N is the population size; ω max is a constant, which is the maximum value of the inertia weight; a is the inertia factor, which is a constant between [0, 1].
[0110] Preferably, the above learning factor is dynamically adjusted using an adaptive function, and a jump strategy is adopted to introduce a logarithmic function into c1(t):
[0111]
[0112]
[0113] Where: ε is a very small positive value, which is 10 -6 ; a(t) is the dynamic individual parameter; [X max , X min ] is the particle confinement range; α(X max -X min ) is the dynamic regulator index, κ and α(X max -X min ) are defined as
[0114]
[0115]
[0116] When a particle falls into a local optimal solution each time, its speed is close to zero. At this time, if a logarithmic function is used for guidance, the possible local optimal solution can be skipped. In order to allow a larger leap at the beginning of the iteration to explore the entire search space, and to refine in a specific solution space area to allow a smaller leap, a linearly decreasing dynamic individual parameter a(t) is used, where the dynamic damping coefficient d(t) and the damping coefficient k are introduced, and the expression is as follows;
[0117] a(t+1)=d(t)·a(t)
[0118] d(t+1)=k·d(t)
[0119] Here, the initial values are a(0)=e, d(0)=0.9995, and k=0.99999.
[0120] Preferably, the above chaotic local search is implemented as follows:
[0121] S41, let k = 0, randomly generate a positive integer m in the interval (0, D], which means to perform chaotic search on the m-dimensional component and randomly generate a random variable between [0, 1] Among them, D is the dimension of each particle, that is, the number of hyperparameters;
[0122] S42. Generating chaotic variables using the Tent chaotic mapping model Perturbing the vicinity of the ith particle produces a local solution: Where j = 1, 2, ..., m; the right side of the equation The initial value of is the global optimal solution obtained in the current iteration;
[0123] S43. Determine local solution Whether the constraints are met and the solution is limited to the range of variables;
[0124] S44, calculation fitness value, if the solution after the disturbance is better than the solution before the disturbance, the solution after the disturbance replaces the original solution, otherwise k=k+1, and returns to S42; if a solution better than the original particle cannot be generated after reaching the maximum number of chaotic times, the local solution is discarded.
[0125] Preferably, the samples in the training sample set and the test sample set are obtained in the following manner:
[0126] The ink droplet flight is observed by a high-speed camera to obtain the ink droplet flight characteristic data, and the ink droplet landing point is observed by a downward-looking camera to obtain the ink droplet landing point error number;
[0127] The ink droplet flight feature data and ink droplet landing point error data are preprocessed with outliers and normalized to obtain the training sample set and the test sample set; specifically, the obtained ink droplet flight feature data and ink droplet landing point error data are processed with outliers, and linear interpolation is used to fill in missing data and replace outliers. If the same type of data at time t and time t+iΔt is known, and the data of the same type at the intermediate time t+jΔt is lost, the data at t+jΔt can be:
[0128]
[0129] Where, L t is any type of data obtained at time t, L t+iΔt The same type of data obtained at time t+iΔt, L t+jΔt The same type of data is calculated using linear interpolation.
[0130] The data obtained after outlier screening is normalized using the maximum and minimum method:
[0131]
[0132] In the formula, x R is the normalized value, x is the original value of the data; max and x min Respectively represent the maximum and minimum values of this type of data.
[0133] The ink droplet flight characteristic data includes the ink droplet volume, the ink droplet flight speed and the ink droplet flight angle.
[0134] The method of this embodiment solves the problem of using the trial printing process to screen the nozzles for time-consuming consumables during the inkjet printing process. It adopts a deep learning method, uses historical accumulated data to train the neural network, and improves the accuracy of the neural network prediction by combining the particle swarm algorithm. By optimizing the particle swarm algorithm, the possibility of the particle swarm falling into the local optimum is greatly reduced.
[0135] Embodiment 2
[0136] A method for predicting ink droplet landing point error, comprising:
[0137] The flight characteristic data of the ink drop to be predicted is collected, and the LSTM neural network model constructed by the LSTM neural network model construction method for predicting the landing point error of the ink droplet as described in Example 1 is input. The model outputs the landing point error of the ink droplet to complete the prediction of the landing point error of the ink droplet.
[0138] The relevant technical solution is the same as that in Embodiment 1 and will not be described in detail here.
[0139] Embodiment 3
[0140] A computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the device where the storage medium is located is controlled to execute the above-mentioned LSTM neural network model construction method for inkjet ink droplet landing point error prediction and / or the above-mentioned inkjet ink droplet landing point error prediction method.
[0141] The relevant technical solutions are the same as those in Embodiments 1 and 2 and will not be described in detail here.
[0142] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for constructing an LSTM neural network model for predicting ink droplet landing error in inkjet printing. It is characterized in that include: The network structure of the LSTM neural network model is determined, and the hyperparameters of the network structure are optimized by using an improved dual particle swarm optimization algorithm. The network structure after the hyperparameter optimization is trained by using a training sample set to obtain an LSTM neural network model for inkjet ink droplet landing point error prediction. The hyperparameter optimization method is as follows: S1. Setting and initializing the main particle swarm and the auxiliary particle swarm, including initializing the initial speed and initial position of each particle, each particle represents a set of hyperparameters of the network structure; setting the fitness function, and calculating the fitness value of each particle to determine the initial global optimal solution; S2. Based on the current global optimal solution, the speed and position of each particle are updated for the tth iteration within the set spatial search range, wherein a global search is performed on the main particle swarm and a diversity search is performed on the auxiliary particle swarm; and the updated position of each particle is perturbed using the Levy flight step length, and the particle position with the best fitness value before and after the perturbation is taken as the final particle position of the particle; based on the final particle position of each particle, the fitness value of each particle is calculated to obtain the global optimal solution of the particle swarm; a chaotic local search is performed on the global optimal solution to obtain the global optimal solution after t iterations; S3, update t=t+1, repeat S2 until the optimization iteration target is reached, and use the final global optimal solution as the hyperparameter set of the optimized network structure; Among them, the fitness function is characterized by the prediction accuracy index of the network model, and the model is obtained after the network structure corresponding to the particle is trained with a training sample set. Each sample includes ink droplet flight characteristic data as model input and its corresponding ink droplet landing point error data as model output.
2. The LSTM neural network model construction method according to claim 1, It is characterized in that When initializing the main particle swarm and the auxiliary particle swarm, the sequence generated by the Tent chaotic map is used as the random number source for initialization.
3. The LSTM neural network model construction method according to claim 1, It is characterized in that The speed and position update formula of the main particle group is: Where t is the number of iterations; c is 1 and c 2 is the learning factor; ω i is the inertia weight; rand takes a random number from [0, 1]; V i (t) and X i (t) are the velocity and position variables of the ith particle after t iterations; P i (t) is the individual optimal solution of the ith particle after t iterations; G(t) is the global optimal solution after t iterations; When the speed and position of the auxiliary particle group are updated, the fitness values of all particles of the two populations at their current positions are sorted, the first K particles are taken out and a particle is randomly selected from the K particles to replace the G(t), and the best k (t) indicates updating the speed and position of the auxiliary particle to be updated. The updating formula is: Among them, when V is calculated for each particle i After (t+1), V i (t+1) and the set V max 、V min Compare to determine V i The final value of (t+1).
4. The LSTM neural network model construction method according to claim 3, It is characterized in that The V i The final value of (t+1) is determined as follows: Where V max is the upper limit of speed, V min is the lower limit of the speed, respectively defined as: Where, X max is the upper bound of the position, X min is the lower bound of the position.
5. The LSTM neural network model construction method according to claim 4, It is characterized in that The inertia weight is dynamically adjusted using an adaptive function, specifically including: The fitness value of each particle is dimensionlessly processed using the inverse tangent function, as shown below: fstd i =2×tan -1 (f(X i (t)) / f avg ) / π Using the properties of the Logistic function, the size of the inertia weight changes according to the fitness value. The calculation method is shown in the formula: Where i = 1, 2, ..., N, N is the population size; f avg is the average fitness value of the particle swarm; fstd i is the particle fitness value after dimensionless processing; f(X i (t)) is the fitness value of the i-th particle; ω max is the maximum value of the inertia weight, which is a constant; a is the inertia factor, which is a constant between [0, 1].
6. The LSTM neural network model construction method according to claim 3, It is characterized in that The learning factor is dynamically adjusted using an adaptive function, specifically including: Using the jumping strategy, 1 (t) Introduce the logarithmic function: Where ε is a constant, which takes a small positive value to prevent the independent variable of the logarithmic function from being 0; a(t) is a linearly decreasing dynamic individual parameter; [X max , X min ] is the particle confinement range; α(X max -X min ) is the dynamic regulator index; κ and α (X max -X min ) are defined as: a(t+1)=d(t)·a(t); d(t+1)=k·d(t); d(t) is the dynamic damping coefficient, k is the damping coefficient, and the initial values are set to be a(0)=e, d(0)=0.9995, k=0.99999.
7. The LSTM neural network model construction method according to claim 1, It is characterized in that The chaotic local search is implemented as follows: S41, let k = 0, randomly generate a positive integer m in the interval (0, D], which means to perform chaotic search on the m-dimensional component and randomly generate a random variable between [0, 1] Among them, D is the dimension of each particle, that is, the number of hyperparameters; S42. Generating chaotic variables using the Tent chaotic mapping model Perturbing the vicinity of the ith particle produces a local solution: Where j = 1, 2, ..., m; the right side of the equation The initial value of is the global optimal solution obtained in the current iteration; S43. Determine local solution Whether the constraints are met and the solution is limited to the range of variables; S44, calculation fitness value, if the solution after the disturbance is better than the solution before the disturbance, the solution after the disturbance replaces the original solution, otherwise k=k+1, return to S42; if a solution better than the original particle cannot be generated after reaching the maximum number of chaotic times, the local solution is discarded.
8. The LSTM neural network model construction method according to any one of claims 1 to 7, It is characterized in that The method for obtaining each sample in the training sample set and the test sample set is: The ink droplet flight is observed by a high-speed camera to obtain the ink droplet flight characteristic data, and the ink droplet landing point is observed by a downward-looking camera to obtain the ink droplet landing point error number; Performing outlier screening and normalization preprocessing on the ink droplet flight feature data and the ink droplet landing point error data to obtain the training sample set and the test sample set; The ink droplet flight characteristic data includes ink droplet volume, ink droplet flight speed and ink droplet flight angle.
9. A method for predicting ink droplet landing point error in inkjet printing. It is characterized in that include: The flight characteristic data of the ink drop to be predicted is collected, and the LSTM neural network model constructed by the LSTM neural network model construction method for predicting the landing point error of the ink droplet to be printed is input, and the model outputs the landing point error of the ink droplet to complete the prediction of the landing point error of the ink droplet to be printed.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed by the processor, the device where the storage medium is located is controlled to execute the LSTM neural network model construction method for inkjet ink droplet landing point error prediction as described in any one of claims 1 to 8 and / or the inkjet ink droplet landing point error prediction method as described in claim 9.
