Experimental model construction method and system based on neural network
By extracting and processing input and output factor sets from experimental data and establishing a neural network model, it solves the problem of difficulty in characterizing the nonlinear correlation between multi-variable input and output in the existing technology, achieves efficient experimental model construction, and reduces It eliminates reliance on empirical knowledge and improves experimental efficiency and accuracy.
Patent Information
- Application Number
- CN202311425864.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When existing experimental models deal with multi-variable inputs and multi-variable outputs, it is difficult to effectively represent nonlinear correlations, resulting in low experimental efficiency and high resource consumption. They also rely on rich experimental experience and are difficult to set too many preset fixed weights. .
By extracting the input and output factor sets from the historical data of experimental activities, standardizing and normalizing them, using the level value-level value model to obtain key level values, establishing a neural network model, and establishing the relationship between input and output through the regression model Mapping relationship, randomly select training and test sets, and adjust the neural network model structure until the accuracy threshold is reached.
It fully considers the nonlinear correlation between multi-variable input and output in experimental activities, removes noise data, reduces reliance on empirical knowledge, simplifies experimental design and parameter settings, and improves experimental calculation efficiency and accuracy.
Smart Images

Figure CN117391146B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and system for constructing an experimental model based on a neural network. Background Art
[0002] Deep learning (DL) is a research direction in the field of machine learning. Deep learning is the study of the inherent laws and representation levels of sample data. The information obtained in the learning process is of great help in the interpretation of data such as text, images and sounds. Its ultimate goal is to enable machines to have analytical learning capabilities like humans and to recognize data such as text, images and sounds. Deep learning has achieved many results in search technology, data mining, machine learning, machine translation, natural language processing, multimedia learning, speech, recommendation and personalization technology, and other related fields. Deep learning enables machines to imitate human activities such as seeing, hearing and thinking, solves many complex pattern recognition problems, and makes great progress in artificial intelligence related technologies.
[0003] CN115510943A discloses a method for analyzing quantum system-related experimental data using a neural network on an electronic device. The method comprises: generating a training data set according to experimental data; performing one or more filtering operations on the training data set to generate one or more filtered training data sets corresponding to the filtering operations; inputting the training data set into the first neural network to train the first neural network; inputting the filtered training data set into the second neural network to train the second neural network; inputting a test data set into the trained first neural network to obtain the standard classification accuracy of the trained first neural network, wherein the test data set is generated by another experimental data; performing one or more filtering operations on the test data set to generate one or more filtered test data sets; inputting the filtered ... One or more first classification accuracies; inputting the filtered test data set into the trained second neural network to obtain one or more second classification accuracies respectively corresponding to the filtered test data set; identifying the difference between the standard classification accuracy and the first classification accuracy of the first pair, the difference between the standard classification accuracy and the second classification accuracy of the second pair, and the difference between the first classification accuracy and the second classification accuracy of the third pair; and judging the influence of the information retained or deleted by each filtering operation according to different differences, wherein the higher the influence of the information, the greater the influence on the accuracy of the first neural network and the second neural network, so as to retain one or more information with higher influence and remove one or more information with lower influence when generating experimental data in the future.
[0004] CN111583592A discloses a laboratory environment safety warning method based on a multidimensional convolutional neural network, comprising the following steps: S1, using a data acquisition module of a laboratory layout to collect laboratory data; S2, manually labeling the collected laboratory data to determine whether each group of laboratory data belongs to fault warning data; normalizing the laboratory data to form a normalized sample set (x, y), and dividing the normalized sample set into a training set and a test set; wherein x represents laboratory data, and y represents whether the situation of the laboratory data represented by x requires a safety warning; S3, according to the characteristics of the laboratory data, determining whether the laboratory data that meets the characteristics is required to be tested. A framework of deep learning of a point model is used to establish a multi-dimensional convolutional neural network; the multi-dimensional convolutional neural network includes a one-dimensional convolutional layer, a two-dimensional convolutional layer, a pooling layer and a fully connected layer; the establishment of the multi-dimensional convolutional neural network includes the following steps: S301, using the one-dimensional convolutional layer to extract features of the laboratory data to form a feature map; S302, performing dimension conversion on the feature map, converting the dimension of the feature map from one dimension to two dimensions; S303, extracting features from the feature map converted into two dimensions from two dimensions through the two-dimensional convolutional layer to form a two-dimensional feature map; S304, using the pooling layer to further extract features from the two-dimensional feature map , and reduce the dimension of the two-dimensional feature map; S305, use the fully connected layer to expand the output of the pooling layer in tensor form into a vector, connect it with the neural network, and perform neural network operations; S306, establish a classification layer in the last layer of the neural network to distinguish whether the laboratory data belongs to the fault warning data; S4, use the training set in step S2 to train the multidimensional convolutional neural network in step S3 to form a laboratory safety warning model; use the laboratory data in the training set as the input of the multidimensional convolutional neural network, and output the prediction and resolution results of the multidimensional convolutional neural network, and use the prediction and resolution The result is compared with the manually annotated label corresponding to the laboratory data in the input training set; according to the deviation value of the predicted resolution result and the manually annotated label, the internal parameters of the multidimensional convolutional neural network model are adjusted to form the laboratory safety early warning model that can accurately distinguish the laboratory data; S5, according to the test set in step S2, the laboratory safety early warning model in step S4 is subjected to a performance test, and according to the result of the performance test, it is determined whether there is a problem with the laboratory safety early warning model, and if there is a problem, steps S3-S5 are repeated until the laboratory safety early warning model passes the performance test;S6, the laboratory safety early warning model that has passed the performance test in step S5 is used in the actual laboratory safety detection, the real-time data of the laboratory is collected by the data acquisition module, and applied as input to the laboratory safety early warning model, and the laboratory safety early warning model outputs the manual label corresponding to the real-time data; S7, when the manual label output in step S6 is that the implementation data belongs to fault early warning data, the alarm function is triggered, otherwise, the alarm function is not triggered. ;
[0005] In the prior art, experimental models usually have multi-variable inputs and multi-variable outputs. In order to obtain experimental data, it is necessary to constantly adjust the combination of input variables, which not only makes the experimental efficiency low, but also consumes a lot of resources and energy. Summary of the invention
[0006] Through long-term practice, it is found that existing simulation experimental models often adopt the method of pre-setting weights, so that the input factors and output factors of the experimental model are associated with preset fixed weights. On the one hand, the preset fixed weights rely on rich experimental experience, and on the other hand, it is more difficult to set too many preset fixed weights, which is not only inefficient, but also difficult to characterize the nonlinear correlation between input factors and output factors.
[0007] In view of this, the present invention provides a method for constructing an experimental model based on a neural network, and the method for constructing an experimental model based on a neural network comprises:
[0008] Step S1, extracting an input factor set and an output factor set of the experimental activity from historical data of the experimental activity, wherein the input factor set includes at least first experimental environment data, process data, experimental material data, and energy data; and the output factor set includes second experimental environment data and experimental result data;
[0009] Step S2, standardizing and normalizing the data in the input factor set and the output factor set respectively to form a first data set and a second data set; processing the data in the second data set using a level value-level value model, using interval segmentation based on uniform distribution, measuring the segmented natural value intervals from small to large to form level values, and processing the level values at the same time, using an optimization method to obtain key level values as a third data set; then using the first data set as an independent variable and the third data set as a dependent variable, establishing a mapping relationship between the first data set and the third data set through a regression model;
[0010] Step S3, establishing a neural network model, randomly selecting a training set from the first data set and the third data set, and training the neural network model;
[0011] Step S4: randomly select a test set from the first data set and the third data set, test the accuracy of the neural network model and output the neural network model as an experimental model after the accuracy reaches a threshold.
[0012] Preferably, the neural network model includes an input layer, a hidden layer and an output layer, and the number of neurons in the input layer is determined according to the number of the first data set; the number of neurons in the output layer is determined by the number of the third data set, and the number of neurons in the hidden layer and the number of hidden layer layers are determined by establishing a mapping relationship between the first data set and the third data set.
[0013] Preferably, in step S4, when the accuracy of the neural network model still does not reach a threshold after the number of times the neural network model is tested reaches a preset value, the process returns to step S3 to modify the structure of the neural network model.
[0014] Preferably, in step S2, the key level value is obtained by using the optimization method, and the output level values of the output factor set are combined and calculated as the classification value N of the neural network model. i ,
[0015]
[0016] Among them, c ij is the critical level value of the jth output factor in the ith experimental activity, and m is the output factor set with m output factors.
[0017] Preferably, in step S2, a Pareto Chart is established according to the frequency of occurrence of the level values, and the level values whose frequency is greater than or equal to the preset frequency are critical level values; and the level values whose frequency is less than the preset frequency are non-critical level values.
[0018] The present invention also discloses a system for the above-mentioned neural network-based experimental model construction method, the system comprising:
[0019] A data collection unit is used to extract an input factor set and an output factor set of the experimental activity from the historical data of the experimental activity, wherein the input factor set includes at least first experimental environment data, process data, experimental material data, and energy data; and the output factor set includes second experimental environment data and experimental result data;
[0020] A data preprocessing unit is used to standardize and normalize the data in the input factor set and the output factor set respectively to form a first data set and a second data set; process the data in the second data set using a level value-level value model, use interval segmentation based on uniform distribution, measure the segmented natural value intervals from small to large to form level values, and process the level values at the same time, and use an optimization method to obtain key level values as a third data set; then use the first data set as an independent variable and the third data set as a dependent variable, and establish a mapping relationship between the first data set and the third data set through a regression model;
[0021] A model unit, used to establish a neural network model, and train the neural network model after randomly selecting a training set from the first data set and the third data set;
[0022] The testing unit is used to randomly select a test set from the first data set and the third data set, test the accuracy of the neural network model to reach a threshold, and then output the neural network model as an experimental model.
[0023] Preferably, the model unit also includes a structure optimization module, which is used to determine the number of neurons in the input layer according to the number of the first data set; determine the number of neurons in the output layer according to the number of the third data set, and determine the number of neurons in the hidden layer and the number of hidden layer layers by establishing a mapping relationship between the first data set and the third data set.
[0024] Preferably, the structure optimization module also includes a module for modifying the neuron connection structure in the neural network model when the accuracy of the neural network model still does not reach a threshold after the number of tests on the neural network model reaches a preset value.
[0025] The present invention also provides an electronic device, comprising at least one processor; and a memory connected to the at least one processor in communication; wherein:
[0026] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned neural network-based experimental model construction method.
[0027] The present invention also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the neural network-based experimental model construction method of the present application as described above.
[0028] Compared with the prior art, the present invention provides a method for constructing an experimental model based on a neural network. Through steps S1 to S4, the input factor set and the output factor set of the experimental activity are first extracted from the historical data of the experimental activity to determine the input and output parameter types of the experimental activity. Secondly, the data in the input factor set and the output factor set are respectively standardized and normalized to form a first data set and a second data set; the data in the second data set is processed by a level value-level value model, and the key level value in the output factor set is determined as a third data set by using the level value-level value model, and the first data set is mapped to the third data set by a regression model. A neural network model is established, and a training set and a test set are randomly selected from the first data set and the third data set. After the neural network model is trained and the accuracy of the neural network model is tested to reach a threshold, the neural network model is output as an experimental model. The present invention also discloses a system for executing the above-mentioned method for constructing an experimental model based on a neural network. The method and system can fully consider the nonlinear correlation between multivariate inputs and multivariate outputs in the experimental activity, establish a neural network model, extract data from the key level values in the output factor set, and effectively remove the noise data of the output data of the experimental activity. Ultimately, through continuous training and testing in a data-driven manner, the neural network model structure is adjusted and optimized, and a highly accurate neural network model is finally output for use in actual experimental activities. This can reduce reliance on empirical knowledge, and the experimental model can simplify experimental design, experimental process parameter settings, and improve experimental calculation efficiency and accuracy.
[0029] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0031] Figure 1 A flowchart of a method for constructing an experimental model based on a neural network according to an embodiment of the present invention;
[0032] Figure 2 A schematic diagram of data processing of an output factor set of an experimental model construction method based on a neural network according to an embodiment of the present invention;
[0033] Figure 3 A business logic diagram of a method for constructing an experimental model based on a neural network according to an embodiment of the present invention;
[0034] Figure 4An experimental model based on a neural network for initialization according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0036] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0037] It should be noted that the terms "first", "second", "third", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] In the prior art, existing simulation experimental models often use a method of pre-setting weights, so that the input factors and output factors of the experimental model are associated with preset fixed weights. On the one hand, the preset fixed weights rely on rich experimental experience, and on the other hand, it is more difficult to set too many preset fixed weights, which is not only inefficient, but also difficult to characterize the nonlinear correlation between the input factors and the output factors. Figure 1-2 As shown, the present invention provides a method for constructing an experimental model based on a neural network, and the method for constructing an experimental model based on a neural network includes:
[0039] Step S1, extracting an input factor set and an output factor set of the experimental activity from historical data of the experimental activity, wherein the input factor set includes at least first experimental environment data, process data, experimental material data, and energy data; and the output factor set includes second experimental environment data and experimental result data;
[0040] Step S2, standardizing and normalizing the data in the input factor set and the output factor set respectively to form a first data set and a second data set; processing the data in the second data set using a level value-level value model, using interval segmentation based on uniform distribution, measuring the segmented natural value intervals from small to large to form level values, and processing the level values at the same time, using an optimization method to obtain key level values as a third data set; then using the first data set as an independent variable and the third data set as a dependent variable, establishing a mapping relationship between the first data set and the third data set through a regression model;
[0041] Step S3, establishing a neural network model, randomly selecting a training set from the first data set and the third data set, and training the neural network model;
[0042] Step S4: randomly select a test set from the first data set and the third data set, test the accuracy of the neural network model and output the neural network model as an experimental model after the accuracy reaches a threshold.
[0043] The experimental model construction method based on neural network provided by the present invention, through steps S1 to S4, firstly extracts the input factor set and output factor set of the experimental activity from the historical data of the experimental activity to determine the input and output parameter types of the experimental activity. Secondly, the data in the input factor set and the output factor set are respectively standardized and normalized to form a first data set and a second data set; the data in the second data set is processed by the level value-level value model, and the key level value in the output factor set is determined as the third data set by the level value-level value model, and the first data set is mapped to the third data set by the regression model. A neural network model is established, and a training set and a test set are randomly selected from the first data set and the third data set. After the neural network model is trained and the accuracy of the neural network model is tested to reach a threshold, the neural network model is output as an experimental model. The method can fully consider the nonlinear correlation between multivariate input and multivariate output in the experimental activity, establish a neural network model, extract data from the key level value in the output factor set, and effectively remove the noise data of the output data of the experimental activity. Ultimately, through continuous training and testing in a data-driven manner, the neural network model structure is adjusted and optimized, and a highly accurate neural network model is finally output for use in actual experimental activities. This can reduce reliance on empirical knowledge, and the experimental model can simplify experimental design, experimental process parameter settings, and improve experimental calculation efficiency and accuracy.
[0044] In order to better adapt to the needs of different experimental activities and meet the nonlinear association between the input factor set and the output factor set in different experimental activities, the neural network model includes CNN convolutional neural network, BP network, RNN network, and is not limited to a specific neural network type. Since the experimental activities include multiple input factors and multiple output factors, it is difficult to establish a functional relationship. Among them, multiple input factors and multiple output factors often belong to a nonlinear association relationship. For example, the input factor set A can be converted into the output factor set B through the experimental activities, wherein A includes all the factors of the experimental environment and conditions, at least including the first experimental environment data, process data, experimental material data, and energy data; the first experimental environment data includes the ambient temperature, ambient air pressure, and ambient humidity at the beginning of the experiment. The process data includes the sequence of steps, trigger factors, and reaction time of the experiment. The experimental material data includes the experimental materials necessary for the experiment, such as catalysts and required solutions / solutes. The energy data includes power supply and heating conditions. For each experimental activity, the required input factor set A is completely different, so it is necessary to extract the input factor set A from the historical data of the experimental activity. The output factor set B includes the second experimental environment data and the experimental result data. The second experimental environment data includes the environmental parameters after the experimental activity is completed, for example, the temperature, air pressure, and humidity of the environment after the experimental activity is completed. The experimental result data includes the experimental product, state value, and energy value. Figure 2 As shown, the input factor set A and the output factor set B are selected from the historical data of the experimental activity by using fixed-point sampling method, quantitative sampling method, random sampling method or systematic sampling method. The input factor set A can be transformed into the output factor set B through the experimental activity p, and the relationship between them can be characterized as follows:
[0045] B=p(A)
[0046] The parameter types and dimensions of the input factor set A and the output factor set B are completely different, and they need to be normalized. For example, if X is a certain parameter type, the Min-max normalization model can be used for processing.
[0047]
[0048] In order to better reflect the nonlinear relationship between input and output, the number of input layer neurons and the number of output layer neurons are determined according to the number of input and output data of the experimental activities. In order to better adapt to the computational needs of the neural network, in the initially set neural network model, the number of neurons in the hidden layer is between 2 / 3 of the number of input layer neurons plus 2 / 3 of the number of output layer neurons, and is less than twice the number of input layer neurons. In a more preferred case of the present invention, the neural network model includes an input layer, a hidden layer and an output layer, and the number of input layer neurons is determined according to the number of the first data set; the number of output layer neurons is determined by the number of the third data set, and the number of neurons in the hidden layer and the number of hidden layer layers are determined by establishing a mapping relationship between the first data set and the third data set. In order to take into account both the computational efficiency of the model and the complexity of the model, in a more preferred case, the number of hidden layers is 1 to 3 layers.
[0049] In the process of constructing the actual neural network model, the different connection relationships and structures of the model well reflect the nonlinear relationship between the input factor set and the output factor set B, making it difficult to converge during the training process. In a more preferred embodiment of the present invention, in step S4, when the number of tests of the neural network model reaches a preset value, if the accuracy of the neural network model still does not reach the threshold, then return to step S3 to modify the neural network model structure. In a more preferred embodiment of the present invention, modifying the neural network model structure includes modifying the number of hidden layers and the number of neurons in each layer. For example, when the corresponding accuracy cannot be obtained within the preset value through training, the number of hidden layers and the number of neurons in each layer are increased.
[0050] Since there are too many output variables with tiny noises in the output factor set in the experimental activities, when these tiny noises are used as the output of the neural network model training, the neural network model becomes complicated and cannot highlight the correlation between the main output factors and input factors of the experimental activities. In order to better train the neural network model and enable the labeled data in the supervised learning process to better perform model training, after the input factor set and the output factor set are standardized and normalized, in a more preferred case of the present invention, in step S2, the key level value is obtained using the optimization method, and the output level value of the output factor set is combined and calculated as the classification value N of the neural network model. i ,
[0051]
[0052] Among them, c ij is the critical level value of the jth output factor in the ith experimental activity, and m is the output factor set with m output factors.
[0053] In order to effectively remove the excessive tiny noise in the output factor set, so that the neural network model can better reflect the nonlinear relationship between the input factor set and the output factor set, in the more preferred case of the present invention, in step S2, a Pareto chart is established according to the frequency of the level value, and the level value with a frequency greater than or equal to the preset frequency is the key level value; the level value with a frequency less than the preset frequency is the non-key level value. Among them, the level value-level value model (Level-LevelModel), that is, if the independent variable X and the dependent variable Y are both level values, Y changes numerically with X, the coefficient is interpreted as the numerical change of X by 1 unit, the average change of Y by β times, and the change increment ΔY of Y and the change increment ΔX of X satisfy ΔY=βΔX. For example, when the independent variable X changes, the frequency of the dependent variable Y is greater than the preset frequency β1 value, then the level value of Y is determined as the key level value. That is, the dependent variable Y of the key level value belongs to the main influencing amount of the change increment ΔX of X. In order to screen the more important level value of Y, the optimization method is adopted, wherein the optimization method includes the Pareto chart and the golden section method, and the key level value can be selected.
[0054] The present invention also discloses a system for the above-mentioned neural network-based experimental model construction method, the system comprising:
[0055] A data collection unit is used to extract an input factor set and an output factor set of the experimental activity from the historical data of the experimental activity, wherein the input factor set includes at least first experimental environment data, process data, experimental material data, and energy data; and the output factor set includes second experimental environment data and experimental result data;
[0056] A data preprocessing unit is used to standardize and normalize the data in the input factor set and the output factor set respectively to form a first data set and a second data set; process the data in the second data set using a level value-level value model, use interval segmentation based on uniform distribution, measure the segmented natural value intervals from small to large to form level values, and process the level values at the same time, and use an optimization method to obtain key level values as a third data set; then use the first data set as an independent variable and the third data set as a dependent variable, and establish a mapping relationship between the first data set and the third data set through a regression model;
[0057] A model unit, used to establish a neural network model, and train the neural network model after randomly selecting a training set from the first data set and the third data set;
[0058] The testing unit is used to randomly select a test set from the first data set and the third data set, test the accuracy of the neural network model to reach a threshold, and then output the neural network model as an experimental model.
[0059] The present invention also provides a system for executing the above-mentioned experimental model construction method based on neural network. First, the input factor set and output factor set of the experimental activity are extracted from the historical data of the experimental activity by the data acquisition unit, and the input and output parameter types of the experimental activity are determined. Secondly, the data preprocessing unit standardizes and normalizes the data in the input factor set and the output factor set respectively to form a first data set and a second data set; the data in the second data set is processed by the level value-level value model, and the key level value in the output factor set is determined by the optimization method as the third data set by using the level value-level value model, and the first data set is mapped to the third data set by the regression model. The model unit establishes a neural network model, randomly selects a training set and a test set from the first data set and the third data set, trains the neural network model, and outputs the neural network model as the experimental model after the accuracy of the neural network model is tested by the test unit to reach a threshold. The system can fully consider the nonlinear correlation between multivariate input and multivariate output in the experimental activity, establish a neural network model, extract data from the key level value in the output factor set, and effectively remove the noise data of the output data of the experimental activity. Ultimately, through continuous training and testing in a data-driven manner, the neural network model structure is adjusted and optimized, and a highly accurate neural network model is finally output for use in actual experimental activities. This can reduce reliance on empirical knowledge, and the experimental model can simplify experimental design, experimental process parameter settings, and improve experimental calculation efficiency and accuracy.
[0060] Due to the different complexity of different experimental activities, the relationship between the input factor set and the output factor set is different, in order to better meet the nonlinear relationship between the input factor set and the output factor set in different experimental activities, the established neural network model more accurately reflects the actual experimental activity process. In a more preferred embodiment of the present invention, the model unit also includes a structure optimization module, which is used to determine the number of input layer neurons according to the number of the first data set; determine the number of output layer neurons according to the number of the third data set, and determine the number of hidden layer neurons and the number of hidden layer layers according to the mapping relationship established between the first data set and the third data set. Figure 4 As shown, the initialized neural network model contains one hidden layer, one input layer, one output layer, x i is the i-th input factor in the input factor set; y is the output factor in the output factor set, h k is the kth neuron in the hidden layer. N is the Nth neuron in the input layer, o E is the Eth neuron in the output layer.
[0061] In order to make the neural network of the neural network model better reflect the real experimental activities, make the training efficiency higher, the model convergence more efficient, and quickly adjust the neural network model after the experimental activities are updated and optimized, in a more preferred case of the present invention, the structure optimization module also includes a function for modifying the neuron connection structure in the neural network model when the accuracy of the neural network model still does not reach the threshold after the number of tests on the neural network model reaches a preset value.
[0062] In order to better apply the trained neural network model to the design of actual experimental activities, such as Figure 3 As shown, when the actual experimental input data is input, the simulation calculation of the entire experimental activity can be completed, and the required experimental output data can be obtained, reducing the dependence on empirical knowledge. The experimental model can also simplify the experimental design and the setting of experimental process parameters.
[0063] The present invention also provides an electronic device, at least one processor; and
[0064] a memory communicatively connected to the at least one processor; wherein,
[0065] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned neural network-based experimental model construction method.
[0066] The present invention also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the neural network-based experimental model construction method of the present application as described above.
[0067] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0068] 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.
[0069] In the several embodiments provided by the present invention, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the 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 interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0070] 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.
[0071] In addition, each functional unit in each embodiment of the present invention 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.
[0072] 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 storage medium. Based on this understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a mobile terminal, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0073] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for constructing an experimental model based on a neural network, characterized in that: The neural network-based experimental model construction method includes: Step S1, extracting the input factor set and output factor set of the experimental activity from the historical data of the experimental activity, wherein the input factor set includes the first experimental environment data, process data, experimental material data, and energy data; the output factor set includes the second experimental environment data and experimental result data; Step S2, standardizing and normalizing the data in the input factor set and the output factor set respectively to form a first data set and a second data set; processing the data in the second data set using a level value-level value model, performing interval segmentation based on uniform distribution, measuring the segmented natural value intervals from small to large to form level values, and processing the level values at the same time, using an optimization method to obtain key level values as a third data set; then using the first data set as an independent variable and the third data set as a dependent variable, establishing a mapping relationship between the first data set and the third data set through a regression model; Step S3, establishing a neural network model including an input layer, a hidden layer and an output layer, determining the number of neurons in the input layer according to the number of input factors in the first data set; determining the number of neurons in the output layer according to the number of output factors in the third data set, determining the number of neurons in the hidden layer and the number of hidden layer layers according to a mapping relationship established between the first data set and the third data set, and training the neural network model after randomly selecting training sets from the first data set and the third data set; Step S4, randomly selecting a test set from the first data set and the third data set, testing the accuracy of the neural network model and outputting the neural network model as an experimental model after the accuracy reaches a threshold; In step S2, the key level value is obtained by using the optimization method, and the output level values of the output factor set are combined and calculated as the classification value N of the neural network model. i , Among them, c ij is the critical level value of the jth output factor in the ith experimental activity, and m is the output factor set with m output factors.
2. The method for constructing an experimental model based on a neural network according to claim 1, characterized in that: In step S4, when the number of times the neural network model is tested reaches a preset value, if the accuracy of the neural network model still does not reach the threshold, the process returns to step S3 to modify the structure of the neural network model.
3. The method for constructing an experimental model based on a neural network according to claim 1 or 2, characterized in that: In step S2, a Pareto chart is established according to the frequency of occurrence of the level values, and the level values whose frequency is greater than or equal to the preset frequency are critical level values; and the level values whose frequency is less than the preset frequency are non-critical level values.
4. A system for the neural network-based experimental model construction method according to any one of claims 1 to 3, characterized in that: The system comprises, A data collection unit is used to extract an input factor set and an output factor set of the experimental activity from the historical data of the experimental activity, wherein the input factor set includes first experimental environment data, process data, experimental material data, and energy data; and the output factor set includes second experimental environment data and experimental result data; A data preprocessing unit is used to standardize and normalize the data in the input factor set and the output factor set respectively to form a first data set and a second data set; process the data in the second data set using a level value-level value model, perform interval segmentation based on uniform distribution, measure the segmented natural value intervals from small to large to form level values, and process the level values at the same time, and use an optimization method to obtain key level values as a third data set; then use the first data set as an independent variable and the third data set as a dependent variable, and establish a mapping relationship between the first data set and the third data set through a regression model; A model unit is provided to establish a neural network model including an input layer, a hidden layer and an output layer, determine the number of neurons in the input layer according to the number of input factors in the first data set; determine the number of neurons in the output layer according to the number of output factors in the third data set, determine the number of neurons in the hidden layer and the number of hidden layer layers according to a mapping relationship established between the first data set and the third data set, and train the neural network model after randomly selecting a training set from the first data set and the third data set; A testing unit, configured to randomly select a test set from the first data set and the third data set, test the accuracy of the neural network model to reach a threshold, and then output the neural network model as an experimental model; It is used to obtain the key level value by using the optimization method, and to combine and calculate the output level values of the output factor set as the classification value N of the neural network model. i , Among them, c ij is the critical level value of the jth output factor in the ith experimental activity, and m is the output factor set with m output factors.
5. The system according to claim 4, characterized in that The model unit also includes a structure optimization module, which is used to modify the neuron connection structure in the neural network model when the accuracy of the neural network model still does not reach a threshold after the number of tests on the neural network model reaches a preset value.
6. An electronic device, characterized in that: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the neural network-based experimental model construction method described in any one of claims 1-3.
7. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for enabling a machine to execute the neural network-based experimental model construction method as described in any one of claims 1 to 3 of the present application.
Citation Information
Patent Citations
Experimental environment safety early warning method based on multi-dimensional convolutional neural network
CN111583592A
Unmanned equipment virtual-real test design system and method
CN116702453A
Evolutionary algorithm analytics
US20230138020A1
