Data optimization processing method and system suitable for food fermentation process
Through multi-scale cross-correlation feature filters and machine learning optimization algorithms, the problem of complexity and parameter coupling of the food fermentation process is solved, stable and reliable fermentation process control is achieved, and the prediction model accuracy and optimization of the kombucha fermentation process are significantly improved. control effect.
Patent Information
- Application Number
- CN202410750353.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-15
AI Technical Summary
The complex, nonlinear, time-delay and dynamic characteristics of the food fermentation process have led to difficulties in establishing and optimizing control of existing models, especially the mutual coupling of parameters, which results in uncontrollability.
Design a multi-scale cross-correlation feature filter (MCFF) to extract feature data, and combine it with machine learning methods and optimization algorithms to establish a reliable process model and optimization control system, and solve parameter coupling problems through high-level transformation and in-depth mining of features.
It achieves reliable modeling and optimal control of the food fermentation process, improves process stability and consistency, and the verification effect significantly improves the prediction model accuracy and optimal control effect during the kombucha fermentation process.
Smart Images

Figure CN118778442A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of food fermentation engineering, and in particular relates to a data optimization processing method and system suitable for food fermentation process. Background Art
[0002] As an ancient and important food processing technology, food fermentation has been widely used in the food industry. With people's continuous pursuit of food safety, nutrition and quality, food fermentation technology is also constantly evolving and innovating. Real-time control of the food fermentation process is an effective measure to ensure product consistency and stability. The food fermentation process has the characteristics of strong nonlinearity, time lag, strong coupling and dynamics. Its process mechanism is complex and easily affected by uncertain factors, which brings difficulties to the establishment of the fermentation process model and the realization of optimal control.
[0003] Generally, the process model describes the mapping relationship between input parameters and output parameters in the fermentation process, and optimizes the control according to the estimated output of the model. The process model mainly includes white box models based on the fermentation mechanism and black box models based on data-driven. White box models often require in-depth research on the fermentation mechanism, but because the fermentation process is relatively complex and susceptible to uncertain factors, the establishment of white box models becomes particularly difficult. In actual production, it is relatively easy to obtain process data, so black box models that only need to consider input and output variables and do not need to consider the fermentation process mechanism are more used in the modeling of complex systems.
[0004] In addition, the parameters in the fermentation process are coupled with each other, and the regulation of a single parameter may cause a chain reaction of other parameters, resulting in uncontrollable fermentation process.
[0005] Therefore, in view of the above technical problems and defects, it is urgent to design and develop a data optimization processing method and system suitable for the food fermentation process. Summary of the invention
[0006] In order to overcome the shortcomings and difficulties of the above-mentioned prior art, the purpose of the present invention is to provide a data optimization processing method and system suitable for the food fermentation process, which realizes the high-level transformation of data characteristics and completes the deep mining of process data to establish a reliable process model; and based on the process model, an optimization control system is built by combining the optimization algorithm to solve the problem of mutual coupling of process parameters.
[0007] The first object of the present invention is to provide a data optimization processing method suitable for the food fermentation process; the second object of the present invention is to provide a data optimization processing system suitable for the food fermentation process.
[0008] The first object of the present invention is achieved in that the method comprises the following steps:
[0009] Acquire process data corresponding to the food fermentation process; wherein the process data includes environmental parameter data and key parameter data of the fermentation system;
[0010] Constructing a multi-scale cross-correlation feature filter (MCFF), extracting feature data corresponding to the process data in real time based on the MCFF, and coordinating and mixing the extracted feature data;
[0011] In combination with the corresponding machine learning method, a data prediction model corresponding to the characteristic data is created; based on the data prediction model and in combination with the corresponding optimization algorithm, predictive optimization control data corresponding to the food fermentation process is generated in real time; wherein the machine learning method includes a linear method and a nonlinear method; and the optimization algorithm includes a swarm intelligence algorithm or a metaheuristic algorithm.
[0012] Furthermore, the step of obtaining process data corresponding to the food fermentation process further includes:
[0013] Constructing a process data set corresponding to the process data, and performing interval scaling (IS) on the process data in the data set;
[0014] The process data at the current moment is coupled with the target value data at the next moment.
[0015] Furthermore, the step of constructing a process data set corresponding to the process data and processing the process data in the data set further includes:
[0016] Combined with the input-output cooperative distance classification (IOCDC), the data set is divided into a training set and a test set according to the ratio. The cooperative distance calculation formula is as follows:
[0017]
[0018] Among them, i,j∈[1,z], z is the number of samples, d x (i,j) is the distance between samples based on the input, d y (i, j) is the distance between samples based on the output.
[0019] Furthermore, the step of constructing a process data set corresponding to the process data and processing the process data in the data set further includes:
[0020] Combined with IS to process the process data in real time, the IS function is as follows:
[0021] X i =(X oi –X oi,min ) / (X oi,max –X oi,min ) (2)
[0022] Among them, X oi is the real-time feature data before IS, X oi,max , X oi,min Compute the maximum and minimum values along each dimension.
[0023] Further, the constructing of the MCFF, extracting feature data corresponding to the process data in real time based on the MCFF, and coordinating and mixing the extracted feature data, further includes:
[0024] By adjusting the filter size, filters of different scales are constructed in real time, wherein the filter comprises an adjustable number of filter modules and at least one splicing module; wherein the filter module comprises sub-modules such as filtering, batch normalization processing, activation processing, and pooling processing, and the filter modules are designed to have the same size; the splicing module is used to integrate the output of the filter;
[0025] The feature data is processed in real time in combination with the corresponding filter module, including using a filtering submodule to extract the features of the input parameters, using a batch normalization submodule to process the filtered data to reduce the possibility of overfitting, using an activation submodule to achieve nonlinear mapping of the data, and using a pooling submodule to reduce the dimension of the feature data.
[0026] Furthermore, the method combines a corresponding machine learning method to create a data prediction model corresponding to the characteristic data, and generates prediction optimization control data corresponding to the food fermentation process in real time based on the data prediction model and in combination with a corresponding optimization algorithm, and also includes:
[0027] Generate and obtain index control data corresponding to the food fermentation process in real time;
[0028] Establishing an indicator control process estimation model corresponding to the indicator control data, and generating optimization algorithm parameter data corresponding to the indicator control process estimation model;
[0029] The index control data is encoded and processed, and the food fermentation process is optimized and controlled in real time according to the optimization algorithm parameter data and the sampling frequency data or sampling interval data of the process data; wherein the encoding processing includes floating point encoding and binary encoding.
[0030] The second object of the present invention is achieved in this way: the system is applied to the data optimization processing method, and the system comprises:
[0031] A data acquisition unit, used to acquire process data corresponding to the food fermentation process; wherein the process data includes environmental parameter data and key parameter data of the fermentation system;
[0032] constructing an extraction unit for constructing the MCFF, extracting feature data corresponding to the process data in real time based on the MCFF, and coordinating and mixing the extracted feature data;
[0033] A generation unit is created to create a data prediction model corresponding to the characteristic data in combination with a corresponding machine learning method, and to generate prediction optimization control data corresponding to the food fermentation process in real time based on the data prediction model and in combination with a corresponding optimization algorithm; wherein the machine learning method includes a linear method and a nonlinear method; and the optimization algorithm includes a swarm intelligence algorithm or a metaheuristic algorithm.
[0034] Furthermore, the data acquisition unit further includes:
[0035] A first data processing module, used for constructing a process data set corresponding to the process data, and normalizing the process data in the data set;
[0036] The second data processing module is used to couple the process data at the current moment with the target value data at the next moment; in this scheme, data processing is the first step, and then IS is performed to divide the training set and the test set;
[0037] The constructing feature extraction unit further includes:
[0038] A first construction module is used to construct filters of different scales in real time by adjusting the filter size, wherein the filter comprises an adjustable number of filter modules and at least one splicing module; wherein the filter module comprises filter, batch normalization, activation, and pooling submodules, and the filter sizes are designed to be the same; and the splicing module is used to integrate the outputs of the filter modules;
[0039] A third data processing module is used to process the feature data in real time in combination with the corresponding filter module, including using a filtering submodule to extract the features of the input parameters, using a batch normalization submodule to process the filtered data to reduce the possibility of overfitting, using an activation submodule to achieve nonlinear mapping, and using a pooling submodule to reduce the dimension of the feature data;
[0040] The creation generation unit further includes:
[0041] A first data acquisition module, used to generate and acquire index control data corresponding to the food fermentation process in real time;
[0042] A first data generation module is used to establish an indicator control process estimation model corresponding to the indicator control data, and generate optimization algorithm parameter data corresponding to the indicator control process estimation model;
[0043] The optimization and control module is used to encode and process the index control data, and optimize and control the food fermentation process in real time according to the optimization algorithm parameter data and the sampling frequency data or sampling interval data of the process data; wherein the encoding processing includes floating point encoding and binary encoding.
[0044] Furthermore, the first data processing module further includes:
[0045] The data set partitioning module is used to divide the data set into a training set and a test set in proportion in combination with the IOCDC method.
[0046] Furthermore, the first data processing module further includes:
[0047] The IS processing module is used to process the process data in real time in conjunction with the IS.
[0048] The present invention obtains process data corresponding to the food fermentation process through a method; wherein the process data includes environmental parameter data and key parameter data of the fermentation system; constructs MCFF, extracts feature data corresponding to the process data in real time based on MCFF, and performs collaborative mixing and processing on the extracted feature data; combines a corresponding machine learning method to create a data prediction model corresponding to the feature data, and generates prediction optimization control data corresponding to the food fermentation process in real time based on the data prediction model and in combination with a corresponding optimization algorithm; wherein the machine learning method includes a linear method and a nonlinear method; the optimization algorithm includes a swarm intelligence algorithm or a metaheuristic algorithm; and a system corresponding to the method realizes a high-level transformation of features, completes a deep mining of process data, and establishes a reliable process model; and based on the process model, an optimization control system is built in conjunction with the optimization algorithm to solve the problem of mutual coupling of process parameters.
[0049] In other words, in response to the difficulties of modeling and optimizing control of food fermentation processes, and considering the high-level feature extraction of process data, this solution is a food fermentation process modeling and optimization control method based on data-driven and multi-scale feature extraction; an MCFF feature extraction tool is designed to achieve multi-angle feature extraction of process data through filtering operations, and feature data of different scales are synergistically mixed to achieve high-level transformation of features, complete deep mining of process data to establish a reliable process model; and based on the process model, an optimization control system is built in conjunction with the optimization algorithm to solve the problem of mutual coupling of process parameters; and the kombucha fermentation process is taken as an example to verify the accuracy of the estimation model and the effectiveness of the optimization control method. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 A schematic diagram of constructing process data of a data optimization processing method applicable to a food fermentation process;
[0052] Figure 2 A schematic diagram of a single scale filter of a data optimization processing method applicable to a food fermentation process of the present invention;
[0053] Figure 3 A schematic diagram of a multi-scale feature data collaborative mixing and collaborative mixing data training method for a data optimization processing method applicable to a food fermentation process of the present invention;
[0054] Figure 4 A schematic diagram of multi-scale feature convolution collaborative mixing of a data optimization processing method applicable to a food fermentation process of the present invention;
[0055] Figure 5 It is a schematic diagram of the structure of an optimization control system of a data optimization processing method applicable to a food fermentation process of the present invention;
[0056] Figure 6 A is a schematic diagram of the verification results of a C source concentration (A) estimation model of a data optimization processing method applicable to a food fermentation process of the present invention;
[0057] Figure 6 B is a schematic diagram of the verification results of a bacterial concentration (B) estimation model of a data optimization processing method applicable to a food fermentation process of the present invention;
[0058] Figure 7A is a schematic diagram of simulation results of C source concentration optimization control of a data optimization processing method applicable to a food fermentation process of the present invention;
[0059] Figure 7 B is a schematic diagram of pH regulation and control of C source concentration optimization control in a data optimization processing method applicable to a food fermentation process of the present invention;
[0060] Figure 7 C is a schematic diagram of DO regulation and control of C source concentration optimization control in a data optimization processing method applicable to a food fermentation process of the present invention;
[0061] Figure 7 D is a schematic diagram of simulation results of cell concentration optimization control of a data optimization processing method applicable to a food fermentation process of the present invention;
[0062] Figure 7 E is a schematic diagram of pH regulation and control of bacterial concentration optimization control in a data optimization processing method applicable to a food fermentation process of the present invention;
[0063] Figure 7 F is a schematic diagram of DO regulation and control of bacterial concentration optimization control in a data optimization processing method applicable to a food fermentation process of the present invention;
[0064] Figure 8 A is a schematic diagram of bacterial concentration in a segmented control process of a data optimization processing method applicable to a food fermentation process of the present invention;
[0065] Figure 8 B is a schematic diagram of C source concentration of a data optimization processing method applicable to a food fermentation process of the present invention;
[0066] Figure 8 C is a schematic diagram of segmented optimization control of DO regulation (dissolved oxygen that needs to be regulated during the entire fermentation process) of a data optimization processing method applicable to a food fermentation process of the present invention;
[0067] Figure 8 D is a schematic diagram of pH regulation of segmented optimization control of a data optimization processing method applicable to a food fermentation process of the present invention;
[0068] Fig. 9 A schematic diagram of a data optimization processing method applicable to a food fermentation process according to the present invention;
[0069] Fig.10 This is a schematic diagram of the architecture of a data optimization processing system applicable to a food fermentation process according to the present invention;
[0070] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0071] In order to better understand the purpose, technical solutions and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0072] The present invention may also be implemented or applied through other different specific examples, and the details in this specification may also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0073] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0074] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. Secondly, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0075] The present invention will be further described in detail below in conjunction with the accompanying drawings. Figure 1-Figure 9 As shown, the present invention provides a data optimization processing method applicable to a food fermentation process, wherein the method comprises the following steps:
[0076] S01. Acquire process data corresponding to a food fermentation process; wherein the process data includes environmental parameter data and fermentation system parameter data;
[0077] S02, constructing a multi-scale cross-correlation feature filter MCFF tool, extracting feature data corresponding to the process data in real time based on the MCFF, and coordinating and mixing the extracted feature data;
[0078] S03. In combination with a corresponding machine learning method, a data prediction model corresponding to the characteristic data is created; based on the data prediction model and in combination with a corresponding optimization algorithm, predictive optimization control data corresponding to the food fermentation process is generated in real time; wherein the machine learning method includes a linear method and a nonlinear method; and the optimization algorithm includes a swarm intelligence algorithm or a metaheuristic algorithm.
[0079] The obtaining of process data corresponding to the food fermentation process also includes:
[0080] S011, constructing a process data set corresponding to the process data, and IS processing the process data in the data set;
[0081] S012. Couple the process data at the current moment with the target value data at the next moment.
[0082] The step of constructing a process data set corresponding to the process data and processing the process data in the data set further includes:
[0083] S0111. In combination with the IOCDC method, the data set is divided into a training set and a test set according to a ratio; wherein the division ratio of the training set and the test set is designed to be 7:3.
[0084] The step of constructing a process data set corresponding to the process data and processing the process data in the data set further includes:
[0085] S0112. Process the process data in real time in conjunction with IS.
[0086] In the specific example of this scheme, the data processing sequence is to first acquire the data, then construct the process data set (process data is coupled with the target value), then perform IS processing on the corresponding data, and finally divide the IOCDC data set.
[0087] The constructing of the MCFF, extracting feature data corresponding to the process data in real time based on the MCFF, and coordinating and mixing the extracted feature data, further includes:
[0088] S021. Constructing filters of different scales in real time by adjusting the filter size, wherein the filter comprises an adjustable number of filters and at least one splicing module; wherein the filter comprises sub-modules such as filtering, batch normalization, activation, and pooling, and the filter sizes are designed to be the same; and the splicing module is used to integrate the outputs of the filters;
[0089] S022. Processing the feature data in real time in combination with corresponding filters, including using a filtering module to extract features of input parameters, using a batch normalization submodule to process data after the convolution operation to reduce the possibility of overfitting, using an activation submodule to achieve nonlinear mapping, and using a pooling submodule to reduce the dimension of the feature data.
[0090] The method combines the corresponding machine learning method to create a data prediction model corresponding to the characteristic data, and generates prediction optimization control data corresponding to the food fermentation process in real time based on the data prediction model and in combination with the corresponding optimization algorithm, and also includes:
[0091] S031. Generate and obtain index control data corresponding to the food fermentation process in real time;
[0092] S032, establishing an indicator control process model corresponding to the indicator control data, and generating optimization algorithm parameter data corresponding to the indicator control process model;
[0093] S033. Encode and process the index control data, and optimize and control the food fermentation process in real time according to the optimization algorithm parameter data and the sampling frequency data or sampling interval data of the process data; wherein the encoding processing includes floating point encoding and binary encoding.
[0094] Specifically, in an embodiment of the present invention, a food fermentation process modeling and optimization control method based on data-driven and multi-scale cross-correlation feature extraction is provided, which includes two parts: fermentation process modeling and optimization control, as follows: the established model is an estimation model, that is, according to the process data at time t, the concentration of the control index at time t+a is estimated, and specifically includes the following steps:
[0095] S1, collect process data of key indicators in the fermentation process; S2, construct a process data set, and couple the process data at the current moment with the target value at the next moment; S3, normalize the constructed process data; S4, based on the data of S3, construct MCFF to extract the features of the process data; S5, based on the data of S4, synergistically mix the extracted features; S6, bring the synergistically mixed features into the machine learning method to establish an estimation model for prediction.
[0096] In step S3, IS is used to eliminate the differences between different dimensions.
[0097] In step S4, a multi-scale filter is constructed; the filter includes an adjustable number of filters and a splicing module; each filter includes sub-modules such as filtering, batch normalization, activation, and pooling, and the filter size is designed to be the same, and the construction of filters of different scales is achieved by adjusting the filter size; the filter is used to extract local features of the input parameters, the batch normalization sub-module is used to process the filtered data to reduce the possibility of overfitting, the activation sub-module is used to achieve nonlinear mapping, and the pooling sub-module is used to reduce the dimension of the feature data; the splicing module is used to integrate the output of the filter.
[0098] In step S5, the features extracted by filters of different scales are collaboratively mixed; the features extracted at different scales have the same size of feature maps; the collaborative mixing methods include average collaborative mixing, attention weighted average collaborative mixing, convolution collaborative mixing, etc.; feature collaborative mixing realizes the integration and dimensionality reduction of feature data of different scales.
[0099] In step S6, the collaboratively mixed data is used as input to a machine learning method for process model training; the machine learning method mainly includes a linear method and a nonlinear method.
[0100] The process prediction model is used instead of expert experience, and the combined optimization algorithm is used to solve the optimal parameter combination to control the fermentation process in real time. The specific steps include:
[0101] S10, determination of control indicators; S20, establishment of a process model for control indicators; S30, optimization algorithm parameter setting; S40, individual coding; S50, fitness function; S60, determination of sampling frequency or interval.
[0102] In step S10, the control index refers to an index with production guidance significance. In step S20, the process model is to establish an estimation model according to the above method to obtain an estimated value of the control index, which is used to observe the change trend of the control index; in step S30, the optimization algorithm is a meta-heuristic algorithm, and the parameters that need to be set mainly include the number of individuals, the maximum number of iterations, the range of individual gene changes, the length of individuals, etc. In step S40, the individual encoding method includes floating point encoding and binary encoding; in step S50, the fitness function provides a reference fitness value for the optimization algorithm to guide the optimization algorithm to converge toward the target direction; the main functions of the fitness function include but are not limited to model estimation, processing of estimation results, and other fermentation constraints; the model estimation refers to the model prediction of the control parameters; the processing of the estimation results refers to the processing of the estimation results of the control target, including derivation, summation, difference, average, etc.; the other fermentation constraints refer to whether the changes of other parameters are within a reasonable range when optimizing the control target. If they are beyond the range, a false result may be obtained, which is not conducive to the fermentation process; in step S60, the sampling frequency is reasonably designed according to the fermentation cycle, and the frequency should not be too high or too low; if the sampling frequency is too high, the number of adjustments is more, which will increase the fermentation cost; if the sampling frequency is too low, the number of adjustments is less, the key time point for adjusting the fermentation process will be missed, resulting in a decrease in yield.
[0103] In other words, the food fermentation process has strong nonlinearity, time lag and dynamic characteristics, and its process mechanism is complex and easily affected by uncertain factors, which brings difficulties to the establishment of process models and the realization of optimal control. It is necessary to establish a reliable process model to achieve optimal control of the fermentation process and ensure high-quality and stable operation of the fermentation process.
[0104] Establishing a stable and reliable process model is a prerequisite for achieving optimal control. In actual production, it is relatively easy to obtain process data, so black box models that only need to consider input and output variables and do not need to consider the fermentation process mechanism have received widespread attention. Black box models are mostly established using classical machine learning methods. In recent years, feature engineering has become increasingly important for improving model performance. By designing filters of different scales, the hierarchical features of the original data can be learned, which can not only extract basic features, but also synergistically mix these features to obtain more abstract and complex advanced features.
[0105] In the optimization control strategy, the key parameters that need to be adjusted are integrated into a one-dimensional vector to achieve simultaneous optimization of multiple variables, thus solving the problem of parameter coupling. The fermentation process model and optimization algorithm are used to jointly build an optimization control system to solve the optimal parameter combination. Commonly used optimization methods include genetic algorithm (GA), particle swarm optimization (PSO), grey wolf optimization algorithm (GWO), whale optimization algorithm (WOA), simulated annealing algorithm (SA) and other meta-heuristic algorithms.
[0106] In other words, the purpose of the present invention is to provide a food fermentation process modeling and optimization control method based on data-driven and multi-scale feature extraction, and apply it to the fermentation process of kombucha.
[0107] In order to achieve the above objectives, the present invention designs a multi-scale cross-correlation feature filter (MCFF) to extract the features of process data to establish a fermentation process prediction model, and based on the model, an optimization control system is built using an optimization algorithm;
[0108] The method first uses MCFF to extract features of input parameters in the fermentation process; secondly, the extracted features are synergistically mixed and reduced in dimension; then the synergistically mixed features are used as input of the classical machine learning method to train the process model; then the predicted value of the process model is used as the basis for optimization control; finally, the optimal fermentation parameter combination is solved using the optimization method.
[0109] The process model is an estimation model, that is, based on the process data at time t, the control index at time t+a is estimated, where a is the sampling time interval;
[0110] Optionally, the method for establishing the process model includes: step 1, collecting key process data in the fermentation process; the key process data are divided into environmental parameters and key parameters of the fermentation system; the environmental parameters mainly include temperature, pH, dissolved oxygen, stirring rate, etc.; the key parameters of the fermentation system mainly include bacterial concentration, nutrients, products, etc.; step 2, using the MCFF framework to extract the characteristics of the process data; the MCFF framework contains filters of different scales to achieve the extraction of process data features from different angles; the filter includes an adjustable number of filters and a splicing module; each filter includes sub-modules such as filtering, batch normalization, activation, and pooling, and the filters are of the same size, and the construction of filters of different scales is achieved by adjusting the filter size ; Use filters to extract features of input parameters, use batch normalization submodules to process filtered data to reduce the possibility of overfitting, use activation submodules to implement nonlinear mapping, and use pooling submodules to reduce the dimension of feature data; the splicing module is used to integrate filter outputs; step 3, synergistically mix features extracted by filters of different scales; the features extracted by filters of different scales have the same size of feature maps; the fusion methods include average synergistic mixing, attention weighted average synergistic mixing, convolution synergistic mixing, etc.; feature synergistic mixing realizes the integration and dimensionality reduction of feature data of different scales; step 4, uses the synergistically mixed data as input of the machine learning method for process model training; the machine learning method mainly includes linear methods and nonlinear methods;
[0111] Optionally, the construction of the optimization control system includes: step 1, determining the control index; the control index refers to an index with production guidance significance; step 2, establishing a process model of the control index; establishing an estimation model according to the above method to obtain an estimated value of the control index, which is used to observe the change trend of the control index; step 3, setting the optimization algorithm parameters; the optimization algorithm is a meta-heuristic algorithm, and the parameters that need to be set mainly include the number of individuals, the maximum number of iterations, the range of individual gene changes, the individual length, etc.; step 4, individual coding; the coding method consists of floating point coding and binary coding; step 5, fitness function; the fitness function provides a reference fitness value for the optimization algorithm to guide the optimization algorithm to converge towards the target direction; the main functions of the fitness function include but are not limited to the model The estimation of the model refers to the model prediction of the control parameters; the processing of the estimation results refers to the processing of the estimation results of the control target, including derivation, summation, difference, average, etc.; the other fermentation constraints refer to whether the changes of other parameters are within a reasonable range when optimizing the control target. If they are beyond the range, false results may be obtained, which is not conducive to the fermentation process; Step 6, determination of sampling frequency or interval; the sampling frequency should be reasonably designed according to the fermentation cycle, and the frequency should not be too high or too low; if the sampling frequency is too high, the number of adjustments will be more, which will increase the fermentation cost; if the sampling frequency is too low, the number of adjustments will be less, and the key time point for adjusting the fermentation process will be missed, resulting in a decrease in yield.
[0112] The present invention also provides a method for modeling and optimizing control of a kombucha fermentation process, which adopts the above method to model and optimize control of the kombucha fermentation process; the key process data include: fermentation time, bacterial concentration, substrate concentration, product concentration, dissolved oxygen, pH value, and theanine; the control index refers to bacterial concentration and substrate concentration.
[0113] Optionally, the process model parameters include filter size, number of filters, number of filters, learning rate, data synergistic mixing; optimization control system parameters include number of individuals in the optimization method, maximum number of iterations, individual length, individual gene variation range, individual encoding method, fitness function design, etc. The present invention also provides the application of the above method in the field of fermentation.
[0114] Aiming at the problems of modeling, optimization and control in the fermentation process, and considering the high-level feature extraction of process data, this application proposes a food fermentation process modeling and optimization control method based on data-driven and multi-scale feature extraction; designs an MCFF extraction tool, realizes multi-angle feature extraction of process data through filtering operations, and synergistically mixes feature data of different scales to achieve high-level transformation of features, completes deep mining of process data to establish a reliable process model; and based on the process model, builds an optimization control system with a joint optimization algorithm to solve the problem of mutual coupling of process parameters; and takes the kombucha fermentation process as an example to verify the accuracy of the estimation model and the effectiveness of the optimization control method.
[0115] Example: Modeling and optimization control in the kombucha fermentation process.
[0116] Kombucha is a tea-based beverage, which is fermented by a variety of probiotics such as yeast in tea sugar water. It is widely favored by consumers for its unique flavor and health benefits. The fermentation process of Kombucha is a nonlinear, time-delayed and dynamic process. The experiment was carried out in a 5L bioreactor in the laboratory, with the temperature set at 30°C and the stirring speed set at 150rpm. The variable environmental parameters are dissolved oxygen (DO) and pH, which are also used as variables for optimization control. The fermentation cycle is 72h, the sampling time interval is 2h, and 37 samples are collected in each batch. Seven indicators such as the current fermentation time, bacterial concentration, C source, total acid, dissolved oxygen, pH value, and the flavor substance theanine in the tea soup are selected as process variables. A total of 5 batches of data under normal production conditions were collected, of which 4 batches were used as training samples and the remaining batch was used as test samples to verify the effectiveness of the process model. The specific steps are as follows:
[0117] Step 1: Determination of control targets; the fermentation process of kombucha follows the law of food fermentation process and is divided into four stages: adaptation period, logarithmic growth period, stable period and decline period; optionally, this study mainly regulates the bacterial concentration in the logarithmic growth period and the C source consumption in the stable period to improve fermentation efficiency and reduce fermentation costs; therefore, an estimation model of bacterial concentration and C source is established;
[0118] Step 2: Construction of process data; Optionally, the process data of the first 36 samples of each batch are coupled with the target value at the next moment, such as Figure 1 As shown, 36 sets of process data were obtained for each batch, and 144 sets of process data were obtained for four batches in total; 6 indicators in the process variables constructed the process data, and one indicator was used as the target value;
[0119] Step 3: Preprocessing of process data; Since the dimensions and units of process data are different, IS is used for processing.
[0120] Step 4: Dataset division; Optionally, use the IOCDC method to divide the training set and the test set in a ratio of 7:3, with 100 samples in the training set and 44 samples in the test set;
[0121] Step 5: Establishment of the prediction model; the function of the prediction model is to estimate the concentration of bacteria and C source at time t+2 based on the process data at time t; the modeling sub-steps are as follows:
[0122] S100: Construction of multi-scale filters; Optionally, filters at three scales are designed, and the filter sizes are set to [2,1], [3,1], and [4,1] respectively; Optionally, such as Figure 2 As shown, 5 filters are designed in each filter, and the process data of a single channel is mapped to high-dimensional features of 5 channels, 5 different feature maps are obtained, and then spliced and processed; preferably, in each filter, the input data size is [6x1], the window sliding operation is filled with '0', the step size is 1, the batch normalization operation and the ReLU activation function are used, and the maximum pooling (pooling kernel: [3,1]) is used to reduce the data dimension; the feature map size of each filter output is [4x1], and the feature map size of each filter output is [4x1x5];
[0123] S200: Feature synergistic blending; optional, such as Figure 3 As shown in the figure, this study used three collaborative mixing strategies: average collaborative mixing, attention-weighted average collaborative mixing, and convolutional collaborative mixing to achieve collaborative mixing of feature map data of each filter;
[0124] The average synergistic mixture refers to the average value of the features at three scales, and the calculation method is as follows:
[0125] X_average_hybrid=∑X [i,1] / 3 (3)
[0126] Among them, X [i,1] is the feature map vector at different scales, i=2,3,4;
[0127] The attention-weighted average collaborative mixing means that the attention value of each scale output feature map is first extracted using average pooling, then the attention factor is added, and finally the activation function is activated. The calculation method is as follows:
[0128] Value_attention(i)=AveragePooling(X[i,1]),i=2,3,4 (4)
[0129] Sigmoid(x) = 1 / (1+exp(-x)) (5)
[0130] Attention(i) = Sigmoid(α * Value_attention(i)) (6)
[0131] X_attention_average_hybrid= (∑Attention(i) * X [i,1] ) / 3; (7)
[0132] Among them, X[i,1] is the feature map vector at different scales, α is the attention factor, the value is 0.8, i = 2, 3, 4;
[0133] The convolutional collaborative mixing refers to using the convolution method to map the features at three scales to a new space. The calculation method is as follows: Figure 4 As shown; preferably, the convolution filter contains 3 convolution kernels, all of which have a size of [3,1], a step size of 1, and are filled with '0';
[0134] S300: Bring in the trainer; Optionally, use the classic linear algorithm Partial Least Squares (PLS) as the trainer for extracting features; The entire architecture uses back propagation based on gradient descent to adjust the network weights; The evaluation parameters of the model are as follows:
[0135]
[0136] Step 6: The preferred optimization algorithm uses the evolutionary algorithm. Evolutionary algorithm parameter settings; optional, the number of individuals is 20, the maximum number of iterations is 100, the individual gene variation range is [-5,5], and the individual length is 16;
[0137] Step 7, individual coding; preferably, the individual is coded using binary. Since the adjustable parameters are limited to dissolved oxygen and pH, each variable is coded using an 8-bit binary number, for a total of 16 bits, so as to project the low-dimensional space data into the high-dimensional space, thereby increasing the possibility of obtaining a better solution.
[0138] Step 8, fitness function; taking the change rate of the C source and the bacterial concentration as the individual fitness, solving a set of pH and DO combinations that maximize the change rate; optionally, limiting the range of pH and DO changes;
[0139] Step 9, build an optimal control simulation system for the kombucha fermentation process; Figure 5As shown in the figure, at fermentation time t, a set of optimal pH and DO combinations are solved based on the current process data, process model and optimization algorithm; three control modes are designed according to different control objectives, namely, optimal control of bacterial concentration during kombucha fermentation, optimal control of C source consumption and segmented optimal control of bacterial concentration in the early stage and C source consumption in the later stage; the simulation system is developed using Matlab 2014b.
[0140] The above steps are the simulation application of the method of the present invention in the process of kombucha fermentation. The model and the optimization control system were verified using the fifth batch of process data. The verification results show that the model has high accuracy and good optimization control effect. The specific results are as follows:
[0141] As shown in Table 1, in the process of establishing the C source prediction model, after feature extraction, the performance of the single-scale model scale 3-PLS is higher than that of the PLS model, and the PLS model with multi-scale features mixed by convolution has achieved the best performance, R P 2 The results show that the multi-scale feature collaborative mixing strategy can improve the performance of the PLS model. Compared with the PLS model, the convolution collaborative mixing-PLS model has an accuracy improvement of 42.3%, which can be used for the estimation and monitoring of C sources in the fermentation process.
[0142] Table 1. Results of C source estimation model. C source unit: mg / mL
[0143]
[0144] As shown in Table 2, in the process of establishing the bacterial concentration estimation model, after feature extraction, the performance of the single-scale model is higher than that of the PLS model. The PLS model with multi-scale features mixed by convolution has achieved the best performance, R P 2 The results show that the multi-scale feature fusion strategy can improve the performance of the PLS model. Compared with the PLS model, the convolutional collaborative hybrid-PLS model has an accuracy improvement of 63.7%, which can be used for the estimation and monitoring of bacterial concentration during fermentation.
[0145] Table 2. Results of the bacterial concentration estimation model. Bacterial concentration unit: Au
[0146]
[0147]
[0148] like Figure 6 As shown in the figure, the prediction model was tested using the fifth batch of process data. Figure 6 A) and bacterial concentration ( Figure 6 B) The estimated results are basically consistent with the actual change trend, and the verification results are good, indicating that the established estimation model is stable and reliable.
[0149] like Figure 7 As shown in Figure 2, when optimizing the C source, the optimization time is 6h-70h, and the optimal pH ( Figure 7 B) and DO( Figure 7 C) parameter combination, so that the C source ( Figure 7 A) is consumed faster, which indicates that the C source consumption rate can be increased and more energy can be provided; when optimizing the bacterial concentration, the optimization time is 6h-70h, and the best pH ( Figure 7 E) and DO( Figure 7 F) parameter combination to obtain a larger bacterial concentration ( Figure 7 D), which indicates that a larger number of cells can be obtained, laying the foundation for obtaining more products.
[0150] However, the regulation of a single indicator cannot meet the needs of the entire fermentation process, so a segmented fermentation optimization control is designed; the bacterial concentration is regulated within 8h-24h, and the C source is regulated within 26h-50h; Figure 8 As shown, the bacterial concentration was increased ( Figure 8 A), C source consumption has been improved ( Figure 8 B), and solved the DO ( Figure 8 C) and pH ( Figure 8 D) the best combination.
[0151] To achieve the above object, the present invention also provides a data optimization processing system suitable for food fermentation process, such as Fig.10 As shown, the system is applied to the data optimization processing method, and the system includes:
[0152] A data acquisition unit, used to acquire process data corresponding to the food fermentation process; wherein the process data includes environmental parameter data and microbial growth parameter data;
[0153] Constructing an extraction unit, which is used to construct the MCFF, extracting feature data corresponding to the process data in real time based on the MCFF, and fusing and processing the extracted feature data;
[0154] In combination with the corresponding machine learning method, a generation unit is created to create a data prediction model corresponding to the characteristic data; based on the data prediction model and in combination with the corresponding optimization algorithm, predictive optimization control data corresponding to the food fermentation process is generated in real time; wherein the machine learning method includes a linear method and a nonlinear method; and the optimization algorithm includes a swarm intelligence algorithm or a metaheuristic algorithm.
[0155] The data acquisition unit further includes:
[0156] A first data processing module, configured to construct a process data set corresponding to the process data, and IS process the process data in the data set;
[0157] The second data processing module is used to couple the process data at the current moment with the target value data at the next moment;
[0158] The construction and extraction unit further comprises:
[0159] A first construction module is used to construct filters of different scales in real time by using filter kernel sizes, wherein the filters include an adjustable number of filters and at least one splicing module; wherein the filters include filtering, batch normalization, activation, and pooling submodules, and the filter sizes are designed to be the same; and the splicing module is used to integrate the outputs of the filters;
[0160] A third data processing module is used to process the feature data in real time in combination with corresponding filters, including using a filtering submodule to extract features of input parameters, using a batch normalization submodule to process filtered data to reduce the possibility of overfitting, using an activation submodule to achieve nonlinear mapping, and using a pooling submodule to reduce the dimension of the feature data;
[0161] The creation generation unit further includes:
[0162] A first data acquisition module, used to generate and acquire index control data corresponding to the food fermentation process in real time;
[0163] A first data generation module is used to establish an indicator control process model corresponding to the indicator control data, and generate optimization algorithm parameter data corresponding to the indicator control process model;
[0164] The optimization and control module is used to encode and process the index control data, and optimize and control the food fermentation process in real time according to the optimization algorithm parameter data and the sampling frequency data or sampling interval data of the process data; wherein the encoding processing includes floating point encoding and binary encoding.
[0165] The first data processing module further includes:
[0166] The data set partitioning module is used to divide the data set into a training set and a test set in proportion in combination with the IOCDC method; wherein the partitioning ratio of the training set to the test set is 7:3.
[0167] The first data processing module further includes:
[0168] The IS processing module is used for processing the process data in real time in combination with maximum and minimum normalization.
[0169] In the system solution embodiment of the present invention, the specific details of the method steps involved in the data optimization processing applicable to the food fermentation process have been explained above, that is, the functional modules in the system are used to implement the steps or sub-steps in the above method embodiment, which will not be repeated here.
[0170] The present invention obtains process data corresponding to the food fermentation process through a method; wherein the process data includes environmental parameter data and key parameter data of the fermentation system; constructs a multi-scale cross-correlation feature filter MCCFF, extracts feature data corresponding to the process data in real time based on the MCFF, and performs collaborative mixing and processing on the extracted feature data; combines a corresponding machine learning method to create a data prediction model corresponding to the feature data, and generates prediction optimization control data corresponding to the food fermentation process in real time based on the data prediction model and in combination with a corresponding optimization algorithm; wherein the machine learning method includes a linear method and a nonlinear method; the optimization algorithm includes a swarm intelligence algorithm or a meta-heuristic algorithm; and a system corresponding to the method realizes a high-level transformation of features, completes a deep mining of process data, and establishes a reliable process model; and based on the process model, an optimization control system is built in conjunction with the optimization algorithm to solve the problem of mutual coupling of process parameters.
[0171] That is to say, in response to the difficulties of modeling, optimization control, etc. in the fermentation process, and considering the high-level feature extraction of process data, this application proposes a food fermentation process modeling and optimization control method based on data-driven and multi-scale cross-correlation feature extraction; designs an MCFF feature extraction tool, realizes multi-angle feature extraction of process data through filters, and synergistically mixes feature data of different scales to achieve high-level transformation of features, completes deep mining of process data, and establishes a reliable process model; and based on the process model, an optimization control system is built in conjunction with the optimization algorithm to solve the problem of mutual coupling of process parameters; and takes the kombucha fermentation process as an example to verify the accuracy of the estimation model and the effectiveness of the optimization control method.
[0172] The present invention provides a method for modeling and optimizing control of food fermentation process based on data-driven and multi-scale cross-correlation feature extraction, which relates to the field of microbial fermentation engineering technology. The specific implementation is as follows: first, the constructed MCFF is used to extract the features of the input parameters in the kombucha fermentation process; secondly, the extracted features are synergistically mixed and dimensionally reduced; then the synergistically mixed features are used as the input of PLS to train the process prediction model; then the predicted values of the prediction model are used as the basis for optimization control; finally, the evolutionary algorithm is used to solve the optimal combination of fermentation parameters. When establishing the C source prediction model, the PLS model with convolution and synergistic mixing of multi-scale features achieved the best performance, R P 2 The PLS model with convolutional and multi-scale features achieved the best performance when establishing the bacterial concentration estimation model. P 2 The model has an accuracy of 63.7% compared with the PLS model. It shows that the estimation model of C source and bacterial concentration is stable and reliable and can be used in the optimization control of the fermentation process. According to different control objectives, three control modes are designed, namely, the optimization control of bacterial concentration in the fermentation process of kombucha, the optimization control of C source consumption, and the segmented optimization control of bacterial concentration in the first stage and C source consumption in the later stage. All three control schemes have achieved satisfactory results. The simulation results fully demonstrate that this method can meet the modeling and optimization control of food fermentation process.
[0173] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. 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 subject to the attached claims.
Claims
1. A data optimization processing method suitable for food fermentation process, characterized in that: The method comprises the steps of: Acquire process data corresponding to the food fermentation process; wherein the process data includes environmental parameter data and fermentation system parameter data; constructing a multi-scale cross-correlation feature filter, extracting feature data corresponding to the process data in real time based on the cross-correlation feature filter, and coordinating and mixing the extracted feature data; In combination with the corresponding machine learning method, a data prediction model corresponding to the characteristic data is created; based on the data prediction model and in combination with the corresponding optimization algorithm, predictive optimization control data corresponding to the food fermentation process is generated in real time; wherein the machine learning method includes a linear method and a nonlinear method; and the optimization algorithm includes a swarm intelligence algorithm or a metaheuristic algorithm.
2. A data optimization processing method suitable for food fermentation process according to claim 1, characterized in that: The obtaining of process data corresponding to the food fermentation process also includes: Constructing a process data set corresponding to the process data, and performing interval scaling processing on the process data in the data set; The process data at the current moment is coupled with the target value data at the next moment.
3. The data optimization processing method applicable to the food fermentation process according to claim 2, characterized in that: The step of constructing a process data set corresponding to the process data and performing interval scaling processing on the process data in the data set further includes: Combined with the input-output co-distance classification method, the data set is divided into a training set and a test set in proportion.
4. A data optimization processing method suitable for food fermentation process according to claim 2 or 3, characterized in that: The step of constructing a process data set corresponding to the process data and performing interval scaling processing on the process data in the data set further includes: processing the process data in real time in combination with IS, wherein the IS function is as follows: X i =(X oi -X oi,min ) / (X oi,max -X oi,min ) (2) Among them, X oi is the real-time feature data before IS, X oi,max , X oi,min Compute the maximum and minimum values along each dimension.
5. The data optimization processing method applicable to food fermentation process according to claim 1, characterized in that: The constructing of the cross-correlation feature filter, extracting feature data corresponding to the process data in real time based on the cross-correlation feature filter, and coordinating and mixing the extracted feature data, further includes: By adjusting the filter size, filters of different scales are constructed in real time, wherein the filter comprises an adjustable number of filter modules and at least one splicing module; wherein the filter module comprises filtering processing, batch normalization processing, activation processing, and pooling processing, and the filter module sizes are designed to be the same; the splicing module is used to integrate the output of the filter; The feature data is processed in real time in combination with the corresponding filter module, including using a filtering submodule to extract the features of the input parameters, using a batch normalization submodule to process the filtered data to reduce the possibility of overfitting, using an activation submodule to achieve nonlinear mapping of the data, and using a pooling submodule to reduce the dimension of the feature data.
6. The data optimization processing method applicable to food fermentation process according to claim 1, characterized in that: The method combines the corresponding machine learning method to create a data prediction model corresponding to the characteristic data, and generates prediction optimization control data corresponding to the food fermentation process in real time based on the data prediction model and in combination with the corresponding optimization algorithm, and also includes: Generate and obtain index control data corresponding to the food fermentation process in real time; Establishing an indicator control process estimation model corresponding to the indicator control data, and generating optimization algorithm parameter data corresponding to the indicator control process estimation model; The index control data is encoded and processed, and the food fermentation process is optimized and controlled in real time according to the optimization algorithm parameter data and the sampling frequency data or sampling interval data of the process data; wherein the encoding processing includes floating point encoding and binary encoding.
7. A data optimization processing system suitable for food fermentation process, characterized in that: The system is applied to the data optimization processing method according to any one of claims 1 to 6, and the system comprises: A data acquisition unit, used to acquire process data corresponding to the food fermentation process; wherein the process data includes environmental parameter data and fermentation system parameter data; constructing an extraction unit for constructing a cross-correlation feature filter, extracting feature data corresponding to the process data in real time based on the cross-correlation feature filter, and coordinating and mixing the extracted feature data; A generation unit is created to create a data prediction model corresponding to the characteristic data in combination with a corresponding machine learning method, and to generate prediction optimization control data corresponding to the food fermentation process in real time based on the data prediction model and in combination with a corresponding optimization algorithm; wherein the machine learning method includes a linear method and a nonlinear method; and the optimization algorithm includes a swarm intelligence algorithm or a metaheuristic algorithm.
8. The data optimization processing system applicable to food fermentation process according to claim 7, characterized in that: The data acquisition unit further includes: A first data processing module, used for constructing a process data set corresponding to the process data, and performing interval scaling processing on the process data in the data set; The second data processing module is used to couple the process data at the current moment with the target value data at the next moment; The construction and extraction unit further comprises: A first construction module is used to construct filters of different scales in real time by adjusting the filter size, wherein the filter comprises an adjustable number of filter modules and at least one splicing module; wherein the filter module comprises filtering, batch normalization processing, activation processing, and pooling processing, and the filter module sizes are designed to be the same; the splicing module is used to splice and integrate the outputs of the filters; A third data processing module is used to process the feature data in real time in combination with the corresponding filter module, including using a filtering submodule to extract the features of the input parameters, using a batch normalization submodule to process the data after the filtering operation to reduce the possibility of overfitting, using an activation submodule to achieve nonlinear mapping of the data, and using a pooling submodule to reduce the dimension of the feature data; The creation generation unit further includes: A first data acquisition module, used to generate and acquire index control data corresponding to the food fermentation process in real time; A first data generation module is used to establish an indicator control process estimation model corresponding to the indicator control data, and generate optimization algorithm parameter data corresponding to the indicator control process estimation model; The optimization and control module is used to encode and process the index control data, and optimize and control the food fermentation process in real time according to the optimization algorithm parameter data and the sampling frequency data or sampling interval data of the process data; wherein the encoding processing includes floating point encoding and binary encoding.
9. A data optimization processing system suitable for food fermentation process according to claim 8, characterized in that: The first data processing module further includes: The data set partitioning module is used to divide the data set into a training set and a test set in proportion in combination with the IOCDC method. The collaborative distance calculation formula is as follows: Among them, i,j∈[1,z], z is the number of samples, d x (i,j) is the distance between samples based on the input, d y (i, j) is the distance between samples based on the output.
10. A data optimization processing system suitable for food fermentation process according to claim 8 or 9, characterized in that: The first data processing module further includes: The IS processing module is used to process the process data in real time in combination with the IS. The IS function is as follows: X i =(X oi -X oi,min ) / (X oi,max -X oi,min ) (2) Among them, X oi is the real-time feature data before IS, X oi,max , X oi,min Compute the maximum and minimum values along each dimension.
Citation Information
Cited By
Multi-parameter self-adaptive control fermentation monitoring system
CN121075442A
A multi-parameter adaptive control fermentation monitoring system
CN121075442B
Biological fermentation monitoring method and system based on multi-source data fusion
CN121454959A
Biological fermentation monitoring method and system based on multi-source data fusion
CN121454959B
Fermentation parameter optimization method and system based on machine learning
CN121543469A
