A production control method and system for a meal replacement nutritional product production line

Through the combination of the LightGBM decision tree model and the PID controller, the adaptive adjustment of the automatic production line of meal replacement nutrition products is realized, the problem of process parameter imbalance is solved, and the product quality and production efficiency are improved.

CN118134334BActive Publication Date: 2024-09-20BEIJING BOSHUIKE BIOTECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410306936.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-18
Publication Date
2024-09-20
Estimated Expiration
2044-03-18

AI Technical Summary

Technical Problem

Existing technology makes it difficult to achieve automatic detection and automatic adjustment in the automated production lines of meal replacement nutrition products, resulting in imbalance of process parameters and affecting product quality.

Method used

Using the LightGBM decision tree model combined with the PID controller, the baking parameters are automatically adjusted by predicting the gelatinization degree and color quality of the meal replacement products, and an adaptive correction mechanism is established to correct production errors and environmental impacts.

Benefits of technology

It has achieved the stability of the quality of meal replacement nutrition products and improved production efficiency, reduced production waste and rework costs caused by quality problems, and improved consumer satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118134334B
    Figure CN118134334B
Patent Text Reader

Abstract

The present invention discloses a production control method and system for a meal replacement nutritional product production line; the present invention relates to the technical field of meal replacement nutritional products; the LightGBM decision tree model includes: a regression model, a specified loss function and a hyperparameter θ, wherein the hyperparameter θ includes conditions for tree depth, leaf nodes and split nodes. The regression model will try to fit the input feature (in the present invention, the vector U new ) and the target variable (in the present invention, the gelatinization degree Dt+1 of the sample at the next time step); the loss function is used to quantify the difference between the model prediction and the actual target variable. The present invention uses the LightGBM decision tree model to predict the gelatinization degree and color quality of meal replacement products at the next time step, so as to understand the baking effect of the product in advance. By incorporating this system into the existing meal replacement production line, the production quality of each batch of meal replacement products can be predicted, and then an adaptive adjustment mechanism can be implemented to regulate the product production quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of meal replacement nutritional products, in particular to the field of production and preparation of meal replacement powder with superfine powder of buckwheat and highland barley as main raw materials, and in particular to a production control method and system for a meal replacement nutritional product production line. Background Art

[0002] Meal replacement products refer to foods that can quickly and conveniently provide the human body with a variety of necessary nutrients, allowing them to completely or partially replace regular meals. Currently, meal replacement foods mainly come in the form of meal replacement powders, meal replacement porridge, meal replacement bars, and meal replacement milkshakes.

[0003] Buckwheat and highland barley are rich in bioactive substances and have been shown to have the effects of lowering blood sugar, lowering blood lipids, and resisting oxidative damage. [2-4] However, since buckwheat and highland barley are both coarse grains with the disadvantages of being rough in taste and difficult to cook, their commercialization and production as meal replacement nutritional supplements are somewhat difficult.

[0004] Taking buckwheat and highland barley meal replacement powder as an example, their preparation process is relatively simple: the staple food (fine grain), buckwheat and highland barley are fed and mixed into a hammer cyclone mill according to a certain ratio through independent spiral feeders, and then ground into superfine powder of miscellaneous grains, and then prepared through the corresponding baking process and packaging process. [6] However, due to their poor taste, rough texture and difficulty in mixing, most traditional buckwheat and highland barley grain meal replacement powders have added a large proportion of refined grains to improve the overall mixing properties, organizational form and flavor of the meal replacement powders. However, this also leads to a decrease in the grain content in the grain meal replacement powders, affecting the nutritional value and functional value of the product. [5] . At the same time, it is not friendly to patients with high blood sugar or obese people.

[0005] In view of this, the mainstream development path and research hotspot of existing technologies are: Under the premise of ensuring the nutrition of buckwheat and highland barley (that is, not adding too much refined grains), the quality of compound grain meal replacement powder is improved by optimizing the preparation conditions. [6-8] .

[0006] For example, prior art [6] A set of experimental methods and experimental data were disclosed, which determined that under the process condition of maintaining the baking temperature at 160°C within 12 minutes, the nutritional taste between buckwheat and highland barley superfine powder can be balanced;

[0007] For example, the prior art [7] Disclosed are highland barley nutritious powder and a processing method thereof, which effectively improve the taste of the highland barley powder and simultaneously increase the water solubility of the highland barley nutritious powder, so that the highland barley powder can be eaten by brewing with boiling water, which is convenient and quick.

[0008] For example, the prior art [8] Disclosed are highland barley cordyceps grits nutritious powder and a preparation method thereof. Various raw materials are combined to produce good synergistic effects.

[0009] However, the above-mentioned prior arts all have the following technical problems: the above-mentioned prior arts are essentially improvements and optimizations of formulas, and their processing methods are only to gradually process and shape the raw materials and processes in a quantitative form. However, in the actual automated production line of meal replacement nutritional products (hereinafter referred to as the "production line"), multiple process stations are required to be executed in conjunction. When different process stations are responsible for one or more processes, it is easy for production errors to cause imbalance in process parameters (such as equipment failure, equipment operation errors, external environmental influences, or differences in raw material batches, etc.). If the quality of the meal replacement nutritional products produced can be automatically tested in the production line and an automated adjustment mechanism can be set, the adaptive correction mechanism of "detection-adjustment of production process" can be realized for the production line, effectively ensuring the quality of the meal replacement nutritional products produced by the production line.

[0010] To this end, the present invention proposes a production control method and system for a meal replacement nutritional product production line. Summary of the invention

[0011] In view of this, the embodiment of the present invention hopes to provide a production control method and system for a meal replacement nutritional product production line to solve or alleviate the technical problems existing in the prior art, namely, how to automatically test the quality of the meal replacement nutritional products produced in the production line, and set an automated adjustment mechanism to implement an adaptive correction mechanism of "detection-adjustment of production process" for the production line, to ensure the quality of the meal replacement nutritional products produced by the production line, and to provide at least a beneficial option for this; the technical solution of the embodiment of the present invention is implemented as follows:

[0012] In the first aspect, a production control method for a meal replacement nutritional product production line is provided:

[0013] 1. Introduction:

[0014] The present invention is based on the LightGBM decision tree model to predict the quality of meal replacement products in multiple production batches in the production line. Relying on the key gelatinization parameters and their color quality, the baking effect of the current meal replacement is evaluated, and then the baking condition of the meal replacement in the next time step is predicted. The PID controller algorithm is used to adjust the baking tray parameters in advance so that the produced meal replacement products always maintain a rational quality effect, correct the imbalance of process parameters caused by possible production errors (such as equipment failure, equipment operation errors, external environmental influences or raw material batch differences, etc.), and establish an adaptive correction mechanism of "detection-adjustment of production process" to ensure the quality of meal replacement products produced by the production line.

[0015] (II) Test plan:

[0016] First, based on the literature[9] The manual test method given is slightly modified as follows:

[0017] 2.1 Test method:

[0018] Weigh 1.00 g of highland barley powder and buckwheat powder (hereinafter referred to as "powder"), add 30 mL of boiling water and mix for 3 minutes, then add 20 mL of distilled water and mark it as A; accurately weigh 1.00 g of highland barley powder and buckwheat powder again, add 50 mL of distilled water, and mark it as B; take another bottle and add 50 mL of distilled water, mark it as C.

[0019] Among them, A is the test group, B is the control group, and C is the blank group. After adding 1 mL of 1% α-amylase solution to A, B and C respectively, place them in a 60 ℃ constant temperature water bath for 1h, add 3mL of 1mol / L dilute hydrochloric acid solution to inactivate the enzyme, and dilute the solution to 100mL for testing. Take 10mL of each of the three groups of test solutions, add 1 mol / L NaOH solution until the pH value of the solution is >7.0, add 5 mL of 1 mol / L iodine solution and stand in the dark for 10 min. Add 1 mL of 25% sulfuric acid solution, and titrate with 0.1 mol / L sodium thiosulfate solution until the blue color becomes lighter, then add starch indicator and titrate until the blue color disappears completely and remains unchanged for 5 min. Record the volume of sodium thiosulfate solution consumed by A, B and C. Construct a conversion formula for the gelatinization degree of the sample to obtain the gelatinization degree of the sample (D, %):

[0020] D=V2-V C / V1-V C ;

[0021] Among them, V C is the volume of sodium thiosulfate solution consumed by the blank group C, mL; V1 is the volume of sodium thiosulfate solution consumed by the titration test group A, mL; V2 is the volume of sodium thiosulfate solution consumed by the titration control group B, mL.

[0022] 2.2 Control logic:

[0023] The percentage value of the gelatinization degree D of the sample determines the ease of steaming and cooking of buckwheat and highland barley meal replacements, as well as their cooking characteristics. [6,9] . It directly reflects the quality problem of meal replacement products. According to the literature [6] According to the empirical formula, the ideal gelatinization degree is 85% to 95%, and the basic baking parameters include: the baking temperature is kept at 160°C within 12 minutes. Under this condition, the cooked highland barley superfine powder has almost no color change and has a unique aromatic smell; the cooked buckwheat superfine powder is slightly yellow in color, has no burnt smell and has a strong aroma.

[0024] Therefore, how to predict the sample gelatinization degree Dt+1 at the next time step t+1 based on the sample gelatinization degree Dt obtained in the current time step t, combined with the score of the current sample's appearance color as the correction factor α, and adjust the baking time of the electric blast drying oven based on this control, so as to realize the adaptive correction mechanism of "detection-adjustment of production process" for the production line and ensure the quality of meal replacement nutritional products produced by the production line.

[0025] (III) Technical solution:

[0026] The present invention selects to establish a LightGBM decision tree model (a gradient boosting decision tree (GBDT)): Compared with the traditional XGBoost gradient model, the LightGBM decision tree model uses two new technologies of tree-based learning algorithms: gradient-based one-side sampling (GOSS) and / or exclusive feature bundling (EFB) to reduce the amount of data and the number of features, thereby speeding up training and reducing memory usage. It has certain preferences for rapid production and large-scale application of production lines. In each production batch, the present invention selects samples of the meal replacement nutritional products composed of baked buckwheat and barley, and then executes the following steps S1 to S6.

[0027] 3.1 Step S1, data initialization:

[0028] The vector U of collected data includes the gelatinization degree Dt of the samples at different time steps, the score of appearance color α and the corresponding baking time Bt. The vector U is updated to U through feature engineering new , and then allocate the data set D.

[0029] The vector U of collected data can be the data of the previous production batches of the production line. For example, if the daily production capacity of a production line is 50 batches, and each batch produces a total of 1,000 cans of meal replacement products, then the training vector U can select the data of the first 1 to 5 batches, and these vectors U will be used to train the model; the construction process of vector U is:

[0030] U = [Dt, α, Bt];

[0031] Then feature engineering is performed. The present invention selects interactive feature engineering, the purpose of which is to improve the performance of the model. In the scheme of the present invention, there are three original features: sample gelatinization degree (Dt), appearance color score (α) and baking time (Bt); the interactive feature engineering is:

[0032] 1) Interaction feature F1: F1=Dt×α;

[0033] 2) Interaction feature F2: F2=Dt×Bt;

[0034] 3) Interaction feature F3: F3 = α × Bt;

[0035] Then update vector U to vector U new :

[0036] ;

[0037] Among them, U new is a new feature vector containing the original features and all interaction features.

[0038] 3.2 Step S2, build the LightGBM decision tree model:

[0039] The LightGBM decision tree model includes: a regression model, a specified loss function, and a hyperparameter θ, wherein the hyperparameter θ includes conditions for tree depth, leaf nodes, and split nodes.

[0040] The regression model will try to fit the input features (in this invention, the vector U new ) and the target variable (in this invention, the gelatinization degree of the sample at the next time step Dt+1); the loss function is used to quantify the difference between the model prediction and the actual target variable. The tree depth hyperparameter and the leaf node hyperparameter determine the structural complexity of the decision tree.

[0041] 3.2.1 Step S200, establishing a regression model:

[0042] When a regression model is used for regression tasks, its goal is to predict a continuous value. The basic regression model can be expressed as a function F(U new ), F(U new ) is constrained by rules that update the model's predicted values, which outputs the continuous value predicted by the model.

[0043] 3.2.1.1 Step S2000, the regression model further constructed using the gradient boosted tree (GBDT) algorithm is:

[0044] ;

[0045] in:

[0046] F(U new ) is the final prediction model, which is a vector of input features (U new ) function;

[0047] F0(x) is the initial model and can be set to a constant (e.g. the mean of the target variable);

[0048] M is the number of boosting iterations, i.e. the number of decision trees;

[0049] βm is the weight of the mth decision tree, which is determined by an optimization algorithm (such as line search). However, in many implementations, the weights of all trees are set to 1 for simplicity;

[0050] h m (U new ) is a new decision tree, which is the input feature (vector U new )’s predicted output.

[0051] In each iteration, the new decision tree h m (U new ) is trained to fit the residuals of the current model:

[0052] ;

[0053] in:

[0054] i is a sample, each sample includes a test group A, a control group B and a blank group C;

[0055] r mi is the residual of the i-th sample at the m-th iteration;

[0056] y i is the true target value of the i-th sample;

[0057] F m-1 (U new i) is the cumulative prediction value of the first m-1 decision trees for the i-th sample.

[0058] 3.2.1.2 Step S2001, define the rules for updating the prediction value of the model:

[0059] The new decision tree h m (U new ) is added to the model and the model's predictions are updated:

[0060] ;

[0061] Among them, F m-1 (U new ) is the cumulative prediction value of the first m-1 decision trees for the sample.

[0062] In order to prevent overfitting and improve the generalization ability of the model, some regularization techniques such as subsampling and feature subsampling can be introduced.

[0063] 3.2.2 Step S201, specify the loss function:

[0064] Specify the loss function as Mean Squared Error (MSE);

[0065] For a given dataset D:

[0066]

[0067] Among them, Dt+11,Dt+12,...,Dt+1 n is the vector U new 1,U new 2,...,U new The target value corresponding to n;

[0068] The mean square error loss function MSE(D) is:

[0069] ;

[0070] in, is the model's predicted value for the i-th sample.

[0071] 3.2.3 Step S202, define gradient boosting and decision tree:

[0072] The LightGBM decision tree model uses the gradient boosting method to gradually fit the target function. In each step of the boosting iteration, it builds a new decision tree h m (U new ) to fit the residuals of the current model (i.e., the difference between the actual value and the current predicted value).

[0073] New decision tree h m (U new ) is associated with a value (considered as a continuous value in the regression task). Through iteration, the entire new decision tree h m (U new ) can be expressed as the function T(U new ;θ), where θ is the tree parameters (including tree depth, leaf nodes, and conditions for splitting nodes). The new decision tree h m (U new ) is expressed as:

[0074] ;

[0075] Where J is the number of leaf nodes, w j is the value of the jth leaf node, R j is a region of the feature space associated with the jth leaf node, and I(·) is an indicator function (1 if the condition holds, 0 otherwise).

[0076] Under the framework of gradient boosting, the final prediction function F of the LightGBM decision tree model M (U new ) is represented as the accumulation of multiple decision trees:

[0077] ;

[0078] Where M is the number of trees (i.e., the number of boosting iterations), θ m is the parameter of the mth decision tree.

[0079] 3.3 Step S3, training LightGBM decision tree model:

[0080] For a given data set D, the training goal of the LightGBM decision tree model is to minimize the error loss function MSE(D); in each iteration, the LightGBM decision tree model constructs a new decision tree h m (U new ), and calculate the corresponding leaf node weight w m,j :

[0081] ;

[0082] Among them, I j is the index set of all training samples on leaf node j. i is the target value of the current sample i (i.e., the gelatinization degree of the sample in the next time step). j ∣ is the number of samples on leaf node j.

[0083] This formula actually calculates the average of all sample target values ​​on leaf node j as the weight of the leaf node. In regression tasks, this weight is used as a prediction value, and when a new input vector falls into the leaf node, the model uses this weight as the output. These weights are set to minimize the loss function (such as mean square error MSE). For regression tasks, the weight of a leaf node usually represents the average or weighted average of all training sample target values ​​on the node.

[0084] Specifically, at each step in building a decision tree, the algorithm tries to split the node on different features in order to maximize the gain (such as information gain or Gini gain). Once the structure of the decision tree is determined, each leaf node contains a set of training samples. Then, the sum (or weighted sum) of the target values ​​of the samples on each leaf node can be calculated and divided by the number of samples on the leaf node to get the weight of the leaf node.

[0085] Then, add this new decision tree to the regression model:

[0086] ;

[0087] After each iteration, the model's predicted value is updated to F m (U new ). After reaching the predetermined number of iterations, the iteration stops.

[0088] During the training process, the LightGBM decision tree model framework provides the following adopted technologies:

[0089] 1) Gradient-based single-side sampling (GOSS): It retains samples with larger gradients (i.e., those that contribute more to model training) and randomly samples a portion of samples with smaller gradients. This can reduce the amount of data during training while maintaining the accuracy of the model as much as possible. The core idea is to determine the retention and sampling probability of samples based on the size of the gradient.

[0090] Specifically, in GOSS, samples are first sorted according to their absolute values ​​of gradients. Then samples with larger gradients (e.g., the top a% of samples) are retained, and a portion of the remaining samples (e.g., b% of samples) are randomly sampled. Finally, these two portions of samples are combined for training. When calculating information gain, GOSS also adjusts the weights of the sampled samples to compensate for the bias caused by sampling.

[0091] 2) Exclusive Feature Bundling (EFB): EFB is a feature bundling method that reduces the number of features by bundling mutually exclusive features (i.e., features that do not take non-zero values ​​at the same time), thereby speeding up the training process and reducing memory usage.

[0092] Specifically, in EFB, a graph is first constructed, where each node represents a feature and each edge connects mutually exclusive features. Then, a graph coloring algorithm or a greedy algorithm is used to find groups of features that can be bundled together. Finally, these feature groups are regarded as new features for model training.

[0093] 3.4 Step S4, using LightGBM decision tree model:

[0094] Test the subsequent batches of meal replacement products. For the meal replacement products in the current production batch, the trained LightGBM decision tree model is used, combined with the final prediction function F M (U new ) predicts the gelatinization degree Dt+1 of the sample at the next time step t+1:

[0095] Assume that the model contains M decision trees. For the input vector U new , the prediction result of the mth decision tree is h m (U new), then the final prediction value of the model (sample gelatinization degree Dt+1) is calculated by the following formula:

[0096] ;

[0097] Among them, β m is the weight of the mth decision tree, which is set to 1 in LightGBM unless a specific weight adjustment strategy is used. m (U new ) represents the input vector U new The weight of the leaf node in the mth decision tree.

[0098] It should be noted that the above weighted summation process simplifies the final prediction function F M (U new ). Because in the actual prediction process, for a given input vector U new , the LightGBM decision tree model will pass it to each decision tree T(U new ; θ m ), and calculate the corresponding output value based on the parameters of each decision tree (including the structure of the tree and the weight of the leaf nodes). Then, these output values ​​are accumulated to obtain the final prediction result (i.e., F M (U new ), also regarded as the predicted value of Dt+1). Because each decision tree T(U new ; θ m ) is actually the weight of the leaf node where the input vector falls in the tree. Therefore, accumulating the output values ​​of multiple decision trees is equivalent to accumulating the weights of multiple leaf nodes.

[0099] 3.5 Step S5, correcting baking temperature deviation:

[0100] By predicting the gelatinization degree Dt+1 of the sample at the next time step t+1, the temperature parameters of the electric hot air drying oven are adjusted based on the PID (proportional-integral-differential) controller to achieve the ideal gelatinization degree, which needs to be combined with the current deviation of the gelatinization degree, the accumulation of historical deviations, and the trend of the deviation. The PID controller adjusts the control output by combining these three aspects to minimize the deviation from the target value:

[0101] ;

[0102] Where: dτ is the time increment; △T(t) is the temperature adjustment at time step t; e(t) is the gelatinization degree deviation at time step t, i.e., the target gelatinization degree D target The difference between the predicted gelatinization degree Dt+1 and K pis the proportional gain, which is used to adjust the control output proportional to the current deviation; K i is the integral gain, which is used to adjust the control output proportional to the historical deviation accumulation. The integral term can help eliminate long-term steady-state errors; K d is the differential gain, which is used to adjust the control output proportional to the rate of change of the deviation. The differential term can respond to the changing trend of the deviation in advance and increase the stability of the system.

[0103] However, considering that the effect of adjusting the temperature once may not be ideal, and directly calculating the differential term in an actual control system is more dependent on computing resources, the present invention further proposes a discrete time PID controller for the characteristics of the above technical solution.

[0104] In discrete time form, the integral term and the differential term can be approximated by the accumulation and difference of the deviation signal. In this way, for the gelatinization degree deviation e(t), the PID controller can gradually approach the temperature parameter to be adjusted in a step-by-step (discrete) form with a certain step length. The formula of the discrete time PID controller is as follows:

[0105] ;

[0106] Where: △T(k) is the temperature adjustment at discrete time step k; e(k) is the gelatinization deviation at discrete time step k; e(k)=D target -Dt+1; △t is the discrete time step; e(k-1) is the gelatinization degree deviation at the previous discrete time step k-1; e(j) represents the gelatinization degree deviation at the jth discrete time step, that is, e(j) is the difference between the target gelatinization degree and the predicted gelatinization degree Dt+1 at this time step.

[0107] 3.6 Step S6, repeat:

[0108] Repeat steps S4 to S5 until the production line has completed the production of all batches of meal replacement products.

[0109] In the second aspect, a production control system for a meal replacement nutritional product production line includes a controller and a casing 1 as a large whole machine; the casing 1 is installed with:

[0110] An XZ axis linear module 5, the XZ axis linear module 5 is used to drive at least three test units 7 to move along the X or / and Z axis direction, the test units 7 represent the experimental group A, the control group B and the blank group C in the production control method as described above, and the test units 7 are used to contain and stir the meal replacement nutrition powder;

[0111] Y-axis linear module 4, the Y-axis linear module 4 is used to drive the frame 3 to rise and fall along the height direction, the middle part of the frame 3 is provided with a testing-detecting mechanism 9 for dripping sodium hydroxide solution (hereinafter referred to as NaOH solution), iodine solution, sulfuric acid solution and sodium thiosulfate solution into the testing unit 7, and for visually detecting the state of the meal replacement nutrition powder, and the left and right ends of the frame 3 are symmetrically provided with clamping-sampling mechanisms 8 for clamping and placing the meal replacement nutrition, and for extracting the meal replacement nutrition powder from the meal replacement nutrition;

[0112] A water supply tank group 6, the water supply tank group 6 is used to drip boiling water, warm water, distilled water, α-amylase solution and dilute hydrochloric acid solution into the test unit 7;

[0113] The front and rear ends of the assembly line 2 are used to connect the assembly line devices in the front-end process device and the back-end process device of the meal replacement nutritional product production line. The canned meal replacement nutritional products are connected to the front and rear of the assembly line 2. When they flow into the production control system, the can of the meal replacement nutritional products is clamped by the test-detection mechanism 9, and then the meal replacement nutritional product powder is sampled and placed in the test unit 7, and then the test-detection mechanism 9 is put back to the assembly line 2, and the assembly line 2 transports the meal replacement nutritional products to the back-end process device;

[0114] It also includes a controller, which is connected to a memory, in which program instructions are stored. When the program instructions are executed by the controller, the production control system is used to execute the production control method as described above.

[0115] In one embodiment, the Y-axis linear module 4 is preferably a third servo electric cylinder; the third servo electric cylinder is arranged in a vertical form, and its cylinder body and piston rod are respectively fixed to the housing 1 and the frame 3; when the third servo electric cylinder is started, it pushes the frame 3 to adjust its height along the housing 1.

[0116] In one embodiment: the XZ axis linear module 5 includes a first servo electric cylinder 501, a first frame 502, a second servo electric cylinder 503 and a second frame 504;

[0117] The first frame 502 is slidably matched with the frame 3 along the X axis, and the second frame 504 is slidably matched with the first frame 502 along the Z axis;

[0118] The cylinder body and the piston rod of the first servo electric cylinder 501 are fixed to the frame 3 and the first frame 502 respectively; when the first servo electric cylinder 501 is working, it pushes the first frame 502 to slide along the X-axis.

[0119] The cylinder body and the piston rod of the second servo electric cylinder 503 are fixed to the first frame 502 and the second frame 504 respectively; when the second servo electric cylinder 503 is working, it pushes the second frame 504 to slide along the Z axis;

[0120] All the test units 7 are installed on the second frame 504 .

[0121] In one embodiment, the test unit 7 includes a rack 701 and a containing cup 703 placed in the rack 701; a vibrator 702 is provided in the rack 701; when the vibrator 702 is working, a vibration force is generated to act on the containing cup 703; when any solution or / and meal replacement nutrition powder exists in the containing cup 703, the solution or the powder can be vibrated and stirred to mix;

[0122] At the same time, 2 to 5 groups of solenoid valves 704 are provided outside the storage rack 701 , the water inlet of the solenoid valve 704 is connected to the water supply tank group 6 through a hose, and the water outlet of the solenoid valve 704 is aligned with the inside of the accommodating cup 703 .

[0123] In one embodiment, the water supply tank group 6 includes at least five tank bodies, which are made of insulation material and store boiling water, warm water, distilled water, α-amylase solution and dilute hydrochloric acid solution in sequence. Each tank body is equipped with a liquid pump, which is fixed on the tank body, and its water inlet is connected to the tank body, and the water outlet is connected to the water inlet of the solenoid valve 704 through a hose.

[0124] In one embodiment, the clamping and sampling mechanism 8 includes a rotating module and a universal adjustment module, the rotating module is arranged on the frame 3, and the rotating module is used to adjust the universal adjustment module for pitch and horizontal angle adjustment;

[0125] The universal adjustment module drives the electric clamp claw 810 for clamping the meal replacement nutrition product and the electric syringe 811 for extracting the meal replacement nutrition product powder in the form of universal angle adjustment.

[0126] In one embodiment, the rotating module includes a first shell 801 fixed on the frame 3, a first servo motor 802 fixed in the shell 801 and used to adjust the second shell 803 for pitch angle adjustment, and a second servo motor 804 fixed in the second shell 803 for adjusting the universal adjustment module for relative horizontal angle adjustment.

[0127] In one embodiment, the universal adjustment module includes a receiving frame 805 as the overall shape of the module, and the receiving frame 805 is fixed on the output shaft of the second servo motor 804. The universal adjustment module also includes at least three linear actuator arms, which are connected to the platform 809 and control it to perform universal angle adjustment. The electric clamp claw 810 and the electric injector 811 are installed on the platform 809.

[0128] In one embodiment, each of the linear actuator arms includes a third servo motor 806 fixedly mounted on the accommodating frame 805, the output shaft of the third servo motor 806 is fixedly mounted with a first arm body 807, and the linear actuator arm also includes a second arm body 808 whose head and tail are respectively hinged to the first arm body 807 and the platform 809 through a universal joint coupling.

[0129] In one embodiment, the testing and detecting mechanism 9 includes an infusion pump 902 for dripping NaOH solution, iodine solution, sulfuric acid solution and sodium thiosulfate solution, and also includes a CCD industrial vision camera 903 for visually detecting the powder state of the meal replacement nutritional product. The infusion pump 902 and the CCD industrial vision camera 903 are both installed in a connecting shell 901, and the connecting shell 901 is fixed on the frame 3.

[0130] In one embodiment, a waste barrel 10 is also included, and the waste barrel 10 is arranged in the housing 1. After the whole machine test is completed, boiling water is used to rinse the containing cup 703 again to achieve cleaning, and the clamp-sampling mechanism 8 is used to pour it into the waste barrel 10.

[0131] Compared with the prior art, the present invention has the following beneficial effects:

[0132] 1. Adaptive adjustment mechanism of process parameters: The present invention uses the LightGBM decision tree model to predict the gelatinization degree and color quality of meal replacement products in the next time step, so as to understand the baking effect of the product in advance. This predictive ability helps to discover potential quality problems in a timely manner and avoid the production of substandard products. During the period, combined with the PID controller algorithm, the temperature parameters of the electric blast drying oven can be automatically adjusted according to the predicted gelatinization deviation. This adaptive adjustment mechanism can ensure that meal replacement products always maintain an ideal quality state during the baking process, and effectively correct the imbalance of process parameters caused by production errors (such as equipment failure, raw material batch differences, etc.).

[0133] 2. Automated detection process: In addition to providing the LightGBM decision tree model, the present invention also provides a matching detection system. By incorporating this system into the existing meal replacement production line, the production quality of each batch of meal replacements can be predicted, and then an adaptive adjustment mechanism can be implemented to regulate the product production quality. The detection process is highly automated, and the corresponding tests and experimental steps can be implemented without too much manpower, which greatly improves the detection efficiency and practical application effect.

[0134] 3. Improve production efficiency and product quality: The present invention can improve product quality by real-time monitoring and predicting the quality of meal replacement products and timely adjusting production process parameters. This reduces production waste and rework costs caused by quality problems, while improving consumer satisfaction with the product.

[0135] 4. Enhanced production flexibility: The present invention can adapt to the changes in different batches of raw materials and equipment status, and maintain the stability of product quality by automatically adjusting process parameters. This flexibility enables the production line to better cope with fluctuations in market demand and changes in the production environment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0137] Figure 1 Schematic diagram of the process of the present invention;

[0138] Figure 2 A perspective schematic diagram of the system of the present invention;

[0139] Figure 3 is a three-dimensional schematic diagram of the system of the present invention from another perspective;

[0140] Figure 4 It is a three-dimensional schematic diagram of the system of the present invention after removing the casing;

[0141] Figure 5 A perspective schematic diagram of the system of the present invention after removing the housing and the assembly line;

[0142] Figure 6 It is a three-dimensional schematic diagram of the system of the present invention from another perspective after removing the casing and the assembly line;

[0143] Figure 7 It is a three-dimensional schematic diagram of the clamping-sampling mechanism of the system of the present invention;

[0144] Figure 8 A three-dimensional schematic diagram of a test unit of the system of the present invention;

[0145] Fig. 9 A three-dimensional schematic diagram of a test-detection mechanism of the system of the present invention;

[0146] Fig.10 The present invention is a process flow chart of the present invention applied to the production line of meal replacement products.

[0147] Figure numerals: 1. casing; 2. assembly line; 3. frame; 4. Y-axis linear module; 5. XZ-axis linear module; 501. first servo electric cylinder; 502. first frame; 503. second servo electric cylinder; 504. second frame; 6. water supply tank group; 7. test unit; 701. storage rack; 702. exciter; 703. containing cup; 704. solenoid valve; 8. clamping-sampling mechanism; 801. first shell; 802. first servo motor; 803. second shell; 804. second servo motor; 805. containing rack; 806. third servo motor; 807. first arm; 808. second arm; 809. table; 810. electric clamp; 811. electric syringe; 9. test-detection mechanism; 901. connecting shell; 902. infusion pump; 903. CCD industrial vision camera; 10. waste barrel. DETAILED DESCRIPTION

[0148] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below;

[0149] Example 1: Please refer to Figure 1 and Fig.10 This specific embodiment provides a production control method for a meal replacement nutritional product production line; when in use, a supporting production line for producing meal replacement nutritional products composed of buckwheat and barley (hereinafter referred to as "meal replacement products" or "samples") is required, and it is preferred to use a system such as that provided in Example 5 of this specific embodiment as a hardware carrier.

[0150] In traditional technology, the processing method of meal replacement products is just to gradually process the raw materials and processes in a quantitative form. However, in the actual production line, multiple process stations need to be executed in a coordinated manner. When different process stations are responsible for one or more processes, it is easy to cause imbalance in process parameters due to production errors (such as equipment failure, equipment operation errors, external environmental influences or raw material batch differences, etc.). This embodiment hopes to correct the poor quality of meal replacement products caused by the above imbalance. In actual applications, it is necessary to select samples of buckwheat and highland barley meal replacement products from the production line and perform the following steps S1~S6.

[0151] In this embodiment, regarding step S1, data initialization: collect data vector U, including sample gelatinization degree Dt, appearance color score α and corresponding baking time Bt at different time steps. Update vector U to U through feature engineering new , and then allocate the data set D.

[0152] It should be pointed out that the above parameters are selected based on the following considerations:

[0153] 1) Sample gelatinization degree Dt: The gelatinization degree is an indicator to measure the degree to which starch particles are destroyed by water and heat during the processing of meal replacement products. It directly affects the taste and digestibility of the product;

[0154] 2) Appearance color score α: According to common life logic, when there is an error in the ratio or combination of buckwheat and highland barley with fine grains due to reasons such as raw material batch or grinding, their color will change, which will lead to a corresponding change in taste;

[0155] The standard of the score α of the appearance color is shown in the following table. The specific detection method is to classify and determine the CCD industrial vision camera 903 disclosed in the fifth embodiment through a conventional color detection algorithm.

[0156]

[0157] 3) Baking time Bt: Baking time is one of the key factors affecting the quality of meal replacement products. [5-6] According to the experimental data provided in the article, too short or too long baking time may result in poor product taste or loss of nutrients.

[0158] The vector U of collected data can be the data from the previous production batch of the production line. For example, if the daily production capacity of a production line is 50 batches, and each batch produces a total of 1,000 cans of meal replacement products, then the training vector U can select the data of the first 1 to 5 batches, and these vectors U will be used to train the model; the construction process of vector U is: U=[Dt,α,Bt]; then feature engineering is performed. This embodiment selects interactive feature engineering to improve the performance of the model.

[0159] Specifically, interactive feature engineering can capture the interaction between the original features, thereby providing richer information for the model to learn and predict. Specifically, we generated three interactive features based on the original features: sample gelatinization degree (Dt), appearance color score (α) and baking time (Bt):

[0160] 1) Interaction feature F1: Interaction feature F1: F1=Dt×α. This feature reflects the interaction between the gelatinization degree and the appearance color of the sample. When the gelatinization degree and color scores are both high, it may mean that the product has a good taste and appearance quality; otherwise, it may indicate that the product quality is poor;

[0161] 2) Interaction feature F2: F2=Dt×Bt. This feature captures the relationship between the gelatinization degree and baking time of the sample. The length of baking time will directly affect the degree of gelatinization, which in turn affects the taste and nutritional content of the product. Therefore, this interaction feature helps the model understand the impact of baking time on gelatinization;

[0162] 3) Interaction feature F3: F3=α×Bt. This feature reflects the interaction between appearance color and baking time. Different baking times may lead to changes in product color, which in turn affects the appearance quality of the product. Through this interaction feature, the model can better understand the impact of baking time on product color.

[0163] Further, update vector U to vector U new :This new feature vector not only contains the original production parameter information, but also captures the interaction relationship information between these parameters through interactive feature engineering. This will help train more accurate and robust models for production control:

[0164] ;

[0165] Among them, U new It is a new feature vector that contains the original features and all interaction features.

[0166] It is understandable that by using the data of previous production batches for model training, the information in the historical data can be fully utilized to guide the current production process and achieve optimization and control of the production process. Using interactive feature engineering to process the original data can capture the interaction relationship information between the original features and improve the prediction accuracy and generalization ability of the model. This enables the model to better adapt to changes under different production conditions and achieve adaptive production adjustment. By continuously updating and optimizing the feature vector U new, which can realize real-time monitoring and dynamic adjustment of the production process. This helps to timely discover abnormal situations in the production process and take corresponding measures to intervene, ensuring that the quality of meal replacement products is stable and meets production requirements. At the same time, this also provides strong support for the continuous improvement and optimization of the production process.

[0167] Preferably, the python execution program of step S1 above is as follows:

[0168] # List of raw data collected from multiple production batches

[0169] batch_data = [

[0170] {'Dt': 0.85, 'alpha': 0.90, 'Bt': 60},

[0171] {'Dt': 0.87, 'alpha': 0.92, 'Bt': 58},

[0172] # ... more batches of data ]

[0174] # Process each batch of data and generate a list of Unew vectors

[0175] Unew_list = []

[0176] for batch in batch_data:

[0177] Dt = batch['Dt']

[0178] alpha = batch['alpha']

[0179] Bt = batch['Bt']

[0180] # Calculate interaction features

[0181] F1 = Dt * alpha

[0182] F2 = Dt * Bt

[0183] F3 = alpha * Bt

[0184] # Update and add Unew to the list

[0185] Unew = [Dt, alpha, Bt, F1, F2, F3]

[0186] Unew_list.append(Unew)

[0187] # Output Unew vectors for all batches

[0188] for i, u in enumerate(Unew_list):

[0189] print(f"Batch {i+1} feature vector Unew:", u)

[0190] The above program is suitable for processing lists or arrays of multiple batches of data. Each batch of data can be processed by looping and generating a corresponding Unew vector for each batch. This program will process each batch of data in the batch_data list and generate a Unew vector for each batch, and then add them to the Unew_list list. Finally, it traverses and outputs the Unew vectors of each batch.

[0191] In this embodiment, with respect to step S2, a LightGBM decision tree model is established: the LightGBM decision tree model includes: a regression model, a specified loss function and a hyperparameter θ, wherein the hyperparameter θ includes conditions for tree depth, leaf nodes and split nodes.

[0192] Among them, the LightGBM decision tree model mainly includes a regression model, a specified loss function, and a hyperparameter θ. The regression model is used to fit the input features (i.e., the vector U new ) and the target variable (i.e., the gelatinization degree of the sample at the next time step Dt+1). The loss function is used to quantify the difference between the model prediction and the actual target variable in order to optimize the model parameters during the training process. The hyperparameter θ includes the conditions of the tree depth, leaf nodes, and split nodes, which determine the structural complexity of the decision tree. Step S2 specifically includes three sub-steps, S200~S202.

[0193] Specifically, before starting step S200, appropriate conventional data preprocessing, such as normalization, etc., may be performed.

[0194] Specifically, step S200, establish a regression model: When the regression model is used for regression tasks, its goal is to predict a continuous value. The basic regression model can be expressed as a function F(U new ), F(U new ) By updating the constraints of the rules of the predicted values ​​of the model, it outputs the continuous value predicted by the model. Step S200 includes:

[0195] 1) Step S2000, use the gradient boosted tree (GBDT) algorithm to build a regression model. GBDT is an iterative decision tree algorithm that improves the model by gradually fitting the residuals. In each iteration, a new decision tree is added to fit the residuals of the current model, thereby gradually improving the prediction accuracy of the model.

[0196] The regression model can be expressed as a function F(U new ), where Unew is the input feature vector, including original features and interaction features. new ) constrains the continuous value predicted by the output model by updating the rules of the model's predicted value. Specifically, the regression model can be initialized as a constant model F0(U new ), such as the mean value of the target variable. Then, through M iterations, a new decision tree h is added in each iteration m (U new ), and multiply by the corresponding weight β m (In practical applications, for simplicity, the weights of all trees can be set to 1), and finally the prediction model F(U new ):

[0197] ;

[0198] in:

[0199] F(U new ) is the final prediction model, which is a vector of input features (U new ) function;

[0200] F0(x) is the initial model and can be set to a constant (e.g. the mean of the target variable);

[0201] M is the number of boosting iterations, i.e. the number of decision trees;

[0202] h m (U new ) is a new decision tree, which is the input feature (vector U new )’s predicted output.

[0203] β m is the weight of the mth decision tree. For simplicity, the weights of all trees can be set to 1. However, it can also be determined by line search:

[0204] P1, initialization: select an initial step size (or learning rate) α0 and the number of iterations k=0;

[0205] P2. Calculate the loss: For the current weight βm,k (set to a default value such as 0 or 1 in the first iteration), calculate the loss function L(βm,k) of the model for the training data under the current weight;

[0206] P2, search direction: determine the search direction d, which is the opposite direction of the gradient (or negative gradient) of the loss function with respect to βm;

[0207] P3. Update weights: Use the line search algorithm to update the weights βm,k+1 = βm,k + αk * d, where αk is the step size found by the line search;

[0208] P4, check convergence: If the convergence condition is met (for example, the maximum number of iterations is reached), stop the iteration and return the current weight βm = βm,k+1. Otherwise, increase k and return to P2;

[0209] In online search, the choice of step size αk is critical. It can be determined by exact line search (finding the exact step size that minimizes the loss function in that direction) or inexact line search (such as Armijo condition, Wolfe condition, etc.). At the same time, line searches are more efficient because they do not need to minimize the loss function exactly in each iteration.

[0210] In each iteration, the new decision tree h m (U new ) is trained to fit the residual r of the current model mi , that is, the true target value yi and the cumulative prediction value F of the first m-1 decision trees for the i-th sample m-1 (U new i). In this way, each new decision tree focuses on correcting the errors of the previous tree, thereby gradually improving the prediction accuracy of the overall model:

[0211] ;

[0212] Where: i is a sample, each sample includes a test group A, a control group B and a blank group C; r mi is the residual of the i-th sample at the m-th iteration; F m-1 (U new i) is the cumulative prediction value of the first m-1 decision trees for the i-th sample; y i is the true target value of the i-th sample;

[0213] It should be noted that the true target value y i is the actual observation or label of the i-th sample, which refers to the actual value of the sample gelatinization degree Dt obtained through experimental measurement. This actual value is used as the training target of the regression model, and the goal of the model is to learn how to predict this true target value based on input features (such as raw material composition, processing conditions, etc.).

[0214] 2) Step S2001, define the rules for updating the prediction value of the model: when the new decision tree h m(U new ) is added to the model. The update rule is to multiply the prediction output of the new tree by the corresponding weight (which can be simplified to 1 here), and then add it to the cumulative prediction value of the first m-1 decision trees to get the new cumulative prediction value F m (U new ):

[0215] ;

[0216] Among them, F m-1 (U new ) is the cumulative prediction value of the first m-1 decision trees for the sample.

[0217] Specifically, step S201, specifying the loss function: In the production control method of the meal replacement nutritional product production line, step S201 is the process of specifying the loss function, which plays a vital role in the entire control method. The loss function is used to measure the difference between the model prediction value and the actual target value, and is a key indicator for optimizing model performance. In this step, the mean square error loss function MSE (D) is selected as the loss function. The mean square error is the average of the squares of the difference between the predicted value and the actual value, which can effectively reflect the degree of deviation between the predicted value and the actual value. For a given data set D, which contains n samples, each sample is represented by an input vector U new And the target value Dt+1. For a given data set D:

[0218] ;

[0219] Among them, Dt+11,Dt+12,...,Dt+1 n is the vector U new 1,U new 2,...,U new The target value corresponding to n;

[0220] The mean square error loss function MSE(D) is:

[0221] ;

[0222] in, is the model's predicted value for the i-th sample.

[0223] It is understandable that in the training process of the subsequent step S3, because the mean square error is very sensitive to the deviation between the predicted value and the actual value, even a small deviation will be amplified after being squared. This allows the model to pay more attention to reducing deviations and improving the accuracy of predictions during the training process. At the same time, the mean square error loss function is a convex function with a global minimum. This means that the minimum point of the loss function can be effectively found in the form of gradient descent during the optimization process, thereby obtaining the optimal model parameters. And by minimizing the MSE loss function, the model can learn the complex relationship between the input features and the target value. This enables the model to perform adaptive production adjustments based on real-time production data, such as adjusting the raw material ratio, processing conditions, etc., to ensure the stability and consistency of product quality.

[0224] Specifically, step S202, define gradient boosting and decision tree: define how to use gradient boosting method (Gradient Boosting) and decision tree to build a model. This step is the core link to ensure product quality control and adaptive production adjustment. Gradient boosting is an integrated learning method that improves the model by gradually fitting the residuals. In each iteration, it builds a new decision tree to capture the information in the data that the current model fails to explain. This method is particularly suitable for regression tasks, such as predicting quality control indicators such as gelatinization of meal replacement nutrients. LightGBM uses a tree-based learning algorithm for model training. In LightGBM, each decision tree is built by fitting the residuals of the current model. This means that each tree focuses on correcting the mistakes made by its previous tree in prediction.

[0225] Furthermore, the construction of each decision tree involves selecting the best split point to divide the feature space and assigning a value to each leaf node. This value is calculated based on the target value of the training samples that fall on the leaf node. In regression tasks, the value of a leaf node is usually the average of the target values ​​of the samples that fall on the node: m (U new ) is associated with a value (considered as a continuous value in the regression task). Through iteration, the entire new decision tree h m (U new ) can be expressed as the function T(U new ;θ), where θ is the tree parameters (including tree depth, leaf nodes, and conditions for splitting nodes). The new decision tree h m (U new ) is expressed as:

[0226] ;

[0227] Where J is the number of leaf nodes, w j is the value of the jth leaf node, Rj is a region of the feature space associated with the jth leaf node, and I(·) is an indicator function (1 if the condition holds, 0 otherwise).

[0228] Under the framework of gradient boosting, the final prediction function F of the LightGBM decision tree model M (U new ) is represented as the accumulation of multiple decision trees:

[0229] ;

[0230] Where M is the number of trees (i.e., the number of boosting iterations), θ m is the parameter of the mth decision tree.

[0231] Through multiple rounds of iterations, LightGBM constructs a series of decision trees and accumulates their prediction values ​​to form the final prediction function F M (U new ). This function is the sum of the predictions of all the individual decision trees, which captures the complex relationships in the data and provides accurate predictions of the target value.

[0232] Furthermore, the gradient boosting method can be expressed as an iterative process, where a new model component (in this embodiment, a decision tree in LightGBM) is added in each iteration to minimize the gradient of the mean square error loss function MSE(D). For a given data set and objective function, the process of the above gradient boosting algorithm is:

[0233] ;

[0234] Among them: F m (U new ) is the model prediction value after m rounds of iterations. m-1 (U new ) is the model prediction value after the previous iteration. m is the learning rate, a positive decimal (such as 0.01), used to control the magnitude of each step to avoid overfitting. m (U new ) is the new decision tree model constructed in the mth iteration, which is used to fit the residual of the current model (i.e., the difference between the target value and the current predicted value).

[0235] In principle, the gradient boosting method is based on the optimization idea of ​​the gradient descent algorithm, but it optimizes in function space rather than in parameter space. The gradient boosting method calculates the negative gradient of the loss function on the current model's predicted value (the residual for the mean square error loss function MSE(D)), and then builds a new decision tree model to fit these negative gradients (or residuals). The new decision tree is added to the existing model, and the model's total prediction is updated to include the prediction of the new decision tree.

[0236] In the iterative process, a new decision tree is generated in each round to reduce the prediction error of the model. m It is used to control the contribution of the new decision tree to the overall prediction of the model, prevent overfitting and allow more iterative improvements. Through multiple iterations, the prediction ability of the model is gradually improved until a certain termination condition is reached (such as the maximum number of iterations, the convergence of the mean square error loss function MSE(D), etc.).

[0237] Furthermore, the new decision tree h m (U new ) is associated with a value (considered as a continuous value in the regression task); in the LightGBM decision tree model, the new decision tree h m (U new ) is a kind of summary statistic of the target values ​​of all samples on the leaf node. In regression tasks, this continuous value is the average or weighted average of the target values ​​of all samples falling on the leaf node. Specifically, when LightGBM builds a decision tree, it divides the dataset into multiple subsets based on the features, and each subset corresponds to a leaf node of the tree. For each leaf node, the algorithm calculates the average of the target values ​​of all samples on the node and assigns this value to the leaf node. In the prediction stage, when a new sample U new When input into the model, it is guided by the decision tree to a specific leaf node. The predicted value of the sample is the continuous value associated with the leaf node it falls into. Each newly constructed decision tree is dedicated to fitting the residuals of the current model (that is, the difference between the actual value and the current predicted value). By fitting these residuals as the target values ​​of the new decision tree, the gradient boosting method can gradually improve the predictive performance of the model. In the production control method of the meal replacement nutrition production line, this continuous value represents the model's prediction of the quality control indicators of meal replacement nutrition under the current specific production conditions. By comparing this predicted value with the actual quality control indicator value, production personnel can understand the product quality under the current production conditions, and adjust the production parameters accordingly to optimize product quality.

[0238] Furthermore, θ is a parameter of the tree (including tree depth, leaf nodes, and conditions for splitting nodes), which is a hyperparameter and can be assigned by the Bayesian optimization algorithm given in Example 3.

[0239] It should be noted that the number of leaf nodes J depends on the depth of the decision tree. When building a decision tree, the algorithm starts from the root node and recursively divides the data set into smaller subsets according to the conditions for splitting nodes (such as information gain, Gini impurity, etc.) until the stopping condition is met (such as reaching the preset maximum depth, the number of samples in the node is less than the preset value, the information gain of further splitting is less than the threshold, etc.). Each node that terminates the split becomes a leaf node. Therefore, the number of leaf nodes J is naturally formed according to the splitting conditions during the training process.

[0240] It should be noted that the value w of the leaf node j is the average value of the target value of the samples contained in the leaf node:

[0241] ;

[0242] Where R j is the set of samples associated with the jth leaf node (i.e., a region in the feature space), y i is the target value of these samples, |R j ∣ represents the number of samples in the set.

[0243] It should be pointed out that R j The region is defined by all the split conditions from the root node to the leaf node. During training, each split will divide the dataset into two parts according to the value of a certain feature, so that each leaf node corresponds to a rectangular region in the feature space (for numerical features) or the intersection of a set of conditions (for categorical features). This region R j Contains the feature values ​​of all samples that eventually fall into the leaf node.

[0244] It is understandable that from the perspective of meal replacement nutritional product quality control and adaptive production regulation, step S202 can capture subtle changes in the data and provide more accurate predictions by gradually fitting the residuals, and the gradient boosting method. This is crucial to ensure the quality stability of meal replacement nutritional products. And because the model is built based on real-time production data, it can be adaptively adjusted according to the latest production situation. This allows production personnel to adjust production parameters in a timely manner based on the model's prediction results to ensure that the product meets quality control standards. At the same time, the LightGBM model uses a variety of optimization strategies to increase training speed and reduce memory consumption. This enables it to maintain efficient performance when processing large-scale data sets and meet the needs of actual production environments.

[0245] Specifically, the Python program for the LightGBM model constructed in the above steps S200-S202 is as follows (the LightGBM library needs to be installed to run the following program):

[0246] import lightgbm as lgb

[0247] from sklearn.model_selection import train_test_split

[0248] from sklearn.metrics import mean_squared_error

[0249] import numpy as np

[0250] # X is the feature matrix, y is the target variable vector

[0251] # X, y = ... (loaded or generated from dataset D)

[0252] # Divide into training set and test set

[0253] X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

[0254] # Create LightGBM dataset

[0255] lgb_train = lgb.Dataset(X_train, y_train)

[0256] lgb_eval = lgb.Dataset(X_test, y_test, reference=lgb_train)

[0257] # Set LightGBM parameters

[0258] params = {

[0259] 'boosting_type': 'gbdt', # Gradient boosting decision tree

[0260] 'objective': 'regression', # regression task

[0261] 'metric': 'mse', # Mean square error loss function

[0262] 'num_leaves': 31, # Number of leaf nodes

[0263] 'learning_rate': 0.05, # learning rate

[0264] 'feature_fraction': 0.9, # feature subsampling ratio

[0265] 'bagging_fraction': 0.8, # data subsampling ratio

[0266] 'bagging_freq': 5, # perform subsampling every 5 iterations

[0267] 'verbose': 0 # Do not output training process information

[0268] }

[0269] # Train the model

[0270] gbm = lgb.train(params,

[0271] lgb_train,

[0272] num_boost_round=1000, # Increase the number of iterations (i.e. the number of trees)

[0273] valid_sets=lgb_eval, # Dataset used for verification

[0274] early_stopping_rounds=5) # If the score of the validation set does not improve for 5 consecutive rounds, stop training early (i.e., validate the first 5 production batches)

[0275] # Use the model to make predictions

[0276] y_pred = gbm.predict(X_test, num_iteration=gbm.best_iteration)

[0277] # Calculate mean square error (MSE)

[0278] mse = mean_squared_error(y_test, y_pred)

[0279] print(f'MSE: {mse}')

[0280] The principle of the above program is that the dataset D is divided into a training set and a test set by the train_test_split function. Then the dataset objects for training and validation are created using the Dataset class of LightGBM. These objects are used to load data and calculate loss functions during training. The parameters of the LightGBM model are then set in the params dictionary. These parameters include the type of boosting ('gbdt' for gradient boosting decision tree), the type of task ('regression' for regression task), the loss function ('mse' for mean square error), the number of leaf nodes, the learning rate, etc. In addition, the ratio of subsampling and feature subsampling can be set to prevent overfitting. Then the model is trained using the lgb.train function. The function accepts parameters, training dataset, number of boosting iterations (i.e., number of trees), and validation dataset as input, and returns a trained model object. During training, if the score of the validation set does not improve for multiple consecutive rounds, the training can be stopped early.

[0281] In this embodiment, regarding step S3, the LightGBM decision tree model is trained: for a given data set D, a new decision tree h is constructed in each iteration of LightGBM. m (U new ), the tree is designed to fit the residual of the current model (i.e. the difference between the actual value and the current predicted value). In the process of building a decision tree, the algorithm will try to split the nodes on different features to maximize the gain (such as information gain). Once the structure of the decision tree is determined, each leaf node will contain a set of training samples and calculate its corresponding leaf node weight w m,j :

[0282] ;

[0283] Among them, I j is the index set of all training samples on leaf node j. i is the target value of the current sample i (i.e., the gelatinization degree of the sample in the next time step). j ∣ is the number of samples on leaf node j.

[0284] It should be noted that the above formula actually calculates the average value of all sample target values ​​on leaf node j as the weight of the leaf node. This weight represents the average level of all training sample target values ​​on the node. When a new input vector falls into the leaf node, the model will use this weight as the output.

[0285] Specifically, at each step of building a decision tree, the algorithm tries to split nodes on different features in order to maximize gains (such as information gain or Gini gain). Once the structure of the decision tree is determined, each leaf node contains a set of training samples. Then, the sum (or weighted sum) of the sample target values ​​on each leaf node can be calculated and divided by the number of samples on the leaf node to obtain the weight of the leaf node. Then, this new decision tree is added to the regression model in step S200:

[0286] ;

[0287] After each iteration, the model's predicted value is updated to F m (U new ). When the predetermined number of iterations is reached, the iteration is stopped. The predetermined number of iterations needs to be formulated according to the specific computing resources. After each iteration, the prediction value of the model will be updated according to the newly added decision tree. When the predetermined number of iterations is reached, the iteration is stopped and the final LightGBM regression model is obtained.

[0288] It is understandable that LightGBM uses a histogram-based algorithm and a leaf-based growth strategy, which enables it to have higher training speed and lower memory consumption when processing large-scale data sets. And by gradually fitting residuals to build multiple decision trees, LightGBM can more accurately capture the nonlinear relationship in the data, thereby improving the prediction accuracy of the model. At the same time, compared with black box models such as neural networks, LightGBM has better interpretability in decision tree models, because by looking at the structure of the decision tree and the weights of leaf nodes, you can understand how the model makes predictions, which helps to analyze key factors in the production process and optimize production control strategies.

[0289] Furthermore, during the training process of step S3, the framework of the LightGBM decision tree model provides the following adoption techniques:

[0290] 1) Gradient-based single-side sampling (GOSS): retains samples with larger gradients (i.e., those that contribute more to model training) and randomly samples a portion of samples with smaller gradients. This can reduce the amount of data during training while maintaining the accuracy of the model as much as possible. The core idea is to determine the retention and sampling probability of samples based on the size of the gradient;

[0291] Specifically, in GOSS, samples are first sorted according to their absolute values ​​of gradients. Then samples with larger gradients (e.g., the top a% of samples) are retained, and a portion of the remaining samples (e.g., b% of samples) are randomly sampled. Finally, these two portions of samples are combined for training. When calculating information gain, GOSS also adjusts the weights of the sampled samples to compensate for the bias caused by sampling.

[0292] 2) Exclusive Feature Bundling (EFB): EFB is a feature bundling method that reduces the number of features by bundling mutually exclusive features (i.e., features that do not take non-zero values ​​at the same time), thereby speeding up the training process and reducing memory usage;

[0293] Specifically, in EFB, a graph is first constructed, where each node represents a feature and each edge connects mutually exclusive features. Then, a graph coloring algorithm or a greedy algorithm is used to find groups of features that can be bundled together. Finally, these feature groups are regarded as new features for model training.

[0294] In summary, the gradient-based one-side sampling and exclusive feature bundling can be improved accordingly in the python training program provided in the above step S2 to achieve the above beneficial effects:

[0295] # Set the parameters of LightGBM

[0296] params = {

[0297] 'objective': 'regression', # regression task

[0298] 'metric': 'mse', # Use mean square error as the evaluation indicator

[0299] 'boosting_type': 'gbdt', # Use gradient boosting decision tree

[0300] 'num_leaves': 31, # Number of leaf nodes in the decision tree

[0301] 'learning_rate': 0.05, # learning rate

[0302] 'feature_fraction': 0.9, # feature subsample ratio

[0303] 'bagging_fraction': 0.8, # data sub-sample ratio

[0304] 'bagging_freq': 5, # perform bagging every 5 rounds

[0305] 'verbose': 0, # do not print the training process

[0306] 'goss_ratio': 0.1, # The ratio of samples with larger gradients retained in GOSS

[0307] 'other_ratio': 0.2, # The ratio of randomly sampled samples with smaller gradients in GOSS

[0308] 'max_bin': 255, # The maximum number of buckets for feature bucketing

[0309] 'enable_bundle': True, # Enable EFB feature bundling

[0310] 'bundle_max_bin': 63 # Maximum number of bins per bundle

[0311] }

[0312] # Train the model

[0313] gbm = lgb.train(params,

[0314] lgb_train,

[0315] num_boost_round=1000, # Increase the number of iterations

[0316] valid_sets=lgb_eval, # Dataset used for verification

[0317] early_stopping_rounds=5) # Number of rounds to stop early

[0318] # Use the model to make predictions

[0319] y_pred = gbm.predict(X_test, num_iteration=gbm.best_iteration)

[0320] # Calculate mean square error (MSE)

[0321] mse = mean_squared_error(y_test, y_pred)

[0322] print(f'MSE: {mse}')

[0323] In the above program, about GOSS: In the above code, GOSS technology is enabled by setting the goss_ratio and other_ratio parameters. goss_ratio defines the proportion of samples with larger gradients that are retained, while other_ratio defines the proportion of samples with smaller gradients that are randomly sampled from the remaining samples. GOSS ensures that these samples that contribute more to model training are fully utilized by sorting the gradients of the samples and retaining the samples with larger gradients. At the same time, randomly sampling samples with smaller gradients can retain the diversity of data distribution to a certain extent. In this way, GOSS can reduce the number of training samples without losing too much model accuracy, thereby increasing the training speed.

[0324] In the above program, about EFB: Enabling EFB is done by setting enable_bundle to True in params. At the same time, the maximum number of bins for each bundle can be controlled by the bundle_max_bin parameter. The EFB algorithm analyzes the features before training, finds mutually exclusive features (i.e. features that do not take non-zero values ​​at the same time) and bundles them together to reduce the number of features. This can reduce the feature search space when building the decision tree, thereby speeding up the training process and reducing memory usage. Through feature bundling, EFB can effectively process high-dimensional sparse data and improve computational efficiency without significantly reducing model performance.

[0325] In summary, by introducing GOSS and EFB technologies in LightGBM model training, we can significantly improve the training speed and memory usage efficiency of the model while ensuring the accuracy of the model, which is especially important for processing large-scale data sets and accelerating model iteration.

[0326] In this embodiment, regarding step S4, the LightGBM decision tree model is used to test the subsequent batches of meal replacement products. For the meal replacement products in the current production batch, the trained LightGBM decision tree model is used, combined with the final prediction function F M (U new ) predicts the gelatinization degree Dt+1 of the sample at the next time step t+1:

[0327] Assume that the model contains M decision trees. For the input vector U new , the prediction result of the mth decision tree is h m (U new ), then the final prediction value of the model (sample gelatinization degree Dt+1) is calculated by the following formula:

[0328] ;

[0329] Among them, β m is the weight of the mth decision tree, which is usually set to 1 in LightGBM, unless technicians in this field formulate a weight adjustment strategy based on actual conditions. m (U new ) represents the input vector U new The weight of the leaf node in the mth decision tree.

[0330] It can be understood that in the above LightGBM decision tree model, the prediction process is to pass the input vector Unew to each decision tree T(U new ; θ m ). Each decision tree will calculate the corresponding output value based on its own parameters (including the tree structure and leaf node weights), that is, the weight of the leaf node where the input vector falls in the tree. Then, these output values ​​are weighted and summed according to the weight βm of the decision tree to obtain the final prediction result F M (U new ), which is the predicted value of Dt+1.

[0331] It should be noted that the above weighted summation process simplifies the final prediction function F M (U new ). The above formula describes the weighted summation process, which is actually the accumulation of the output values ​​of multiple decision trees, because the output value of each decision tree is the weight of the leaf node where the input vector falls in the tree. In this way, the LightGBM decision tree model can be used to predict the gelatinization degree of meal replacement products, thereby realizing real-time monitoring and adaptive adjustment of product quality.

[0332] In this embodiment, regarding step S5, the baking temperature deviation is corrected: by predicting the sample gelatinization degree Dt+1 at the next time step t+1, the temperature parameters of the electric heating blast drying oven are adjusted by using a PID (proportional-integral-differential) controller to achieve the ideal gelatinization degree. The implementation of this process requires the combination of the current deviation of the gelatinization degree, the accumulation of historical deviations, and the variation trend of the deviations.

[0333] PID controller is a widely used control algorithm that adjusts the control output by combining proportional, integral and differential control to minimize the deviation from the target value. In the production process of meal replacement nutrition products, PID controller is used to adjust the temperature of the electric blast drying oven to ensure that the gelatinization degree of the product reaches the preset target value:

[0334] ;

[0335] Where: △T(t) is the temperature adjustment at time step t; dτ is the (small) time increment; e(t) is the gelatinization deviation at time step t, i.e. the target gelatinization degree D target The difference between the predicted gelatinization degree Dt+1; K p is the proportional gain, which is used to adjust the control output proportional to the current deviation; K i is the integral gain, which is used to adjust the control output proportional to the historical deviation accumulation. The integral term can help eliminate long-term steady-state errors; K d is the differential gain, which is used to adjust the control output proportional to the rate of change of the deviation. The differential term can respond to the changing trend of the deviation in advance and increase the stability of the system.

[0336] Furthermore, considering that the effect of adjusting the temperature once may not be ideal, and directly calculating the differential term in an actual control system is more dependent on computing resources, this embodiment further proposes a discrete time PID controller for the characteristics of the above technical solution:

[0337] In discrete time form, the integral term and the differential term can be approximated by the accumulation and difference of the deviation signal. In this way, for the gelatinization degree deviation e(t), the PID controller can gradually approach the temperature parameter to be adjusted in a step-by-step (discrete) form with a certain step length. The formula of the discrete time PID controller is as follows:

[0338] ;

[0339] Where: △T(k) is the temperature adjustment at discrete time step k; e(k) is the gelatinization deviation at discrete time step k, where e(k)=D target -Dt+1; △t is the discrete time step; e(k-1) is the gelatinization degree deviation at the previous discrete time step k-1; e(j) represents the gelatinization degree deviation at the jth discrete time step, that is, e(j) is the difference between the target gelatinization degree and the predicted gelatinization degree Dt+1 at this time step.

[0340] The proportional term Kp·e(k) is proportional to the current deviation and is used to quickly respond to changes in the deviation. The cumulative effect of historical deviations is taken into account, which helps to eliminate long-term steady-state errors. It can respond to the changing trend of the deviation in advance and increase the stability of the system.

[0341] The PID controller adjusts the control output by calculating the current deviation e(k), the accumulation of historical deviations (integral term), and the trend of the deviation (differential term) to minimize the deviation from the target value. In discrete time form, the integral term is implemented by accumulating the deviations e(j) of all past time steps, where j starts from 0 and continues to the current time step k. Therefore, in the formula of the PID controller, It represents the cumulative sum of the products of all deviations e(j) and the time step length Δt from the 0th time step to the kth time step. This cumulative sum reflects the cumulative effect of historical deviations and helps to eliminate long-term steady-state errors.

[0342] It is understandable that the above scheme can gradually approach the temperature parameters that need to be adjusted through the discrete time form of the PID controller. At the same time, the discrete time form is also more suitable for the implementation of the actual control system, reducing the demand for computing resources. Through the precise adjustment of the PID controller, it can be ensured that the gelatinization degree of the meal replacement nutritional product reaches the preset target value, improving the quality and consistency of the product; the discrete time form of the PID controller is more suitable for the implementation of the actual control system, reducing the calculation complexity and improving the stability and reliability of the system; by gradually approaching the temperature parameters that need to be adjusted, it avoids the problem of system instability that may be caused by excessive one-time temperature adjustment. Moreover, this discrete time form of PID controller is more suitable for digital control systems because it can be implemented directly on a computer or microcontroller without the need for complex integral and differential calculations.

[0343] In this embodiment, regarding step S6, repeat execution: repeat execution of steps S4 to S5 until the production line completes production of all batches of meal replacement products.

[0344] Specifically, when the production line starts production, step S4 will be executed first, that is, predicting the gelatinization degree of the sample at the next time step based on the prediction model. This step uses an advanced prediction model to predict the gelatinization degree of the sample at the next time step based on the current production status and known input parameters. Such a prediction helps to understand the changes in the production process in advance and provides an important basis for subsequent control and adjustment. Next, step S5 is executed, that is, correcting the baking temperature deviation. In this step, the PID (proportional-integral-differential) controller is used to adjust the temperature parameters of the electric hot air drying oven to achieve the ideal gelatinization degree. The PID controller adjusts the control output by combining the current deviation, the accumulation of historical deviations, and the trend of deviation changes, thereby minimizing the deviation from the target value. This control method takes into account both the current production status and the historical production data, making the temperature adjustment more accurate and effective.

[0345] By repeatedly executing steps S4 and S5, the production line can continuously monitor and adjust key parameters in the production process to ensure that each batch of meal replacement products can meet the preset quality requirements. This repeated execution method not only improves the continuity and stability of production, but also enhances the adaptability of the production line to changes in the production environment. When external conditions change, the production line can adjust its own production parameters in time to maintain the stability and consistency of the production process. In addition, this repeated production control method also helps to improve the quality and output of meal replacement nutritional products. At the same time, since the stability and continuity of the production process are guaranteed, the production efficiency of the production line has also been significantly improved.

[0346] Embodiment 2: Based on the model provided in Embodiment 1, this embodiment takes into account that the generalization ability of the model may not be very ideal and overfitting may occur. To this end, this embodiment further provides the following technical solution to solve the technical problem.

[0347] In this embodiment, for step S2001, subsampling and feature subsampling are performed, which are regularization techniques for improving the performance of the gradient boosted tree (GBDT) model. They reduce the risk of overfitting by reducing the amount of data or features used to train each decision tree and improve the generalization ability of the model.

[0348] Specifically, subsampling: when building each decision tree, a portion of the training data is randomly selected for the growth of the decision tree instead of using all the training data. This helps reduce the complexity of the model and prevents overfitting of noise or outliers in the training data. It includes:

[0349] P1. Suppose there is an original training data set D, which contains N samples. In each iteration step m, a subset D is randomly selected from the original training data set D with replacement. m , which contains a fixed proportion p of the original data set (p < 1). Then only this subset (D m ) to construct the mth decision tree h m (U new ).

[0350] P2. When calculating the residual of the tree (step S2000), only the subset D m The predictions of the samples in the model are calculated based on the predictions of the decision tree, and when a new decision tree is added to the model, only the predictions of these samples will be affected. Therefore, in fact, at each iteration step, only the cumulative predictions of some samples are affected. m-1 (U new ) will be updated. Formally, the update rule for the cumulative prediction value can still be written as:

[0351] ;

[0352] But here U new It should be understood that only for the subset D m It should be noted that although different subsets are used in each iteration, all decision trees are used to make predictions when predicting new data.

[0353] Specifically, feature subsampling: feature subsampling is to randomly select a portion of all features for consideration each time a node is split, rather than using all features. This helps reduce the model's reliance on redundant features or over-correlated features that may exist in the training data. Including:

[0354] 1) In the case of feature subsampling, a feature subset ratio q (q < 1) is also defined. When each decision tree node is split, features with a ratio of q are randomly selected from the entire feature set as candidate split features. Only these selected features will be used to find the best split point and calculate the split criterion.

[0355] 2) Similar to subsampling, the update of the cumulative prediction value still follows the same rules:

[0356] ;

[0357] But in practical applications, each decision tree h m (U new ) is built based on a subset of features, not all features.

[0358] In summary, the two subsampling techniques in this embodiment help reduce the complexity of the model, speed up the training, and improve the generalization performance of the model. At the same time, they also make the model more robust to noise and outliers in the training data.

[0359] Embodiment 3: Based on Embodiment 1, this embodiment further provides a solution for assigning a value to the hyperparameter θ: using the Bayesian optimization algorithm:

[0360] In the hyperparameter optimization of the LightGBM decision tree model in this embodiment, Bayesian optimization can be used to determine the optimal values ​​of hyperparameters such as tree depth, leaf nodes, and conditions for splitting nodes. However, Bayesian optimization itself does not provide direct assignment of these hyperparameters. Instead, it uses a method based on a probability model to iteratively search for the optimal hyperparameter combination, including the following steps:

[0361] P1. Define the objective function: This function accepts hyperparameters as input and returns the performance of the model on the validation set (such as accuracy, loss, etc.). The objective function f(θ) is:

[0362] ;

[0363] Among them, M LightGBM (D train, θ ) represents the use of training data set D train (i.e. D above) and hyperparameters θ (including tree depth, number of leaf nodes, etc.) trained LightGBM model;

[0364] Among them, ValidationPerformanc indicates that the model performs well on the validation data set D valid Performance evaluation on . Taking the classification problem in machine learning as an example, the accuracy is used as the performance evaluation indicator, which is defined as:

[0365] ;

[0366] Where: D valid is a validation data set, containing multiple samples (x, y), where x is the feature vector and y is the true label; is the model's predicted label for sample x. I(·) is an indicator function that takes a value of 1 when the condition is met and 0 otherwise; |Dvalid| represents the number of samples in the validation dataset.

[0367] P2. Initialize the Gaussian process model: Bayesian optimization uses Gaussian process (GP) as a prior distribution to model the target function. Gaussian process is a non-parametric probability model used for regression and probabilistic classification. Given the input space X and the output space Y, there is a potential function (f: X→Y) that maps the input to the output. In Gaussian process regression, it is assumed that the observation y is a noisy version of the potential function f, that is, (y = f(x) + ε), where ε is Gaussian noise. The Gaussian process can be defined as:

[0368] For any finite set of points (x1, x2, ..., x n ), function values ​​f(x1), f(x2), ..., f(x n ) is a multivariate Gaussian distribution. This multivariate Gaussian distribution is defined by the mean vector λ and the covariance matrix K, where each element K of the covariance matrix ij = k(x i , x j ) is calculated by the kernel function k:

[0369] ;

[0370] Where: λ is the mean function, which is usually set to 0 in the absence of prior information (because the Gaussian process is insensitive to the mean function and mainly captures the structure through the covariance function). k(x, x') is the kernel function (or covariance function), which defines the similarity between input points.

[0371] Preferably, the kernel function is a radial basis function (RBF) kernel, a polynomial kernel, a Matern kernel, or the like.

[0372] P3, select the next evaluation point: Based on the Gaussian process model, the Bayesian optimization algorithm selects the next hyperparameter combination for evaluation. This is achieved by maximizing an acquisition function;

[0373] Preferably, the acquisition function is an upper confidence bound algorithm (UCB) to balance exploration and exploitation: The UCB method balances the trade-off between exploration and exploitation by weighing potential optimal solutions (exploitation) and unexplored areas (exploration):

[0374] UCB(x)=μ(x)+βσ(x);

[0375] Where: μ(x) is the mean of the objective function predicted by the Gaussian process model at a given input x. This represents the model's best estimate of the objective function at the current point. σ(x) is the standard deviation of the objective function predicted by the Gaussian process model at a given input x. It represents the uncertainty of the model or an estimate of the prediction error at this point. β in this formula is a tuning factor that controls the trade-off between exploration and exploitation. Larger β values ​​will increase the exploration of unexplored areas, while smaller β values ​​will make more use of areas near the currently known optimal solution. It is up to the technicians in this field to assign values ​​as appropriate. At each step of Bayesian optimization, the UCB method selects the input point x that maximizes the UCB value as the next evaluation point. In this way, the algorithm finds a balance between exploration (high standard deviation areas) and exploitation (high mean areas).

[0376] P4. Update Gaussian process model: Update the Gaussian process model using the newly evaluated hyperparameter combination and the corresponding objective function value.

[0377] P5, iterative optimization: Repeat P3 and P4 until the stopping condition is met (such as reaching the maximum number of iterations, finding a hyperparameter combination that meets performance requirements, etc.).

[0378] P6. Select the optimal hyperparameter: After the iterative optimization is completed, the hyperparameter combination with the best performance is selected as the final hyperparameter assignment, that is, the parameter θ.

[0379] In this embodiment, preferably, in step S202, the condition for splitting the node is information gain (Information Gain): However, information gain is calculated based on the concept of information entropy, so it is necessary to first define information entropy and conditional entropy before calculating information gain.

[0380] P1. Entropy: For discrete variables, the entropy H(X) is:

[0381] ;

[0382] Among them, p(x i ) is a random variable X with value x i probability.

[0383] P2. Conditional Entropy: Conditional entropy represents the uncertainty of random variable X under the condition of given random variable Y. It is defined as:

[0384] ;

[0385] Where m is the probability y j The total number of n is the probability x i The total number of p(x i ∣y j ) is given by Y=y j Under the condition that X=x i The conditional probability of .

[0386] P3. Calculate information gain: It indicates the degree to which the uncertainty of random variable X is reduced after knowing random variable Y. It is defined as: IG(X,Y)=H(X)−H(X|Y);

[0387] In this embodiment, the information gain of feature A to data set D is calculated to determine whether to split according to feature A. Here, data set D corresponds to random variable X (target variable), and feature A corresponds to random variable Y. The calculation process is roughly as follows:

[0388] P3.1. First, calculate the information entropy H(D) of the data set D.

[0389] P3.2, then calculate the conditional entropy H(D|A) after splitting by feature A, that is, calculate the information entropy of the sub-dataset corresponding to each eigenvalue, and perform weighted summation according to the probability of the eigenvalue;

[0390] P3.3. Finally, calculate the information gain IG(D,A)=H(D)−H(D|A).

[0391] Specifically, the principle of information gain is based on the observation that if a feature can greatly reduce the uncertainty of the data set (i.e., information entropy), then this feature is a good split feature. By calculating information gain, we can quantify the degree to which each feature reduces the uncertainty of the data set, and thus select the feature with the largest information gain for splitting.

[0392] Understandably, the effect of using information gain as the splitting criterion is to tend to select features that can maximize the reduction of uncertainty in the data set. This helps to build a more concise and effective decision tree because each split minimizes the uncertainty of the remaining data.

[0393] Example 4: Please refer to Figure 1 Based on the first embodiment, this embodiment further introduces an adaptive correction mechanism for the process of using the LightGBM decision tree model in step S4:

[0394] The principle of the prediction process in step S4 is to pass the input vector Unew to each decision tree T(U new ;θ m ). Each decision tree will calculate the corresponding output value based on its own parameters (including the tree structure and leaf node weights), that is, the weight of the leaf node where the input vector falls in the tree. Then, these output values ​​are weighted and summed according to the weight βm of the decision tree to obtain the final prediction result F M (U new ), which is the predicted value of Dt+1.

[0395] Considering that step S6 requires the overall technical solution to be executed multiple times for production batches, the value of Dt+1 generated in each round can be used or indirectly utilize its information, and the DS evidence theory is used to make a certain amount of correction to the final predicted value at the current time step; in this embodiment, it is called step S7, which divides the predicted gelatinization degree and the actual gelatinization degree into evidence A and evidence B, performs a merger through Dempster's combination principle, and outputs a joint trust function Bel (A ∪ B); maps the joint trust function Bel (A ∪ B) to an interval value between [0, 1] as a correction factor γ, and performs correction on step S4. It includes the following steps S700~S703:

[0396] In this embodiment, regarding step S700, evidence A in the form of a collection and evidence B in the form of a collection are collected:

[0397] Evidence A is the predicted gelatinization degree at the previous 5 time steps (t-1~t-5) at the current time step t:

[0398] A=[Dt+1(t-1),Dt+1(t-2),Dt+1(t-3),Dt+1(t-4),Dt+1(t-5)];

[0399] Evidence B is the actual gelatinization degree measured in the previous 5 time steps (t-1~t-5) at the current time step t:

[0400] B=[Dt(t-1),Dt(t-2),Dt(t-3),Dt(t-4),Dt(t-5)];

[0401] Specifically, step S700 collects two key evidences: evidence A is the predicted gelatinization degree at the previous five time steps at the current time step t, and evidence B is the gelatinization degree actually measured at the same time step. These two evidences are presented in the form of a set, including information from the past five time steps, thereby providing a rich data basis for subsequent corrections.

[0402] In this embodiment, regarding step S701, Dempster's combination principle is implemented: for all elements (subsets) A in evidence A and evidence B i and B i , Dempster's combination rule computes a set called the combined belief assignment Bel(C), where C is the possible hypothesis or state space. In addition, the combined uncertainty assignment Pl(C) is computed:

[0403] Step S7010, merging trust distribution Bel (C):

[0404] ;

[0405] Step S7011, combined uncertainty allocation Pl(C):

[0406] ;

[0407] In S7010~S7011, and are a subset of evidence A and evidence B respectively; mass is the weight (assign a value of 0.5); C is the "possible set"; ∅ represents the empty set;

[0408] S7012. Obtain the joint trust function Bel(A∪B):

[0409] ;

[0410] Bel(A) and Pl(A) are the confidence and uncertainty distributions of the set of evidence A;

[0411] Bel(B) and Pl(B) are the confidence and uncertainty distributions of the set of evidence B;

[0412] (Pl(A)∩Pl(B)) is the uncertainty distribution of the intersection of evidence A and evidence B:

[0413] ;

[0414] Specifically, among them, Represents any subset of evidence A and a subset of evidence B The intersection of is not empty. That is, it seeks a subset that exists in the objective , the mass of this subset in A is not zero, and there is a subset , the mass of this subset in B is also not zero, that is, the two subsets have an intersection. It can be understood that Responsible for finding some elements in hypothesis set C that are supported by both evidence A and evidence B. , then when calculating the combined trust distribution Bel(C), these common elements must be taken into account because they contribute to the support of the hypothesis set C.

[0415] Furthermore, after the above concept is visualized, it is determined whether any element in evidence A and evidence B at the same time step has the same label; if they do not have the same label, it is considered that evidence A and evidence B do not support each other, which means that the prediction may have a certain deviation, and the correction factor γ of the subsequent mapping will further bias the weighting. On the contrary, it proves that there is no deviation in the prediction, and the correction factor γ is kept as 1 as possible, that is, no correction.

[0416] Specifically, step S701 is used to merge the trust assignments from different evidence sources. Here, it is applied to merge the trust assignments of evidence A and evidence B, thereby obtaining a joint trust function Bel(A∪B). This process takes into account the intersection and union between the evidences, as well as their respective uncertainty assignments, thereby ensuring the comprehensiveness and accuracy of the correction process.

[0417] In this embodiment, regarding step S702, the joint trust function Bel(A∪B) is mapped to an interval value between [0,1] as the correction factor γ through the sigmoid function:

[0418] ;

[0419] Where e is the base of natural logarithms;

[0420] Specifically, step S702 maps the joint trust function Bel(A∪B) to an interval value between [0,1] as the correction factor γ through the sigmoid function. The sigmoid function is selected to ensure that the correction factor γ can change smoothly between 0 and 1, thereby achieving continuous correction of the predicted value. This mapping method not only simplifies the calculation process, but also makes the correction factor γ intuitively interpretable.

[0421] In this embodiment, regarding step S703, the modification is: weighted modification is performed on step S4:

[0422] ;

[0423] Specifically, step S703 performs a weighted correction on step S4. During the correction process, the outputs of multiple prediction models (consisting of β m and h m (U new ) and weighted sum them according to the correction factor γ. This correction method not only takes into account the contribution of different prediction models, but also realizes dynamic adjustment of the prediction value through the correction factor γ. This adaptive correction helps to improve the accuracy and flexibility of production control.

[0424] It can be understood that the correction factor γ is an interval value between [0,1] obtained by mapping the joint trust function Bel(A∪B) through the sigmoid function. This mapping ensures the smooth change of the correction factor γ and can be dynamically adjusted according to the value of the joint trust function Bel(A∪B). The joint trust function Bel(A∪B) reflects the trust distribution between evidence A and evidence B, which comprehensively considers the degree of match between the predicted value and the actual value. In the weighted correction process, the correction factor γ is used as a weight to perform a weighted sum on the output of the prediction model in step S4. Specifically, the output h of each prediction model m (U new ) are multiplied by the corresponding weight β m , and then multiplied by the correction factor γ. In this way, the correction factor γ can dynamically adjust the weight of the prediction model output according to the matching degree between the predicted value and the actual value.

[0425] For example, when the predicted value is close to the actual value, the value of the joint trust function Bel(A∪B) will be higher, resulting in a higher value of the correction factor γ. This means that the weight of the output of the prediction model will be greatly enhanced, making the corrected prediction value closer to the actual value. On the contrary, when the predicted value is significantly different from the actual value, the value of the joint trust function Bel(A∪B) will be lower, and the value of the correction factor γ will also be reduced accordingly, thereby reducing the weight of the output of the prediction model and preventing the corrected prediction value from deviating too far from the law of change of the actual value.

[0426] The effectiveness of this adaptive correction mechanism lies in its ability to adjust the weight of the prediction model output according to the degree of match between the real-time prediction value and the actual value. This makes the correction process more flexible and accurate, and can adapt to changes in different production batches and product characteristics. By continuously adjusting the correction factor γ, the production control method can improve accuracy while maintaining stability, thereby ensuring the quality and output of meal replacement nutrition products are optimal.

[0427] Embodiment 5: Based on all the above embodiments, this embodiment further discloses a meal replacement nutritional product production line production control system (hereinafter referred to as "system") for executing the meal replacement nutritional product production line production control method:

[0428] See also Figures 2~10 The system needs to be installed in a light-proof environment. The system includes a controller and a casing 1 as a large part of the whole machine. The casing 1 is installed with:

[0429] An XZ axis linear module 5, the XZ axis linear module 5 is used to drive at least three test units 7 to move along the X or / and Z axis direction, and the test units 7 are used to contain and stir the meal replacement nutrition powder;

[0430] Y-axis linear module 4, Y-axis linear module 4 is used to drive the frame 3 to rise and fall along the height direction. The middle part of the frame 3 is provided with a test-detection mechanism 9 for dripping sodium hydroxide solution (hereinafter referred to as NaOH solution), iodine solution, sulfuric acid solution and sodium thiosulfate solution into the test unit 7 and for visually detecting the state of the meal replacement nutrition powder. The left and right ends of the frame 3 are symmetrically provided with a clamping-sampling mechanism 8 for clamping and placing the meal replacement nutrition (area A in the figure, hereinafter referred to as "tank body", it should be pointed out that the tank body is not sealed) and for extracting the meal replacement nutrition powder (hereinafter referred to as "powder") from the tank body;

[0431] A water supply tank group 6, which is used to drip boiling water, warm water, distilled water, α-amylase solution and dilute hydrochloric acid solution into the test unit 7;

[0432] Assembly line 2, the front and rear ends of assembly line 2 are used to connect the assembly line devices in the front-end process device and the back-end process device of the meal replacement nutritional product production line. The canned meal replacement nutritional products are connected to the front and back of assembly line 2. When they flow into the production control system, the can body is clamped by the test-detection mechanism 9, and then the powder is sampled and placed in the test unit 7, and then put back to assembly line 2 by the test-detection mechanism 9, and the meal replacement nutritional products are transported to the back-end process device by assembly line 2; assembly line 2 can be equipped with traditional positioning sensors to locate the position of the can body so that the corresponding mechanism can operate.

[0433] For example, as in the literature [1] The system disclosed in this embodiment can be placed at the end of the production line in the disclosed prior art, that is, the assembly line 2 is connected to its first conveying platform.

[0434] It also includes a controller, which is connected to a memory, and the memory stores program instructions. When the program instructions are executed by the controller, the production control system is used to execute the production control method described in all the above embodiments. The controller is used to connect and control all electrical components of the entire device to drive according to a preset program as a preset value and drive mode; it should be pointed out that the above drive mode corresponds to the corresponding start-stop time interval, speed, power and other output parameters between the relevant electrical components below, that is, it meets the requirements of the relevant electrical components described below to drive the relevant mechanical devices to operate according to the functions described therein.

[0435] Furthermore, for the system disclosed in this specific embodiment, the assembly line 2, the first servo electric cylinder 501, the second servo electric cylinder 503, the third servo electric cylinder, the liquid pump, the vibrator 702, the solenoid valve 704, the first servo motor 802, the second servo motor 804, the third servo motor 806, the electric clamp 810, the electric syringe 811 and the infusion pump 902 as described in the context, and the Y-axis linear module 4, the XZ-axis linear module 5, the water supply tank group 6, the test unit 7, the clamping-sampling mechanism 8 and the test-detection mechanism 9 composed thereof can all be controlled by executing a conventional PID controller algorithm (Proportion Integral Differential) through a controller to achieve corresponding operation start-stop time intervals, speed, power and other output parameter controls, that is, to achieve the Y-axis linear module 4, the XZ-axis linear module 5, the water supply tank group 6, the test unit 7, the clamping-sampling mechanism 8 and the test-detection mechanism 9 to perform a predetermined or preset action operation mode according to a certain function or motion trajectory.

[0436] In the technical solution provided in this embodiment, please refer to Figures 4 to 6 : The Y-axis linear module 4 is preferably a third servo electric cylinder; the third servo electric cylinder is arranged in a vertical form, and its cylinder body and piston rod are fixed to the casing 1 and the frame 3 respectively.

[0437] The XZ axis linear module 5 includes a first servo electric cylinder 501, a first frame 502, a second servo electric cylinder 503 and a second frame 504;

[0438] The first frame 502 is slidably matched with the housing 1 along the X-axis, and the second frame 504 is slidably matched with the first frame 502 along the Z-axis;

[0439] The cylinder body and piston rod of the first servo electric cylinder 501 are fixed to the frame 3 and the first frame 502 respectively;

[0440] The cylinder body and the piston rod of the second servo electric cylinder 503 are fixed to the first frame 502 and the second frame 504 respectively; all the test units 7 are installed on the second frame 504.

[0441] Specifically, when the third servo electric cylinder is started, it pushes the frame 3 to adjust the height along the housing 1. When the first servo electric cylinder 501 is working, it pushes the first frame 502 to slide along the X axis. When the second servo electric cylinder 503 is working, it pushes the second frame 504 to slide along the Z axis.

[0442] It is understandable that when the above three groups of electric cylinders are directly executed, taking the first frame 502 as an example, if there is no constraint added to its motion trajectory, vibration will inevitably occur.

[0443] The housing 1 and the first frame 502, the first frame 502 and the second frame 504, and the frame 3 and the housing 1 are connected to each other in a sliding fit relationship. A slide assembly is provided on each of the two sliding sides. The arrangement axial direction of the slide assembly is the same as the sliding direction of the above components, and is used to adapt to the corresponding linear degrees of freedom, provide guiding stability during operation, and regulate the running trajectory of the linear degrees of freedom to meet theoretical design and practical application requirements;

[0444] Specifically, the slide assembly includes a slider and a slide rail that slide with each other; the two are fixed to a body. Taking the first frame 502 and the second frame 504 as an example, the slider is fixedly connected to the second frame 504, and the slide rail is fixedly connected to the first frame 502;

[0445] Specifically, the slide assembly is preferably in two groups, which are respectively arranged at mutually symmetrical positions between the three groups of sliding matching relationships, providing a symmetrical sliding drive form to improve its stability during the sliding adjustment process.

[0446] It can be understood that when the Y-axis linear module 4 can control the test-detection mechanism 9 and the two clamping-sampling mechanisms 8 to perform lifting and lowering movements in the Y-axis direction, and when the XZ-axis linear module 5 can control the test unit 7 to adjust the X- and Z-axis directions, it is essentially equivalent to the test-detection mechanism 9 and the two clamping-sampling mechanisms 8 being able to perform position adjustment of any trajectory in three-dimensional space relative to (or anti-relative to) the test unit 7. Therefore, in order to avoid the length problem below, the position adjustment principle between the test-detection mechanism 9, the clamping-sampling mechanism 8 and the test unit 7 will be directly briefly described.

[0447] In the technical solution provided in this embodiment, please refer to Figure 5 , 6 And 8: The test unit 7 includes a rack 701 and a containing cup 703 placed in the rack 701; an exciter 702 is provided in the rack 701; 2 to 5 groups of solenoid valves 704 are provided outside the rack 701 (only 2 groups are shown in the figure), the water inlet of the solenoid valve 704 is connected to the water supply tank group 6 through a hose, and the water outlet of the solenoid valve 704 is aligned with the inside of the containing cup 703.

[0448] Specifically, when the vibrator 702 is working, a vibration force is generated to act on the containing cup 703; when any solution and / or meal replacement nutrition powder exists in the containing cup 703, it can be vibrated, stirred and mixed.

[0449] Specifically, the water supply tank group 6 includes at least five tanks, which are made of heat-insulating materials and store boiling water, warm water (60°C), distilled water, α-amylase solution and dilute hydrochloric acid solution in sequence. Each tank is equipped with a liquid pump, which is fixed on the tank, and its water inlet is connected to the tank, and its water outlet is connected to the water inlet of the solenoid valve 704 through a hose. When executed, the above liquids are poured into the containing cup 703 according to the test sequence.

[0450] Preferably, the containing cup 703 is slidably fitted in the storage rack 701 , so that the clamping and sampling mechanism 8 described later can clamp the containing cup 703 and pour the waste into the waste bucket 10 .

[0451] Further preferably, the containing cup 703 has a scale that can record the volume of the liquid in the cup, for example, the volume of sodium thiosulfate solution consumed by A, B and C can be recorded.

[0452] In the technical solution provided in this embodiment, please refer to Figures 6 and 7 : The clamping-sampling mechanism 8 includes a rotating module and a universal adjustment module. The rotating module is arranged on the frame 3, and the rotating module is used to adjust the universal adjustment module for pitch and horizontal angle adjustment;

[0453] The universal adjustment module drives the electric clamp claw 810 for clamping the meal replacement nutrition product and the electric syringe 811 for extracting the meal replacement nutrition product powder in the form of universal angle adjustment.

[0454] Specifically, the rotating module can control the universal adjustment module to adjust the pitch and horizontal angles, and the universal adjustment module itself can adjust the universal angles; and because the specific functional elements (electric clamp claw 810 and electric injector 811) are directly driven by the universal angle adjustment function of the universal adjustment module, the position layout between the rotating module and the universal adjustment module constitutes a "macro-micro" relationship. The rotating module can first adjust the general orientation of the universal adjustment module, and the universal adjustment module further performs precise position adjustment. It has a certain beneficial effect on the running trajectory, efficiency and executability of the electric clamp claw 810 and the electric injector 811.

[0455] Furthermore, the rotating module includes a first housing 801 fixed on the frame 3, a first servo motor 802 fixed in the housing 801 and used to adjust the second housing 803 for pitch angle adjustment, and a second servo motor 804 fixed in the second housing 803 and used to adjust the universal adjustment module for relative horizontal angle adjustment. When in use, the first servo motor 802 drives the second housing 803 and the second servo motor 804 to adjust the pitch angle, and the second servo motor 804, which can adjust the pitch angle itself, can further control the second housing 803 and the universal adjustment module to adjust the relative horizontal angle.

[0456] It should be noted that the wire of the second servo motor 804 should be long enough to meet the spacing change during the angle adjustment process. At the same time, the maximum rotation angle of the first servo motor 802 should not exceed 360° to avoid the wire of the second servo motor 804 from getting entangled.

[0457] Furthermore, the universal adjustment module includes a receiving frame 805 as the overall shape of the module, and the receiving frame 805 is fixed on the output shaft of the second servo motor 804. The universal adjustment module also includes at least three linear actuator arms, which are connected to the platform 809 and control it to perform universal angle adjustment. The platform 809 is equipped with an electric clamp claw 810 and an electric injector 811.

[0458] It should be pointed out that the three linear actuator arms can output three linear degrees of freedom that are independent of each other but arranged in parallel; when each linear degree of freedom is output according to a certain length, since the linear actuator arm is used as a rigid body between the frame 805 and the platform 809 to form a closed motion chain, all the endpoints of the platform 809 are affected by the feed force to achieve tilting adjustment. Furthermore, when each linear degree of freedom is output according to a preset certain length, the platform 809 can be adjusted in a universal angle. Its principle is similar to that of a parallel mechanism, so it can also be controlled and driven by the PID controller described above.

[0459] Preferably, the model of the electric clamp claw 810 is a ROBOTIQ three-finger electric clamp claw. The electric clamp claw 810 is responsible for clamping the containing cup 703 and the can body.

[0460] Preferably, considering the difference between powder and liquid, two electric syringes 811 can be installed on the platform 809, one for extracting powder and one for extracting liquid. The syringe for extracting powder can be selected with a large-caliber inlet model without a needle body.

[0461] Preferably, the model of the electric injector 811 is NARISHIGE electronically controlled micro-injector or / and MIRAJET-100 needle-free electric injector. The electric injector 811 is used to extract the powder from the tank in doses.

[0462] Preferably, each linear actuator arm includes a third servo motor 806 fixedly mounted on the accommodating frame 805, the output shaft of the third servo motor 806 is fixedly mounted with a first arm body 807, and the linear actuator arm also includes a second arm body 808, the head and tail of which are respectively hinged to the first arm body 807 and the platform 809 through a universal joint coupling. When the third servo motor 806 rotates, it drives the first arm body 807 to rotate, and because the first arm body 807 is hinged to the second arm body 808, and the other end of the second arm body 808 is hinged to the platform 809 (the position is relatively fixed), the second arm body 808 forms the above-mentioned linear degree of freedom, and realizes universal angle adjustment on the platform 809.

[0463] In the technical solution provided in this embodiment, please refer to Figure 6 and 9 : The test-detection mechanism 9 includes an infusion pump 902 for dripping NaOH solution, iodine solution, sulfuric acid solution and sodium thiosulfate solution, and also includes a CCD industrial vision camera 903 for visually detecting the powder state of the meal replacement nutritional product. The infusion pump 902 and the CCD industrial vision camera 903 are both installed in a connecting shell 901, and the connecting shell 901 is fixed on the frame 3.

[0464] Specifically, when the rack 3 itself or its position relative to the test unit 7 is adjusted, the infusion pump 902 can be aligned with the containing cup 703 of the test unit 7 to achieve dripping. Similarly, the CCD industrial vision camera 903 can also be adjusted accordingly to achieve visual inspection.

[0465] Specifically, the CCD industrial vision camera 903 is used to detect the color change of the powder.

[0466] It should be noted that the rack 3 is equipped with the same number of liquid tanks as the infusion pumps 902, and each liquid tank is connected to the water inlet of the corresponding infusion pump 902. All liquid tanks store NaOH solution, iodine solution, sulfuric acid solution and sodium thiosulfate solution respectively.

[0467] Preferably, the model of the infusion pump 902 is HNPM micro-annular gear pump mzr-4605.

[0468] In the technical solution provided in this embodiment, please refer to Figures 3-5 : It also includes a waste barrel 10, which is arranged in the housing 1. When the whole machine test is completed, boiling water is needed to rinse the containing cup 703 again to achieve cleaning, and the clamp-sampling mechanism 8 is used to pour it into the waste barrel 10.

[0469] In the technical solution provided in this embodiment, the above content introduces the principle of each component of the system. The following will introduce the logic of its operation:

[0470] First, as a testing process station, this system can perform quantitative testing according to production batches (for example, in every 1,000 cans of meal replacement products, the 333rd, 666th, and / or 999th meal replacement products are selected as samples for testing to reflect the product performance under the production status of the batch), or randomly select for random testing, or manually select for testing by staff. Taking any of the above testing modes as an example, the working logic of the system is as follows:

[0471] P1, when the tank is transported from the assembly line 2 to the housing 1, the positioning sensor detects the position of the corresponding tank, and the system starts to work;

[0472] P2, the clamping and sampling mechanism 8 extracts the powder in the can into the containing cup 703 of the testing unit 7.

[0473] P2.1, the Y-axis linear module 4 and the XZ-axis linear module 5 are adjusted so that the test unit 7 and the frame 3 reach the best position relative to each other, or the clamping-sampling mechanism 8 reaches the corresponding position;

[0474] P2.2, the rotation module of the clamping and sampling mechanism 8 is adjusted in pitch and relative horizontal angle (macro adjustment), and the universal adjustment module needs to be in place with the angle facing the tank body, and the electric injector 811 needs to be able to be inserted into the tank body after it is in place;

[0475] P2.3, the universal adjustment module of the clamping and sampling mechanism 8 performs universal angle adjustment (micro adjustment), driving the electric clamp claw 810 and the electric injector 811 to reach the vicinity of the tank body along a certain trajectory;

[0476] P2.4, after the electric clamp claw 810 reaches the designated position, it clamps the can body;

[0477] P2.5, the universal adjustment module of the clamping-sampling mechanism 8 performs further universal angle adjustment, so that the tank body and the powder inside are tilted, so that the electric injector 811 can extract the powder therefrom;

[0478] P2.6, the electric injector 811 pushes the powder into the containing cups 703 of the two test units 7;

[0479] P2.7, all components of the clamping-sampling mechanism 8 are temporarily reset, during which the above-mentioned tank body is restored to the flow line 2.

[0480] P3, 30 mL of boiling water is added to a containing cup 703 containing powder from the water tank group 6, and the vibrator 702 is operated. After vibrating and stirring for 3 minutes, 20 mL of distilled water is added to the water tank group 6 to form experimental group A;

[0481] The water tank group 6 is given 50 mL of distilled water in another containing cup 703 containing powder to form a control group B;

[0482] The water tank group 6 is provided with 50 mL of distilled water in the last containing cup 703 to form a blank group C;

[0483] P4, after adding 1 mL of 1% α-amylase solution to each containing cup 703 from the water supply tank group 6, a corresponding amount of warm water is added again (the total amount in the cup is 100 mL), the vibrator 702 is operated, and after vibrating for 60 minutes, 3 mL of 1 mol / L dilute hydrochloric acid solution is added to inactivate the enzyme before testing;

[0484] P5, the clamp-sampling mechanism 8 close to the waste barrel 10 is adjusted in position, allowing the electric injector 811 to extract 90 mL of the mixed liquid in each containing cup 703, and then the position is adjusted to pour 90 mL of the mixed liquid into the waste barrel 10, so that 10 mL of the mixed liquid is retained in each containing cup 703;

[0485] P6, the test-detection mechanism 9, the Y-axis linear module 4 and the XZ-axis linear module 5 are adjusted so that the test-detection mechanism 9 can be aligned with each containing cup 703; during the alignment process, the infusion pump 902 drips liquid into each containing cup 703;

[0486] During this period, the multifunctional meal replacement nutritional product production line production control method described in all the above embodiments is executed. In P6 of this embodiment, the sub-steps include:

[0487] P6.1, add 1 mol / L NaOH solution until the pH value of the mixed solution is >7.0. During this period, the staff can conduct tests. If the pH value of the mixed solution is not >7.0, add 0.1 mol / L NaOH solution in a quantitative manner in multiple rounds in a step-by-step manner until the pH value of the mixed solution is >7.0;

[0488] P6.2, add 5 mL of 1 mol / L iodine solution and leave to react for 10 min in the dark;

[0489] P6.3, add 1 mL of 25% sulfuric acid solution and titrate with 0.1 mol / L sodium thiosulfate solution until the blue color becomes lighter;

[0490] P6.4, add starch indicator manually or automatically, titrate until the blue color disappears completely and remains unchanged for 5 min.

[0491] P7, the production control method of the multifunctional meal replacement nutrition product production line described in all the above embodiments is completed. The water supply tank group 6 adds 250mL of warm water to each containing cup 703, and the vibrator 702 works for 5 minutes to achieve cleaning;

[0492] P8, the clamping-sampling mechanism 8 clamps each containing cup 703 and pours the warm water therein into the waste bucket 10; repeat multiple rounds of P8, during which the electric injector 811 also needs to extract warm water from the containing cup 703 and inject it into the waste bucket 10 for cleaning.

[0493] After the cleaning operation of P9 and P8 is completed, the staff confirms whether there is any residual liquid in the containing cup 703 and the electric injector 811. If there is, it will be processed. If not, it ends.

[0494] All the above embodiments only express the implementation methods of the relevant practical applications of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

[0495] For those skilled in the art, it can be further appreciated that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0496] At the same time, those skilled in the art can understand that all or part of the processes in all the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0497] The citations in the present invention are as follows:

[0498] [1] Zheng Yadan, Yang Peng, Feng Wei. A canned processing production line for meal replacement powder[P] CN201910974783.6: 2020-12-08.

[0499] [2] YAO YJ, LI ZF, QIN BW, et al. Evaluation of the intracellular lipid-lowering effect of polyphenols extract from highland barley in HepG2cells[J]. Food Science and Human Wellness, 2024, 13(1): 454-61.

[0500] [3] GRAZIANO S, AGRIMONTI C, MARMIROLI N, et al. Utilization and limitations of pseudocereals (quinoa, amaranth, and buckwheat) in foodproduction: A review[J]. Trends in Food Science & Technology, 2022, 125: 154-165.

[0501] [4] WANG CX, CHEN ZZ, BRENNAN MA, et al. The effect of extruded multigrain powder on metabolism and intestinal flora of highfat - dietinduced C57BL / 6J mice[J]. Food Research International, 2023, 169: 112878

[0502] [5] Wang Xia, Liu Yongji, Dong Ying, et al. Formula design and process optimization of multi-grain meal replacement powder[J]. Journal of the Chinese Cereals and Oils Association, 2023, 38(2): 75-82.

[0503] [6] Zhou Yurong, Yao Yijun, Wang Bo, et al. Optimization of grain meal replacement powder formula based on fuzzy mathematical sensory evaluation method [J]. Food Research and Development, 2024, 45(4): 103-117.

[0504] [7] Lei Jufang, Du Hongbing, Su Lihong. Highland barley nutritional powder and its processing method [P]. CN201010161860.5: 2012-10-10.

[0505] [8] Yin Zhihua, Xie Jiangli. A highland barley cordyceps grits nutritious powder and its preparation method [P]. CN201510767282.2: 2016-03-02.

[0506] [9] Liu Xiaosong, Fu Tingting, Yao Jia, et al. Study on pre-cooking technology of four kinds of grains and their compound products[J]. Food Science and Technology, 2019, 44(2): 170-177.

Claims

1. A production control method for a meal replacement nutritional product production line, characterized in that: In each production batch, a sample of the previously roasted meal replacement product consisting of buckwheat and highland barley is selected and the following steps are performed: S1, data initialization: collect the data vector U, including the sample gelatinization degree Dt, the appearance color score α and the corresponding baking time Bt at different time steps, and update the vector U to vector U through feature engineering new , and then allocate the data set D; S2, establish the LightGBM decision tree model: including hyperparameters θ, used to fit the vector U new The regression model linking the sample gelatinization degree Dt+1 at the next time step, and the loss function used to quantify the difference between the model's prediction and the actual target variable; In said S2, the following steps are included: S200, establishing the regression model: the regression model is a function F(U new ), which outputs the predicted continuous value by updating the rules of the model's predicted value; In the S200, it also includes: S2000, the function F(U new ) is constructed into the regression model through gradient boosting tree: ; Among them, F(U new ) is the final prediction model; F0(x) is the initial model; M is the number of boosting iterations; β m is the weight of the mth decision tree; In each iteration, the new decision tree h m (U new ) is trained to fit the residuals of the current model: ; Among them, i is an arbitrary sample; r mi is the residual of the i-th sample at the m-th iteration; y i is the true target value of the i-th sample; F m-1 (U new i) is the cumulative prediction value of the first m-1 decision trees for the i-th sample; S2001, define the rules for updating the prediction value of the model: m (U new ) is added to the regression model and the model's predicted values ​​are updated: ; Among them, F m-1 (U new ) is the cumulative prediction value of the first m-1 decision trees for the sample; S201, specifying a loss function: the loss function is a mean square error loss function MSE(D); In S201, for a given data set D: ; Among them, Dt+11,Dt+12,...,Dt+1 n is the vector U new 1,U new 2,...,U new The target value corresponding to n; The mean square error loss function MSE(D) is: ; in, is the model's predicted value for the i-th sample; S202, define gradient boosting and decision tree: In each step of boosting iteration, a new decision tree h is constructed by gradient boosting. m (U new ) to fit the current residual; through iteration, the new decision tree h m (U new ) is expressed as the function T(U new ;θ); the final prediction function F of the LightGBM decision tree model M (U new ) represents the accumulation of multiple decision trees; In the S202, the function T(U new ;θ) is: ; Where J is the number of leaf nodes, wj is the value of the jth leaf node, Rj is a region of the feature space associated with the jth leaf node, and I(·) is the indicator function; The final prediction function F M (U new )for: ; Where M is the number of decision trees, θ m is the parameter of the mth decision tree; S3, train the LightGBM decision tree model: the goal of each iteration is to minimize the loss function and build a new decision tree h m (U new ), and calculate the corresponding leaf node weight w m,j , and then the new decision tree h m (U new ) is added to the regression model; until the maximum number of iterations is reached; In S3, GOSS technology and EFB technology are used during training; After the execution of S3 is completed, in each production batch, a sample of the meal replacement nutritional product composed of the currently baked buckwheat and highland barley is selected, and the following steps are executed: S4, using the LightGBM decision tree model: predicting the gelatinization degree Dt+1 of the sample; In S4, the final prediction function F is used M (U new ) predicts the gelatinization degree Dt+1 of the sample at the next time step t+1: Assume that the model contains M decision trees. For the input vector U new , the prediction result of the mth decision tree is h m (U new ), the gelatinization degree Dt+1 of the sample is: ; Among them, β m is the weight of the mth decision tree; S5, correcting the baking temperature deviation: adjusting the baking temperature parameters of the electric heating blast drying oven based on the PID controller according to the predicted gelatinization degree Dt+1 of the sample; S6, repeat S4 to S5 until all production batches are completed; S7, the predicted degree of gelling and the actual degree of gelling are divided into evidence A and evidence B, and are combined by Dempster's combination principle to output a joint trust function Bel(A∪B); the joint trust function Bel(A∪B) is mapped to an interval value between [0,1] as a correction factor γ, and S4 is corrected; S700, collect the evidence A and the evidence B in the form of a collection: Evidence A is the predicted gelatinization degree at the current time step t in the previous 5 time steps: A=[Dt+1(t-1),Dt+1(t-2),Dt+1(t-3),Dt+1(t-4),Dt+1(t-5)]; Evidence B is the actual gelatinization degree measured in the previous 5 time steps at the current time step t: B=[Dt(t-1),Dt(t-2),Dt(t-3),Dt(t-4),Dt(t-5)]; S701, execute Dempster's combination principle: for all elements A in evidence A and evidence B i and B i , Dempster's combination rule computes the set of combined belief assignments Bel(C), where C is the space of possible hypotheses or states; in addition, it computes the combined uncertainty assignment Pl(C): S7010, merge trust allocation Bel(C): ; S7011. Combined uncertainty allocation Pl(C): ; In S7010~S7011, and are a subset of evidence A and evidence B respectively; mass is the weight; C is the possible set; ∅ represents the empty set; S7012. Obtain the joint trust function Bel(A∪B): ; Bel(A) and Pl(A) are the confidence and uncertainty distributions of the set of evidence A; Bel(B) and Pl(B) are the confidence and uncertainty distributions of the set of evidence B; (Pl(A)∩Pl(B)) is the uncertainty distribution of the intersection of evidence A and evidence B; ; S702, the joint trust function Bel(A∪B) is mapped to an interval value between [0,1] as a correction factor γ through a sigmoid function: ; Where e is the base of natural logarithms; S703, correction: weighted correction of step S4: 。 2. The production control method according to claim 1, characterized in that: In S1, the construction process of the vector U is: U=[Dt,α,Bt]; The feature engineering is an interactive feature engineering for improving model performance, which includes: Interaction feature F1: F1=Dt×α; Interaction feature F2: F2=Dt×Bt; Interaction feature F3: F3=α×Bt; Update the vector U new : ; Among them, the vector U new is a new feature vector containing the original features and all interaction features.

3. The production control method according to claim 1 or 2, characterized in that: In S5, the PID controller is responsible for minimizing the deviation from the target value, and the PID controller is: ; Where: △T(k) is the temperature adjustment at discrete time step k; e(k) is the gelatinization deviation at discrete time step k; e(k)=D target -Dt+1; △t is the discrete time step; e(k-1) is the gelatinization deviation at the previous discrete time step k-1; e(j) represents the gelatinization deviation at the jth discrete time step; K p is the proportional gain; K i is the integral gain; K d is the differential gain.

4. A production control system for a meal replacement nutritional product production line, characterized in that: The invention comprises a controller and a casing (1) as a large part of the whole machine; the casing (1) is provided with: An XZ axis linear module (5), the XZ axis linear module (5) being used to drive at least three test units (7) to move along the X or / and Z axis directions, the test units (7) being used to contain and stir meal replacement nutritional powder; a Y-axis linear module (4), the Y-axis linear module (4) being used to drive the frame (3) to be raised and lowered in a height direction; a testing-detection mechanism (9) being provided in the middle of the frame (3) for both dripping sodium hydroxide solution, iodine solution, sulfuric acid solution and sodium thiosulfate solution into the testing unit (7) and visually detecting the state of the meal replacement nutritional product powder; and a clamping-sampling mechanism (8) being symmetrically provided at the left and right ends of the frame (3) for both clamping and placing the meal replacement nutritional product and for extracting the meal replacement nutritional product powder from the meal replacement nutritional product; A water supply tank group (6), the water supply tank group (6) is used to drip boiling water, warm water, distilled water, α-amylase solution and dilute hydrochloric acid solution into the test unit (7); It also includes a controller, which is connected to a memory, in which program instructions are stored. When the program instructions are executed by the controller, the production control system is used to execute the production control method according to any one of claims 1 to 3.

5. The production control system according to claim 4, characterized in that: The clamping and sampling mechanism (8) comprises a rotating module and a universal adjustment module, wherein the rotating module is arranged on the frame (3), and the rotating module is used to adjust the universal adjustment module to adjust the pitch and horizontal angles; The universal adjustment module drives the electric clamp claw (810) for clamping the meal replacement nutritional product and the electric syringe (811) for extracting the meal replacement nutritional product powder in the form of universal angle adjustment.

6. The production control system according to claim 5, characterized in that: The testing and detecting mechanism (9) comprises an infusion pump (902) for dripping sodium hydroxide solution, iodine solution, sulfuric acid solution and sodium thiosulfate solution, and also comprises a CCD industrial vision camera (903) for visually detecting the powder state of the meal replacement nutritional product. The infusion pump (902) and the CCD industrial vision camera (903) are both installed in a connecting shell (901), and the connecting shell (901) is fixed on the frame (3).