Data-driven collaborative control method and system for parameters of tea primary processing production line

Through the data-driven collaborative control method of tea primary production line parameters and the use of machine learning models to optimize process parameters, the problem of tea processing relying on experience has been solved, efficient and intelligent tea production has been achieved, and product quality and production efficiency have been improved.

CN118444649BActive Publication Date: 2024-10-15ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904008.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-15
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing tea processing technology relies on experienced labor and lacks efficient and intelligent equipment, resulting in difficulty in ensuring tea quality and low production efficiency.

Method used

A data-driven collaborative control method for tea primary production line parameters is adopted. By acquiring and preprocessing multiple unit data sets, a machine learning model is constructed to optimize process parameters and achieve prediction and control of tea moisture content and chemical composition, combined with multi-objective optimization. Algorithms optimize process parameters and reduce manual intervention.

Benefits of technology

It improves the quality of tea products, reduces labor demand, realizes automation and intelligence of tea processing, and has the characteristics of low cost and high efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118444649B_ABST
    Figure CN118444649B_ABST
Patent Text Reader

Abstract

The invention discloses a data-driven collaborative control method and system for parameters of a primary tea production line. The method collects process parameters, image information and moisture content information in tea production through experimental equipment and production line software; pre-processes the collected data, removes abnormal data and improves model performance; selects important features and chemical components through eigenvalue importance and correlation analysis; uses a tea process data set to train a machine learning model, and uses a grid optimization method to obtain optimal hyperparameters of multiple models; compares modeling results of different models in different units, and the best model for a rolling and baking unit is PLSR, the best model for withering, primary baking and re-baking is SVM, and multiple chemical component prediction models are MRF; takes the moisture content of each unit and the chemical composition of raw tea as the target, uses a multi-objective algorithm to optimize the process parameters, and applies the optimization results to the tea production line control software to achieve high-quality tea production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of machine learning and primary processing of tea leaves, and in particular relates to a collaborative control method and system for parameters of a primary processing tea leaf production line based on data-driven. Background Art

[0002] The main ingredients in tea are flavonoids, alkaloids, phenols, theanine, etc. These substances have certain antioxidant, anti-inflammatory, anti-cancer, cardioprotective and antibacterial health properties. These functions of tea are closely related to the processing process. At present, tea processing mainly relies on the traditional "look, touch and smell" method of "looking at tea, making tea", which requires high experience. However, there is a shortage of labor in the field of tea production and a lack of experienced workers. This will become a bottleneck for the high-quality and high-speed development of the tea industry. Therefore, it is particularly important to use efficient, clean and intelligent processing equipment to replace workers and realize automated, digital and intelligent tea processing production lines.

[0003] The existing technology mainly tests the tea ingredients and moisture content at the discharging stage through spectral acquisition and neural networks, but there is no precedent for modeling all units of the entire production line and optimizing multiple unit process parameters by building a neural network model and using optimization algorithms. Summary of the invention

[0004] In order to solve the shortcomings of the prior art, achieve the purpose of improving the quality of tea production and reducing labor, the present invention adopts the following technical solutions:

[0005] The data-driven collaborative control method of parameters of tea primary processing production line includes the following steps:

[0006] Step S1: obtaining multiple unit data sets of the tea primary processing production line, including process parameters of each unit, moisture content before and after processing, fresh leaf image information, quality of raw tea, and multiple chemical component contents of the final raw tea;

[0007] Step S2: preprocessing the plurality of unit data sets to remove erroneous data and reduce the impact of equipment shortage and noise on the model building results;

[0008] Step S3: Data screening: according to the changes of each unit data in the production process, remove the data that does not change substantially and / or has the same change trend, predict the importance of process parameters and fresh leaf image information to the corresponding moisture content and chemical composition through machine learning, delete the data with low importance, and select the chemical components related to the quality for the chemical components, which have no value for prediction and optimization;

[0009] Step S4: constructing a machine learning model to establish the relationship between the screened process parameters and fresh leaf image information, and the moisture content and the screened chemical components related to quality;

[0010] Step S5: Based on the machine learning model, a moisture content prediction model for each unit and multiple chemical component prediction models for the final raw tea are established, the prediction model performance is evaluated according to RMSE and R2, and the machine learning model with the best performance is selected to represent the relationship between process parameters and moisture content and chemical composition;

[0011] Step S6: According to the prediction model, taking the moisture content of each unit and the chemical composition of raw tea as the target, based on the fresh leaf image information, optimize the process parameters, and apply the optimization results to the software parameter control of the tea primary processing production line to achieve high-quality tea production.

[0012] Furthermore, the multiple units in step S1 include a fixing unit, a rolling drying unit, a primary drying unit, and a re-drying unit. The moisture content of these four units varies greatly and is highly correlated with the formation of quality; the process parameters of the fixing unit and the rolling drying unit include temperature, drum speed, feeding speed, and dehumidification speed, wherein the process parameters of the rolling drying unit also include hot air temperature and hot air speed, and the process parameters of the primary drying unit and the re-drying unit include hot air temperature, oil inlet temperature, oil outlet temperature, main conveying speed, hot air speed, and leaf uniformity speed;

[0013] Fresh leaf image information includes color features and texture features of fresh tea leaf images, where color features include HSV, LAB and RGB, and texture features include mean, standard deviation, smoothness, third-order moment, consistency, and entropy of fresh tea leaf images;

[0014] The quality of raw tea is graded based on the appearance and internal quality of the tea leaves. The appearance includes the tea leaves’ strands, color, wholeness, and clarity, while the internal quality includes the tea’s soup color, aroma, flavor, and leaf base.

[0015] The chemical components of raw tea include gallic acid GA, catechin C, epicatechin EC, epigallocatechin EGC, epicatechin gallate ECG, epigallocatechin gallate EGCG, theanine L-The and caffeine CAF. The above chemical component standards are prepared into standard solutions, and the contents of chemical components in tea are calculated according to the standard curve and peak area based on liquid chromatography of the standard solutions.

[0016] Furthermore, the preprocessing in step S2 includes missing value processing and outlier processing; missing values ​​refer to the missing of part of the data due to equipment failure and other reasons during the data collection process. In order to ensure the accuracy of the model, the corresponding batch of tea production data containing missing values ​​is removed, and the average value of the remaining data is used to represent the process parameters of the batch; outliers refer to values ​​that are significantly deviated from the real data. The process parameters need to be adjusted multiple times at the beginning of processing to obtain the ideal parameters. The data before the ideal parameters are abnormal data. The moisture content error is caused by the accurate detection of the equipment, which needs to be comprehensively considered in combination with the actual production situation and the range of moisture content variation.

[0017] Furthermore, the machine learning model in step S4 includes a support vector machine SVM, and its SVR regression function for a set of data sets is as follows:

[0018]

[0019]

[0020] In the formula, ω represents the weight vector of the feature, C, ε i and They represent the penalty parameter and two slack variables, δ represents the insensitive interval of the slack variables, X i Represents the feature vector of process parameters and fresh leaf image information in the dataset, y i represents the corresponding tea moisture content feature vector, and n represents the number of feature vectors;

[0021] Solve using the Lagrangian function:

[0022]

[0023] In the formula, α i , represents two Lagrange multipliers, b represents the deviation, Represents the kernel function:

[0024]

[0025] Where, X i and are two eigenvectors in the input space, γ represents the kernel function coefficient. Common kernel functions include linear function, Sigmoid function, and radial basis function. When establishing the SVR model for analysis, the hyperparameters C, δ, and γ need to be optimized.

[0026] Furthermore, the machine learning model in step S4 includes partial least squares regression PLSR, for k chemical components and water content , m unit process parameters Data, the matrix composed of n samples of data is and In order to study the relationship between the independent variable and the dependent variable, the first principal component is extracted from X, which should contain as much information as possible about the original data, and then a linear regression equation is established between the principal component and Y. If the accuracy of the regression equation meets the requirements, the algorithm terminates; otherwise, the second principal component is extracted from the remaining independent variable X, and an equation is established until the accuracy meets the requirements. The specific calculation of PLSR includes principal component decomposition and correlation matrix B calculation. Principal component decomposition is to decompose the X and Y matrices into characteristic factors. The specific formula is as follows:

[0027]

[0028] Where T and U represent the principal component score matrices of matrices X and Y, respectively; P and Q represent the loading matrices of X and Y, respectively; E and F represent the error matrices of X and Y during the fitting process, respectively;

[0029]

[0030]

[0031] The linear regression model is built using matrices T and U, and B represents the association matrix.

[0032] Furthermore, the machine learning model in step S4 includes a multiple linear regression MLR, which is used to obtain a fitting relationship between variables and can be used to describe how a single dependent variable linearly depends on multiple predictor variables. For a multiple linear regression with n predictor variables, the formula is as follows:

[0033]

[0034] In the formula, x represents the process parameters of each unit and the fresh leaf image information, y represents the moisture content after processing, β0, β 1, β 2,…, β n represents the polynomial coefficient, and ε represents the residual term of the regression model.

[0035] The data-driven collaborative control system for parameters of the tea primary processing production line includes an acquisition module, a preprocessing module, a data screening module, a machine learning module, a prediction module, and a control module;

[0036] The acquisition module acquires multiple unit data sets of the tea primary processing production line, including process parameters of each unit, moisture content before and after processing, fresh leaf image information, quality of raw tea, and multiple chemical component contents of the final raw tea;

[0037] The preprocessing module preprocesses the plurality of unit data sets to remove erroneous data and reduce the impact of equipment shortage and noise on the modeling results;

[0038] The data screening module removes substantially unchanged data and / or data with the same change trend according to the change of each unit data in the production process, predicts the importance of process parameters and fresh leaf image information to the corresponding moisture content and chemical components through machine learning, deletes data with low importance, and selects chemical components related to the quality, which are not worth predicting and optimizing;

[0039] The machine learning module is used to establish the relationship between the screened process parameters and fresh leaf image information, and the moisture content and the screened chemical components related to quality;

[0040] The prediction module, based on the machine learning model, establishes a moisture content prediction model for each unit and multiple chemical component prediction models for the final raw tea, evaluates the performance of the prediction model according to RMSE and R2, selects the machine learning model with the best performance, and expresses the relationship between the process parameters and the moisture content and chemical components; takes the moisture content of each unit and the chemical components of the raw tea as the target, optimizes the process parameters based on the fresh leaf image information, and obtains the optimization result;

[0041] The control module applies the optimization result to the software parameter control of the tea primary processing production line to achieve high-quality tea production.

[0042] Furthermore, the acquisition module includes a camera body, a camera lens and a ring-shaped light source. The camera body is connected to the camera lens. A ring-shaped light source is arranged around the camera lens. The information used to obtain the fresh leaf image includes color features and texture features of the fresh tea leaf image, wherein the color features include HSV, LAB and RGB, and the texture features include the mean, standard deviation, smoothness, third-order moment, consistency and entropy of the fresh tea leaf image.

[0043] Furthermore, the multiple units of the tea primary processing production line include a withering unit, a rolling and drying unit, a primary drying unit, and a re-drying unit. The moisture content of these four units varies greatly and is highly correlated with the formation of quality. The process parameters of the withering unit and the rolling and drying unit include temperature, drum speed, feeding speed, and dehumidification speed, among which the process parameters of the rolling and drying unit also include hot air temperature and hot air speed, and the process parameters of the primary drying unit and the re-drying unit include hot air temperature, oil inlet temperature, oil outlet temperature, main conveying speed, hot air speed, and leaf uniforming speed.

[0044] Furthermore, the acquisition module also includes an ultra-high performance liquid chromatography instrument, which is used to obtain the ultra-high performance liquid chromatography of the standard solution of the chemical components of raw tea, and calculate the content of the chemical components in the tea according to the standard curve and the peak area. The chemical components of the raw tea include gallic acid GA, catechin C, epicatechin EC, epigallocatechin EGC, epicatechin gallate ECG, epigallocatechin gallate EGCG, theanine L-The and caffeine CAF.

[0045] The advantages and beneficial effects of the present invention are:

[0046] The present invention proposes a data-driven collaborative control method and system for parameters of a tea primary processing production line. First, by collecting data in the production process, preprocessing and feature screening the data, and then using different machine learning models to establish the relationship between process parameters and production targets, the moisture content of each unit and multiple chemical components of raw tea are predicted. Finally, the process parameters are optimized by combining a multi-objective optimization algorithm, and the optimization results are sent to multiple lower-level devices through a computer program, applied to actual production, and the quality of tea production is improved, and labor is reduced. It has the characteristics of low cost, high efficiency, and intelligence. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 The present invention is a flow chart of the collaborative control method of parameters of the tea primary processing production line based on data drive.

[0049] Figure 2 It is a schematic diagram of the structure of the tea image acquisition system of the present invention.

[0050] Figure 3a This is a result diagram of abnormal data analysis of moisture content of each unit in tea production by using a box plot in the present invention.

[0051] Figure 3b This is a graph showing the abnormal data analysis results of the moisture content changes in each unit of tea production in the present invention.

[0052] Figure 4 This is the chemical component importance distribution diagram based on SHAP of the present invention.

[0053] Figure 5 It is a correlation diagram between the process parameters and chemical components of the present invention.

[0054] Figure 6 The present invention is a software architecture block diagram of the data-driven collaborative control system for parameters of the primary tea processing production line.

[0055] In the figure: 1. camera body, 2. bracket, 3. connecting plate, 4. camera lens, 5. light source. DETAILED DESCRIPTION

[0056] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.

[0057] like Figure 1 As shown, the data-driven collaborative control method for primary tea production includes the following steps:

[0058] Step S1: Acquire multiple unit data sets of the tea primary processing production line, including process parameters of each unit, moisture content before and after processing, fresh leaf image information, raw tea grade, and multiple chemical component contents of the final raw tea.

[0059] The tea production line consists of multiple units, including withering, rolling, primary baking, and re-baking. The moisture content of these four units varies greatly and is highly related to the formation of quality. The process parameters of each unit of the initial tea processing are determined by experienced workers based on information such as the tenderness of the tea leaves. The tea production line control software in step S6 communicates with each tea production equipment, collects the process parameter data of each unit every 1 minute, and stores it in the computer equipment. The process parameters of each unit are shown in Table 1; the moisture content of each unit before and after tea processing is measured using an automatic moisture analyzer (MA 150), and the working temperature of the moisture analyzer is set to 130 ℃. 3g of tea samples are evenly selected from the production line, spread flat on the sample tray, and the tea samples are quickly dried in combination with the moisture evaporation channel. The device interface displays the moisture content of the sample in real time.

[0060] Table 1 Process parameters of each unit

[0061]

[0062] The image of fresh tea leaves was obtained using a self-built experimental platform, which consists of an industrial camera body 1 (MV-CS060-10GM / GC), a camera lens 4 (MVL-HF1228M-6MPE), a ring-shaped high-brightness diffuse reflection light source 5 (XS-WAR08036-90), a connecting plate 3, and an aluminum profile bracket 2. The lens is connected to the camera through threads, the camera is fixed on the connecting plate 3, the light source 5 is fixed under the connecting plate 3, and the connecting plate 3 is fixed to the aluminum profile bracket 2 through a trapezoidal nut. The specific connection is as follows: Figure 2 As shown in the figure, 10g of tea leaves were uniformly selected from each batch of fresh tea leaves for image acquisition, and then nine color features and six texture features of the image were extracted through a python program. The color features included HSV, LAB and RGB, and the texture features were mean, standard deviation, smoothness, third-order moment, consistency, and entropy.

[0063] The grade of raw tea is determined by five professional tea appraisers. According to the sensory evaluation requirements of appearance (stripe, color, wholeness, clarity) and internal quality (soup color, aroma, taste, leaf bottom), the raw tea is divided into six grades, including 14 special A grades, 22 special grades, 14 special first grades, 27 first grades, 7 second grades, and 16 third grades.

[0064] The measured chemical components of raw tea include gallic acid (GA), catechin (C), epicatechin (EC), epigallocatechin (EGC), epicatechin gallate (ECG), epigallocatechin gallate (EGCG), theanine (L-The) and caffeine (CAF). The above chemical component standards were prepared as standard solutions, and a series of standard solutions with standard concentrations of 0.05-0.5 mg / L, 0.005-0.1 mg / L, 0.05-0.5 mg / L, 0.15-1.2 mg / L, 0.025-0.25 mg / L, 0.3-1.5 mg / L, 0.05-0.5 mg / L and 0.2-1.0 mg / L were prepared respectively, and put into ultra performance liquid chromatography, and the standard curve was calculated according to the actual content of each component and its corresponding peak area. Weigh 0.2g of raw tea into a centrifuge tube, add ultrapure water, and extract in a water bath for 60 minutes. Then prepare the sample by centrifugation and extracting the supernatant, and place the sample into an ultra-high performance liquid chromatography instrument (water ACQUITY UPLC). TM The instrument analyzes tea samples and calculates the contents of eight chemical components in tea based on the standard curve and sample peak area.

[0065] Step S2: Preprocess the obtained tea production line process parameter data set to remove erroneous data and reduce the impact of equipment deficiencies and noise on the model building results.

[0066] Specifically, preprocessing includes missing value processing and outlier processing. Missing values ​​refer to the missing data due to equipment failure and other reasons during the data collection process. To ensure the accuracy of the model, the tea production data of the batch containing missing values ​​is removed, and the average value of the remaining data represents the process parameters of the batch. Outliers refer to values ​​that are significantly deviated from the real data. The process parameters need to be adjusted multiple times at the beginning of processing to obtain the ideal parameters. The data before the ideal parameters are abnormal data. The moisture content error is caused by the accurate detection of the equipment, and needs to be considered in combination with the actual production situation and the range of moisture content variation. The analysis results are as follows: Figure 3a , Figure 3b As shown in the figure, some moisture content points of the rolling drying, primary drying and re-drying units in the box plot are outside the box plot. This part of the data is abnormal data and the data of this batch is removed. The moisture content change diagram of each unit shows that from the withering stage to the rolling drying stage, the moisture content of some batches of tea increases, which is inconsistent with the actual production situation and is regarded as abnormal data. The data of this batch is removed.

[0067] Step S3: Based on the actual production process and feature importance, select features related to moisture content and chemical composition to establish a model, and select important chemical components based on the relationship between chemical composition and quality.

[0068] It is necessary to perform feature screening on the machine learning model. First, the features should be screened according to the changes in the features in actual production, and the features that are basically unchanged in actual production or have the same change trend should be removed, such as the five temperatures for withering. These five temperatures show a trend that the previous area is 10°C higher than the next one. Secondly, the features of tea production data should be screened. Each machine learning prediction model uses the Feature Importances in the Sklearn library to calculate the importance of each feature. According to the feature importance of each model, the features are reduced in turn, and the features with the lowest importance are deleted. The other features are used as model input and model training. Repeat the above process until the model accuracy is the highest, so as to ensure the model performance. When building a model for chemical components, it is necessary to remove chemical components that are not related to quality. These chemical components have no prediction and optimization value. The feature importance of each chemical component is calculated using the SHAP method. Figure 4 This is a distribution diagram of the characteristic importance of chemical components. The results in the figure show that ECG, CAF, EGCG, and GA are chemical components with a high correlation with quality. Figure 5 This is a correlation coefficient diagram between process parameters and chemical components. The first 26 variables in the figure are composed of tea parameters (water content and image information) and process parameters of the four links of withering, rolling, primary baking and re-baking. The last four represent the chemical components of raw tea, GA, CAF, EGCG and ECG, respectively. Among them, there is a strong correlation between the three chemical components of GA, CAF and ECG and the process parameters, which is suitable for establishing a multi-task regression prediction model.

[0069] Step S4: Use the above dataset to train machine learning models, including multiple linear regression (MLR), partial least squares regression (PLSR), support vector machine (SVM), random forest (RF) and multi-task random forest (MRF) models, and optimize the hyperparameters of the above models;

[0070] (1) Support Vector Machine (SVM)

[0071] SVM is a supervised machine learning algorithm. For a data set with n data ,in represents the input parameter vector such as process parameters and fresh leaf image information, m represents the number of input parameters, The output parameter is the moisture content of tea leaves. Its SVR regression function can be expressed as the following formula:

[0072] (1)

[0073] In the formula, ω represents the weight vector of the feature, represents a function that maps data to a high-dimensional feature space through nonlinear transformation, and b represents the deviation. In order to find a suitable SVR regression function , the problem can be transformed into the following expression:

[0074] (2)

[0075] (3)

[0076] In the formula, C, ε i and They represent the penalty parameter and two slack variables respectively, δ represents the insensitive interval of the slack variables, and the Lagrangian function is used to solve it. The final result is the solution of the following function:

[0077] (4)

[0078] In the formula, α i , represents the Lagrange multiplier, b is a constant value, Represents the kernel function:

[0079] (5)

[0080] Where, X i and are two vectors in the input space, γ represents the kernel function coefficient, and common kernel functions include linear function, sigmoid function, and radial basis function. When establishing an SVR model for analysis, it is necessary to optimize the hyperparameters (C, δ, and γ).

[0081] (2) Partial Least Squares Regression (PLSR)

[0082] For k chemical compositions and water contents , m unit process parameters Data, the matrix composed of n samples of data is and In order to study the relationship between the independent variable and the dependent variable, the first principal component is extracted from X, which should contain as much information as possible about the original data, and then a linear regression equation is established between the principal component and Y. If the accuracy of the regression equation meets the requirements, the algorithm terminates; otherwise, the second principal component is extracted from the remaining independent variables and the equation is established until the accuracy meets the requirements. The specific calculation steps of PLSR are divided into principal component decomposition and correlation matrix B calculation. The specific formula is as follows: Decompose the X and Y matrices into characteristic factors:

[0083] (6)

[0084] Where T and U represent the principal component score matrices of matrices X and Y, respectively; P and Q represent the loading matrices of X and Y, respectively; E and F represent the error matrices of X and Y in the fitting process, respectively; the linear regression model is established using matrices T and U; and B represents the correlation matrix.

[0085] (7)

[0086] (8)

[0087] (3) Multiple linear regression

[0088] The multiple linear regression method is used to obtain the fitting relationship between variables, which can be used to describe how a single dependent variable linearly depends on multiple predictor variables. Multiple linear regression with n predictor variables can be written as:

[0089] (9)

[0090] In the formula, x represents the process parameters of each unit and the fresh leaf image information, y represents the moisture content after processing, β0, β 1, β 2,…, β n represents the polynomial coefficient, and ε represents the residual term of the regression model.

[0091] The above machine learning model and the preprocessed process parameter data set were divided into a training set and a test set according to an 8:2 ratio, and the above model was trained, and the model hyperparameters were optimized using the grid optimization method; the optimal hyperparameters of each unit moisture content prediction model are shown in Table 2, and the hyperparameter optimization results of the chemical composition prediction model are shown in Table 3. The random forest optimization hyperparameters are: the number of decision trees (n_estimators), the maximum depth of the decision tree (max_depth), and the minimum number of samples required for node splitting (min_samples_split); for support vector machine regression, the optimized hyperparameters are: regularization parameter C, kernel function coefficient γ, and kernel function kernel; for partial least squares regression, the optimized hyperparameters are: the number of principal components n.

[0092] Table 2 Hyperparameter optimization results of moisture content prediction model

[0093]

[0094] Table 3. Hyperparameter optimization results of chemical composition prediction model

[0095]

[0096] Step S5: Based on the above data set, features and hyperparameter optimization results, a moisture content prediction model for each unit and multiple chemical component prediction models for the final raw tea are established, the prediction model performance is evaluated according to RMSE and R2, and the machine learning model with the best performance is selected to represent the relationship between process parameters and moisture content and chemical composition;

[0097] The results are shown in Tables 4 and 5. Among the accuracy of each unit model, the performance of the rolling unit is the best, and its best model is PLSR. The best model for killing green, primary baking, and repeated baking is SVM. By comparing the RF and SVM models, on task1 and task3, the RF model obtained the test set R 2 It is better than the SVM model, but the performance of the model on task2 is the opposite. The two models have their own advantages and disadvantages. Compared with the multi-task MRF model, the prediction performance of the single-task model in each task is worse than that of the multi-task model.

[0098] Table 4 Prediction results of tea moisture content by different models

[0099]

[0100] Table 5 Prediction results of different models for multiple chemical components of tea

[0101]

[0102] Step S6: Based on the process parameters and target relationship (moisture content, chemical composition) in step S5, with the moisture content of each unit and the chemical composition of raw tea as the target, use a heuristic algorithm to optimize the process parameters, and apply the optimization results to the tea production line control software to achieve high-quality tea production.

[0103] Through the multi-objective particle swarm algorithm, according to the conditions of fresh tea leaves and the set production goals (moisture content of each unit and multiple chemical components of raw tea), the process parameters of each unit are optimized with the actual application range of the process parameters of each unit as the constraint condition, and the production of each lower machine is controlled by the production line control software.

[0104] like Figure 6 As shown, a data-driven collaborative control system for parameters of a tea primary processing production line is implemented through tea production line control software, specifically controlling the software architecture block diagram. The system includes an acquisition module, a preprocessing module, a data screening module, a machine learning module, a prediction module, and a control module.

[0105] The acquisition module is used to obtain multiple unit data sets of the tea primary processing production line, including the process parameters of each unit, the moisture content before and after processing, the fresh leaf image information, the quality of the raw tea and the content of multiple chemical components of the final raw tea; the acquisition module includes a camera body 1, a camera lens 4 and an annular light source 5, the camera body 1 is connected to the camera lens 4, and the annular light source 5 is arranged around the camera lens 4, and the information used to obtain the fresh leaf image includes the color characteristics and texture characteristics of the fresh tea leaf image, wherein the color characteristics include HSV, LAB and RGB, and the texture characteristics include the mean, standard deviation, smoothness, third-order moment, consistency and entropy of the fresh tea leaf image.

[0106] The multiple units of the tea primary processing production line include the withering unit, the rolling drying unit, the primary drying unit, and the re-drying unit. The moisture content of these four units varies greatly and is highly correlated with the formation of quality. The process parameters of the withering unit and the rolling drying unit include temperature, drum speed, feeding speed, and dehumidification speed. The process parameters of the rolling drying unit also include hot air temperature and hot air speed. The process parameters of the primary drying unit and the re-drying unit include hot air temperature, oil inlet temperature, oil outlet temperature, main conveying speed, hot air speed, and leaf uniforming speed.

[0107] The acquisition module also includes an ultra-high performance liquid chromatography instrument, which is used to obtain ultra-high performance liquid chromatography of standard solutions of raw tea chemical components, and calculate the content of chemical components in tea according to the standard curve and peak area. The chemical components of raw tea include gallic acid GA, catechin C, epicatechin EC, epigallocatechin EGC, epicatechin gallate ECG, epigallocatechin gallate EGCG, theanine L-The and caffeine CAF.

[0108] The preprocessing module preprocesses the plurality of unit data sets to remove erroneous data and reduce the impact of equipment shortage and noise on the model building results.

[0109] The data screening module removes data that is basically unchanged and / or has the same change trend according to the changes in the data of each unit during the production process, and predicts the importance of process parameters and fresh leaf image information to the corresponding moisture content and chemical composition through machine learning, and deletes data with low importance. For chemical components, those related to the quality are selected, which have no value for prediction and optimization.

[0110] A machine learning module is used to establish the relationship between the screened process parameters and fresh leaf image information, and the moisture content and screened quality-related chemical components.

[0111] The prediction module, based on the machine learning model, establishes a moisture content prediction model for each unit and multiple chemical component prediction models for the final raw tea. The performance of the prediction model is evaluated according to RMSE and R2, and the machine learning model with the best performance is selected to represent the relationship between process parameters and moisture content and chemical composition. Taking the moisture content of each unit and the chemical composition of raw tea as the target, the process parameters are optimized based on the fresh leaf image information to obtain the optimized results.

[0112] The control module applies the optimization results to the software parameter control of the tea primary processing production line to achieve high-quality tea production.

[0113] The system uses C# language to write the computer control program for the tea production line. When the computer program is executed by the processor, it has the following functions:

[0114] Data interaction function: Data interaction is performed on multiple sensor devices and touch screen devices in the production workshop. In terms of hardware, we use Ethernet and RS485 respectively, and in terms of communication protocols, we choose MOBUS TCP / IP and serial communication protocols to communicate with the above devices.

[0115] Data collection function: During the operation of the tea production line, each production equipment will generate a large amount of process parameter data. In order to realize the management of production process parameters and data sharing, the data is saved in the MySql database. According to production needs, the MySql database is designed, including multiple unit process parameters and user information databases.

[0116] Parameter optimization module: For the above-mentioned machine learning model, the machine learning model is saved as a file through the joblib library, imported and applied in the computer program, and the multi-objective optimization algorithm is embedded in the program. In actual application, the program can optimize multiple unit process parameters according to the fresh tea leaves and production goals, and send them to the lower computer to produce tea.

[0117] Of course, the above description is only a specific embodiment of the present invention and is not intended to limit the scope of implementation of the present invention. All equivalent changes or modifications made according to the structure, characteristics and principles described in the patent application scope of the present invention should be included in the patent application scope of the present invention.

[0118] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A data-driven collaborative control method for parameters of a tea primary processing production line, characterized in that The steps include: Step S1: obtaining multiple unit data sets of the tea primary processing production line, including process parameters of each unit, moisture content before and after processing, fresh leaf image information, quality of raw tea, and multiple chemical component contents of the final raw tea; Step S2: preprocessing the multiple unit data sets; Step S3: data screening; According to the changes in the data of each unit during the production process, the data that does not change substantially and / or has the same change trend is removed, the importance of the process parameters and fresh leaf image information to the corresponding moisture content and chemical components is predicted through machine learning, and the data with low importance is deleted, wherein the characteristic importance of each chemical component is calculated through the SHAP method, a correlation coefficient diagram between the process parameters and the chemical components is constructed, and the chemical components related to the quality are selected; Step S4: construct a machine learning model, establish the relationship between the screened process parameters and the fresh leaf image information and moisture content, and establish the relationship between the screened process parameters and the moisture content and quality-related chemical components; The machine learning model includes partial least squares regression (PLSR), for k chemical components and moisture content , m Unit process parameters Data, the matrix composed of n samples of data is and ,from X Extract the first principal component, and then establish the principal component and Y If the linear regression equation between , the algorithm terminates if the accuracy of the regression equation meets the requirements; otherwise, X Extract the second principal component and establish the equation until the accuracy reaches the required level. The specific calculation of PLSR includes principal component decomposition and correlation matrix B Calculation, principal component decomposition is X , Y The matrix is ​​decomposed into characteristic factors. The specific formula is as follows: , In the formula, T and U Respectively represent matrices X and Y The principal component score matrix of P and Q Respectively X and Y The loading matrix, E , F Respectively X and Y The error matrix during the fitting process; , , Using the Matrix T and U Build a linear regression model. B represents the incidence matrix; Machine learning models include multiple linear regression (MLR), for n The multiple linear regression formula for predictor variables is as follows: , In the formula, x Indicates the process parameters and fresh leaf image information of each unit, y Indicates the moisture content after processing, β 0, β 1, β 2,…, β n represents the polynomial coefficients, ε represents the residual term of the regression model; Step S5: Based on the machine learning model, a moisture content prediction model for each unit and multiple chemical component prediction models for the final raw tea are established; Step S6: According to the prediction model, taking the moisture content of each unit and the chemical composition of raw tea as the target, based on the fresh leaf image information, and taking the actual application range of the process parameters of each unit as the constraint condition, optimize the process parameters, and apply the optimization results to the parameter control of the tea primary processing production line.

2. The data-driven collaborative control method for parameters of a tea primary processing production line according to claim 1, characterized in that: The multiple units in step S1 include a fixing unit, a rolling drying unit, a primary drying unit, and a re-drying unit; the process parameters of the fixing unit and the rolling drying unit include temperature, drum speed, feeding speed, and dehumidification speed, wherein the process parameters of the rolling drying unit also include hot air temperature and hot air speed, and the process parameters of the primary drying unit and the re-drying unit include hot air temperature, oil inlet temperature, oil outlet temperature, main conveying speed, hot air speed, and leaf uniformity speed; Fresh leaf image information includes color features and texture features of fresh tea leaf images, where color features include HSV, LAB and RGB, and texture features include mean, standard deviation, smoothness, third-order moment, consistency, and entropy of fresh tea leaf images; The quality of raw tea is graded based on the appearance and internal quality of the tea leaves. The appearance includes the tea leaves’ strands, color, wholeness, and clarity, while the internal quality includes the tea’s soup color, aroma, flavor, and leaf base. The chemical components of raw tea include gallic acid GA, catechin C, epicatechin EC, epigallocatechin EGC, epicatechin gallate ECG, epigallocatechin gallate EGCG, theanine L-The and caffeine CAF. The above chemical component standards are prepared into standard solutions, and the contents of chemical components in tea are calculated according to the standard curve and peak area based on liquid chromatography of the standard solutions.

3. The data-driven collaborative control method for parameters of a tea primary processing production line according to claim 1, characterized in that: The preprocessing in step S2 includes missing value processing and outlier processing; missing values ​​are partially missing data in the data collection process, and the corresponding batch of tea production data containing missing values ​​is removed, and the average value of the remaining data is used to represent the process parameters of the batch; Outliers are values ​​that deviate significantly from the true data.

4. The data-driven collaborative control method for parameters of a tea primary processing production line according to claim 1, characterized in that: The machine learning model in step S4 includes a support vector machine SVM, and its SVR regression function for a set of data sets is as follows: , , In the formula, ω represents the weight vector of the feature, C , ε i and denote the penalty parameter and two slack variables respectively, δ represents the insensitive interval of the slack variable, X i represents the feature vector of process parameters and fresh leaf image information in the dataset, y i represents the corresponding tea moisture content feature vector, n represents the number of eigenvectors; Solve using the Lagrangian function: , In the formula, α i , denotes two Lagrange multipliers, b Indicates deviation, Represents the kernel function: , In the formula, X i and are two eigenvectors in the input space, γ Represents the kernel function coefficient.

5. A data-driven collaborative control system for parameters of a tea primary processing production line, including an acquisition module, a preprocessing module, a data screening module, a machine learning module, a prediction module and a control module, characterized in that: The acquisition module acquires multiple unit data sets of the tea primary processing production line, including process parameters of each unit, moisture content before and after processing, fresh leaf image information, quality of raw tea, and multiple chemical component contents of the final raw tea; The preprocessing module preprocesses the multiple unit data sets; The data screening module removes substantially unchanged data and / or data with the same change trend according to the change of each unit data in the production process, predicts the importance of process parameters and fresh leaf image information to the corresponding moisture content and chemical components through machine learning, and deletes data with low importance, wherein the characteristic importance of each chemical component is calculated through the SHAP method, a correlation coefficient diagram between process parameters and chemical components is constructed, and chemical components related to the quality are selected; The machine learning module is used to establish the relationship between the screened process parameters and the fresh leaf image information and the moisture content, and to establish the relationship between the screened process parameters and the moisture content and chemical components related to quality; The machine learning model includes partial least squares regression (PLSR), for k chemical components and moisture content , m Unit process parameters Data, the matrix composed of n samples of data is and ,from X Extract the first principal component, and then establish the principal component and Y If the linear regression equation between , the algorithm terminates if the accuracy of the regression equation meets the requirements; otherwise, X Extract the second principal component and establish the equation until the accuracy reaches the required level. The specific calculation of PLSR includes principal component decomposition and correlation matrix B Calculation, principal component decomposition is X , Y The matrix is ​​decomposed into characteristic factors. The specific formula is as follows: , In the formula, T and U Respectively represent matrices X and Y The principal component score matrix of P and Q Respectively X and Y The loading matrix, E , F Respectively X and Y The error matrix during the fitting process; , , Using the Matrix T and U Build a linear regression model. B represents the incidence matrix; Machine learning models include multiple linear regression (MLR), for n The multiple linear regression formula for predictor variables is as follows: , In the formula, x Indicates the process parameters and fresh leaf image information of each unit, y Indicates the moisture content after processing, β 0, β 1, β 2,…, β n represents the polynomial coefficients, ε Residual term of the regression model; the prediction module, based on the machine learning model, establishes a moisture content prediction model for each unit and multiple chemical component prediction models for the final raw tea; takes the moisture content of each unit and the chemical components of the raw tea as the target, based on the fresh leaf image information, takes the actual application process parameter range of each unit as the restriction condition, optimizes the process parameters, and obtains the optimization result; The control module applies the optimization result to the parameter control of the tea primary processing production line.

6. The data-driven collaborative control system for parameters of a tea primary processing production line according to claim 5 is characterized in that: The acquisition module comprises a camera body (1), a camera lens (4) and an annular light source (5), wherein the camera body is connected to the camera lens (4), and an annular light source (5) is arranged around the camera lens (4), and is used to acquire information of the fresh leaf image, including color features and texture features of the fresh tea leaf image, wherein the color features include HSV, LAB and RGB, and the texture features include the mean, standard deviation, smoothness, third-order moment, consistency and entropy of the fresh tea leaf image.

7. The data-driven collaborative control system for parameters of a tea primary processing production line according to claim 5 is characterized in that: The multiple units of the tea primary processing production line include a withering unit, a rolling and drying unit, a primary drying unit, and a re-drying unit; the process parameters of the withering unit and the rolling and drying unit include temperature, drum speed, feeding speed, and dehumidification speed, wherein the process parameters of the rolling and drying unit also include hot air temperature and hot air speed, and the process parameters of the primary drying unit and the re-drying unit include hot air temperature, oil inlet temperature, oil outlet temperature, main conveying speed, hot air speed, and leaf leveling speed.

8. The data-driven collaborative control system for parameters of a tea primary processing production line according to claim 5 is characterized in that: The acquisition module also includes an ultra-high performance liquid chromatography instrument, which is used to obtain ultra-high performance liquid chromatography of a standard solution of raw tea chemical components, and calculate the content of chemical components in the tea according to the standard curve and peak area. The chemical components of the raw tea include gallic acid GA, catechin C, epicatechin EC, epigallocatechin EGC, epicatechin gallate ECG, epigallocatechin gallate EGCG, theanine L-The and caffeine CAF.