A method for predicting inkjet droplet state and its application
Through machine learning models and active learning methods, a model for inkjet droplet state prediction is constructed, which solves the problems in the existing technology of low efficiency in adjusting driving waveform parameters and difficulty in accurately establishing the model, and achieves more accurate and faster droplet detection. State prediction and driving waveform optimization.
Patent Information
- Application Number
- CN202210187430.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-02-28
AI Technical Summary
When adjusting the state of inkjet droplets, the existing technology has low adjustment efficiency of driving waveform parameters and cannot accurately control the droplet ejection state. Especially when the number of parameters is large and the range is large, a large amount of manual testing is required and parameter coupling and nonlinearity cannot be explained. relationship, and dynamics or computational fluid dynamics simulation models are difficult to accurately establish and update.
The machine learning model construction method is used to randomly extract samples from the unlabeled data set to establish a labeled data set. Random forest classification and regression models are used to predict the droplet status. The model is iteratively updated using the active learning method to reduce the cost of sample labeling and build a system for spraying. Machine learning model for ink drop state prediction.
It improves the accuracy and efficiency of droplet state prediction, reduces the workload of manual experiments and simulations, significantly reduces sample labeling costs, can quickly obtain appropriate driving waveform parameters, and solves the problem of driving waveform optimization.
Smart Images

Figure CN114462551B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of industrial inkjet printing, and more specifically, relates to an inkjet droplet state prediction method and application thereof. Background Art
[0002] Piezoelectric inkjet technology is a mainstream inkjet printing technology, such as Figure 2 As shown in the figure, this technology applies voltage to the piezoelectric material, uses the inverse piezoelectric effect of the piezoelectric material to cause the piezoelectric vibration plate to deform, squeeze the ink out of the nozzle to form droplets. The driving waveform is the voltage signal applied to the piezoelectric material in the form of a pulse. The most common driving waveform is a trapezoidal wave, which can be defined by some parameters. More complex driving waveforms require more parameter definitions, such as Figure 2 The first-order waveform shown can be defined by the voltage amplitude V, the first pulse time t1, and the voltage reduction time t2, as shown in FIG. Figure 3 The second-order waveform shown can be defined by the voltage amplitude V, the first pulse time t1, the voltage reduction time t2, the interval time t3, and the second pulse time t4. The above parameters are collectively referred to as driving waveform parameters.
[0003] However, the specific parameter values of the driving waveform need to be changed according to the piezoelectric nozzles of different structures, inks of different viscosities, and different use environments (temperature, water and oxygen content). Otherwise, the state of the ejected droplets will change, which may change from normal ejection to abnormal ejection, or the speed and volume of the ejected droplets may change and cannot be accurately controlled. Therefore, the driving waveform has the effect of adjusting the state of the droplet ejection, and special adjustments are required for different working conditions.
[0004] In order to solve the problem of obtaining the optimal waveform, the "trial and error method" is currently mainly used in industrial applications, that is, manually changing a certain driving waveform parameter, and then observing whether the droplet can be ejected normally under this set of driving waveform parameters. This method is simple and easy to operate, and can easily explore the influence of various driving waveform parameters on droplet ejection. However, using a trial and error method similar to exhaustive enumeration to find the optimal ejection waveform is time-consuming and laborious, especially when there are a large number of parameters and a large range of optional parameters. The workload of this method is extremely large, and it cannot explain the coupling and nonlinear relationship between the parameters.
[0005] In order to solve the problems of manual experimental methods, some scholars have proposed a solution to establish a dynamic or computational fluid dynamics simulation model to perform droplet ejection state. This method uses a computer simulation model to output the ejection state of the droplet under a specified waveform, which can reduce the workload caused by manual operation of the inkjet device. However, this type of modeling process requires a clear structure of the ejection system and the properties of the ink used for ejection. Without detailed information on internal dimensions, manufacturing tolerances, and materials used to manufacture the device, the precise values of the model parameters of a jet system are not easy to determine. In addition, over time, piezoelectric materials will undergo a certain degradation process, causing the model parameters to change. Therefore, it is extremely difficult to accurately establish a model of piezoelectric jets changing over time. Summary of the invention
[0006] In view of the defects of the prior art and the need for improvement, the present invention provides an inkjet droplet state prediction method and its application, which aims to improve the accuracy and efficiency of inkjet droplet state prediction, thereby improving the efficiency of drive waveform design.
[0007] To achieve the above object, according to one aspect of the present invention, a method for constructing a machine learning model for inkjet droplet state prediction is provided, comprising:
[0008] Randomly extract samples from the unlabeled data set θ, annotate them based on whether they can make the droplets eject normally, and establish a labeled data set D including positive samples and negative samples; wherein each sample in the unlabeled data set θ is a set of driving waveform parameters;
[0009] The labeled data set D is used to train the machine learning classification model, and the labeled data set D is iteratively updated using an active learning method, so as to iteratively update the training classification model based on the new labeled data set until an iteration termination condition is reached, thereby obtaining a machine learning classification model for predicting whether a droplet can be ejected normally based on a set of driving waveform parameters;
[0010] Extract positive samples from the labeled data set corresponding to the required classification accuracy and annotate their droplet states to obtain the regression data sample set D p The machine learning regression model is obtained by training;
[0011] The trained classification model and regression model constitute a machine learning model for inkjet droplet state prediction, completing the construction.
[0012] Furthermore, the unlabeled dataset θ is constructed as follows:
[0013] Under the boundary constraints of each driving waveform parameter, each driving waveform parameter is randomly generated and combined to obtain N sets of second-order driving waveform parameter sets as input parameters of the network model to form a sample data set, wherein each second-order driving waveform parameter set is represented by (V, t1, t2, t3, t4), V represents the voltage amplitude, t1 represents the first pulse time, t2 represents the voltage reduction time, t3 represents the interval time, and t4 represents the second pulse time;
[0014] A preset percentage number of second-order waveform samples N in the sample data set is converted into first-order waveform samples, and other samples remain unchanged to obtain an unlabeled data set θ, wherein the conversion method is: setting the values of t3 and t4 to 0, and the preset percentage value is 10%-30%.
[0015] Furthermore, the number of first-order waveform samples and second-order waveform samples in the labeled data set D is equal.
[0016] Furthermore, the machine learning classification model is a random forest classification model, and its training method is:
[0017] S1. Randomly divide the labeled data set D into a total training set D l and the test set D t ; and determine the number m of base learners in the random forest classification model to be trained and the capacity c of the sub-training set used to train each base learner;
[0018] S2, in the total training set D l The sampling is performed to obtain an equal number of positive samples and negative samples, and the characteristic parameters in the samples only retain the characteristic parameters of some preset types until the total number of samples reaches c; repeat this process m times to obtain m sub-training sets [D l1 , D l2 , ..., D lm ];
[0019] S3, taking the feature parameter set in each sample as the input parameter and the classification label y of the sample as the output parameter, using the sub-training set D li Train the i-th base learner h i ;
[0020] S4. Use each base learner to predict the test set D t , and obtain the accuracy evaluation [A1, A2, ..., A m ];
[0021] S5. Combining the prediction output and accuracy evaluation of each base learner, the prediction output of the ensemble learner for each test sample is obtained to calculate the classification accuracy of the ensemble learner;
[0022] S6. In the unlabeled data set θ, an active learning query strategy is adopted to select new unlabeled data samples and annotate them, obtain new labeled data samples and add them to the labeled data set D, and repeat S1-S5 until the iteration termination condition is reached, thereby completing the training of the random forest classification model.
[0023] Furthermore, there are three types of characteristic parameters of some categories.
[0024] Furthermore, the prediction output of the ensemble learner for the test sample x is expressed as:
[0025]
[0026] Among them, H(x) is the prediction output of the ensemble learner on sample x, C j For category label, is the base learner h i In Category C j The predicted output on .
[0027] Furthermore, the machine learning regression model is a random forest regression model, and its training method is:
[0028] Extract positive samples from the labeled data set D corresponding to the highest classification accuracy to establish a regression sample library to be labeled;
[0029] Based on the driving waveform parameter set of each sample in the regression sample library to be marked, the volume and velocity of the inkjet droplet are obtained and the sample is marked to establish the regression data sample set D p ;
[0030] Using the regression data sample set D p Train the random forest regression model;
[0031] Among them, the prediction output of the integrated learner in the random forest regression model for the test sample x is expressed as:
[0032]
[0033] Among them, H(x) is the prediction output of the ensemble learner on the test sample x, h i (x) is the base learner h i The predicted output, m p is the number of base learners in the random forest regression model, Ei is the base learner h i The regression accuracy index value of .
[0034] The present invention also provides an inkjet droplet state prediction method, comprising:
[0035] A set of driving waveform parameters is obtained, and a random forest classification model is constructed using a machine learning model construction method for inkjet droplet state prediction as described above to predict whether the driving waveform parameter set can enable normal droplet ejection; if so, a random forest regression model is constructed using a machine learning model construction method for inkjet droplet state prediction as described above to predict the droplet ejection state corresponding to the driving waveform parameter set, thereby completing the prediction of the inkjet droplet state.
[0036] The present invention also provides a method for optimizing a driving waveform of a piezoelectric printing device, comprising:
[0037] A heuristic algorithm is used to search for the optimal driving waveform based on the expected inkjet droplet ejection state. A machine learning model constructed by a machine learning model construction method for inkjet droplet state prediction as described above is used to generate the inkjet droplet ejection state corresponding to the driving waveform obtained during the search process.
[0038] 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 a machine learning model construction method for inkjet droplet state prediction as described above, an inkjet droplet state prediction method as described above, and / or a piezoelectric printing device drive waveform optimization method as described above.
[0039] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0040] (1) The present invention constructs a framework for applying machine learning models to droplet injection state prediction, which overcomes the shortcomings of the traditional experimental "trial and error method", can make full use of experimental data, avoids time-consuming and labor-intensive experiments or simulations with high technical requirements, and can obtain suitable piezoelectric nozzle driving waveforms more accurately and quickly.
[0041] (2) The present invention uses an active learning sample query strategy. Compared with the learning method that does not select samples, it can only annotate less data and improve the performance of the prediction model more quickly, thereby significantly reducing the sample annotation cost and saving manpower and resources.
[0042] (3) In addition to the above-mentioned prediction problems, based on the prediction model established by the present invention, the optimization problem of the driving waveform can also be solved, that is, by specifying the ink droplet ejection state value that is desired to be output, and performing a rapid search through an algorithm combined with a model, so as to obtain the driving waveform parameter value that meets the requirements, which is also the goal of the waveform adjustment of the piezoelectric printing device. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a flow chart of a method for predicting a droplet state based on active learning provided by an embodiment of the present invention;
[0044] Figure 2 It is a schematic diagram of the piezoelectric inkjet technology described in the background technology of the present invention;
[0045] Figure 3 It is a schematic diagram of the second-order driving waveform described in the background technology of the present invention;
[0046] Figure 4 A schematic diagram of the overall framework for establishing and predicting a droplet state prediction model based on active learning provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] 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.
[0048] When using piezoelectric printing equipment for production and manufacturing, the qualitative and quantitative relationship between the input parameterized driving waveform and the output ink droplet ejection state is unclear and changes according to the nozzle structure, ink properties and usage environment. In engineering practice, the manual trial and error method is generally used to select the appropriate driving waveform, which is inefficient and labor-intensive, and cannot explain the coupling and nonlinear relationship between parameters. Therefore, it is hoped that an approximate model with a certain degree of accuracy can be established using relatively small amounts of data to predict the qualitative and quantitative relationship between the input and output of the piezoelectric printing equipment. Based on this idea, a modeling method that does not rely on specific equipment, ink and environment and only requires data-driven is proposed below.
[0049] Embodiment 1
[0050] A machine learning model construction method for inkjet droplet state prediction, such as Figure 1 As shown, including:
[0051] Randomly extract samples from the unlabeled data set θ, annotate them based on whether they can make the droplets eject normally, and establish a labeled data set D including positive samples and negative samples; wherein each sample in the unlabeled data set θ is a set of driving waveform parameters;
[0052] A machine learning classification model is trained using a labeled data set D, and the labeled data set D is iteratively updated using an active learning method, so as to iteratively update the training classification model based on a new labeled data set until an iteration termination condition is reached, thereby obtaining a machine learning classification model for predicting whether a droplet can be ejected normally based on a set of driving waveform parameters;
[0053] Extract positive samples from the labeled data set corresponding to the required classification accuracy and annotate their droplet states to obtain the regression data sample set D p The machine learning regression model is obtained by training;
[0054] The trained classification model and regression model constitute a machine learning model for inkjet droplet state prediction, completing the construction.
[0055] Preferably, the above unlabeled dataset θ is constructed as follows:
[0056] Determine the boundary constraints of the waveform parameters [V, t1, t2, t3, t4];
[0057] Waveform parameters refer to the variables required to define the parameterized driving waveform, including voltage amplitude V, first pulse time t1, voltage reduction time t2, interval time t3, and second pulse time t4. The boundary constraints of the waveform parameters, i.e., the value range corresponding to each parameter, are obtained by the hardware limitations of the inkjet device and expert experience.
[0058] Under the boundary constraints of each driving waveform parameter, each driving waveform parameter is randomly generated and combined to obtain N sets of second-order driving waveform parameter sets as input parameters of the network model to form a sample data set, wherein each second-order driving waveform parameter set is represented by (V, t1, t2, t3, t4), V represents the voltage amplitude, t1 represents the first pulse time, t2 represents the voltage reduction time, t3 represents the interval time, and t4 represents the second pulse time;
[0059] A preset percentage number of second-order waveform samples N in the sample data set is converted into first-order waveform samples, and other samples remain unchanged to obtain an unlabeled data set θ, wherein the conversion method is: setting the values of t3 and t4 to 0, and the preset percentage value is 10%-30%.
[0060] For example, the capacity of the unlabeled data set is set to N=10000; under the boundary constraints, each waveform parameter is randomly generated and combined to form a sample data set; the constructed data set is:
[0061] θ=[θ1,θ2,...,θ N ]=[(V1, t11, t21, t31, t41), (V2, t12, t22, t32, t42),...,
[0062] (V N , t1 N , t2 N , t3 N , t4 N )], where (V, t1, t2, t3, t4) refers to the waveform parameter set of each group of samples.
[0063] Modify the sample set, select a specified number of samples n = 2000 and force them to be converted into first-order waveform parameters, that is, set the t3 and t4 features of some samples to 0 to ensure that there are enough first-order waveform samples in the sample set. The final unlabeled dataset is:
[0064] θ=[θ1,θ2,...,θ n , ..., θ N ]=[(V1, t11, t21, 0, 0), (V2, t12, t22, 0, 0),..., (V n , t1 n , t2 n ,0,0),(V n+1 , t1 n+1 , t2 n+1 , t3 n+1 , t4 n+1 ), (V n+2 , t1 n+2 , t2 n+2 , t3 n+2 , t4 n+2 ),…,(V N , t1 N , t2 N , t3 N , t4 N )]
[0065] Among them, (V, t1, t2, t3, t4) is a first-order waveform sample when t3=t4=0, otherwise it is a second-order waveform sample.
[0066] Preferably, the number of first-order waveform samples and second-order waveform samples in the labeled data set D is equal.
[0067] Randomly extract X = 200 samples from the unlabeled data set θ, mark them based on whether the droplets are ejected normally, and establish the initial labeled data set D. The specific establishment method is, for example:
[0068] Set the capacity X of the initial labeled dataset;
[0069] Randomly extract X / 2 first-order waveform samples from the unlabeled data set θ, and then randomly extract X / 2 second-order waveform samples to establish a data set to be labeled:
[0070]
[0071] The dataset to be labeled θ d The waveform parameters contained in the sample are input into the inkjet device, and the spraying state of the droplets under the corresponding waveform parameters is observed manually through observation equipment such as cameras. When the droplets have tailing, satellite drops, jets, or non-spraying phenomena and ultimately fail to form a complete droplet, it is judged as abnormal spraying, otherwise it is normal spraying. Mark all samples to obtain a labeled data set:
[0072] D=[(θ1,y1), (θ2,y2),..., (θ X ,y X )];
[0073] Wherein, y is the sample label, which takes a value of 1 or 0. When y=1, it indicates that the waveform parameters of the sample can allow the droplets to be ejected normally, and the sample is a positive sample; when y=0, it indicates that the waveform parameters of the sample cannot allow the droplets to be ejected normally, and the sample is a negative sample.
[0074] Preferably, a random forest classification model and an active learning method are used to train the model using samples in the labeled data set D and iteratively update the labeled data set, the method comprising:
[0075] S1. Randomly divide the labeled data set D into a total training set D l and the test set D t , where the test set accounts for 20% of the entire dataset, and the capacity of the sub-training set is set to c = 100, the number of base learners (decision trees) is m = 50, and the base learners are represented as [h1, h2, ..., h m ].
[0076] S2. Randomly extract 3 features [a1, a2, a3] from the feature set [V, t1, t2, t3, t4] as the feature subset, and sample with replacement in the training set to obtain an equal number of positive samples and negative samples, and only retain the 3 features of the feature subset until the total number of samples obtained reaches c. Repeat the above process m times to obtain m sub-training sets [D l1 , D l2 , ..., D lm ].
[0077] S3. Use sub-training set D li Training base learner h i, the node partitioning index is the Gini coefficient, the maximum decision tree depth is set to 100, and each base learner is used to predict the test set D t , and obtain the accuracy evaluation [A1, A2, …, A m ].
[0078] S4. Combine the outputs of all base learners to obtain the prediction results of the ensemble learner. The ensemble output can be expressed as:
[0079]
[0080] Where H(x) is the prediction output of the ensemble learner on sample x, C j For category label, is the base learner h i In Category C j The predicted output on .
[0081] S5. Use the test set Dt to test the prediction performance of the ensemble learner and record the classification accuracy.
[0082] S6. In the unlabeled data set θ, the most valuable sample is found according to the query strategy of active learning. The waveform parameters of the sample are input into the inkjet device. The camera is used to observe the droplet ejection state. It is manually determined whether the ink droplet is ejected normally. The sample with normal ejection is marked as 1, and the sample with abnormal ejection is marked as 0. Then the sample is added to the labeled data set D and moved to the training set at the same time.
[0083] The query strategy in S6 is the edge sampling strategy in uncertainty sampling, and the samples selected by this strategy are:
[0084]
[0085] in Indicates that the trained model in S5 will be used to predict the sample θ i Predicted as class probability. and They represent the unlabeled samples θ respectively. i In terms of , the model predicts categories with larger probabilities and categories with smaller probabilities. This strategy gives priority to sample data that are easy to be judged into two categories, that is, near the category boundary.
[0086] S7. Repeat steps S1 to S6 until the classification accuracy requirement is met.
[0087] The relationship between the input and output of the piezoelectric printing device is unclear, and the judgment of the output (ink droplet ejection status) often requires manual measurement. When you want to use the input and output data to build an approximate model, each sample needs to be manually measured for labeling. Therefore, the key to this problem is to use as few samples as possible to build a model with sufficient accuracy. Active learning is a branch of weakly supervised learning in machine learning. Its main purpose is to reduce the cost of sample labeling and train a good model with relatively less data. Under the premise that unlabeled samples are easy to obtain, the present invention applies the query strategy of the active learning method to extract the "most valuable" samples from the unlabeled samples for manual labeling. Compared with the random sampling method, it can significantly reduce the number of samples required for modeling and effectively improve the accuracy of the model.
[0088] Preferably, for the positive samples in the final labeled dataset, the droplet volume V and the flight speed v are measured to obtain the dataset D for regression. p , and train the random forest regression model. The training method of the random forest regression model is:
[0089] Extract all positive samples from the labeled data set D to establish a regression sample library to be labeled. This type of sample represents a waveform parameter combination that can be sprayed normally.
[0090] For the regression sample library to be marked, the waveform parameters of each sample are input into the device respectively, the droplet ejection state is observed by the camera, the droplet volume V and flight speed v are measured, and the samples are marked to establish the regression data set D p ;
[0091] The dataset D p Randomly divide into total training set D pl and the test set D pt , the test set accounts for 20% of the entire dataset, and the capacity of the sub-training set is set to c p =200, the number of base learners (decision trees) m p =50, the base learner is represented as [h p1 ,h p2 , ..., h pm ];
[0092] Randomly select 3 features [a1, a2, a3] from the feature set [V, t1, t2, t3, t4] as the feature subset, and sample without replacement in the training set, retaining only the 3 features of the feature subset until the total number of samples obtained reaches c p Repeat the above process m p times, get m p Sub-training set
[0093] With feature subset [a1i , a 2i , a 3i ] is the input parameter, label [V, v] is the output parameter, and the sub-training set D is used. pli Training base learner h pi , the node partitioning index is the mean square error, the maximum decision tree depth is set to 100, and each base learner is used to predict the test set D pt , and obtain the root mean square error set
[0094] Combining the outputs of all base learners, we get the prediction results of the ensemble learner, and its ensemble output can be expressed as:
[0095]
[0096] Where H(x) is the prediction output of the ensemble learner on sample x, h i (x) is the base learner h i The predicted output.
[0097] This embodiment provides a method for predicting droplet states based on active learning, including: determining boundary constraints of waveform parameters; using the waveform parameters as input parameters to generate an unlabeled data set; randomly extracting a batch of samples from the unlabeled data set, labeling them based on whether the droplets are ejected normally, and establishing an initial labeled data set; using active learning methods and random forest classification models, using samples in the labeled data set to train the model and iteratively update the sample library; for positive samples in the final labeled data set, measuring the droplet volume and flight speed, and training a random forest regression model; using the trained classification model and regression model to predict any combination of waveform parameters. The present invention constructs a framework for applying machine learning models to droplet ejection state prediction, applies active learning methods, obtains a prediction model with better performance at a lower data labeling cost, and can more accurately and quickly obtain a suitable piezoelectric nozzle drive waveform.
[0098] It should be noted that the present invention proposes a method for predicting droplet ejection state using an active learning method and a machine learning model. In addition to the random forest model, other machine learning algorithms can also be used, such as decision trees, support vector machines, gradient boosting trees, etc. The prediction of droplet state is not limited to a specific inkjet system, ink material or waveform parameter type. It only needs to adjust the input parameters and output parameters based on the characteristics of the inkjet system. The droplet prediction model established and the droplet ejection state prediction method and ideas proposed in the present invention do not need to be changed.
[0099] Embodiment 2
[0100] A method for predicting inkjet droplet states, comprising:
[0101] For any specific waveform parameters that meet the boundary constraints, use the trained classification model to predict whether the droplet can be ejected normally under the waveform parameters:
[0102] y=f(V, t1, t2, t3, t4);
[0103] For the above y=1, that is, the waveform parameter predicted as normal injection, the trained regression model is used to predict the droplet volume V and flight speed v of the droplet under the waveform parameter:
[0104] [V, v]=f(V, t1, t2, t3, t4)
[0105] According to the volume and flight speed requirements of the droplets required by the industrial production process, appropriate waveform parameters are selected from the waveforms that can be sprayed normally.
[0106] Embodiment 3
[0107] A method for optimizing a driving waveform of a piezoelectric inkjet printing device, comprising:
[0108] A heuristic algorithm is used to search for the optimal driving waveform based on the expected inkjet droplet ejection state. A machine learning model constructed by a machine learning model construction method for inkjet droplet state prediction as described in Example 1 is used to generate the inkjet droplet ejection state corresponding to the driving waveform obtained during the search process.
[0109] In addition to the prediction problems mentioned in Example 1 and Example 2, this embodiment can also solve the optimization problem of the driving waveform based on the established prediction model, that is, specifying the ink droplet injection state value that is desired to be output, and performing a quick search through the algorithm combined with the model to obtain the driving waveform parameter value that meets the requirements, which is also the goal of the waveform adjustment of the piezoelectric printing device.
[0110] As a proxy model, the machine learning prediction model uses a small sample to build a mathematical model that can approximately express the original simulation model or experimental results. Based on the aforementioned active learning method, a machine learning proxy model is established, and then a heuristic intelligent algorithm is combined with the prediction model to perform optimization. Compared with traditional manual trial and error or numerical simulation methods, it can significantly improve the efficiency of obtaining suitable driving waveform parameters. At the same time, it does not rely on specific equipment, ink, and environment, and only requires data drive.
[0111] Embodiment 4
[0112] 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 a machine learning model construction method for inkjet droplet state prediction as described above and / or an inkjet droplet state prediction method as described above.
[0113] The relevant technical solutions are the same as those in Embodiment 1 and Embodiment 2 and will not be described in detail here.
[0114] 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 a machine learning model for inkjet droplet state prediction, characterized in that: include: Randomly extract samples from the unlabeled data set θ, annotate them based on whether they can make the droplets eject normally, and establish a labeled data set D including positive samples and negative samples; wherein each sample in the unlabeled data set θ is a set of driving waveform parameters; The labeled data set D is used to train the machine learning classification model, and the labeled data set D is iteratively updated using an active learning method, so as to iteratively update the training classification model based on the new labeled data set until an iteration termination condition is reached, thereby obtaining a machine learning classification model for predicting whether a droplet can be ejected normally based on a set of driving waveform parameters; Extract positive samples from the labeled data set corresponding to the required classification accuracy and annotate their droplet states to obtain the regression data sample set D p The machine learning regression model is obtained by training; The trained classification model and regression model constitute a machine learning model for inkjet droplet state prediction, completing the construction.
2. The method for constructing a machine learning model according to claim 1, wherein: The unlabeled dataset θ is constructed as follows: Under the boundary constraints of each driving waveform parameter, each driving waveform parameter is randomly generated and combined to obtain N sets of second-order driving waveform parameter sets as input parameters of the network model to form a sample data set, wherein each second-order driving waveform parameter set is represented by (V, t1, t2, t3, t4), V represents the voltage amplitude, t1 represents the first pulse time, t2 represents the voltage reduction time, t3 represents the interval time, and t4 represents the second pulse time; A preset percentage number of second-order waveform samples N in the sample data set is converted into first-order waveform samples, and other samples remain unchanged to obtain an unlabeled data set θ, wherein the conversion method is: setting the values of t3 and t4 to 0, and the preset percentage value is 10%-30%.
3. The method for constructing a machine learning model according to claim 2, wherein: The number of first-order waveform samples and second-order waveform samples in the labeled data set D is equal.
4. The method for constructing a machine learning model according to claim 2, wherein: The machine learning classification model is a random forest classification model, and its training method is: S1. Randomly divide the labeled data set D into a total training set D l and the test set D t ; and determine the number m of base learners in the random forest classification model to be trained and the capacity c of the sub-training set used to train each base learner; S2, in the total training set D l The sampling is performed to obtain an equal number of positive samples and negative samples, and the characteristic parameters in the samples only retain the characteristic parameters of some preset types until the total number of samples reaches c; repeat this process m times to obtain m sub-training sets [D l1 ,D l2 ,…,D lm ]; S3, taking the feature parameter set in each sample as the input parameter and the classification label y of the sample as the output parameter, using the sub-training set D li Train the i-th base learner h i ; S4. Use each base learner to predict the test set D t , and obtain the accuracy evaluation [A1,A2,…,A m ]; S5. Combining the prediction output and accuracy evaluation of each base learner, the prediction output of the ensemble learner for each test sample is obtained to calculate the classification accuracy of the ensemble learner; S6. In the unlabeled data set θ, an active learning query strategy is adopted to select new unlabeled data samples and annotate them, obtain new labeled data samples and add them to the labeled data set D, and repeat S1-S5 until the iteration termination condition is reached, thereby completing the training of the random forest classification model.
5. The method for constructing a machine learning model according to claim 4, characterized in that: There are three types of characteristic parameters of some categories.
6. The method for constructing a machine learning model according to claim 4, wherein: The prediction output of the ensemble learner for the test sample x is expressed as: Among them, H(x) is the prediction output of the ensemble learner on sample x, C j For category label, is the base learner h i In Category C j The predicted output on .
7. The method for constructing a machine learning model according to claim 1, wherein: The machine learning regression model is a random forest regression model, and its training method is: Extract positive samples from the labeled data set D corresponding to the highest classification accuracy to establish a regression sample library to be labeled; Based on the driving waveform parameter set of each sample in the regression sample library to be marked, the volume and velocity of the inkjet droplet are obtained and the sample is marked to establish the regression data sample set D p ; Using the regression data sample set D p Train the random forest regression model; Among them, the prediction output of the integrated learner in the random forest regression model for the test sample x is expressed as: Among them, H(x) is the prediction output of the ensemble learner on the test sample x, h i (x) is the base learner h i The predicted output, m p is the number of base learners in the random forest regression model, E i is the base learner h i The regression accuracy index value of .
8. A method for predicting inkjet droplet state, characterized in that: include: A set of driving waveform parameters is obtained, and a random forest classification model is constructed using a machine learning model construction method for inkjet droplet state prediction as described in any one of claims 1 to 7 to predict whether the driving waveform parameter set can enable normal droplet ejection; if so, a random forest regression model is constructed using a machine learning model construction method for inkjet droplet state prediction as described in any one of claims 1 to 7 to predict the droplet ejection state corresponding to the driving waveform parameter set, thereby completing the prediction of the inkjet droplet state.
9. A method for optimizing driving waveform of a piezoelectric printing device, characterized in that: include: A heuristic algorithm is used to search for the optimal driving waveform based on the expected inkjet droplet ejection state; wherein a machine learning model constructed by a machine learning model construction method for inkjet droplet state prediction as described in any one of claims 1 to 7 is used to generate the inkjet droplet ejection state corresponding to the driving waveform obtained during the search process.
10. A computer-readable storage medium, 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 a machine learning model construction method for inkjet droplet state prediction as described in any one of claims 1 to 7, an inkjet droplet state prediction method as described in claim 8, and / or a piezoelectric printing device drive waveform optimization method as described in claim 9.
