Intelligent extraction regulation and control method and system
Through intelligent extraction and control methods based on GRU model and Black Widow Spider algorithm, the extraction environment is optimized in real time, and the existing extraction methods are solved, and efficient and low-cost extraction effects are achieved.
Patent Information
- Application Number
- CN202410941872.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing extraction methods have insufficient efficiency and universality, and cannot regulate the extraction environment in real time, resulting in low extraction efficiency and low accuracy.
Using intelligent extraction and control methods based on GRU model and Black Widow Spider algorithm, the extraction environment data is collected in real time. By optimizing the GRU model with the goal of minimum energy consumption, the temperature, pressure and carbon dioxide flow of the extraction environment are regulated to achieve accurate extraction condition control .
It improves extraction efficiency and output, reduces production costs, realizes precise regulation of different extraction targets, avoids waste of resources, simplifies equipment and operation processes, and enhances the practicality and control of extraction.
Smart Images

Figure CN118888024A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of extraction equipment, and in particular to an intelligent extraction control method and system. Background Art
[0002] In chemical analysis and sample pretreatment, extraction is a commonly used technique for separating and enriching target compounds from complex samples. There are many extraction methods available, mainly including organic solvent extraction, supercritical fluid extraction, ultrasonic-assisted extraction, and enzymatic hydrolysis. Among them, organic solvent extraction includes solid phase and liquid-liquid extraction. Solid phase extraction consumes less organic solvent, can process samples in batches, can both enrich and remove impurities, is easy to operate, and can selectively extract specific compounds by selecting different solid phase materials. However, the repeatability between batches is difficult to guarantee, and the packing tightness and particle size of the filler will affect the extraction efficiency. It is not applicable to solid samples and needs to be converted into liquid form first. Solid phase microextraction does not require the use of solvents, reduces subsequent processing steps, is easy to operate, and is suitable for gas, liquid and solid samples. However, the extraction efficiency for some compounds is low and requires specific equipment. Liquid-liquid extraction is suitable for extracting organic matter from the aqueous phase with organic solvents. It is simple to operate and has low cost. However, multiple extractions are required to improve the recovery rate, consume more organic solvents, and the extraction efficiency is affected by the distribution coefficient. The extraction efficiency is not high for substances with a small distribution coefficient. Supercritical fluid extraction uses supercritical fluid as a solvent, which has high diffusivity and low viscosity, can improve extraction efficiency, and is suitable for heat-sensitive compounds. However, the equipment cost is high, and the extraction efficiency of polar compounds is not as good as that of non-polar compounds. Microwave-assisted extraction has a fast heating speed and a short extraction time. It can be used for solid and semi-solid samples, and can improve extraction efficiency and recovery rate. However, it causes decomposition of heat-sensitive compounds, and the equipment cost is relatively high. Ultrasonic-assisted extraction is easy to operate, low in cost, suitable for samples of various forms, and can improve extraction efficiency. However, the frequency and power of ultrasound affect certain active compounds, causing degradation. The continuous flow mode of countercurrent chromatography can achieve high-efficiency separation and avoid irreversible adsorption of the stationary phase. However, the equipment is complex and costly, and the separation effect is limited for compounds with a narrow polarity range.
[0003] On the whole, if the existing extraction methods want to achieve good extraction effects, most of them have very high requirements on equipment and extraction raw materials, the conditions are relatively harsh, and the universality is not strong; in addition, the extraction process is relatively complicated and time-consuming, and the extraction efficiency is not high; in addition, since the extraction environment cannot be adjusted in real time and the control line is not strong, the accuracy of the extraction cannot be guaranteed. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide an intelligent extraction control method and system with strong practicality, good controllability and simple extraction.
[0005] Technical solution: The intelligent extraction control method described in the present invention includes: establishing a GRU model based on the coordination of an update gate and a reset gate, optimizing the GRU model based on the black widow spider algorithm with the goal of minimizing energy consumption; collecting the working condition data of the extraction environment in real time, and preprocessing it into historical working conditions; inputting the historical working conditions into the optimized GRU model, and outputting predicted working conditions; comparing the historical working conditions with the predicted working conditions, and using the more optimal working conditions as the target value to control the extraction environment.
[0006] Furthermore, the preprocessing sorts the operating condition data according to the collection time, and combines various parameters obtained at the same time into a group of historical operating conditions, and outputs them in a sequence form that conforms to the GRU model.
[0007] Furthermore, the GRU model is established according to the following formula:
[0008]
[0009] In the formula, G t represents the state at time t; S t represents the update gate; Q t-1 represents a reset gate; K represents a constant.
[0010] Furthermore, the output of the update gate is as follows:
[0011] Z t =σ(W t ·[h t-1 ,x t ]+b t )
[0012] Where W z is the weight matrix; represents matrix multiplication; [h t-1 ,x t ] represents the hidden state h of the previous moment of the connection t and the current input x t ; b t is the bias term; σ is the sigmoid activation function;
[0013] The output of the reset gate is as follows:
[0014] Z t =σ(W r ·[h t +x t ]+b r )
[0015] In the formula, w r is the weight matrix; represents matrix multiplication; [h t-1 +x t] represents the hidden state h of the previous moment of the connection t and the current input x t ; b r is the bias term; σ is the sigmoid activation function.
[0016] Furthermore, the Black Widow Spider algorithm aims to minimize the energy consumption of the predicted working condition, and obtains the optimal weight matrix and bias term of the update gate and the reset gate through iteration, thereby optimizing the GRU model; the above process includes:
[0017] Initialize the black widow spider population and search space based on historical working conditions, and each black widow spider population corresponds to the energy consumption power of the historical working conditions;
[0018] Randomly generate the location of black widow spider populations;
[0019] With the goal of minimizing energy consumption, the position of each black widow spider population is iteratively updated in the search space, and the black widow spider population is restricted within the search space;
[0020] After the maximum number of iterations is met, the best position of the best black widow spider in the best black widow spider population is selected as the optimal weight matrix and bias item;
[0021] The optimal weight matrix and bias term are used to update the output of the gate and reset the gate to complete the optimization of the GRU model.
[0022] Furthermore, the intelligent extraction and control method extracts lutein; the operating data of the extraction environment includes the temperature and pressure of the reaction during extraction, and the flow rate of carbon dioxide in the air.
[0023] Furthermore, when extracting the lutein, the following steps are included:
[0024] Set various parameters and the maximum number of iterations, initialize the black widow spider population, and each black widow spider population corresponds to the position value of the energy consumption power of a working condition data;
[0025] The energy consumption power corresponding to the black widow spider population is evaluated based on the fitness objective function, the black widow spider population is sorted according to the energy consumption power, and the black widow spider population with the lowest energy consumption power is selected as the best black widow spider population; the energy consumption power corresponding to the black widow spider population evaluated based on the fitness objective function is mainly determined by the following formula:
[0026]
[0027] k=2αr-α
[0028]
[0029] In the formula, R power is the energy consumption and operating power of the lutein extraction equipment; x pre is the pressure value predicted in the predicted working condition; x tem is the temperature value predicted in the predicted working condition; x co2 is the predicted carbon dioxide flow data in the predicted working condition; k is the power regulation coefficient; α is the convergence factor; r is a random number between [0.1]; p is the pressure value in the historical working condition; t is the temperature value in the historical working condition; c is the carbon dioxide flow data in the historical working condition; p i is the pressure value of the historical working condition at time i; t i is the temperature value of the historical working condition at time i; c i is the carbon dioxide flow data of the historical working condition at time i;
[0030] Updating the position of each black widow spider population is done by:
[0031] G new =p new +β·(p best -p i )·λ+tach·(p1-p2)
[0032] In the formula, β is the parameter that controls the position change, and its value range is (0, 1.5); λ is a random number in (0, 1); P best The best position determined for the black widow spider is the optimal value of the energy consumption power of the current lutein extraction device; p new is the random distribution position of the black widow spider within the current range, that is, the power value of the lutein extraction device within a reasonable range; P i is the position of the black widow spider at position i; G new is the current position of the black widow spider, and tach is the tangent curve function.
[0033] Furthermore, the female hormone secreted by the black widow spider population is calculated based on the even function to find the best black widow spider. The formula is as follows:
[0034]
[0035] In the formula, x i It is a suitable location within the range where black widow spiders, which secrete estrogen, may appear; is to estimate the number of iterations to find a high-quality black widow spider; θ is a random arc between [0, Π]; x best It is the position where the high-quality black widow spider secretes the most female hormone; x1 and x2 are the positions of the black widow spider that secretes female hormone at positions 1 and 2;
[0036] Update the best black widow spider position by:
[0037]
[0038] In the formula, x i The optimal range of lutein extraction parameters, is the number of iterations to estimate the optimal extraction parameters of lutein, x bes t is the optimal extraction value of lutein; R is the corresponding value of the optimal extraction parameter of lutein at the R position; L is the corresponding value of the optimal extraction parameter of lutein at the L position; W is the operation function of the lutein extraction device; γ represents the fluctuation parameter of the lutein extraction amount.
[0039] The intelligent extraction control system described in the present invention includes an extraction process module, a sensor module, and a central control module; the extraction process module includes an extraction device for performing an extraction reaction in an extraction environment; the sensor module is used to obtain the working condition data of the extraction environment; the central control module is used to obtain the predicted working condition based on the optimized GRU model, and to control the extraction environment using the more optimal working condition as the target value.
[0040] Furthermore, the operating condition data includes the carbon dioxide concentration value of the extraction environment, the temperature value and pressure value of the extraction device during reaction; the sensor module includes multiple temperature sensors, pressure sensors, carbon dioxide flow sensors and timers; the central processing module includes a temperature regulating device, a pressure regulating device, a carbon dioxide flow regulating device, a data pre-storage module, an algorithm module and a control module; the algorithm module is used to establish a GRU model and optimize it according to the black widow spider algorithm; the data pre-storage module is used to store historical operating conditions and predicted operating conditions; the control module compares historical operating conditions with predicted operating conditions, and uses the more optimal operating conditions as target values to regulate the temperature regulating device, the pressure regulating device and the carbon dioxide flow regulating device.
[0041] Beneficial effects: The present invention has the following significant effects: 1. The present invention is highly practical: Since the present invention adopts an algorithm to regulate the extraction environment in real time, and since different extraction raw materials will produce different situations during the reaction, such as the changes in parameters such as temperature and carbon dioxide concentration are not the same, the method and system proposed by the present invention can be targeted and precisely regulated, such as adjusting the initial value to control the environmental conditions of different extraction targets, thereby avoiding waste of resources, and at the same time, the requirements for raw materials are not harsh, and the practicability is strong; 2. Good controllability: Taking lutein as an example, the present invention proposes a method for obtaining the lutein extraction working condition control parameters with the lowest energy consumption based on the GRU model optimized by the black widow spider algorithm, and also provides an intelligent extraction regulation system, including an extraction process module, a sensor module, and a central control module; the extraction device is used to perform an extraction reaction in an extraction environment; the sensor module is used to obtain the working condition data of the extraction environment (the carbon dioxide concentration value of the extraction environment, the temperature value and pressure value of the extraction device during the reaction); the central control module The block is used to obtain the predicted working condition according to the GRU model optimized by the black widow spider algorithm with the lowest energy consumption as the goal, and to adjust the extraction environment with the better working condition as the target value, so that the current extraction device operating power reaches the optimal and the power consumption is minimized; on the one hand, the present invention automatically and accurately adjusts the working condition of the extraction reaction based on the algorithm, avoids the error of manual autonomous regulation, and saves labor costs and time costs; on the other hand, compared with the ordinary process, the present invention combines the extraction efficiency with the rationalization of costs to extract lutein, improves the yield and quality of lutein, reduces the production cost, and has a broad application prospect; 3. The extraction of the present invention is simple: first, the equipment used in the present invention is simple, the process flow is relatively simple, and automation is basically realized; in addition, based on the algorithm control, the data can be repeatedly recycled, intelligent and efficient extraction can be carried out, and the working condition data can be recorded, and the collected working condition data can be recorded as the historical working condition for the input of the prediction model, so as to improve the accuracy of the algorithm extraction, to ensure the consistency and stability of the extraction effect, and to improve the extraction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 This is a schematic diagram for optimizing the Black Widow Spider algorithm;
[0043] Figure 2 It is a schematic diagram of the structure of the intelligent extraction and control system;
[0044] Figure 3 Schematic diagram of the extraction process of the intelligent extraction control system. DETAILED DESCRIPTION
[0045] The present invention is further explained below in conjunction with the accompanying drawings and specific implementation methods.
[0046] See also Figure 1As shown, the intelligent extraction control method described in the present invention includes: establishing a GRU model based on the coordination of an update gate and a reset gate, optimizing the GRU model based on a black widow spider algorithm with the goal of minimizing energy consumption; collecting working condition data of the extraction environment in real time, and preprocessing it into historical working conditions; inputting the historical working conditions into the optimized GRU model, and outputting predicted working conditions; comparing the historical working conditions with the predicted working conditions, and using the more optimal working conditions as the target value to control the extraction environment.
[0047] See also Figures 2 to 3 As shown, the intelligent extraction control system described in the present invention includes an extraction process module, a sensor module, and a central control module; the extraction process module includes an extraction device for performing an extraction reaction in an extraction environment; the sensor module is used to obtain the working condition data of the extraction environment; the central control module is used to obtain the predicted working condition based on the optimized GRU model, and to control the extraction environment using the more optimal working condition as the target value.
[0048] The method and system proposed by the present invention are explained in detail below.
[0049] Among them, the preprocessing sorts the working condition data according to the collection time, and combines various parameters obtained at the same time into a set of historical working conditions, which are output in the form of a sequence that conforms to the GRU model.
[0050] In the GRU model, the Update Gate and the Reset Gate are two key gating units, which play an important role in controlling the flow of information and processing long-term dependencies in sequence data. The Update Gate and the Reset Gate work together to adjust the output of the gate by using the sigmoid function and the hyperbolic tangent function (tanh). The Update Gate is controlled by a sigmoid activation function, and its output range is between [0,1]. The function of the Update Gate is to determine the contribution of new information to the current memory. The Reset Gate controls how much past information is considered at the current moment. Among them, the output of the Update Gate is as follows:
[0051] Z t =σ(W t ·[h t-1 ,x t ]+b t )
[0052] Where W z is the weight matrix; represents matrix multiplication; [h t-1 ,x t ] represents the hidden state h of the previous moment of the connection t and the current input x t ; b t is the bias term; σ is the sigmoid activation function;
[0053] The output of the reset gate is as follows:
[0054] Z t =σ(W r ·[h t +x t ]+b r )
[0055] In the formula, w r is the weight matrix; represents matrix multiplication; [h t-1 +x t ] represents the hidden state h of the previous moment of the connection t and the current input x t ; b r is the bias term; σ is the sigmoid activation function.
[0056] The GRU model is established according to the following formula:
[0057]
[0058] In the formula, G t represents the state at time t; S t represents the update gate; Q t-1 represents a reset gate; K represents a constant.
[0059] The Black Widow Spider algorithm is used to optimize each set of weight matrices and bias items of the update gate and reset gate. By optimizing these parameters, the functions of the update gate and reset gate of the model can be better controlled, making the structure simpler, thereby improving the prediction accuracy of the GRU model. Specifically, the Black Widow Spider algorithm takes the lowest energy consumption of the predicted working condition as the goal, and obtains the optimal weight matrix and bias item of the update gate and reset gate through iteration, thereby optimizing the GRU model. The above process includes:
[0060] First, the black widow spider population and search space are initialized based on historical working conditions. Each black widow spider population corresponds to the energy consumption power of historical working conditions. Initialize the black widow spider population and randomly initialize the population position within the boundary of the search space:
[0061]
[0062] In the formula, f i is the position of the initial black widow spider population; R t is the moderate position of the black widow spider population, ranging from [0,1]; R max , R min They are the limits of the activity range of the black widow spider population, that is, the scope of the problem to be solved.
[0063] Secondly, the positions of the black widow spider population are randomly generated. Specifically, in the initialization stage, a set of randomly distributed black widow spider population positions f are generated. t , expressed as:
[0064]
[0065] In the formula, f t is the location of the black widow spider population; f best is the population position of black widow spiders with high estrogen levels, i.e. the optimal position; f r1 , f r2 are the positions of the black widow spider population in r1 and r2 respectively, and λ is a random binary {0, 1}.
[0066] With the goal of minimizing power consumption, the position of each black widow spider population is iteratively updated in the search space, and the black widow spider population is restricted to the search space. Specifically, the accuracy of the black widow spider population is evaluated through a function, and an appropriate value is selected as the position of the black widow spider to update the position of the black widow spider. The corresponding formula is as follows:
[0067]
[0068] Among them, f(t+1) is the updated position of the black widow spider, f best is the optimal position of the current black widow spider, Q is a random number between [0.4, 09], β is a random number between [-1, 1], and f r1 (t) is the randomly selected position of the black widow spider, and f(t) is the current position.
[0069] After the maximum number of iterations is met, the best position of the best black widow spider in the best black widow spider population is selected as the optimal weight matrix and bias term. The optimal weight matrix and bias term are used to update the output of the gate and reset the gate to complete the optimization of the GRU model.
[0070] In this embodiment, the intelligent extraction and control method is used to extract lutein; the working condition data of the extraction environment includes the temperature and pressure value of the reaction during extraction and the carbon dioxide flow rate in the air. On this basis, when extracting the lutein, the following steps are included:
[0071] Set various parameters and the maximum number of iterations, initialize the black widow spider population, and each black widow spider population corresponds to the position value of the energy consumption power of a working condition data;
[0072] The energy consumption power corresponding to the black widow spider population is evaluated based on the fitness objective function, the black widow spider population is sorted according to the energy consumption power, and the black widow spider population with the lowest energy consumption power is selected as the best black widow spider population; the energy consumption power corresponding to the black widow spider population evaluated based on the fitness objective function is mainly determined by the following formula:
[0073]
[0074] k=2αr-α
[0075]
[0076] In the formula, R power is the energy consumption and operating power of the lutein extraction equipment; x pre is the pressure value predicted in the predicted working condition; x tem is the temperature value predicted in the predicted working condition; x co2 is the predicted carbon dioxide flow data in the predicted working condition; k is the power regulation coefficient; α is the convergence factor; r is a random number between [0.1]; p is the pressure value in the historical working condition; t is the temperature value in the historical working condition; c is the carbon dioxide flow data in the historical working condition; p i is the pressure value of the historical working condition at time i; t i is the historical working condition at time i; c i is the carbon dioxide flow data of the historical working conditions at time i.
[0077] In the stage of determining the search space range, the corresponding principle of determining the position of the black widow spider in the algorithm is used to update the position of the energy consumption power of the device, and the position of each black widow spider population is updated through the following formula:
[0078] G new =p new +β·(p best -p i )·λ+tach·(p1-p2)
[0079] In the formula, β is the parameter that controls the position change, and its value range is (0, 1.5); λ is a random number in (0, 1); P best The best position determined for the black widow spider is the optimal value of the energy consumption power of the current lutein extraction device; p new is the random distribution position of the black widow spider within the current range, that is, the power value of the lutein extraction device within a reasonable range; P i is the position of the black widow spider at position i; G new is the current position of the black widow spider, and tach is the tangent curve function.
[0080] Furthermore, the fitness value is determined according to the estrogen, and then the best black widow spider is selected. The greater the estrogen, the higher the fitness value, and the better the individual black widow spider. The hiding method of the black widow spider is determined to optimize the search for the black widow spider, corresponding to the optimal extraction condition parameters of lutein, so as to achieve the optimization of lutein extraction. The search for black widow spiders is based on the amount of estrogen they secrete, and the quality of the black widow spiders is judged accordingly. Then an even function can be used to judge the amount of estrogen secreted by the black widow spider, and the high-quality black widow spiders can be determined accordingly. Specifically, the formula for finding the best black widow spider based on the even function to calculate the estrogen secreted by the black widow spider population is as follows:
[0081]
[0082] In the formula, x i It is a suitable location within the range where black widow spiders, which secrete estrogen, may appear; is to estimate the number of iterations to find a high-quality black widow spider; θ is a random arc between [0, Π]; x best It is the position where the high-quality black widow spider secretes the most female hormone; x1 and x2 are the positions of the black widow spider that secretes female hormone at positions 1 and 2;
[0083] Update the best black widow spider position by:
[0084]
[0085] In the formula, x i The optimal range of lutein extraction parameters, is the number of iterations to estimate the optimal extraction parameters of lutein, x bes t is the optimal extraction value of lutein; R is the corresponding value of the optimal extraction parameter of lutein at the R position; L is the corresponding value of the optimal extraction parameter of lutein at the L position; W is the operation function of the lutein extraction device; γ represents the fluctuation parameter of the lutein extraction amount.
[0086] In the intelligent extraction and control system described in the present invention, the operating condition data includes the carbon dioxide concentration value of the extraction environment, the temperature value and the pressure value during the reaction of the extraction device; the sensor module includes multiple temperature sensors, pressure sensors, carbon dioxide flow sensors and timers; the central processing module includes a temperature regulating device, a pressure regulating device, a carbon dioxide flow regulating device, a data pre-storage module, an algorithm module and a control module; wherein the algorithm module is used to establish a GRU model and optimize it according to the black widow spider algorithm; the data pre-storage module is used to store historical operating conditions and predicted operating conditions; the control module compares historical operating conditions with predicted operating conditions, and uses the more optimal operating conditions as target values to regulate the temperature regulating device, the pressure regulating device and the carbon dioxide flow regulating device.
[0087] Specifically, the system of the present invention extracts lutein. Among them, multiple temperature sensors, pressure sensors, carbon dioxide flow sensors and timers are placed in the lutein extraction environment; the carbon dioxide flow sensor is placed in the laboratory air extraction environment to control the carbon dioxide situation in the device when extracting lutein; the temperature sensor is built into the reaction container to measure the temperature change of the device during the lutein extraction reaction; the pressure sensor is installed inside the lutein extraction reaction device to measure the pressure change inside the device during the lutein reaction. The data pre-storage module is used to store the optimal extraction condition parameters of lutein extraction based on the data measured by the sensor module and the predicted working conditions calculated and output. The algorithm module is based on the data pre-stored in the data pre-storage module as the operation basis, and gives the optimal equipment operation strategy. The algorithm module and the control module establish a GRU model and optimize it according to the black widow spider algorithm, which is responsible for regulating the pressure regulating device, the temperature regulating device, and the carbon dioxide flow regulating device, and is used to regulate the lutein extraction reaction environment; the temperature regulating device is used to provide temperature control; the pressure regulating device is used to regulate the pressure environment; the carbon dioxide flow regulating device is used to control the carbon dioxide flow generated in the lutein extraction reaction. Based on the data prediction model and the strategy provided by the black widow spider algorithm module, the central processing module of lutein extraction is feedback-regulated. The sensor module collects data such as temperature, pressure, and carbon dioxide flow in the environment, and uses the data parameters collected by the sensor module as input to obtain the lowest energy consumption of lutein extraction. The ROM of the central controller pre-stores the environmental parameter data (temperature, pressure, and carbon dioxide flow) required for lutein power consumption. The algorithm uses the environmental parameter data required for lutein extraction and the real-time data of the sensor module as the input of its algorithm, thereby obtaining the optimized device control parameters, and sends its method to the random access memory of the data pre-storage module, and reads and executes the corresponding instructions from the random access memory to regulate the power consumption of each controller.
Claims
1. An intelligent extraction control method, characterized in that: The control method comprises: A GRU model is established based on the coordination of an update gate and a reset gate, and the GRU model is optimized based on a black widow spider algorithm with the goal of minimizing energy consumption; The working condition data of the extraction environment is collected in real time and preprocessed into historical working conditions; the historical working conditions are input into the optimized GRU model and the predicted working conditions are output; the historical working conditions are compared with the predicted working conditions, and the extraction environment is regulated using the more optimal working conditions as the target value.
2. The intelligent extraction control method according to claim 1, characterized in that: The preprocessing sorts the operating condition data according to the collection time, and combines various parameters obtained at the same time into a group of historical operating conditions, and outputs them in a sequence form that conforms to the GRU model.
3. The intelligent extraction control method according to claim 1, characterized in that: The GRU model is established according to the following formula: In the formula, G t represents the state at time t; S t represents the update gate; Q t-1 represents a reset gate; K represents a constant.
4. The intelligent extraction control method according to claim 1, characterized in that: The output of the update gate is as follows: Z t =σ(W t ·[h t-1 ,x t ]+b t ) Where W z is the weight matrix; represents matrix multiplication; [h t-1 ,x t ] represents the hidden state h of the previous moment of the connection t and the current input x t ; b t is the bias term; σ is the sigmoid activation function; The output of the reset gate is as follows: Z t =σ(W r ·[h t +x t ]+b r ) In the formula, w r is the weight matrix; represents matrix multiplication; [h t-1 +x t ] represents the hidden state h of the previous moment of the connection t and the current input x t ; b r is the bias term; σ is the sigmoid activation function.
5. The intelligent extraction control method according to claim 4, characterized in that: The Black Widow Spider Algorithm aims to minimize the energy consumption of the predicted working condition, and obtains the optimal weight matrix and bias term of the update gate and the reset gate through iteration, thereby optimizing the GRU model; the above process includes: Initialize the black widow spider population and search space based on historical working conditions, and each black widow spider population corresponds to the energy consumption power of the historical working conditions; Randomly generate the location of black widow spider populations; With the goal of minimizing energy consumption, the position of each black widow spider population is iteratively updated in the search space, and the black widow spider population is restricted within the search space; After the maximum number of iterations is met, the best position of the best black widow spider in the best black widow spider population is selected as the optimal weight matrix and bias item; The optimal weight matrix and bias term are used to update the output of the gate and reset the gate to complete the optimization of the GRU model.
6. The intelligent extraction control method according to claim 5, characterized in that: The intelligent extraction and regulation method extracts lutein; the working condition data of the extraction environment include the temperature and pressure value of the reaction during extraction and the flow rate of carbon dioxide in the air.
7. The intelligent extraction control method according to claim 6, characterized in that: When extracting the lutein, the following steps are included: Set various parameters and the maximum number of iterations, initialize the black widow spider population, and each black widow spider population corresponds to the position value of the energy consumption power of a working condition data; The energy consumption power corresponding to the black widow spider population is evaluated based on the fitness objective function, the black widow spider population is sorted according to the energy consumption power, and the black widow spider population with the lowest energy consumption power is selected as the best black widow spider population; the energy consumption power corresponding to the black widow spider population evaluated based on the fitness objective function is mainly determined by the following formula: k=2αr-α In the formula, R power is the energy consumption and operating power of the lutein extraction equipment; x pre is the pressure value predicted in the predicted working condition; x tem is the predicted temperature value in the predicted working condition; x co2 is the predicted carbon dioxide flow data in the predicted working condition; k is the power regulation coefficient; α is the convergence factor; r is a random number between [0.1]; p is the pressure value in the historical working condition; t is the temperature value in the historical working condition; c is the carbon dioxide flow data in the historical working condition; p i is the pressure value of the historical working condition at time i; t i is the temperature value of the historical working condition at time i; c i is the carbon dioxide flow data of the historical working condition at time i; Updating the position of each black widow spider population is done by: G new =p new +β·(p best -p i )·λ+tach·(p1-p2) In the formula, β is the parameter that controls the position change, and its value range is (0, 1.5); λ is a random number in (0, 1); P best The best position determined for the black widow spider is the optimal value of the energy consumption power of the current lutein extraction device; p new is the random distribution position of the black widow spider within the current range, that is, the power value of the lutein extraction device within a reasonable range; P i is the position of the black widow spider at position i; G new is the current position of the black widow spider, and tach is the tangent curve function.
8. The intelligent extraction control method according to claim 6, characterized in that: The best black widow spider is found by calculating the female hormone secreted by the black widow spider population based on the even function. The formula is as follows: In the formula, x i It is a suitable location within the range where black widow spiders, which secrete estrogen, may appear; is to estimate the number of iterations to find a high-quality black widow spider; θ is a random arc between [0, Π]; x best It is the position where the high-quality black widow spider secretes the most female hormone; x1 and x2 are the positions of the black widow spider that secretes female hormone at positions 1 and 2; Update the best black widow spider position by: In the formula, x i Suitable range of optimal extraction parameters for lutein; is the number of iterations for estimating the optimal extraction parameters of lutein; x best is the optimal extraction value of lutein; R is the corresponding value of the optimal extraction parameter of lutein at the R position; L is the corresponding value of the optimal extraction parameter of lutein at the L position; W is the operation function of the lutein extraction device; γ represents the fluctuation parameter of the lutein extraction amount.
9. An intelligent extraction control system for implementing the intelligent extraction control method according to any one of claims 1 to 8, characterized in that: It includes an extraction process module, a sensor module, and a central control module; the extraction process module includes an extraction device for performing an extraction reaction under an extraction environment; the sensor module is used to obtain working condition data of the extraction environment; The central control module is used to obtain the predicted working condition according to the optimized GRU model, and to regulate the extraction environment by taking the more optimal working condition as the target value.
10. The intelligent extraction control system according to claim 9, characterized in that: The working condition data includes the carbon dioxide concentration value of the extraction environment, the temperature value and the pressure value of the extraction device during reaction; the sensor module includes a plurality of temperature sensors, a pressure sensor, a carbon dioxide flow sensor and a timer; the central processing module includes a temperature regulating device, a pressure regulating device, a carbon dioxide flow regulating device, a data pre-storage module, an algorithm module and a control module; The algorithm module is used to establish a GRU model and optimize it according to the black widow spider algorithm; the data pre-storage module is used to store historical operating conditions and predicted operating conditions; the control module compares historical operating conditions with predicted operating conditions, and uses the more optimal operating conditions as target values to regulate the temperature regulating device, the pressure regulating device, and the carbon dioxide flow regulating device.
