Expansion sample verification method and device based on neural network, equipment and medium
Through the neural network-based method, the expanded samples of milling are verified, which solves the problem of low verification reliability in the prior art, and the effectiveness of the expanded samples are evaluated, and the efficiency of the quality evaluation of the processed product is improved.
Patent Information
- Application Number
- CN202510019197.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-07
AI Technical Summary
In the prior art, the reliability of verifying the expanded samples of milling is not high, and it is difficult to effectively ensure the effectiveness of the expanded samples.
Using the extended sample verification method based on neural networks, a number of first hierarchical feedforward neural networks and second hierarchical feedforward neural networks are constructed by training the orthogonal cutting experimental data of milling. These neural networks are used to predict and verify the expanded samples to determine the effectiveness of the extended experimental data.
The verification reliability of expanded samples is improved, the problem of low reliability of manual verification is avoided, the effectiveness of sample expansion is ensured, and the efficiency of evaluation of processed product quality is improved.
Smart Images

Figure CN119939187A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of neural network technology, and in particular to a neural network-based extended sample verification method and apparatus, device and medium. Background Art
[0002] For orthogonal cutting in milling, the roughness of the cutting surface is one of the important parameters that characterize the quality of the processed product, or in other words, different roughness is required based on different needs. In traditional technical solutions, the roughness of the cutting surface is generally evaluated by corresponding inspectors, which is time-consuming, labor-intensive and unreliable. Therefore, in the prior art, images of the cutting surface can be collected, and the collected images can be analyzed to obtain the corresponding roughness of the cutting surface. In this way, efficiency can be improved and labor costs can be reduced to a certain extent, but more computing resources (image recognition process) are required.
[0003] However, the inventors have discovered through research that there is a correlation between the cutting surface roughness of the product and the parameters of the milling process. Thus, the cutting surface roughness can be predicted by analyzing the relationship between the two. However, more sample data is needed to learn the corresponding relationship, and the cost of orthogonal cutting experiments for milling processing is relatively high, making it difficult to obtain more samples. Therefore, it is necessary to expand the samples, and the validity of the expanded samples is an important basis for subsequent learning. If the validity is verified manually, the reliability problem is likely to occur. Therefore, there is an urgent need for a solution that can reliably verify the validity of the expanded samples. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide an extended sample verification method and apparatus, device and medium based on a neural network, so as to improve the problem of low reliability of extended sample verification in the prior art.
[0005] To achieve the above objectives, this application adopts the following technical solutions:
[0006] An expanded sample verification method based on a neural network, comprising:
[0007] Determine a training sample set and a verification sample set based on a plurality of original experimental data formed by an orthogonal cutting experiment of a milling process, wherein the original experimental data included in the training sample set and the verification sample set are at least partially different, and the original experimental data include input parameters and output parameters, the input parameters include at least one parameter of a spindle speed, a feed rate, and a cutting depth, and the output parameters include a cutting surface roughness;
[0008] Based on the training sample set, a plurality of pre-constructed first hierarchical feedforward neural networks are trained to form a plurality of trained first hierarchical feedforward neural networks, wherein during the training process, the first hierarchical feedforward neural network outputs corresponding predicted output parameters based on the input parameters, and updates the network parameters of the first hierarchical feedforward neural network based on the error between the predicted output parameters and the output parameters;
[0009] Based on the validation sample set, the plurality of trained first hierarchical feedforward neural networks are evaluated to obtain a first evaluation result, and based on the first evaluation result, an optimal first hierarchical feedforward neural network is determined among the plurality of trained first hierarchical feedforward neural networks;
[0010] Using the optimal first hierarchical feedforward neural network, predicting the constructed extended input parameters, outputting corresponding extended output parameters, combining the extended input parameters and the extended output parameters to form corresponding extended experimental data, and merging the extended experimental data and the training sample set to form a corresponding synthetic sample set;
[0011] Based on the synthetic sample set, training a plurality of pre-constructed second hierarchical feedforward neural networks to form a plurality of trained second hierarchical feedforward neural networks;
[0012] Based on the validation sample set, the multiple trained second hierarchical feedforward neural networks are evaluated to obtain a second evaluation result, and based on the second evaluation result and the first evaluation result, the validity of the expanded experimental data is determined, wherein the first evaluation result and the second evaluation result are used to reflect the prediction accuracy of the corresponding hierarchical feedforward neural network.
[0013] In a preferred embodiment of the present application, in the above-mentioned neural network-based expanded sample verification method, the step of training a plurality of pre-constructed first hierarchical feedforward neural networks based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks includes:
[0014] Determine the number of input parameters and output parameters included in the original experimental data in the training sample set, and obtain the corresponding input number and output number;
[0015] Determine the number of nodes of the input layer of the first hierarchical feedforward neural network to be constructed based on the input number, and determine the number of nodes of the output layer of the second hierarchical feedforward neural network to be constructed based on the output number;
[0016] Based on the input quantity and the output quantity, determining the node quantity interval of the hidden layer of the first hierarchical feedforward neural network to be constructed;
[0017] Based on the number of nodes in the input layer, the number of nodes in the output layer, and the interval of the number of nodes in the hidden layer, a plurality of different first hierarchical feedforward neural networks are constructed, wherein the number of nodes in the hidden layer of each first hierarchical feedforward neural network belongs to the interval of the number of nodes, and the number of nodes in the hidden layer between every two first hierarchical feedforward neural networks is different;
[0018] Based on the training sample set, the plurality of first hierarchical feedforward neural networks are trained to form a plurality of trained first hierarchical feedforward neural networks.
[0019] In a preferred embodiment of the present application, in the above-mentioned neural network-based expanded sample verification method, the step of determining the node number interval of the hidden layer of the first hierarchical feedforward neural network to be constructed based on the input number and the output number includes:
[0020] Performing a sum calculation on the input quantity and the output quantity to obtain a first parameter, and performing a square root operation on the target quantity to obtain a second parameter;
[0021] The second parameter and a predetermined adjustment parameter are summed to obtain a node number interval of a hidden layer of a first hierarchical feedforward neural network to be constructed, wherein the adjustment parameter is a constant in the range of [0, 10].
[0022] In a preferred embodiment of the present application, in the above-mentioned neural network-based expanded sample verification method, the step of evaluating the multiple trained first hierarchical feedforward neural networks based on the verification sample set to obtain a first evaluation result, and, based on the first evaluation result, determining the optimal first hierarchical feedforward neural network from the multiple trained first hierarchical feedforward neural networks includes:
[0023] For any trained first hierarchical feedforward neural network, using the trained first hierarchical feedforward neural network, predicting the input parameters included in each original experimental data in the verification sample set to obtain corresponding predicted output parameters, and, based on the predicted output parameters and the output parameters included in each original experimental data in the verification sample set, respectively calculating the corresponding prediction error and determination coefficient, wherein the determination coefficient is an evaluation parameter of the ability of the trained first hierarchical feedforward neural network to reproduce the original experimental data;
[0024] Determining a first evaluation result corresponding to the trained first hierarchical feedforward neural network based on the prediction error and the determination coefficient;
[0025] After determining the first evaluation result corresponding to each trained first hierarchical feedforward neural network, the trained first hierarchical feedforward neural network corresponding to the first evaluation result having the minimum value is determined as the optimal first hierarchical feedforward neural network.
[0026] In a preferred embodiment of the present application, in the above-mentioned neural network-based expanded sample verification method, for any one of the trained first hierarchical feedforward neural networks, using the trained first hierarchical feedforward neural network, predicting the input parameters included in each original experimental data in the verification sample set to obtain corresponding predicted output parameters, and, based on the predicted output parameters and the output parameters included in each original experimental data in the verification sample set, respectively calculating the corresponding prediction error and determination coefficient, the steps include:
[0027] For any trained first hierarchical feedforward neural network, using the trained first hierarchical feedforward neural network, predicting the input parameters included in each original experimental data in the verification sample set to obtain corresponding predicted output parameters;
[0028] For each original experimental data in the validation sample set, determine the difference between the output parameter included in the original experimental data and the corresponding predicted output parameter, and calculate the ratio between the difference and the output parameter, and use the absolute value of the ratio as the local prediction error of the trained first hierarchical feedforward neural network relative to the original experimental data, and calculate the mean of the local prediction errors of the trained first hierarchical feedforward neural network relative to each original experimental data to obtain the corresponding prediction error;
[0029] Determine the mean of the output parameters included in each original experimental data in the verification sample set, and, for each original experimental data in the verification sample set, determine the square value of the difference between the output parameter included in the original experimental data and the mean, to obtain the corresponding first square value, and determine the square value of the difference between the predicted output parameter corresponding to the original experimental data and the mean, to obtain the corresponding second square value, and determine the ratio between the sum of the second square values corresponding to each original experimental data in the verification sample set and the sum of the first square values corresponding to each original experimental data in the verification sample set, to obtain the corresponding determination coefficient.
[0030] In a preferred embodiment of the present application, in the above-mentioned neural network-based expanded sample verification method, the step of determining the first evaluation result corresponding to the trained first hierarchical feedforward neural network based on the prediction error and the determination coefficient includes:
[0031] Determine the weighting coefficients corresponding to the prediction error and the determination coefficient respectively, wherein the sum of the weighting coefficients corresponding to the prediction error and the determination coefficient is equal to 1, and the value ranges of the weighting coefficients corresponding to the prediction error and the determination coefficient belong to [0, 1];
[0032] Based on the corresponding weighting coefficient, the prediction error and the determination coefficient are weighted and summed to obtain a first evaluation result corresponding to the trained first hierarchical feedforward neural network.
[0033] In a preferred embodiment of the present application, in the above-mentioned neural network-based expanded sample verification method, the step of evaluating the plurality of trained second hierarchical feedforward neural networks based on the verification sample set to obtain a second evaluation result, and determining the validity of the expanded experimental data based on the second evaluation result and the first evaluation result includes:
[0034] Based on the verification sample set, evaluating the plurality of trained second hierarchical feedforward neural networks to obtain a second evaluation result;
[0035] The first evaluation result and the second evaluation result are compared in size, and when the first evaluation result is greater than the second evaluation result, the expanded experimental data is determined to be valid, and when the first evaluation result is less than the second evaluation result, the expanded experimental data is determined to be invalid, wherein the first evaluation result and the second evaluation result have a negative correlation with the prediction accuracy of the corresponding hierarchical feedforward neural network.
[0036] The present application also provides an expanded sample verification device based on a neural network, comprising:
[0037] A sample set determination module, configured to determine a training sample set and a verification sample set based on a plurality of original experimental data formed by an orthogonal cutting experiment of a milling process, wherein the original experimental data included in the training sample set and the verification sample set are at least partially different, and the original experimental data include input parameters and output parameters, the input parameters include at least one parameter of a spindle speed, a feed rate, and a cutting depth, and the output parameters include a cutting surface roughness;
[0038] A first neural network training module is used to train a plurality of pre-constructed first hierarchical feedforward neural networks based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks, wherein during the training process, the first hierarchical feedforward neural network outputs corresponding predicted output parameters based on input parameters, and updates network parameters of the first hierarchical feedforward neural network based on errors between the predicted output parameters and the output parameters;
[0039] A neural network determination module is used to evaluate the plurality of trained first hierarchical feedforward neural networks based on the verification sample set to obtain a first evaluation result, and to determine an optimal first hierarchical feedforward neural network among the plurality of trained first hierarchical feedforward neural networks based on the first evaluation result;
[0040] A sample set expansion module, used to predict the constructed expansion input parameters using the optimal first hierarchical feedforward neural network, output corresponding expansion output parameters, combine the expansion input parameters and the expansion output parameters to form corresponding expansion experimental data, and merge the expansion experimental data and the training sample set to form a corresponding synthetic sample set;
[0041] A second neural network training module is used to train a plurality of pre-constructed second hierarchical feedforward neural networks based on the synthetic sample set to form a plurality of trained second hierarchical feedforward neural networks;
[0042] A sample validity determination module is used to evaluate the multiple trained second hierarchical feedforward neural networks based on the verification sample set to obtain a second evaluation result, and to determine the validity of the expanded experimental data based on the second evaluation result and the first evaluation result, wherein the first evaluation result and the second evaluation result are used to reflect the prediction accuracy of the corresponding hierarchical feedforward neural network.
[0043] Based on the above, the present application also provides an electronic device, including:
[0044] Memory for storing computer programs;
[0045] A processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned neural network-based expanded sample verification method.
[0046] On the basis of the above, the present application also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is run, each step of the above-mentioned neural network-based expanded sample verification method is executed.
[0047] The neural network-based extended sample verification method, device, equipment and medium provided in the present application can evaluate multiple trained first hierarchical feedforward neural networks to obtain a first evaluation result and determine the optimal first hierarchical feedforward neural network; use the optimal first hierarchical feedforward neural network to predict the extended input parameters to form extended experimental data, merge the extended experimental data and the training sample set to form a synthetic sample set; based on the synthetic sample set, train multiple second hierarchical feedforward neural networks; evaluate multiple trained second hierarchical feedforward neural networks to obtain a second evaluation result, and determine the validity of the extended experimental data based on the second evaluation result and the first evaluation result. Based on the above content, on the one hand, by first training the optimal first hierarchical feedforward neural network to expand the sample, the validity of the expanded sample can be guaranteed to a certain extent, thereby avoiding the interference caused by too many invalid samples in the verification process, so that the reliability of the verification can be guaranteed. On the other hand, by comparing the prediction accuracy of the neural networks trained with the samples before and after the expansion, the effectiveness of the corresponding samples can also be reflected, making it more objective than the technical means of manual analysis, thereby ensuring the reliability of the verification and improving the problem of low reliability of verification of expanded samples in the existing technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.
[0049] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application.
[0050] Figure 2 A flowchart of a neural network-based expanded sample verification method provided in an embodiment of the present application.
[0051] Figure 3 A schematic diagram of the verification process of the expanded sample set provided in an embodiment of the present application.
[0052] Figure 4 This is a schematic diagram of some experimental data provided in the examples of this application.
[0053] Figure 5 A schematic diagram of parameters of the network architecture of the neural network provided in an embodiment of the present application.
[0054] Figure 6 A schematic diagram of the verification results provided in the embodiments of the present application.
[0055] Figure 7 A schematic diagram of the expanded input parameters provided in an embodiment of the present application.
[0056] Figure 8 A schematic diagram of some expanded samples provided in an embodiment of the present application.
[0057] Fig. 9 A schematic diagram of another verification result provided in an embodiment of the present application.
[0058] Fig.10 A block diagram of a neural network-based expanded sample verification device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0060] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0061] like Figure 1 As shown, an embodiment of the present application provides an electronic device, wherein the electronic device may include a memory, a processor, and an expanded sample verification device based on a neural network.
[0062] In detail, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, the memory and the processor can be electrically connected through one or more communication buses or signal lines. The neural network-based extended sample verification device includes at least one software function module stored in the memory in the form of software or firmware. The processor is used to execute an executable computer program stored in the memory, for example, the software function module and computer program included in the neural network-based extended sample verification device, so as to implement the neural network-based extended sample verification method provided in the embodiment of the present application.
[0063] Optionally, the memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0064] Furthermore, the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0065] Understandably, Figure 1 The structure shown is for illustration only, and the electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 The different configurations shown, for example, may also include a communication unit for exchanging information with other devices.
[0066] Combination Figure 2 The embodiment of the present application also provides a neural network-based extended sample verification method applicable to the above electronic device. The method steps defined in the process related to the neural network-based extended sample verification method can be implemented by the electronic device. Figure 2 The specific process shown is explained in detail.
[0067] Step S110 , determining a training sample set and a verification sample set based on a plurality of original experimental data formed by an orthogonal cutting experiment of a milling process.
[0068] In an embodiment of the present application, the electronic device can determine a training sample set and a verification sample set based on a plurality of original experimental data formed by an orthogonal cutting experiment of a milling process. The original experimental data included in the training sample set and the verification sample set are at least partially different (exemplarily, they can be completely different), and the original experimental data include input parameters and output parameters, the input parameters include at least one parameter of spindle speed, feed speed and cutting depth (exemplarily, they can include three), and the output parameter (label) includes cutting surface roughness.
[0069] Step S120: Based on the training sample set, the pre-constructed multiple first hierarchical feedforward neural networks are trained to form multiple trained first hierarchical feedforward neural networks.
[0070] In an embodiment of the present application, after obtaining a training sample set, the electronic device can train a plurality of pre-constructed first hierarchical feedforward neural networks based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks. Wherein, during the training process, the first hierarchical feedforward neural network outputs a corresponding predicted output parameter based on the input parameter, and updates the network parameters of the first hierarchical feedforward neural network based on the error between the predicted output parameter and the output parameter, that is, updates the network parameters of the first hierarchical feedforward neural network in a direction to reduce the error until the error converges or the number of updates reaches a threshold.
[0071] Step S130, based on the verification sample set, evaluating the multiple trained first hierarchical feedforward neural networks to obtain a first evaluation result, and, based on the first evaluation result, determining the optimal first hierarchical feedforward neural network among the multiple trained first hierarchical feedforward neural networks.
[0072] In an embodiment of the present application, after the training of the first hierarchical feedforward neural network is completed, the electronic device can evaluate the multiple trained first hierarchical feedforward neural networks based on the verification sample set to obtain a first evaluation result, and, based on the first evaluation result, determine the optimal first hierarchical feedforward neural network among the multiple trained first hierarchical feedforward neural networks, such as a first hierarchical feedforward neural network with the highest prediction accuracy.
[0073] Step S140, using the optimal first hierarchical feedforward neural network, predicting the constructed extended input parameters, outputting corresponding extended output parameters, and combining the extended input parameters and the extended output parameters to form corresponding extended experimental data, and merging the extended experimental data and the training sample set to form a corresponding synthetic sample set.
[0074] In an embodiment of the present application, after obtaining the optimal first hierarchical feedforward neural network, the electronic device can use the optimal first hierarchical feedforward neural network to predict the constructed expanded input parameters (such as multiple groups of different levels of spindle speed, feed speed, and cutting depth configured by the corresponding user), output the corresponding expanded output parameters (i.e., the corresponding cutting surface roughness), and combine the expanded input parameters and the expanded output parameters to form corresponding expanded experimental data, and merge the expanded experimental data and the training sample set to form a corresponding synthetic sample set.
[0075] Step S150: Based on the synthetic sample set, a plurality of pre-constructed second hierarchical feedforward neural networks are trained to form a plurality of trained second hierarchical feedforward neural networks.
[0076] In an embodiment of the present application, after forming a synthetic sample set, the electronic device can train a plurality of pre-constructed second hierarchical feedforward neural networks based on the synthetic sample set (the training process is as described above) to form a plurality of trained second hierarchical feedforward neural networks.
[0077] Step S160, based on the verification sample set, evaluating the plurality of trained second hierarchical feedforward neural networks to obtain a second evaluation result, and determining the validity of the expanded experimental data based on the second evaluation result and the first evaluation result.
[0078] In an embodiment of the present application, after the training of the second hierarchical feedforward neural network is completed, the electronic device can evaluate the plurality of trained second hierarchical feedforward neural networks based on the verification sample set to obtain a second evaluation result (the same method as the determination of the first evaluation result, as described later), and determine the validity of the expanded experimental data based on the second evaluation result and the first evaluation result. The first evaluation result and the second evaluation result are used to reflect the prediction accuracy of the corresponding hierarchical feedforward neural network.
[0079] Based on the above content, on the one hand, by first training the optimal first layer feedforward neural network to expand the sample, the validity of the expanded sample can be guaranteed to a certain extent, thereby avoiding the interference caused by too many invalid samples in the verification process, so that the reliability of the verification can be guaranteed. On the other hand, by comparing the prediction accuracy of the neural network trained by the samples before and after the expansion, the validity of the corresponding samples can also be reflected, making it more objective than the technical means of manual analysis, thereby ensuring the reliability of the verification, and then improving the problem of low reliability of verification of expanded samples in the existing technology.
[0080] It should be noted that for step S120, the specific method of training the pre-constructed multiple first hierarchical feedforward neural networks is not limited and can be selected according to actual needs.
[0081] For example, in an alternative embodiment, in order to make multiple trained first layered feedforward neural networks have better prediction function so that reliable first layered feedforward neural networks can be screened out, the above-mentioned step S120 can further include step S121, step S122, step S123, step S124 and step S125, and the specific content of each step is described as follows.
[0082] Step S121, determining the number of input parameters and output parameters included in the original experimental data in the training sample set, and obtaining the corresponding input number and output number.
[0083] In an embodiment of the present application, the number of input parameters and output parameters included in the original experimental data in the training sample set can be determined to obtain the corresponding input number and output number. For example, when the input parameters include spindle speed, feed rate and cutting depth, the input number is equal to 3. When the output parameter includes cutting surface roughness, the output number is equal to 1.
[0084] Step S122, determining the number of nodes of the input layer of the first hierarchical feedforward neural network to be constructed based on the input number, and determining the number of nodes of the output layer of the second hierarchical feedforward neural network to be constructed based on the output number.
[0085] In an embodiment of the present application, after obtaining the number of inputs and the number of outputs, the number of nodes of the input layer of the first hierarchical feedforward neural network to be constructed can be determined based on the number of inputs, for example, the number of inputs is equal to the number of nodes, and the number of nodes of the output layer of the second hierarchical feedforward neural network to be constructed can be determined based on the number of outputs, for example, the number of outputs is equal to the number of nodes. In this way, reliable input and output of input parameters and output parameters can be achieved.
[0086] Step S123, based on the input quantity and the output quantity, determining the node quantity interval of the hidden layer of the first hierarchical feedforward neural network to be constructed.
[0087] In the embodiment of the present application, after obtaining the number of inputs and the number of outputs, the interval of the number of nodes of the hidden layer of the first hierarchical feedforward neural network to be constructed can be determined based on the number of inputs and the number of outputs.
[0088] Step S124, constructing a plurality of different first hierarchical feedforward neural networks based on the number of nodes in the input layer, the number of nodes in the output layer, and the interval of the number of nodes in the hidden layer.
[0089] In an embodiment of the present application, after obtaining the corresponding number of nodes, a plurality of different first hierarchical feedforward neural networks can be constructed based on the number of nodes in the input layer, the number of nodes in the output layer, and the interval of the number of nodes in the hidden layer. The number of nodes in the hidden layer of each first hierarchical feedforward neural network belongs to the interval of the number of nodes, and the number of nodes in the hidden layer between each two first hierarchical feedforward neural networks is different.
[0090] Step S125: training the plurality of first hierarchical feedforward neural networks based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks.
[0091] In an embodiment of the present application, after constructing a plurality of first hierarchical feedforward neural networks, the plurality of first hierarchical feedforward neural networks may be trained based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks.
[0092] It can be understood that, in the above step S123, the specific method of determining the node number interval of the hidden layer of the first hierarchical feedforward neural network to be constructed is not limited and can be selected according to actual needs. For example, in an alternative implementation, in order to make the reliability of the first hierarchical feedforward neural network constructed based on the determined node number interval higher, the above step S123 can further include the following content:
[0093] First, the input quantity and the output quantity may be summed to obtain a first parameter, and a square root operation may be performed on the target quantity to obtain a second parameter;
[0094] Secondly, the second parameter and a predetermined adjustment parameter are summed to obtain a node number interval of a hidden layer of a first hierarchical feedforward neural network to be constructed, wherein the adjustment parameter is a constant in the range of [0, 10]. For example, the sum of the second parameter and the lower limit value of the adjustment parameter can be used as the lower limit value of the node number interval, and the sum of the second parameter and the upper limit value of the adjustment parameter can be used as the upper limit value of the node number interval.
[0095] It should be noted that for step S130, the specific method of determining the optimal first hierarchical feedforward neural network among the multiple trained first hierarchical feedforward neural networks is not limited and can be selected according to actual needs.
[0096] For example, in an alternative implementation, in order to ensure that the determined optimal first hierarchical feedforward neural network has a higher reliability, the above-mentioned step S130 may further include step S131, step S132 and step S133, and the specific content of each step is described as follows.
[0097] Step S131, for any trained first hierarchical feedforward neural network, use the trained first hierarchical feedforward neural network to predict the input parameters included in each original experimental data in the verification sample set to obtain corresponding predicted output parameters, and based on the predicted output parameters and the output parameters included in each original experimental data in the verification sample set, respectively calculate the corresponding prediction error and determination coefficient.
[0098] In an embodiment of the present application, for any trained first hierarchical feedforward neural network, the trained first hierarchical feedforward neural network can be used to predict the input parameters included in each original experimental data in the verification sample set to obtain the corresponding predicted output parameters, and based on the predicted output parameters and the output parameters included in each original experimental data in the verification sample set, the corresponding prediction error and determination coefficient (the two parameters can be used to characterize the difference between the predicted output parameter and the output parameter) are calculated respectively. Wherein, the determination coefficient belongs to the evaluation parameter of the ability of the trained first hierarchical feedforward neural network to reproduce the original experimental data.
[0099] Step S132: determining a first evaluation result corresponding to the trained first hierarchical feedforward neural network based on the prediction error and the determination coefficient.
[0100] In an embodiment of the present application, after obtaining the prediction error and the determination coefficient, the first evaluation result corresponding to the trained first layered feedforward neural network can be determined based on the prediction error and the determination coefficient, that is, the prediction accuracy of the trained first layered feedforward neural network is evaluated based on the prediction error and the determination coefficient.
[0101] Step S133, after determining the first evaluation result corresponding to each trained first hierarchical feedforward neural network, the trained first hierarchical feedforward neural network corresponding to the first evaluation result having the minimum value is determined as the optimal first hierarchical feedforward neural network.
[0102] In an embodiment of the present application, after obtaining the first evaluation result, after determining the first evaluation result corresponding to each trained first layered feedforward neural network, the trained first layered feedforward neural network corresponding to the first evaluation result with the minimum value can be determined as the optimal first layered feedforward neural network, that is, the first layered feedforward neural network with the highest prediction accuracy.
[0103] It is understandable that, in the above step S131, the specific method of respectively calculating the corresponding prediction error and determination coefficient is not limited and can be selected according to actual needs. For example, in an alternative implementation, in order to ensure that the prediction error and the determination coefficient can fully characterize the difference between the predicted output parameter and the output parameter, the above step S131 may include:
[0104] First, for any trained first hierarchical feedforward neural network, the trained first hierarchical feedforward neural network is used to predict the input parameters included in each original experimental data in the verification sample set to obtain the corresponding predicted output parameters, so that the predicted output parameters corresponding to each input parameter can be obtained;
[0105] Secondly, for each original experimental data in the verification sample set, determine the difference between the output parameter included in the original experimental data and the corresponding predicted output parameter, and calculate the ratio between the difference and the output parameter, and use the absolute value of the ratio as the local prediction error of the trained first hierarchical feedforward neural network relative to the original experimental data, and calculate the mean of the local prediction errors of the trained first hierarchical feedforward neural network relative to each original experimental data to obtain the corresponding prediction error;
[0106] Then, the mean of the output parameters included in each original experimental data in the verification sample set is determined, and, for each original experimental data in the verification sample set, the square value of the difference between the output parameter included in the original experimental data and the mean is determined to obtain the corresponding first square value, and the square value of the difference between the predicted output parameter corresponding to the original experimental data and the mean is determined to obtain the corresponding second square value, and the ratio between the sum of the second square values corresponding to each original experimental data in the verification sample set and the sum of the first square values corresponding to each original experimental data in the verification sample set is determined to obtain the corresponding determination coefficient.
[0107] It can be understood that, in the above step S132, the specific method of determining the first evaluation result corresponding to the trained first hierarchical feedforward neural network is not limited and can be selected according to actual needs. For example, in an alternative implementation, in order to ensure that the first evaluation result can fully reflect the difference between the prediction error and the determination coefficient, the above step S132 can further include the following contents:
[0108] First, the weighting coefficients corresponding to the prediction error and the determination coefficient can be determined respectively, wherein the sum of the weighting coefficients corresponding to the prediction error and the determination coefficient is equal to 1, and the value ranges of the weighting coefficients corresponding to the prediction error and the determination coefficient belong to [0, 1];
[0109] Secondly, based on the corresponding weighting coefficient, the prediction error and the determination coefficient are weighted and summed to obtain a first evaluation result corresponding to the trained first hierarchical feedforward neural network.
[0110] It should be noted that for step S160, the specific method of determining the validity of the expanded experimental data based on the second evaluation result and the first evaluation result is not limited and can be selected according to actual needs.
[0111] For example, in an alternative implementation, in order to include the reliability of the validity determination, the above step S160 may further include the following contents:
[0112] First, the plurality of trained second hierarchical feedforward neural networks may be evaluated based on the verification sample set to obtain a second evaluation result (refer to the determination method of the first evaluation result);
[0113] Secondly, the first evaluation result and the second evaluation result are compared in size, and when the first evaluation result is greater than the second evaluation result (i.e., the prediction accuracy of the trained second layered feedforward neural network is higher than that of the trained first layered feedforward neural network), the expanded experimental data is determined to be valid, and, when the first evaluation result is less than the second evaluation result (i.e., the prediction accuracy of the trained second layered feedforward neural network is lower than that of the trained first layered feedforward neural network), the expanded experimental data is determined to be invalid, wherein the first evaluation result and the second evaluation result have a negatively correlated correspondence with the prediction accuracy of the corresponding layered feedforward neural network, that is, the larger the evaluation result, the lower the prediction accuracy.
[0114] In order to facilitate the understanding of the above-mentioned neural network-based expanded sample verification method, the following specific application example is also provided in the embodiments of the present application:
[0115] (1) Conduct orthogonal cutting experiments on milling to obtain original experimental data. Randomly extract a set of data from the original experimental data according to different spindle speed levels to form a validation sample set, and the remaining experimental data constitute a training sample set;
[0116] (2) Use the training sample set to train BP neural networks with different structures to obtain a set of trained neural network models, denoted as N1;
[0117] (3) Use the validation sample set to verify the prediction accuracy of the N1 neural network model, and introduce the evaluation coefficient to evaluate the prediction results of each neural network model on the validation set. Among them, the neural network model with the smallest evaluation coefficient (i.e., evaluation result) is the optimal solution, denoted as BN1;
[0118] (4) According to the number of required expansion samples, different levels of spindle speed, feed speed, and cutting depth parameters are constructed and input into the optimal solution neural network model BN1 as input parameters, thereby generating roughness values corresponding to the input parameters. The input parameters and the generated roughness values together constitute the expansion samples, thereby completing the expansion of the samples.
[0119] In order to verify the validity of the expanded sample, the following work was carried out:
[0120] (1) The expanded samples are combined with the training sample set to form a synthetic sample set.
[0121] (2) Use the synthetic sample set to train a new set of BP neural networks, and record the trained neural network models as N2;
[0122] (3) Use the validation sample set to verify the prediction accuracy of the N2 neural network model and compare its prediction accuracy with that of N1. If the prediction accuracy is improved, it proves that the synthetic sample set is effective, which also proves the effectiveness of the expanded sample set; otherwise, it proves that the expanded sample set is invalid.
[0123] The above process is as follows Figure 3 shown.
[0124] Among them, 13 spindle speed levels (A), 3 feed speed levels (B) and 3 cutting depth levels (C) can be designed, as shown in Table 1. A total of 117 sets of milling experiments were conducted, and some experimental results are shown in Figure 4 As shown in the figure, 13 sets of milling experimental data were randomly selected from 117 sets according to different speed levels as validation sample sets, which were used to verify the prediction accuracy of the trained neural network model; the remaining 104 sets of data constituted the training sample set, which was used to train the BP neural network.
[0125] Among them, the BP neural network is a typical hierarchical feedforward neural network, which consists of an input layer, a hidden layer, and an output layer. When training the neural network, the machine tool spindle speed, feed speed, and cutting depth are used as input, so the number of input layer nodes is 3; the surface roughness value is used as the output sample, so the number of output layer nodes is 1. The number of hidden layers and the number of hidden layer nodes of the BP neural network have a great influence on the network function. Among them, the number of hidden layer nodes can be determined using the following formula:
[0126]
[0127] Where m is the number of input layer nodes, n is the number of output layer nodes, α is a constant in the range of [0, 10], the number of input nodes is 3, the number of output nodes is 1, so the number of hidden layer nodes can be selected between 2 and 12. Neural networks with different numbers of hidden layers and hidden layer nodes are trained and verified, and the optimal neural network is determined based on the verification results for the generation of expanded samples. The hidden layer is set to 1 and 2 layers. When the number of hidden layers is 1, the number of hidden layer nodes is set to 2, 3, 4, 5, and 6 respectively; when the number of hidden layers is 2, the number of hidden layer nodes is set to [2, 1], [3, 1], [4, 1], [5, 1], [6, 1], and more. For details, please refer to Figure 5 shown.
[0128] Among them, the activation function of the hidden layer is the tansig function, the activation function of the output layer is the purelin function, the training function is the trainlm function, the maximum number of iterations is 1000, the error threshold is 10-7, and the learning rate is 0.01. Considering that the value range and dimension of the sample input and output parameters are different, the sample parameters need to be normalized before the neural network training begins. The normalization process uses the mapminmax function to convert all parameters to the [-1, 1] interval.
[0129] The BP neural network is trained using a training sample set, which is divided into a training set and a test set at 80% and 20% respectively. The training results are evaluated using the average relative deviation and the coefficient of determination. The specific formula is as follows:
[0130] Mean relative deviation (i.e. the prediction error mentioned above):
[0131]
[0132] In the formula, err represents the average relative deviation, n represents the number of test samples, and y i represents the measured surface roughness value in the training sample (i.e., the cutting surface roughness included in the output parameters), y i ' represents the surface roughness value output by the neural network (i.e. the cutting surface roughness included in the predicted output parameters).
[0133] Coefficient of determination:
[0134]
[0135] In the formula, R 2 represents the coefficient of determination, with a value range of [0, 1]; n represents the number of test samples, It represents the average value of the measured surface roughness in the training samples. The coefficient of determination is an important evaluation parameter for the ability of the neural network model to reproduce the original data. The closer the value is to 1, the higher the prediction accuracy.
[0136] In order to comprehensively consider the average relative deviation and the coefficient of determination, the evaluation coefficient (i.e., the evaluation result) is introduced to evaluate the performance of the neural network. The calculation formula of the evaluation coefficient is as follows:
[0137] Δ=α×err+(1-α)×(1-R 2 );
[0138] Where Δ is the evaluation coefficient, α is a constant, and its value range is [0, 1]. The lower the evaluation coefficient, the better the performance of the network model, that is, the higher the prediction accuracy.
[0139] Among them, the training samples are used to train the BP neural network with different network structures, and the trained neural network models are recorded as N1. The prediction accuracy of N1 is verified using the verification sample set, and the evaluation coefficient of the verification result is calculated (the value is 0.4). Figure 6 The training, verification results and evaluation coefficients are shown. It can be seen that the evaluation coefficient of the neural network model with 2 hidden layers and hidden layer nodes [4, 1] is the lowest, which is the optimal solution neural network BN1, and the network structure is 3-4-1-1.
[0140] Among them, in order to expand at least 1000 samples, such as Figure 7 As shown in Figure 7, 13 spindle speed levels (A), 13 feed speed levels (B), and 7 cutting depth levels (C) were designed, with a total of 1183 sets of parameters as input parameters of the BN1 neural network, as shown in Figure 7. After inputting each set of parameters, the BN1 neural network was run to generate the corresponding roughness values, forming 1183 expanded samples, as shown in Figure 7. Figure 8 shown.
[0141] Among them, the expanded sample set is combined with the training sample set to form a synthetic sample set, totaling 1287 samples, which are divided into training set and test set at a ratio of 80% and 20%, respectively. The BP neural networks with different network structures are trained. The structure and training parameters of the trained neural network are consistent with the previous neural network (ie N1). The trained neural network model is recorded as N2. The validation sample set is used to verify the prediction accuracy of the N2 neural network model, and its evaluation coefficient is calculated (α is 0.4). The training results, verification results and evaluation coefficients are shown in the figure. Fig. 9 As shown, it can be seen that the optimal solution neural network BN2 has 2 hidden layers, [6, 1] nodes, and a network structure of 3-6-1-1.
[0142] Combination Fig.10 The embodiment of the present application also provides a neural network-based extended sample verification device applicable to the above electronic device. The neural network-based extended sample verification device may include a sample set determination module, a first neural network training module, a neural network determination module, a sample set expansion module, a second neural network training module and a sample validity determination module.
[0143] The sample set determination module is used to determine a training sample set and a verification sample set based on a plurality of original experimental data formed by an orthogonal cutting experiment of a milling process, wherein the original experimental data included in the training sample set and the verification sample set are at least partially different, and the original experimental data include input parameters and output parameters, the input parameters include at least one parameter of a spindle speed, a feed rate, and a cutting depth, and the output parameters include a cutting surface roughness. In an embodiment of the present application, the sample set determination module can be used to perform Figure 2 As shown in step S110, the relevant contents of the sample set determination module can refer to the above description of step S110.
[0144] The first neural network training module is used to train a plurality of pre-constructed first hierarchical feedforward neural networks based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks, wherein during the training process, the first hierarchical feedforward neural network outputs corresponding predicted output parameters based on the input parameters, and updates the network parameters of the first hierarchical feedforward neural network based on the error between the predicted output parameters and the output parameters. In the embodiment of the present application, the first neural network training module can be used to perform Figure 2 As shown in step S120, the relevant contents of the first neural network training module can refer to the above description of step S120.
[0145] The neural network determination module is used to evaluate the plurality of trained first hierarchical feedforward neural networks based on the validation sample set to obtain a first evaluation result, and to determine the optimal first hierarchical feedforward neural network among the plurality of trained first hierarchical feedforward neural networks based on the first evaluation result. Figure 2 As shown in step S130, the relevant contents of the neural network determination module can refer to the above description of step S130.
[0146] The sample set expansion module is used to use the optimal first hierarchical feedforward neural network to predict the constructed expanded input parameters, output corresponding expanded output parameters, and combine the expanded input parameters and the expanded output parameters to form corresponding expanded experimental data, and merge the expanded experimental data and the training sample set to form a corresponding synthetic sample set. In the embodiment of the present application, the sample set expansion module can be used to perform Figure 2 As shown in step S140, the relevant contents of the sample set expansion module can refer to the above description of step S140.
[0147] The second neural network training module is used to train the pre-constructed multiple second hierarchical feedforward neural networks based on the synthetic sample set to form multiple trained second hierarchical feedforward neural networks. In the embodiment of the present application, the second neural network training module can be used to perform Figure 2 As shown in step S150, the relevant contents of the second neural network training module can refer to the above description of step S150.
[0148] The sample validity determination module is used to evaluate the plurality of trained second hierarchical feedforward neural networks based on the validation sample set to obtain a second evaluation result, and to determine the validity of the expanded experimental data based on the second evaluation result and the first evaluation result, wherein the first evaluation result and the second evaluation result are used to reflect the prediction accuracy of the corresponding hierarchical feedforward neural network. In the embodiment of the present application, the sample validity determination module can be used to perform Figure 2 As shown in step S160, the relevant contents of the sample validity determination module can refer to the above description of step S160.
[0149] In an embodiment of the present application, corresponding to the above-mentioned neural network-based expanded sample verification method applied to the electronic device, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the neural network-based expanded sample verification method is executed.
[0150] Among them, the steps executed when the aforementioned computer program is running will not be described one by one here, and reference can be made to the previous explanation of the neural network-based expanded sample verification method.
[0151] In summary, the neural network-based expanded sample verification method, device, equipment and medium provided in the present application can evaluate multiple trained first hierarchical feedforward neural networks, obtain a first evaluation result, and determine the optimal first hierarchical feedforward neural network; use the optimal first hierarchical feedforward neural network to predict the expanded input parameters to form expanded experimental data, merge the expanded experimental data and the training sample set to form a synthetic sample set; based on the synthetic sample set, train multiple second hierarchical feedforward neural networks; evaluate multiple trained second hierarchical feedforward neural networks to obtain a second evaluation result, and determine the validity of the expanded experimental data based on the second evaluation result and the first evaluation result. Based on the above content, on the one hand, by first training the optimal first hierarchical feedforward neural network to expand the sample, the validity of the expanded sample can be guaranteed to a certain extent, thereby avoiding the interference caused by too many invalid samples in the verification process, so that the reliability of the verification can be guaranteed. On the other hand, by comparing the prediction accuracy of the neural networks trained with the samples before and after the expansion, the effectiveness of the corresponding samples can also be reflected, making it more objective than the technical means of manual analysis, thereby ensuring the reliability of the verification and improving the problem of low reliability of verification of expanded samples in the existing technology.
[0152] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0153] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0154] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0155] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A neural network-based extended sample verification method, characterized in that: include: Determine a training sample set and a verification sample set based on a plurality of original experimental data formed by an orthogonal cutting experiment of a milling process, wherein the original experimental data included in the training sample set and the verification sample set are at least partially different, and the original experimental data include input parameters and output parameters, the input parameters include at least one parameter of a spindle speed, a feed rate, and a cutting depth, and the output parameters include a cutting surface roughness; Based on the training sample set, a plurality of pre-constructed first hierarchical feedforward neural networks are trained to form a plurality of trained first hierarchical feedforward neural networks, wherein during the training process, the first hierarchical feedforward neural network outputs corresponding predicted output parameters based on input parameters, and updates network parameters of the first hierarchical feedforward neural network based on errors between the predicted output parameters and the output parameters; Based on the validation sample set, the plurality of trained first hierarchical feedforward neural networks are evaluated to obtain a first evaluation result, and based on the first evaluation result, an optimal first hierarchical feedforward neural network is determined among the plurality of trained first hierarchical feedforward neural networks; Using the optimal first hierarchical feedforward neural network, predicting the constructed extended input parameters, outputting corresponding extended output parameters, combining the extended input parameters and the extended output parameters to form corresponding extended experimental data, and merging the extended experimental data and the training sample set to form a corresponding synthetic sample set; Based on the synthetic sample set, training a plurality of pre-constructed second hierarchical feedforward neural networks to form a plurality of trained second hierarchical feedforward neural networks; Based on the validation sample set, the multiple trained second hierarchical feedforward neural networks are evaluated to obtain a second evaluation result, and based on the second evaluation result and the first evaluation result, the validity of the expanded experimental data is determined, wherein the first evaluation result and the second evaluation result are used to reflect the prediction accuracy of the corresponding hierarchical feedforward neural network.
2. The neural network-based expanded sample verification method according to claim 1, characterized in that: The step of training a plurality of pre-constructed first hierarchical feedforward neural networks based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks comprises: Determine the number of input parameters and output parameters included in the original experimental data in the training sample set, and obtain the corresponding input number and output number; Determine the number of nodes of the input layer of the first hierarchical feedforward neural network to be constructed based on the input number, and determine the number of nodes of the output layer of the second hierarchical feedforward neural network to be constructed based on the output number; Based on the input quantity and the output quantity, determining the node quantity interval of the hidden layer of the first hierarchical feedforward neural network to be constructed; Based on the number of nodes in the input layer, the number of nodes in the output layer, and the interval of the number of nodes in the hidden layer, a plurality of different first hierarchical feedforward neural networks are constructed, wherein the number of nodes in the hidden layer of each first hierarchical feedforward neural network belongs to the interval of the number of nodes, and the number of nodes in the hidden layer between every two first hierarchical feedforward neural networks is different; Based on the training sample set, the plurality of first hierarchical feedforward neural networks are trained to form a plurality of trained first hierarchical feedforward neural networks.
3. The neural network-based expanded sample verification method according to claim 2, characterized in that: The step of determining the node number interval of the hidden layer of the first hierarchical feedforward neural network to be constructed based on the input number and the output number includes: Performing a sum calculation on the input quantity and the output quantity to obtain a first parameter, and performing a square root operation on the target quantity to obtain a second parameter; The second parameter and a predetermined adjustment parameter are summed to obtain a node number interval of a hidden layer of a first hierarchical feedforward neural network to be constructed, wherein the adjustment parameter is a constant in the range of [0, 10].
4. The neural network-based expanded sample verification method according to claim 1, characterized in that: The step of evaluating the plurality of trained first hierarchical feedforward neural networks based on the validation sample set to obtain a first evaluation result, and determining the optimal first hierarchical feedforward neural network from the plurality of trained first hierarchical feedforward neural networks based on the first evaluation result comprises: For any trained first hierarchical feedforward neural network, using the trained first hierarchical feedforward neural network, predicting the input parameters included in each original experimental data in the verification sample set to obtain corresponding predicted output parameters, and, based on the predicted output parameters and the output parameters included in each original experimental data in the verification sample set, respectively calculating the corresponding prediction error and determination coefficient, wherein the determination coefficient is an evaluation parameter of the ability of the trained first hierarchical feedforward neural network to reproduce the original experimental data; Determining a first evaluation result corresponding to the trained first hierarchical feedforward neural network based on the prediction error and the determination coefficient; After determining the first evaluation result corresponding to each trained first hierarchical feedforward neural network, the trained first hierarchical feedforward neural network corresponding to the first evaluation result having the minimum value is determined as the optimal first hierarchical feedforward neural network.
5. The neural network-based expanded sample verification method according to claim 4, characterized in that: The steps of predicting the input parameters included in each original experimental data in the verification sample set using the trained first hierarchical feedforward neural network for any one of the trained first hierarchical feedforward neural networks to obtain corresponding predicted output parameters, and respectively calculating corresponding prediction errors and determination coefficients based on the predicted output parameters and the output parameters included in each original experimental data in the verification sample set, include: For any trained first hierarchical feedforward neural network, using the trained first hierarchical feedforward neural network, predicting the input parameters included in each original experimental data in the verification sample set to obtain corresponding predicted output parameters; For each original experimental data in the validation sample set, determine the difference between the output parameter included in the original experimental data and the corresponding predicted output parameter, and calculate the ratio between the difference and the output parameter, and use the absolute value of the ratio as the local prediction error of the trained first hierarchical feedforward neural network relative to the original experimental data, and calculate the mean of the local prediction errors of the trained first hierarchical feedforward neural network relative to each original experimental data to obtain the corresponding prediction error; Determine the mean of the output parameters included in each original experimental data in the verification sample set, and, for each original experimental data in the verification sample set, determine the square value of the difference between the output parameter included in the original experimental data and the mean, to obtain the corresponding first square value, and determine the square value of the difference between the predicted output parameter corresponding to the original experimental data and the mean, to obtain the corresponding second square value, and determine the ratio between the sum of the second square values corresponding to each original experimental data in the verification sample set and the sum of the first square values corresponding to each original experimental data in the verification sample set, to obtain the corresponding determination coefficient.
6. The neural network-based expanded sample verification method according to claim 4, characterized in that: The step of determining a first evaluation result corresponding to the trained first hierarchical feedforward neural network based on the prediction error and the determination coefficient comprises: Determine the weighting coefficients corresponding to the prediction error and the determination coefficient respectively, wherein the sum of the weighting coefficients corresponding to the prediction error and the determination coefficient is equal to 1, and the value ranges of the weighting coefficients corresponding to the prediction error and the determination coefficient belong to [0, 1]; Based on the corresponding weighting coefficient, the prediction error and the determination coefficient are weighted and summed to obtain a first evaluation result corresponding to the trained first hierarchical feedforward neural network.
7. The neural network-based expanded sample verification method according to claim 1, characterized in that: The step of evaluating the plurality of trained second hierarchical feedforward neural networks based on the validation sample set to obtain a second evaluation result, and determining the validity of the expanded experimental data based on the second evaluation result and the first evaluation result, comprises: Based on the verification sample set, evaluating the plurality of trained second hierarchical feedforward neural networks to obtain a second evaluation result; The first evaluation result and the second evaluation result are compared in size, and when the first evaluation result is greater than the second evaluation result, the expanded experimental data is determined to be valid, and when the first evaluation result is less than the second evaluation result, the expanded experimental data is determined to be invalid, wherein the first evaluation result and the second evaluation result have a negative correlation with the prediction accuracy of the corresponding hierarchical feedforward neural network.
8. An extended sample verification device based on a neural network, characterized in that: include: A sample set determination module, configured to determine a training sample set and a verification sample set based on a plurality of original experimental data formed by an orthogonal cutting experiment of a milling process, wherein the original experimental data included in the training sample set and the verification sample set are at least partially different, and the original experimental data include input parameters and output parameters, the input parameters include at least one parameter of a spindle speed, a feed rate, and a cutting depth, and the output parameters include a cutting surface roughness; A first neural network training module is used to train a plurality of pre-constructed first hierarchical feedforward neural networks based on the training sample set to form a plurality of trained first hierarchical feedforward neural networks, wherein during the training process, the first hierarchical feedforward neural network outputs corresponding predicted output parameters based on input parameters, and updates network parameters of the first hierarchical feedforward neural network based on errors between the predicted output parameters and the output parameters; A neural network determination module is used to evaluate the plurality of trained first hierarchical feedforward neural networks based on the verification sample set to obtain a first evaluation result, and to determine an optimal first hierarchical feedforward neural network among the plurality of trained first hierarchical feedforward neural networks based on the first evaluation result; A sample set expansion module, used to predict the constructed expansion input parameters using the optimal first hierarchical feedforward neural network, output corresponding expansion output parameters, combine the expansion input parameters and the expansion output parameters to form corresponding expansion experimental data, and merge the expansion experimental data and the training sample set to form a corresponding synthetic sample set; A second neural network training module is used to train a plurality of pre-constructed second hierarchical feedforward neural networks based on the synthetic sample set to form a plurality of trained second hierarchical feedforward neural networks; A sample validity determination module is used to evaluate the multiple trained second hierarchical feedforward neural networks based on the verification sample set to obtain a second evaluation result, and to determine the validity of the expanded experimental data based on the second evaluation result and the first evaluation result, wherein the first evaluation result and the second evaluation result are used to reflect the prediction accuracy of the corresponding hierarchical feedforward neural network.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the neural network-based expanded sample verification method described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run, the neural network-based expanded sample verification method according to any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Tool wear prediction method based on improved BP neural network
CN108959833A
Fault identification method and device
CN110163263A
Text classification model training and classification method and system and data processing system
CN113177119A
Intelligent tire wear life estimation method and device based on BP neural network
CN113239599A
Model training method and device and content recommendation method and device
CN116720548A
Cited By
Heat supply pipe network energy-saving effect evaluation method and system based on artificial intelligence
CN120763617A