Bread baking simulation method, device and electronic device based on deep learning model
Through the bread baking simulation method based on deep learning model, the target model is generated using historical data, and the problems of waste of resources and high costs caused by multiple adjustments in bread research and development are solved, and efficient simulation and quality improvement of the bread baking process are achieved.
Patent Information
- Application Number
- CN202410725291.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-06-06
AI Technical Summary
During the bread baking process, R&D personnel need to continuously adjust the formula and process parameters to ensure the taste and quality of the bread, resulting in multiple trials and waste of resources, increasing the cost of new product research and development.
The bread baking simulation method based on the deep learning model is adopted, and data processing and model adjustment are obtained by obtaining historical baking data, and the target deep learning model is generated to realize accurate simulation of the bread baking process and reduce the number of manual experiments and time.
It improves the efficiency and quality of bread research and development, reduces costs, avoids multiple experiments and resource waste, and enhances the understanding of the rules and patterns of bread baking processes.
Smart Images

Figure CN118313278B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of baking technology, and specifically to a bread baking simulation method, device and electronic device based on a deep learning model. Background Art
[0002] For bread baking, not only the addition of each raw material will affect the taste of the bread, but also the control of temperature and time during the baking process will affect the taste and quality of the bread. When developing a new bread, in order to ensure the taste and quality of the baked bread, R&D personnel need to constantly adjust and control the bread-making process. Every time the formula is adjusted, the actual bread must be baked and tasted to better adjust it, so as to develop bread with better taste and quality. The above process is usually adjusted by R&D personnel. Through repeated adjustments, when the actual baked bread is not ideal, a lot of waste is caused, and the cost of new product development is high. Summary of the invention
[0003] The present application provides a bread baking simulation method, device, electronic device and storage medium based on a deep learning model, which can accurately simulate the bread baking process without the need for multiple adjustments of physical baking, thereby improving R&D efficiency and quality and reducing costs.
[0004] The technical solution of the embodiment of the present application is as follows:
[0005] In a first aspect, an embodiment of the present application provides a bread baking simulation method based on a deep learning model, the method comprising:
[0006] Acquire historical baking data, wherein the historical baking data includes recipe raw material parameters, processing technology parameters, and baking quality evaluation corresponding to the recipe raw material parameters and processing technology parameters after processing;
[0007] Performing data processing on the formula raw material parameters and the processing technology parameters to obtain a first processing result;
[0008] Inputting the first processing result into a preset initial deep learning model for simulation to obtain a prediction quality evaluation;
[0009] The predicted quality evaluation and the baking quality evaluation are calculated and processed to obtain a calculation result. When the calculation result is not less than a preset evaluation threshold, the parameters of the initial deep learning model are adjusted according to the calculation result, and the recipe raw material parameters and the processing technology parameters are adjusted based on the calculation result. The adjusted recipe raw material parameters and the adjusted processing technology parameters are processed to obtain a second processing result. The second processing result is used as the first processing result, and the first processing result is input into a preset initial deep learning model for simulation to obtain a predicted quality evaluation.
[0010] When the calculation result is less than a preset evaluation threshold, a target deep learning model is obtained;
[0011] Obtain the raw materials to be baked and the processing technology to be baked, perform data processing on the raw materials to be baked and the processing technology to be baked, input the calculated processing results into the target deep learning model for simulation, and obtain quality evaluation.
[0012] In the above technical scheme, historical baking data is first obtained, and the historical baking data includes recipe raw material parameters, processing technology parameters and the corresponding baking quality evaluation after processing the recipe raw material parameters and the processing technology parameters, so as to provide data support for the subsequent target deep learning model; the recipe raw material parameters and the processing technology parameters are processed to obtain a first processing result; the first processing result is input into a preset initial deep learning model for simulation to obtain a predicted quality evaluation, which is conducive to the subsequent adjustment of model parameters and historical baking data parameters according to the predicted quality evaluation to obtain the target deep learning model; the predicted quality evaluation and the baking quality evaluation are calculated and processed to obtain a calculation result, and when the calculation result is not less than a preset evaluation threshold, the calculation result is adjusted according to the calculation result. The parameters of the initial deep learning model are adjusted based on the calculation results, and the formula raw material parameters and processing technology parameters are adjusted based on the calculation results. The adjusted formula raw material parameters and the adjusted processing technology parameters are processed to obtain the second processing result. The second processing result is used as the first processing result, and the first processing result is input into the preset initial deep learning model for simulation to obtain the step of predicting quality evaluation. The parameters are continuously adjusted to make the simulation result more accurate. When the calculation result is less than the preset evaluation threshold, the target deep learning model is obtained. The formula raw materials to be baked and the processing technology to be baked are obtained, and the formula raw materials to be baked and the processing technology to be baked are processed, and the calculated processing results are input into the target deep learning model for simulation to obtain quality evaluation. Simulation by the target deep learning model avoids multiple manual experiments, reduces manpower, material resources and time, and can improve R&D efficiency and quality and reduce costs.
[0013] In some embodiments of the present application, the recipe raw material parameters include baking raw materials and baking ratios, and the processing parameters include fermentation time, baking time and baking temperature;
[0014] The data processing of the formula raw material parameters and the processing technology parameters to obtain a first processing result includes:
[0015] performing correlation verification on the baking raw materials, the baking ratio, the fermentation time, the baking time, and the baking temperature, and if the verification passes, performing factor extraction on the baking raw materials, the baking ratio, the fermentation time, the baking time, and the baking temperature to obtain a factor loading matrix;
[0016] Rotating the factors in the factor loading matrix to obtain a factor orthogonal matrix, and performing score calculation based on the factor orthogonal matrix to obtain factor scores;
[0017] The factor scores are vector processed to obtain the first processing result.
[0018] In the above technical solution, by performing factor analysis on the formula raw material parameters and the processing technology parameters, the relationship between the various parameters can be effectively obtained, and then the factor scores can be calculated, considering the performance of each parameter on different factors, so as to better understand and explain the structure and relationship of the data.
[0019] In some embodiments of the present application, when the verification is passed, factor extraction is performed on the baking raw materials, the baking ratio, the fermentation time, the baking time and the baking temperature to obtain a factor loading matrix, including:
[0020] If the verification is passed, performing maximum likelihood analysis on the baking raw materials, the baking ratio, the fermentation time, the baking time and the baking temperature to obtain an analysis result;
[0021] The number of factors is calculated according to the analysis results to obtain the factor loading matrix.
[0022] In the above technical solution, by analyzing various parameters and performing factor analysis, the relationship between various parameters can be effectively obtained, which is conducive to improving the accuracy of subsequent simulations.
[0023] In some embodiments of the present application, the step of inputting the first processing result into a preset initial deep learning model for simulation to obtain a prediction quality evaluation includes:
[0024] Using the feature layer in the initial deep learning model to perform feature extraction on the first processing result to obtain a plurality of feature data;
[0025] Fusing the first processing result with each of the feature data to obtain a plurality of fused features;
[0026] Using the association layer of the initial deep learning model to perform feature extraction on each of the fused features to obtain a plurality of associated features;
[0027] The linear layer of the initial deep learning model is used to perform linear calculations on each of the associated features to obtain a prediction quality evaluation.
[0028] In the above technical solution, the first processing result is first subjected to feature extraction to extract low-dimensional features of the data, and then the features are fused to increase the representation capability of the features. Then, the association layer of the deep learning model extracts the association relationship between the features, and the linear layer is used to perform linear calculations to extract high-dimensional features to obtain a prediction quality evaluation. Setting the initial deep learning model to the above structure can improve the accuracy of the simulation, so that the subsequent simulation using the target deep learning model is more in line with baking requirements.
[0029] In some embodiments of the present application, the first processing result is fused with each of the feature data to obtain multiple fused features, including:
[0030] The first processing result is respectively concatenated with each of the feature data to obtain a plurality of fused features.
[0031] In the above technical solution, by performing feature concatenation to obtain fused features, the representation capability of the features can be increased and the accuracy of the model can be improved.
[0032] In some embodiments of the present application, the initial deep learning model is one of a regression model and a neural network model.
[0033] In the above technical solution, the deep learning model is used to better fit the rules and patterns between baking data and realize bread simulation.
[0034] In some embodiments of the present application, the calculating and processing the predicted quality evaluation and the baking quality evaluation to obtain a calculation result includes:
[0035] Normalizing the predicted quality evaluation and the baking quality evaluation to obtain predicted normalized data corresponding to the predicted quality and baking evaluation normalized data corresponding to the baking quality evaluation;
[0036] A similarity calculation is performed on the predicted normalized data and the baking evaluation normalized data to obtain a calculation result.
[0037] In the above technical solution, the measurement quality evaluation and the baking quality evaluation are normalized, the data are quantified according to a unified standard, the differences between the data are eliminated, the two data can be calculated, and the data processing efficiency can be improved. The calculation results are obtained by performing similarity calculation, which is conducive to the subsequent determination of whether to adjust the parameters to continue training the initial deep learning model.
[0038] In a second aspect, an embodiment of the present application provides a bread baking simulation device based on a deep learning model, the device comprising:
[0039] A data acquisition module, used to acquire historical baking data, wherein the historical baking data includes recipe raw material parameters, processing technology parameters, and baking quality evaluation corresponding to the recipe raw material parameters and processing technology parameters after processing;
[0040] A data processing module, used for performing data processing on the formula raw material parameters and the processing technology parameters to obtain a first processing result;
[0041] A simulation prediction module, used for inputting the first processing result into a preset initial deep learning model for simulation to obtain a prediction quality evaluation;
[0042] a parameter adjustment module, configured to calculate and process the predicted quality evaluation and the baking quality evaluation to obtain a calculation result, and when the calculation result is not less than a preset evaluation threshold, perform parameter adjustment on the initial deep learning model according to the calculation result, and adjust the recipe raw material parameters and the processing technology parameters based on the calculation result, perform data processing on the adjusted recipe raw material parameters and the adjusted processing technology parameters to obtain a second processing result, use the second processing result as the first processing result, and execute the step of inputting the first processing result into a preset initial deep learning model for simulation to obtain a predicted quality evaluation;
[0043] A model determination module, used to obtain a target deep learning model when the calculation result is less than a preset evaluation threshold;
[0044] The simulation module is used to obtain the formula raw materials to be baked and the processing technology to be baked, perform data processing on the formula raw materials to be baked and the processing technology to be baked, input the calculated processing results into the target deep learning model for simulation, and obtain quality evaluation.
[0045] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a user interface, a communication bus and a network interface, wherein the processor, the memory, the user interface and the network interface are respectively connected to the communication bus, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device can perform any one of the methods provided in the first aspect above.
[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the methods provided in the first aspect is executed.
[0047] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0048] 1. The method adopts the method of obtaining historical baking data and performing correlation processing on the historical baking data, inputting the first processing result obtained after processing into the initial deep learning model for simulation, obtaining the predicted quality evaluation, calculating and processing the predicted quality evaluation and the baking quality evaluation, obtaining the calculation result, adjusting the parameters according to the calculation result, and obtaining the target deep learning model when the calculation result is less than the preset evaluation threshold. The technical means of using the target deep learning model to simulate bread baking effectively solves the problem that the repeated adjustments of R&D personnel in related technologies cause a lot of waste when the baked goods are not ideal, and the cost of new product development is high. By processing, simulating and adjusting the historical baking data, the target deep learning model is obtained. The target deep learning model can dig out the potential laws and patterns in the bread baking process, accurately simulate bread baking, help bakers narrow the scope of experiments, reduce the number and time of experiments, improve R&D efficiency and quality, and reduce costs.
[0049] 2. By performing factor analysis on formula raw material parameters and processing technology parameters, the relationship between various parameters can be effectively obtained, which is conducive to improving the accuracy of subsequent simulations. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flowchart of a bread baking simulation method based on a deep learning model provided by an embodiment of the present application;
[0051] Figure 2 yes Figure 1 A schematic flow chart of a sub-step of step S200;
[0052] Figure 3 yes Figure 1A schematic flow chart of a sub-step of step S400;
[0053] Figure 4 It is a structural schematic diagram of a bread baking simulation device based on a deep learning model provided by an embodiment of the present application;
[0054] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0056] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0057] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0058] In the baking process, the recipe raw material parameters and processing technology parameters are adjusted through continuous trial and error, which usually relies on the baker's experience and experiments, and it is difficult to guarantee that every experiment will be successful, and the cost of new product research and development is high.
[0059] Based on this, the embodiments of the present application provide a bread baking simulation method, device, electronic device and readable storage medium based on a deep learning model. The bread baking simulation method based on the deep learning model first obtains historical baking data, and the historical baking data includes recipe raw material parameters, processing technology parameters and the corresponding baking quality evaluation after processing the recipe raw material parameters and the processing technology parameters. By obtaining the historical baking data, data support is provided for the subsequent target deep learning model; the recipe raw material parameters and the processing technology parameters are processed to obtain a first processing result; the first processing result is input into a preset initial deep learning model for simulation to obtain a predicted quality evaluation, which is conducive to the subsequent adjustment of the model parameters and the historical baking data parameters according to the predicted quality evaluation to obtain the target deep learning model; the predicted quality evaluation and the baking quality evaluation are calculated and processed to obtain a calculated quality evaluation. As a result, when the calculation result is not less than the preset evaluation threshold, the parameters of the initial deep learning model are adjusted according to the calculation result, and the formula raw material parameters and the processing technology parameters are adjusted based on the calculation result, and the adjusted formula raw material parameters and the adjusted processing technology parameters are processed to obtain a second processing result, and the second processing result is used as the first processing result, and the first processing result is input into the preset initial deep learning model for simulation to obtain the step of predicting quality evaluation, and each parameter is continuously adjusted to make the simulation result more accurate; when the calculation result is less than the preset evaluation threshold, the target deep learning model is obtained; the formula raw materials to be baked and the processing technology to be baked are obtained, and the formula raw materials to be baked and the processing technology to be baked are processed, and the calculated processing results are input into the target deep learning model for simulation to obtain quality evaluation. Through the simulation of the target deep learning model, multiple manual experiments are avoided, manpower, material resources and time are reduced, and R&D efficiency and quality can be improved, and costs can be reduced.
[0060] It should be noted that the bread baking simulation method based on the deep learning model can be used for simulation in the development process of new bread products, and can also be applied to the technical improvement of existing bread products.
[0061] The technical solution provided in the embodiments of the present application is further described below in conjunction with the accompanying drawings.
[0062] Reference Figure 1 , Figure 1It is a flowchart of a bread baking simulation method based on a deep learning model provided in an embodiment of the present application. The bread baking simulation method based on a deep learning model is applied to a bread baking simulation device based on a deep learning model, and the bread baking simulation method based on a deep learning model is executed by a processor in an electronic device or a readable storage medium. The bread baking simulation method based on a deep learning model includes steps S100, S200, S300, S400, S500, and S600.
[0063] Step S100, acquiring historical baking data, where the historical baking data includes recipe raw material parameters, processing technology parameters, and baking quality evaluation corresponding to the recipe raw material parameters and the processing technology parameters after processing.
[0064] In one embodiment, the historical baking data includes formula raw material parameters, processing parameters and the corresponding baking quality evaluation after processing the formula raw material parameters and processing parameters. The formula raw material parameters include the ingredients used in the bread baking process and the ratio between the ingredients. For example, the formula raw material parameters include flour, yeast, salt, water, sugar, oil, protein, dairy products, fruit materials, improvers and the ratio of the above raw materials; the processing parameters include dough temperature, molding time, proofing temperature, proofing humidity, proofing time, baking temperature and baking time, etc.; the baking quality evaluation includes evaluation parameters of multiple dimensions, for example, the evaluation parameters are sweetness, saltiness, acidity, moisture, fluffiness, shelf life, etc. The historical baking data can be obtained online through crawler technology, or the data of the bakery can be recorded, and the recorded data can be processed and stored in files, and the historical baking data can be read using the file reading function to obtain the historical baking data, and the historical baking data can be obtained to provide data support for the subsequent model simulation.
[0065] Step S200, performing data processing on the recipe raw material parameters and the processing technology parameters to obtain a first processing result.
[0066] In one embodiment, the recipe raw material parameters include baking raw materials and baking ratios, and the processing parameters include fermentation time, baking time and baking temperature; Figure 2 As shown, data processing is performed on the formula raw material parameters and the processing technology parameters to obtain a first processing result, including but not limited to the following steps:
[0067] Step S210, performing correlation verification on the baking raw materials, baking ratio, fermentation time, baking time and baking temperature. If the verification passes, factor extraction is performed on the baking raw materials, baking ratio, fermentation time, baking time and baking temperature to obtain a factor loading matrix.
[0068] In one embodiment, the baking ingredients include flour, yeast, salt, water, sugar, oil, protein, dairy products, fruit materials, improvers, etc. The baking ratio is the ratio of each raw material required to make a kind of bread; the fermentation time represents the molding time and dough proofing time of baking in the process of making bread; the baking temperature includes the proofing temperature of the dough, the proofing humidity of the dough, and the bread baking temperature. The fermentation time, baking time and baking temperature are all parameters that need to be controlled in the baking process. For example, a baking oven is used to bake bread, and the time and temperature are adjusted. Among them, the processing parameters can be adjusted, and the baking ratio in the formula raw material parameters can be adjusted. If the processing parameters are changed, the corresponding baking quality evaluation will also be different.
[0069] In another embodiment, a preset linear correlation algorithm is used to perform correlation verification on baking raw materials, baking ratio, fermentation time, baking time and baking temperature. When there is a linear correlation between baking raw materials, baking ratio, fermentation time, baking time and baking temperature, it indicates that the verification is passed. Wherein, the preset linear correlation algorithm is a correlation coefficient matrix. When the verification is passed, a preset factor extraction algorithm can be used to extract factors from baking raw materials, baking ratio, fermentation time, baking time and baking temperature, and the number of factors is determined to obtain a factor loading matrix. Wherein, the preset factor extraction algorithm can be a principal component analysis method, a feature extraction method, etc., which will not be described in detail here.
[0070] In another embodiment, when the verification is passed, factor extraction is performed on the baking raw materials, baking ratio, fermentation time, baking time and baking temperature to obtain a factor loading matrix, including but not limited to: when the verification is passed, maximum likelihood analysis is performed on the baking raw materials, baking ratio, fermentation time, baking time and baking temperature to obtain analysis results, thereby selecting factors with higher probabilities; the number of factors is calculated according to the analysis results, and the factors of the first 90% or the first 95% can be selected to obtain a factor loading matrix. By performing factor analysis, the relationship between the various parameters can be effectively obtained, which is conducive to improving the accuracy of subsequent simulations.
[0071] It should be noted that, if the verification fails, the parameters such as baking raw materials, baking ratio, fermentation time, baking time and baking temperature are adjusted so that the verification passes, so as to perform factor extraction calculation.
[0072] Step S220, rotating the factors in the factor loading matrix to obtain a factor orthogonal matrix, and performing score calculation based on the factor orthogonal matrix to obtain factor scores.
[0073] In one embodiment, according to the factor loading matrix obtained in step S210, the factors in the factor loading matrix can be rotated using the Varimax rotation method to obtain a factor orthogonal matrix; the factors in the factor loading matrix can also be rotated using the Promax rotation method to obtain a factor orthogonal matrix. By performing factor rotation, the interpretability of the factors can be improved. The factor orthogonal matrix is analyzed to calculate the influence coefficient of the factors in the factor orthogonal matrix on the score, that is, according to the factor orthogonal matrix and the baking raw materials, baking ratio, fermentation time, baking time and baking temperature, the score of each factor is calculated using the maximum likelihood estimation, and the score of each factor is combined with the preset factor weight to obtain the factor score. For example, the combination method can be expressed as aF1+bF2, so as to obtain the first processing result later and improve the accuracy of the simulation. Among them, the preset factor weight is obtained by calculating the factor score, the formula raw material parameters and the processing technology parameters through the linear regression algorithm.
[0074] Step S230, performing vector processing on the factor scores to obtain a first processing result.
[0075] In one embodiment, the factor scores are vector processed using a preset vector processing algorithm to obtain a first processing result. The preset vector processing algorithm may be an embedding algorithm, or may include a quantization and an embedding algorithm. Exemplarily, the factor scores are first quantized, and then the quantized data are vector processed using an embedding algorithm to obtain a first processing result. Among them, indicators may be used for quantization, and the indicators may be quality indicators, efficiency indicators, or other related indicators. So that the first processing result is subsequently input into a preset initial deep learning model to mine the laws and patterns in the bread baking process.
[0076] Step S300: Input the first processing result into a preset initial deep learning model for simulation to obtain simulation parameters, and perform quality prediction based on the simulation parameters to obtain a predicted quality evaluation.
[0077] In one embodiment, the first processing result is used as the input of a preset initial deep learning model, and the preset initial deep learning model is used for simulation to obtain simulation parameters, wherein the preset initial deep learning model can be a regression model, a recurrent neural network model, or a convolutional neural network model. The first processing result is input into the preset initial deep learning model for simulation, and the simulation parameters obtained include but are not limited to: first, the feature layer in the initial deep learning model is used to extract features of the first processing result to obtain multiple feature data, and by extracting the data, useful and higher-level features are extracted, which is not only conducive to fitting the distribution of the data, but also can improve the calculation efficiency. Among them, the feature layer can be a fully connected layer or a convolutional layer.
[0078] In one embodiment, the first processing result is fused with each feature data to obtain multiple fused features. Specifically, each feature data is fused with the first processing result, and the first processing result is spliced with each feature data to obtain fused features corresponding to each feature data. Among them, feature splicing can be achieved by feature addition. By fusing the first processing result with each feature data, not only can the expression ability of each feature data be improved; it can also avoid gradient disappearance in the process of processing the features by the initial deep learning model, and increase the generalization of the model. Then, the association layer of the initial deep learning model is used to extract features from each fused feature, extract the key features in the fused features and the correlation between the features, and obtain multiple associated features, which is conducive to the subsequent prediction quality evaluation. Among them, the association layer can be an attention mechanism structure composed of a convolutional layer, a fully connected layer, or a convolutional layer. The linear layer of the initial deep learning model is used to perform linear calculations on each associated feature, extract high-dimensional features, and combine the high-dimensional features to obtain a prediction quality evaluation, which is conducive to subsequent parameter adjustment according to the prediction quality evaluation. . Among them, the linear layer can be a fully connected layer or a convolutional layer.
[0079] Step S400, calculate and process the predicted quality evaluation and the baking quality evaluation to obtain a calculation result. When the calculation result is not less than a preset evaluation threshold, adjust the parameters of the initial deep learning model according to the calculation result, and adjust the formula raw material parameters and the processing technology parameters based on the calculation result, perform data processing on the adjusted formula raw material parameters and the adjusted processing technology parameters to obtain a second processing result, use the second processing result as the first processing result, and execute the step of inputting the first processing result into a preset initial deep learning model for simulation to obtain a predicted quality evaluation.
[0080] like Figure 3 As shown, the predicted quality evaluation and the baking quality evaluation are calculated and processed to obtain the calculation result, including but not limited to the following steps:
[0081] Step S410 , normalizing the predicted quality evaluation and the baking quality evaluation to obtain predicted normalized data corresponding to the predicted quality and baking evaluation normalized data corresponding to the baking quality evaluation.
[0082] In some possible embodiments of the present application, the predicted quality evaluation is first normalized using a preset normalization method to obtain predicted normalized data corresponding to the predicted quality, and the baking quality evaluation is normalized using a preset normalization method to obtain baking evaluation normalized data corresponding to the baking quality evaluation. The data is quantized according to a unified standard to eliminate the difference between the data so that the two data can be calculated, and the data processing efficiency can also be improved. Among them, the preset normalization method can be minimum-maximum normalization or standardization (Z-score normalization).
[0083] Step S420, performing similarity calculation on the prediction normalized data and the baking evaluation normalized data to obtain a calculation result.
[0084] In some possible embodiments of the present application, a preset similarity algorithm is used to calculate the similarity of the predicted normalized data and the baking evaluation normalized data obtained in step S410 to obtain a calculation result, which is helpful for determining whether to adjust the parameters and continue to train the initial deep learning model. The preset similarity algorithm can be a Euclidean distance algorithm or a cosine similarity algorithm.
[0085] In another embodiment, the calculation result is obtained according to the predicted quality evaluation and the baking quality evaluation, and it is determined whether the calculation result is less than the preset evaluation threshold. If the calculation result is not less than the preset evaluation threshold, it indicates that the simulation of the initial deep learning model is not yet in a stable state. The parameters of the initial deep learning model are adjusted according to the calculation result, and the initial deep learning model is back-propagated to update the model parameters, and the initial deep learning model is trained again. On this basis, the formula raw material parameters and the processing technology parameters are adjusted based on the calculation results at the same time. By adjusting the parameters, different data can be added, thereby increasing the generalization of the model. The adjusted formula raw material parameters and the adjusted processing technology parameters are processed to obtain a second processing result, which is similar to step S200 and is not described here. The second processing result is used as the first processing result, and the first processing result is input into the preset initial deep learning model for simulation to obtain the step of predicting quality evaluation, and the initial deep learning model is iteratively trained so as to obtain a model with good stability and strong generalization, so that the simulation of the bread baking process has a high accuracy.
[0086] Step S500, when the calculation result is less than a preset evaluation threshold, a target deep learning model is obtained.
[0087] In one embodiment, when the calculation result is less than a preset evaluation threshold, it indicates that the initial deep learning model has tended to a stable state, and a target deep learning model is obtained, which is conducive to the subsequent use of the target deep learning model for bread baking simulation, avoiding manual attempts one by one, and saving costs.
[0088] Step S600, obtaining the formula raw materials to be baked and the processing technology to be baked, performing data processing on the formula raw materials to be baked and the processing technology to be baked, inputting the calculated processing results into the target deep learning model for simulation, and obtaining quality evaluation.
[0089] In one embodiment, the formula raw materials to be baked and the processing technology to be baked are the types of baked bread that the user wants to obtain. For example, the user wants pineapple-flavored French bread. Obtaining the formula raw materials to be baked and the processing technology to be baked can be to display an input page to the user in the form of a web page, and the user can enter the formula raw materials to be baked and the processing technology to be baked in the input page; or set options on the web page to set the selectable formula raw materials to be baked and the processing technology to be baked. According to the user's selection operation, the user's input or option is obtained through a preset application program interface, so as to obtain the formula raw materials to be baked and the processing technology to be baked. Data processing is performed on the formula raw materials to be baked and the processing technology to be baked, which is similar to step S200 and is not repeated here. The calculated processing result is input into the target deep learning model for simulation to obtain a quality evaluation, and the quality evaluation is displayed on the page for the user to view. The quality evaluation includes multiple quality indicators, specifically sweetness, saltiness, acidity, moisture, fluffiness, shelf life, etc., and the user can view various quality indicators. The bread baking simulation can guide bakers to bake bread of better quality without the need for multiple manual experiments, which can improve R&D efficiency and quality and reduce costs. The simulation process can also guide the development of new bread products, so that bread baking does not rely on experienced bakers, lowers the R&D threshold, and can also enrich baking varieties.
[0090] like Figure 4As shown, an embodiment of the present application provides a bread baking simulation device 100 based on a deep learning model. The bread baking simulation device 100 based on a deep learning model acquires historical baking data through a data acquisition module 110. The historical baking data includes recipe raw material parameters, processing technology parameters, and a corresponding baking quality evaluation after processing the recipe raw material parameters and the processing technology parameters. By acquiring the historical baking data, data support is provided for the subsequent target deep learning model; then the data processing module 120 is used to process the recipe raw material parameters and the processing technology parameters to obtain a first processing result; then the simulation prediction module 130 is used to input the first processing result into a preset initial deep learning model for simulation to obtain a predicted quality evaluation, which is conducive to the subsequent adjustment of the model parameters and the historical baking data parameters according to the predicted quality evaluation to obtain the target deep learning model; the parameter adjustment module 140 is used to calculate the predicted quality evaluation and the baking quality evaluation Processing, obtaining the calculation result, when the calculation result is greater than the preset evaluation threshold, adjusting the parameters of the initial deep learning model according to the calculation result, and adjusting the formula raw material parameters and the processing technology parameters based on the calculation result, performing data processing on the adjusted formula raw material parameters and the adjusted processing technology parameters, obtaining the second processing result, taking the second processing result as the first processing result, executing the step of inputting the first processing result into the preset initial deep learning model for simulation, obtaining the step of predicting the quality evaluation, and continuously adjusting each parameter to make the simulation result more accurate; obtaining the target deep learning model through the model determination module 150 when the calculation result is greater than the preset evaluation threshold; finally, obtaining the formula raw materials to be baked and the processing technology to be baked by using the simulation module 160, performing data processing on the formula raw materials to be baked and the processing technology to be baked, inputting the calculated processing result into the target deep learning model for simulation, and obtaining the quality evaluation. Simulation by the target deep learning model avoids multiple manual experiments, reduces manpower, material resources and time, can improve the efficiency and quality of research and development, and reduce costs.
[0091] It should be noted that the data acquisition module 110 is connected to the data processing module 120, the data processing module 120 is connected to the simulation prediction module 130, the simulation prediction module 130 is connected to the parameter adjustment module 140, the parameter adjustment module 140 is connected to the model determination module 150, and the model determination module 150 is connected to the simulation module 160. The bread baking simulation method based on the deep learning model is applied to the bread baking simulation device 100 based on the deep learning model. The bread baking simulation device 100 based on the deep learning model performs simulation through the target deep learning model, avoids multiple manual experiments, reduces manpower, material resources and time, can improve R&D efficiency and quality, and reduce costs.
[0092] It should also be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0093] The present application also discloses an electronic device. Figure 5 , Figure 5 The electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .
[0094] The communication bus 502 is used to realize the connection and communication between these components.
[0095] The user interface 503 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.
[0096] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0097] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.
[0098] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. Refer to Figure 5 , the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for a bread baking simulation method based on a deep learning model.
[0099] exist Figure 5In the electronic device 500 shown, the user interface 503 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 501 can be used to call the memory 505 to store an application program for a bread baking simulation method based on a deep learning model. When executed by one or more processors 501, the electronic device 500 executes one or more methods in the above-mentioned embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0100] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0103] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0105] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0106] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A bread baking simulation method based on a deep learning model, characterized in that: The method comprises: Acquire historical baking data, wherein the historical baking data includes recipe raw material parameters, processing technology parameters, and baking quality evaluation corresponding to the recipe raw material parameters and processing technology parameters after processing; Performing data processing on the formula raw material parameters and the processing technology parameters to obtain a first processing result; Inputting the first processing result into a preset initial deep learning model for simulation to obtain a prediction quality evaluation; The predicted quality evaluation and the baking quality evaluation are calculated and processed to obtain a calculation result. When the calculation result is not less than a preset evaluation threshold, the parameters of the initial deep learning model are adjusted according to the calculation result, and the recipe raw material parameters and the processing technology parameters are adjusted based on the calculation result. The adjusted recipe raw material parameters and the adjusted processing technology parameters are processed to obtain a second processing result. The second processing result is used as the first processing result, and the first processing result is input into a preset initial deep learning model for simulation to obtain a predicted quality evaluation. When the calculation result is less than a preset evaluation threshold, a target deep learning model is obtained; Obtaining a raw material recipe to be baked and a process to be baked, performing data processing on the raw material recipe to be baked and the process to be baked, and inputting the calculated processing results into the target deep learning model for simulation to obtain a quality evaluation; The formula raw material parameters include baking raw materials and baking ratio, and the processing parameters include fermentation time, baking time and baking temperature; The data processing of the formula raw material parameters and the processing technology parameters to obtain a first processing result includes: performing correlation verification on the baking raw materials, the baking ratio, the fermentation time, the baking time, and the baking temperature, and if the verification passes, performing factor extraction on the baking raw materials, the baking ratio, the fermentation time, the baking time, and the baking temperature to obtain a factor loading matrix; Rotating the factors in the factor loading matrix to obtain a factor orthogonal matrix, and performing score calculation based on the factor orthogonal matrix to obtain factor scores; The factor scores are vector processed to obtain the first processing result.
2. The method according to claim 1, characterized in that In the case where the verification is passed, factor extraction is performed on the baking raw materials, the baking ratio, the fermentation time, the baking time and the baking temperature to obtain a factor loading matrix, including: If the verification is passed, performing maximum likelihood analysis on the baking raw materials, the baking ratio, the fermentation time, the baking time and the baking temperature to obtain an analysis result; The number of factors is calculated according to the analysis results to obtain the factor loading matrix.
3. The method according to claim 1, characterized in that: The step of inputting the first processing result into a preset initial deep learning model for simulation to obtain a prediction quality evaluation includes: Using the feature layer in the initial deep learning model to perform feature extraction on the first processing result to obtain a plurality of feature data; Fusing the first processing result with each of the feature data to obtain a plurality of fused features; Using the association layer of the initial deep learning model to perform feature extraction on each of the fused features to obtain a plurality of associated features; The linear layer of the initial deep learning model is used to perform linear calculations on each of the associated features to obtain a prediction quality evaluation.
4. The method according to claim 3, characterized in that The first processing result is respectively fused with each of the feature data to obtain a plurality of fused features, including: The first processing result is respectively concatenated with each of the feature data to obtain a plurality of fused features.
5. The method according to claim 1, characterized in that The initial deep learning model is one of a regression model and a neural network model.
6. The method according to claim 1, characterized in that The step of calculating the predicted quality evaluation and the baking quality evaluation to obtain a calculation result includes: Normalizing the predicted quality evaluation and the baking quality evaluation to obtain predicted normalized data corresponding to the predicted quality and baking evaluation normalized data corresponding to the baking quality evaluation; A similarity calculation is performed on the predicted normalized data and the baking evaluation normalized data to obtain a calculation result.
7. A bread baking simulation device based on a deep learning model, characterized in that: The device comprises: A data acquisition module (110) is used to acquire historical baking data, wherein the historical baking data includes recipe raw material parameters, processing technology parameters, and baking quality evaluation corresponding to the recipe raw material parameters and processing technology parameters after processing; A data processing module (120) is used to perform data processing on the formula raw material parameters and processing technology parameters to obtain a first processing result; A simulation prediction module (130), used for inputting the first processing result into a preset initial deep learning model for simulation to obtain a prediction quality evaluation; a parameter adjustment module (140), configured to calculate and process the predicted quality evaluation and the baking quality evaluation to obtain a calculation result, and when the calculation result is not less than a preset evaluation threshold, to adjust the parameters of the initial deep learning model according to the calculation result, and to adjust the formula raw material parameters and the processing technology parameters based on the calculation result, to perform data processing on the adjusted formula raw material parameters and the adjusted processing technology parameters to obtain a second processing result, to use the second processing result as the first processing result, and to execute the step of inputting the first processing result into a preset initial deep learning model for simulation to obtain a predicted quality evaluation; A model determination module (150), configured to obtain a target deep learning model when the calculation result is less than a preset evaluation threshold; A simulation module (160) is used to obtain the raw materials to be baked and the processing technology to be baked, perform data processing on the raw materials to be baked and the processing technology to be baked, and input the calculated processing results into the target deep learning model for simulation to obtain quality evaluation; The formula raw material parameters include baking raw materials and baking ratio, and the processing parameters include fermentation time, baking time and baking temperature; The data processing module (120) is specifically used to verify the correlation between the baking ingredients, the baking ratio, the fermentation time, the baking time and the baking temperature. If the verification is passed, factor extraction is performed on the baking ingredients, the baking ratio, the fermentation time, the baking time and the baking temperature to obtain a factor loading matrix; the factors in the factor loading matrix are rotated to obtain a factor orthogonal matrix; scores are calculated based on the factor orthogonal matrix to obtain factor scores; and the factor scores are vectorized to obtain the first processing result.
8. An electronic device, characterized in that: The electronic device (500) comprises a processor (501), a memory (505), a user interface (503), a communication bus (502) and a network interface (504), wherein the processor (501), the memory (505), the user interface (503) and the network interface (504) are respectively connected to the communication bus (502), the memory (505) is used to store instructions, the user interface (503) and the network interface (504) are used to communicate with other devices, and the processor (501) is used to execute the instructions stored in the memory (505) so that the electronic device (500) executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 6 is executed.
