Linear spring design method based on neural network, preparation method and related device

Through the neural network-based design method, the problem of difficulty in designing and manufacturing a linear spring with arbitrary stiffness curve in the prior art is solved, and the design and preparation of a linear spring with arbitrary load-displacement curve is realized, with the advantages of simple structure, no external power supply, and low usage cost.

CN119849324AActive Publication Date: 2025-04-18BEIHANG UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510057791.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-04-18
Estimated Expiration
2045-01-14

AI Technical Summary

Technical Problem

It is difficult to design and manufacture linear springs with arbitrary stiffness curves in the prior art, and the traditional solution has a complex structure, requires external power supply, and is costly to use.

Method used

Using a neural network-based design method, a single input and single output neural network is constructed to curve fit the preset load-displacement curve, combined with the force analysis of the linear spring simulation mechanism, unknown structural parameters are determined, and a linear spring design with any load-displacement curve form is realized.

Benefits of technology

The design and preparation of linear springs with arbitrary load-displacement curves are realized, with the advantages of simple structure, no external power supply and low usage cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119849324A_ABST
    Figure CN119849324A_ABST
Patent Text Reader

Abstract

The invention discloses a linear spring design method based on a neural network, a preparation method and a related device, and relates to the technical field of linear spring design, the method comprises the following steps: constructing a single-input single-output neural network, and taking displacement as input and load as output to obtain a single-input single-output neural network; performing curve fitting on a preset load-displacement curve of the linear spring by using a single-input single-output neural network to obtain a first expression; constructing a linear spring simulation mechanism, and performing stress analysis on the linear spring simulation mechanism to obtain a second expression; enabling the correlation coefficients of the first expression and the second expression to be equal, and determining the unknown structure parameters of the linear spring simulation mechanism. The linear spring with any load-displacement curve form can be designed and prepared, the structure is simple, external power supply is not needed, and the use cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of linear spring design, and in particular to a linear spring design method, a preparation method and related devices based on a neural network. Background Art

[0002] The design of linear springs involves many fields such as material mechanics and elastic mechanics. It is necessary to select appropriate spring materials according to the loads and working environment that the springs need to bear, and then calculate the spring diameter, length, number of coils, etc. according to the required mechanical properties and design requirements. The stiffness curve (i.e. load-displacement curve, also called load-deformation curve) of conventional linear springs has a certain form, such as linear type, gradually increasing stiffness type, gradually decreasing stiffness type, etc. Figure 1 Due to the limitations of materials, structural forms, and manufacturing processes, it is difficult to design and manufacture a machine with an arbitrary stiffness curve (such as Figure 2 A linear spring (shown).

[0003] In order to meet the special requirements of mechanical equipment for spring stiffness characteristics, William Tudor Bigge et al. tried to use electromechanical devices to simulate and realize arbitrary stiffness curves of linear springs in The Programmable Spring: Towards physical emulators of mechanical systems. In this electromechanical device, the sensor collects displacement and inputs the displacement to the controller. The controller outputs the output current corresponding to the displacement to the motor according to the proposed stiffness curve. The motor generates an output force proportional to the output current, thereby realizing a given load relationship under a given displacement. The above scheme can meet any load-displacement curve and has high flexibility, but it has a complex structure, requires external power supply, and has high cost. Summary of the invention

[0004] The purpose of this application is to provide a linear spring design method, preparation method and related device based on neural network, which can design and prepare linear springs with arbitrary load-displacement curve forms, with simple structure, no need for external power supply and low cost of use.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a linear spring design method based on a neural network, the linear spring design method based on a neural network comprising:

[0007] Constructing a single-input single-output neural network; the single-input single-output neural network includes an input layer, a hidden layer and an output layer connected in sequence;

[0008] Using displacement as input and load as output, a single-input single-output neural network is used to perform curve fitting on a preset load-displacement curve of a linear spring to obtain a first expression; the first expression uses the weight, bias and activation function of the single-input single-output neural network to characterize the relationship between load and displacement;

[0009] Constructing a linear spring simulation mechanism; the linear spring simulation mechanism includes an input component, a transmission component and a plurality of neuron components, the number of the neuron components being the same as the number of nodes in the hidden layer; the input component is used to move a certain displacement under the action of a load, the transmission component is transmission-connected to the input component, the neuron component is transmission-connected to the transmission component, and the unknown structural parameters of the transmission component and the unknown structural parameters of the neuron component are used to simulate the weight, bias and activation function of a single-input single-output neural network;

[0010] Performing force analysis on the linear spring simulation mechanism to obtain a second expression; the second expression uses unknown structural parameters of the linear spring simulation mechanism to characterize the relationship between load and displacement, and the unknown structural parameters of the linear spring simulation mechanism include unknown structural parameters of the transmission component and unknown structural parameters of the neuron component;

[0011] The correlation coefficients of the first expression and the second expression are made equal to determine the unknown structural parameters of the linear spring simulation mechanism.

[0012] In a second aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned linear spring design method based on neural network.

[0013] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned neural network-based linear spring design method.

[0014] In a fourth aspect, the present application provides a method for preparing a linear spring based on a neural network, the method for preparing a linear spring based on a neural network comprising:

[0015] Determine the unknown structural parameters of the linear spring simulation mechanism using the above-mentioned linear spring design method based on neural network;

[0016] Based on the unknown structural parameters, the input component, transmission component and multiple neuron components of the linear spring simulation mechanism are assembled to prepare a linear spring based on a neural network.

[0017] In a fifth aspect, the present application provides a neural network-based linear spring, which is prepared by using the above-mentioned neural network-based linear spring preparation method.

[0018] According to the specific embodiments provided in this application, this application has the following technical effects:

[0019] The present application provides a linear spring design method, preparation method and related device based on neural network, constructs a single-input single-output neural network, takes displacement as input and load as output, uses the single-input single-output neural network to curve fit the load-displacement curve of the preset linear spring, and obtains a first expression; constructs a linear spring simulation mechanism, performs force analysis on the linear spring simulation mechanism, and obtains a second expression; sets the correlation coefficient of the first expression and the second expression equal, and determines the unknown structural parameters of the linear spring simulation mechanism. The present application is based on the curve fitting principle of neural network, uses mechanical components to realize the functions of each link in the curve fitting of neural network, realizes the design of linear springs with a given stiffness curve, and subsequently prepares linear springs based on the design results, so that linear springs with arbitrary load-displacement curves can be designed and prepared. Since only mechanical components are required, and no sensors, controllers, motors and other equipment are required, it has the advantages of simple structure, no need for external power supply, and low cost of use. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 is a schematic diagram of a typical existing linear spring stiffness curve; wherein, Figure 1 (a) is a linear stiffness curve. Figure 1 (b) in the figure is the stiffness curve with increasing stiffness. Figure 1 (c) in the figure is a stiffness curve with decreasing stiffness.

[0022] Figure 2 is a schematic diagram of the linear spring stiffness curve of the existing demand; wherein, Figure 2 (a) is the nonlinear stiffness curve. Figure 2 (b) in the figure is the sinusoidal stiffness curve.

[0023] Figure 3 This is an application environment diagram of a neural network-based linear spring design method provided in Example 1 of the present application.

[0024] Figure 4 A schematic flow chart of a linear spring design method based on a neural network provided in Example 1 of the present application.

[0025] Figure 5 This is a schematic diagram of the neuron model provided in Example 1 of the present application.

[0026] Figure 6 This is a schematic diagram of an activation function provided in Example 1 of the present application; wherein, Figure 6 (a) in the equation is ReLU, Figure 6 (b) in the figure is Sigmoid.

[0027] Figure 7 A schematic diagram of the structure of the neural network provided in Example 1 of the present application.

[0028] Figure 8 This is a schematic diagram of the structure of a single-input, single-output, single-hidden layer neural network provided in Example 1 of the present application.

[0029] Fig. 9 A schematic diagram comparing the expected curve and the fitting curve provided in Example 1 of the present application; wherein, Fig. 9 (a) is the comparison of nonlinear stiffness curves. Fig. 9 (b) in the figure shows the comparison of sinusoidal stiffness curves.

[0030] Fig.10 A schematic structural diagram of a linear spring based on a single-input, single-output, single-hidden-layer neural network provided in Example 1 of the present application.

[0031] Fig.11 Provided in Example 1 of this application Fig.10 Schematic diagram of the force analysis of the linear spring in .

[0032] Fig.12 Another structural schematic diagram of a linear spring based on a single-input single-output single hidden layer neural network provided in Example 1 of the present application.

[0033] Fig.13 A schematic diagram of the structure of a computer device provided in Example 2 of the present application.

[0034] Reference numerals:

[0035] 1-input rod; 2-guide cylinder; 3-hinge; 4-first connecting rod; 5-fixed support; 6-constant torque torsion spring; 7-lever arm; 8-spring; 9-sleeve; 10-piston rod; 11-second connecting rod; 12-transmission shaft; 13-input rack; 14-input gear; 15-proportional rack; 16-proportional gear; 17-linear guide rail. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] Example 1

[0038] The linear spring design method based on neural network provided in the embodiment of the present application can be applied to Figure 3 In the application environment shown. Among them, the terminal communicates with the server through the network. The data storage system can store the data that the server needs to process. The data storage system can be set up separately, integrated on the server, or placed on the cloud or other servers. The terminal can send the pending design request to the server. After the server receives the pending design request, for the pending design request, the server constructs a single-input single-output neural network; takes the displacement as input and the load as output, and uses the single-input single-output neural network to perform curve fitting on the load-displacement curve of the preset linear spring to obtain a first expression; constructs a linear spring simulation mechanism; performs force analysis on the linear spring simulation mechanism to obtain a second expression; sets the correlation coefficient of the first expression and the second expression equal, and determines the unknown structural parameters of the linear spring simulation mechanism. The server can feedback the obtained design results for the design request (i.e., the unknown structural parameters of the linear spring simulation mechanism) to the terminal.

[0039] In addition, in some embodiments, the neural network-based linear spring design method can also be implemented independently by a server or a terminal. For example, the terminal can directly process the pending design request, or the server can obtain the pending design request from the data storage system and process the pending design request.

[0040] The terminals may be, but are not limited to, various desktop computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server may be implemented as an independent server or a server cluster consisting of multiple servers, or a cloud server.

[0041] In an exemplary embodiment, Figure 4As shown, a linear spring design method based on a neural network is provided. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 3 The following steps are used to illustrate the server in the example.

[0042] Step S1, constructing a single-input single-output neural network; the single-input single-output neural network includes an input layer, a hidden layer and an output layer connected in sequence.

[0043] Step S2, using displacement as input and load as output, using a single-input single-output neural network to perform curve fitting on the load-displacement curve of a preset linear spring to obtain a first expression; the first expression uses the weight, bias and activation function of the single-input single-output neural network to characterize the relationship between load and displacement.

[0044] Step S3, constructing a linear spring simulation mechanism; the linear spring simulation mechanism includes an input component, a transmission component and multiple neuron components, and the number of neuron components is the same as the number of nodes in the hidden layer; the input component is used to move a certain displacement under the action of the load, the transmission component is connected to the input component, the neuron component is connected to the transmission component, and the unknown structural parameters of the transmission component and the unknown structural parameters of the neuron component are used to simulate the weight, bias and activation function of the single-input single-output neural network.

[0045] Step S4, performing force analysis on the linear spring simulation mechanism to obtain a second expression; the second expression uses unknown structural parameters of the linear spring simulation mechanism to characterize the relationship between load and displacement, and the unknown structural parameters of the linear spring simulation mechanism include unknown structural parameters of the transmission component and unknown structural parameters of the neuron component.

[0046] Step S5, making the correlation coefficient of the first expression and the second expression equal, and determining the unknown structural parameters of the linear spring simulation mechanism.

[0047] By implementing the above-mentioned steps S1 to S5, this embodiment is based on the curve fitting principle of the neural network, and adopts mechanical components (or mechanical structures) to realize the functions of each link in the neural network curve fitting, so as to realize the design of a linear spring with a given stiffness curve. The linear spring is subsequently prepared based on the design result. It can be applied to the field of mechanical devices. Only mechanical components are used to design and prepare linear springs with arbitrary load-displacement curves. The structure is simple, no external power supply is required, and the use cost is low.

[0048] The characteristic of this embodiment is that the load-displacement curve of the linear spring is fitted by using a neural network-like mechanical component. First, the neural network parameters of the fitting curve (i.e., a given load-displacement curve) are obtained according to the neural network algorithm. Then, the form and parameters of the mechanical component are selected through the mapping relationship between the neuron structure and the mechanical component, thereby realizing the customizability of the load (force) and displacement relationship.

[0049] This embodiment is mainly used for the design of variable stiffness linear springs. Mechanical components are used to realize the neuron function in the neural network. The parameters of the mechanical components are obtained by referring to the curve fitting algorithm of the single-input single-output neural network (including forward propagation, loss calculation, back propagation, etc.), so as to fit the given load-displacement curve. The specific principles are as follows:

[0050] (1) Curve fitting principle of neural network

[0051] Neural networks are composed of basic neuron units, such as Figure 5 As shown, the neuron model includes multiple links such as input, weight, bias, summation, activation, and output. i (i=1,2,…,m) is the external input signal, which is the independent variable. Each neuron may have multiple input signals, depending on the number of independent variables m and the weight w i (i=1,2,…,m) is the weight value of each input signal. The bias b enables the function value of the dependent variable to move up and down along the Y axis. In biology, it is the critical value of the input signal level that makes the neuron cell excited. The sum is the product of all input signals and weights w. i x i (i=1,2,…,m) are added, and activation is used to perform nonlinear transformation on the input of the neuron to obtain the output y. Common activation functions include Sigmoid, ReLU, etc. Figure 6 As shown in the figure, the activation principle of ReLU is: when the input is less than 0, the output is 0, and when the input is greater than 0, the output is equal to the input. The activation principle of Sigmoid is: when the input approaches positive infinity / negative infinity, the output is infinitely close to 1 / 0.

[0052] Neurons are the basic units in neural networks. They can receive one or more input signals, add the input signals linearly and weighted, compare them with the bias b, and then process the results through the activation function to generate the output signal. Among them, y is the output signal, σ is the activation function, commonly used are ReLU and Sigmoid functions, m is the number of input signals, w i is the weight of the i-th input signal, x i is the ith input signal, and b is the bias.

[0053] Will Figure 5 If multiple neurons are connected together at a certain level, a neural network can be obtained, such as Figure 7 As shown, it includes an input layer, a hidden layer, and an output layer connected in sequence. Among them, the input layer receives input data, the hidden layer is located between the input layer and the output layer, and is used to process the input data, and the output layer produces the final output result. According to current research on neural networks, when the number of hidden layers is 1, any function containing a continuous mapping from one finite space to another finite space can be fitted. When the number of hidden layers is 2, any decision boundary of arbitrary precision can be represented, and any smooth mapping of any precision can be fitted. When the number of hidden layers is greater than 2, a description of complex objects can be obtained.

[0054] The load-displacement curve has only one independent variable (displacement) and one dependent variable (load value). A single-input single-output neural network can handle the simple function mapping relationship between the input (independent variable) and the output (dependent variable). This embodiment intends to use mechanical components to implement neuron-like units, and to form a neural network by connecting neuron-like units to fit the load-displacement curve. Considering the fitting accuracy, structural complexity, cost and other factors, the following method is adopted: Figure 8 It is implemented using the single-input, single-output, single hidden layer neural network shown.

[0055] Let σ be the ReLU function, Figure 8 The functional relationship between input and output is:

[0056]

[0057] Among them, y is the output, representing the load; m is the number of nodes in the hidden layer; w 2i is the weight of the connection between the i-th node in the hidden layer and the node in the output layer; σ is the activation function; w 1i is the weight of the node in the input layer connected to the i-th node in the hidden layer; x is the displacement; b 1i is the bias of the i-th node in the hidden layer; b2 is the bias of the node in the output layer.

[0058] For example Figure 2 The load-displacement curve shown in the figure takes displacement as the independent variable and load as the dependent variable. Figure 8 The single-input single-output single hidden layer (the number of hidden layer nodes can be 5) neural network shown in the figure is used for curve fitting, and the neural network parameters can be obtained as shown in Table 1. Fig. 9 shown.

[0059] Table 1 Neural network parameters

[0060]

[0061] observe Fig. 9 It can be seen that by changing the weight and bias parameters of the single-input single-output single-hidden layer neural network, the fitting of different load-displacement curves can be achieved in a mathematical sense.

[0062] The number of nodes in the hidden layer can be determined according to user needs.

[0063] At this time, in this embodiment, a single-input single-output neural network is constructed, and the single-input single-output neural network includes an input layer, a hidden layer, and an output layer connected in sequence. The displacement is used as input and the load is used as output. The single-input single-output neural network is used to perform curve fitting on the load-displacement curve of the preset linear spring to obtain a first expression. The first expression uses the weight, bias, and activation function of the single-input single-output neural network to characterize the relationship between load and displacement.

[0064] Among them, taking displacement as input and load as output, a single-input single-output neural network is used to perform curve fitting on a preset load-displacement curve of a linear spring to obtain a first expression, which specifically includes: determining the functional relationship between input and output based on the structure of the single-input single-output neural network; taking displacement as input and load as output, and using a preset load-displacement curve of a linear spring to determine the unknown parameters in the functional relationship between input and output to obtain the first expression, wherein the unknown parameters include the weight and bias of each node in the hidden layer and the weight and bias of the nodes in the output layer.

[0065] The first expression is:

[0066]

[0067] Among them, y is the output, representing the load; m is the number of nodes in the hidden layer; w 2i is the weight of the connection between the i-th node in the hidden layer and the node in the output layer; w 1i is the weight of the node in the input layer connected to the i-th node in the hidden layer; σ is the activation function; x is the displacement; b 1i is the bias of the i-th node in the hidden layer; b2 is the bias of the node in the output layer.

[0068] (2) Principle of linear spring based on neural network

[0069] This embodiment is based on a single-input single-output neural network mechanism to achieve the use of mechanical components to fit a given load-displacement curve. The specific implementation process is as follows: According to the principle of neural network fitting curve, a neuron-like mechanical component is designed. The neuron-like mechanical component can realize weight, bias and activation functions. The weight can be realized by a lever device (such as Fig.10 As shown), it can be realized by gear and rack meshing (as shown Fig.12As shown), it can also be achieved by using springs with different stiffness in different neuron components (according to the second expression, |w 2i w 1i | as the spring stiffness of each neuron component), the activation and bias functions can be realized through a cylinder-like structure, a rigid rope, and a constant torque / constant force structure. According to the load-displacement curve to be fitted, under the premise of meeting the fitting accuracy requirements, in order to reduce the manufacturing cost and cumulative error, a network structure with a small number of neural network hidden layers and hidden layer nodes is selected, and the forward propagation, back propagation, weight update and repeated training in the neural network algorithm are used to select the neural network parameters (i.e., unknown parameters). According to the mapping relationship between the neural network parameters and the parameters of the neural network-like mechanical components, the parameters of each mechanical component are determined, and the fitting of linear and nonlinear stiffness curves can be realized. However, the springs and constant torque torsion springs in the neuron components should be in the linear segment as much as possible within the deformation range to reduce the fitting error of the device.

[0070] This embodiment constructs a linear spring simulation mechanism, which includes an input component, a transmission component and multiple neuron components, and the number of neuron components is the same as the number of nodes in the hidden layer. The input component is used to move a certain displacement under the action of the load, the transmission component is connected to the input component, the neuron component is connected to the transmission component, and the unknown structural parameters of the transmission component and the unknown structural parameters of the neuron component are used to simulate the weight, bias and activation function of the single-input single-output neural network.

[0071] like Fig.10 As shown, it illustrates a linear spring principle based on a neural network. In the transmission component, the fixed support 5 (i.e., the fulcrum) is fixed, the lever arm 7 can rotate around the fulcrum, and the constant torque torsion spring 6 is fixed at one end and connected to the lever arm 7 at the other end, and a constant torque M0 can be applied to the lever arm 7. In the input component, the input rod 1 can reciprocate in the sliding pair (i.e., the guide cylinder 2) and is connected to the first connecting rod 4 through the hinge 3, and the first connecting rod 4 is connected to the lever arm 7 through the hinge 3. Each neuron component is connected to the lever arm 7 through a spring 8, a bias activation component (i.e., a sleeve 9 and a piston rod 10), a second connecting rod 11, etc. Taking neuron component 1 as an example, the two ends of the spring 8 are fixedly connected to the ground and the sleeve 9 in the bias activation component respectively, the piston rod 10 in the bias activation component is connected to the second connecting rod 11 through a hinge 3, and the second connecting rod 11 is connected to the lever arm 7 through a hinge 3. The piston rod 10 of the bias activation component can make a linear reciprocating motion in the sleeve 9. When the piston rod 10 moves to the right to the extreme position (i.e., it fits with the closed end face of the sleeve 9), it will push the sleeve 9 to continue to move to the right, thereby compressing the spring 8.

[0072] When the user applies force F (i.e., load) on the input rod 1 and moves the input rod 1 a distance x (i.e., displacement) relative to the reference position point R, the lever arm 7 will rotate around the fulcrum and drive the hinges on the lever arm 7 to move in the same direction, thereby causing the various components in each neuron assembly to move. Taking neuron assembly 1 as an example, the movement of the hinge drives the second connecting rod 11 and the bias activation component to move, and when the piston rod 10 reaches the right extreme position (i.e., the right side of the piston rod 10 hits the inner end of the sleeve 9), it continues to push the sleeve 9 to compress the spring 8, generating a force, which further acts on the lever arm 7 and is balanced with the torque of other neuron assemblies and the input rod 1 on the lever arm 7 relative to the fulcrum.

[0073] At this time, the input assembly includes an input rod 1, a horizontally arranged guide cylinder 2 and a first connecting rod 4, the transmission assembly includes a fixed support 5, a lever arm 7 and a constant torque torsion spring 6, and each neuron assembly includes a spring 8, a sleeve 9, a piston rod 10 and a second connecting rod 11. The first end of the input rod 1 is used to bear the load and move a certain displacement under the action of the load. The input rod 1 reciprocates in the horizontal direction along the guide cylinder 2. The second end of the input rod 1 is hinged to the first end of the first connecting rod 4, and the second end of the first connecting rod 4 is hinged to the lever arm 7. The lever arm 7 is hinged on the fixed support 5, the first end of the constant torque torsion spring 6 is fixed, and the second end of the constant torque torsion spring 6 is connected to the lever arm 7. The constant torque torsion spring 6 is used to simulate the bias of the node in the output layer of the single-input single-output neural network. In each neuron component, the first end of the spring 8 is fixed, the second end of the spring 8 is connected to the sleeve 9, the first end of the piston rod 10 extends into the sleeve 9, the second end of the piston rod 10 is hinged to the first end of the second connecting rod 11, and the second end of the second connecting rod 11 is hinged to the lever arm 7. The sleeve 9 and the piston rod 10 are used to simulate the activation function of the single-input single-output neural network.

[0074] At this time, the unknown structural parameters of the transmission component include the constant torque applied by the constant torque torsion spring 6 on the lever arm 7 and the distance from the hinge point between the second connecting rod 11 and the lever arm 7 in each neuron component to the hinge point between the lever arm 7 and the fixed support 5. The unknown structural parameters of the neuron component include the stiffness of the spring 8 in each neuron component and the stroke of the piston rod 10 moving freely into the sleeve 9.

[0075] like Fig.11As shown, starting from the neuron component 1, the balance relationship in the above mechanism is analyzed. The input rod 1 moves a distance x under the action of force F, and the lever arm 7 rotates around the point O by an angle θ. To simplify the calculation, the structural parameter x / l0 is selected to be smaller than the preset value, so that when the input rod 1 moves within the range of motion, it has a smaller rotation angle θ. At this time, the rotation angle θ is a smaller value, and the distance l0 between the hinge point A of the first connecting rod 4 and the lever arm 7 and the hinge point O of the lever arm 7 and the fixed support 5 is the unit force arm, that is, the value is 1. Because the rotation angle θ is small, the hinge point A moves a distance x in the horizontal direction, and the displacement of the hinge point B of the neuron component 1 and the lever arm 7 in the horizontal direction is for:

[0076]

[0077] Wherein, l1 is the distance between the hinge point B between the second connecting rod 11 and the lever arm 7 in the neuron component 1 and the hinge point O between the lever arm 7 and the fixed support 5.

[0078] The horizontal displacement s1 of the sleeve 9 in the neuron assembly 1 is:

[0079] s1 = ReLU(l1x-d1);

[0080] Wherein, d1 is the stroke of the piston rod 10 in the neuron assembly 1 that can freely move into the sleeve 9 when the input rod 1 is in the reference position.

[0081] The force F1 generated by the compression on the spring 8 in the neuron assembly 1 is:

[0082] F1 = k1s1 = k1ReLU(l1x-d1);

[0083] Wherein, k1 is the stiffness of the spring 8 in the neuron component 1.

[0084] The moment M1 generated by F1 on the lever arm 7 about point O is:

[0085]

[0086] Similarly, the horizontal displacement of the hinge points of other neuronal components They are:

[0087]

[0088] Among them, l i is the distance between the hinge point between the second connecting rod 11 and the lever arm 7 and the hinge point between the lever arm 7 and the fixed support 5 in the neuron component i.

[0089] The horizontal displacement s of the sleeve 9 in each other neuron assembly i They are:

[0090] s i =ReLU(l i xd i ) (i=2,…,m);

[0091] Among them, d i It is the stroke of the piston rod 10 in the neuron assembly i that can move freely into the sleeve 9 when the input rod 1 is in the reference position.

[0092] The force F generated by the compression on the spring 8 in each other neuron assembly i They are:

[0093] F i =k i s i =k i ReLU(l i xd i ) (i=2,…,m);

[0094] Among them, k i is the stiffness of the spring 8 in the neuron component i.

[0095] F i The moment M generated on the lever arm 7 about point O i for:

[0096]

[0097] Combining the above formulas, we can get:

[0098]

[0099] Since l0=1, we can get:

[0100]

[0101] Right now:

[0102]

[0103] That is, for a given independent variable (displacement x), the relationship between the dependent variable (load F) and the independent variable (displacement x) is as shown in the above formula.

[0104] At this time, in this embodiment, the force analysis of the linear spring simulation mechanism is performed to obtain a second expression. The second expression uses the unknown structural parameters of the linear spring simulation mechanism to characterize the relationship between load and displacement. The unknown structural parameters of the linear spring simulation mechanism include the unknown structural parameters of the transmission component and the unknown structural parameters of the neuron component. The second expression is:

[0105]

[0106] Wherein, F is the load; m is the number of neuron assemblies; ki is the stiffness of the spring in the i-th neuron assembly; li is the distance from the hinge point between the second connecting rod and the lever arm in the i-th neuron assembly to the hinge point between the lever arm and the fixed support; σ is the activation function; x is the displacement; di is the stroke of the piston rod in the i-th neuron assembly that moves freely into the sleeve; M0 is the constant torque applied by the constant torque torsion spring on the lever arm.

[0107] After obtaining the first expression and the second expression, the present embodiment makes the correlation coefficients of the first expression and the second expression equal, determines the unknown parameters in the second expression, that is, determines the unknown structural parameters of the linear spring simulation mechanism, and compares the first expression and the second expression. The relationship between the parameters is as follows:

[0108]

[0109] M0=b2;

[0110] Thus, the relationship between load F and displacement x (load-displacement curve) can be made consistent with the curve fitted by the neural network, that is, based on the neural network fitting algorithm, the fitting of the proposed stiffness curve form is achieved through mechanical components.

[0111] It should be noted that w 2i w 1i The size of (i.e. |w 2i w 1i |) OK w 2i w 1i The sign of determines the installation position of the neuron component. If w 2i w 1i is positive, then the neuron component is a neuron component with positive weight. If w 2i w 1i is negative, the neuron component is a neuron component with a negative weight. The installation position of the neuron component needs to ensure that when the displacement is positive, the spring 8 in the neuron component with a positive weight tends to be compressed, that is, the distance between the piston rod 10 and the sleeve 9 is reduced or the spring 8 is in a compressed state, and the spring 8 in the neuron component with a negative weight tends to be stretched, that is, the distance between the piston rod 10 and the sleeve 9 is increased or the spring 8 is in a stretched state. For example, Fig.10 As shown, the input assembly is located on the first side of the lever arm 7 (i.e., the left side in the figure), and is hinged to the first section of the lever arm 7 (i.e., the upper section in the figure). Fig.10 The deformation x direction is positive, so the weight is positive (i.e. w 1i and w 2iThe neuron component with a positive product) is located at the first section of the second side of the lever arm 7 (i.e., the right side in the figure) or the second section of the first side of the lever arm 7 (i.e., the lower section in the figure), at this time, the spring 8 tends to be compressed, and the weight is negative (i.e., w 1i and w 2i The neuron component with a negative product) is located at the second section on the second side of the lever arm 7 or the first section on the first side of the lever arm 7, and the spring 8 tends to stretch.

[0112] like Fig.12 As shown, it illustrates another linear spring principle based on neural network, changing the structure of the transmission component. At this time, the input rod 1 converts the input linear displacement into angular displacement through the input rack 13 and the input gear 14, and the proportional gear 16 is fixedly connected to the input gear 14 axis, that is, the proportional gear 16 rotates coaxially with the input gear 14, and the proportional gear 16 and the input gear 14 rotate at the same angular velocity. By changing the gear ratio of the proportional gear 16 and the input gear 14, the input displacement of each neuron component can be changed. When the input rod 1 moves to the right, the input rack 13 moves accordingly, driving the input gear 14 to rotate, the input gear 14 drives the transmission shaft 12 to rotate, the transmission shaft 12 drives the proportional gear 16 to rotate, and the proportional gear 16 drives the proportional rack 15 to move along the linear slide 17.

[0113] At this time, the input assembly includes an input rod 1 and a horizontally arranged guide cylinder 2, and the transmission assembly includes a transmission shaft 12, a constant torque torsion spring 6, an input rack 13, an input gear 14, a plurality of proportional racks 15 and a plurality of proportional gears 16. The proportional racks 15, the proportional gears 16 correspond to the neuron assembly one by one, and the neuron assembly includes a spring 8, a sleeve 9 and a piston rod 10. The first end of the input rod 1 is used to bear the load and move a certain displacement under the action of the load. The input rod 1 reciprocates in the horizontal direction along the guide cylinder 2, and the second end of the input rod 1 is connected to the input rack 13. The input rack 13 and multiple proportional racks 15 are respectively mounted on a fixed linear slide 17, the input gear 14 is meshed with the input rack 13, the input gear 14 and multiple proportional gears 16 are both mounted on the transmission shaft 12, the first end of the constant torque torsion spring 6 is fixed, the second end of the constant torque torsion spring 6 is connected to the transmission shaft 12, the constant torque torsion spring 6 is used to simulate the bias of the node in the output layer of the single-input single-output neural network, and the proportional rack 15 is meshed with the proportional gear 16. The first end of the spring 8 is fixed, the second end of the spring 8 is connected to the sleeve 9, the first end of the piston rod 10 extends into the sleeve 9, the second end of the piston rod 10 is connected to the proportional rack 15, the sleeve 9 and the piston rod 10 are used to simulate the activation function of the single-input single-output neural network.

[0114] At this time, the unknown structural parameters of the transmission component include the constant torque applied by the constant torque torsion spring 6 on the transmission shaft 12 and the tooth ratio of each proportional gear 16 to the input gear 14. The unknown structural parameters of the neuron component include the stiffness of the spring 8 in each neuron component and the stroke of the piston rod 10 moving freely into the sleeve 9.

[0115] At this time, during the force analysis, the horizontal displacement s of the sleeve 9 in each neuron assembly is i They are:

[0116]

[0117] Among them, z i is the number of teeth of the proportional gear of neuron component i, and z0 is the number of teeth of the input gear.

[0118] Then follow Fig.10 The formula of the structure shown can be further deduced to obtain the second expression, which will not be repeated here.

[0119] It should be noted that w 2i w 1i The sign of determines the installation position of the neuron component. If w 2i w 1i is positive, then the neuron component is a neuron component with positive weight. If w 2i w 1i is negative, the neuron component is a neuron component with a negative weight. The installation position of the neuron component needs to ensure that when the displacement is positive, the spring 8 in the neuron component with a positive weight tends to be compressed, that is, the distance between the piston rod 10 and the sleeve 9 is reduced or the spring 8 is in a compressed state, and the spring 8 in the neuron component with a negative weight tends to be stretched, that is, the distance between the piston rod 10 and the sleeve 9 is increased or the spring 8 is in a stretched state.

[0120] It should be noted that in the above example, the teeth of the ratio gear and the input gear are exactly the same, only the number of teeth is different.

[0121] The present application also provides an application scenario, which applies the above-mentioned linear spring design method based on neural network. Specifically, the linear spring design method based on neural network provided in this embodiment can be applied in the linear spring preparation scenario, which includes a design link and a preparation link. The design link is used to design the unknown structural parameters of the linear spring simulation mechanism, and the preparation link is used to prepare a linear spring with any given load-displacement curve based on the unknown structural parameters of the linear spring simulation mechanism. The linear spring design method based on neural network provided in this embodiment belongs to the design link.

[0122] Example 2

[0123] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Fig.13 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a linear spring design method based on a neural network is implemented.

[0124] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0125] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the linear spring design method based on neural network in Example 1 is implemented.

[0126] Example 3

[0127] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the linear spring design method based on a neural network in Example 1 is implemented.

[0128] Example 4

[0129] This embodiment provides a method for preparing a linear spring based on a neural network, and the method for preparing a linear spring based on a neural network includes:

[0130] (1) Determine the unknown structural parameters of the linear spring simulation mechanism using the neural network-based linear spring design method described in Example 1.

[0131] (2) Based on the unknown structural parameters, the input component, transmission component and multiple neuron components of the linear spring simulation mechanism are assembled to prepare a linear spring based on a neural network.

[0132] Example 5

[0133] This embodiment provides a linear spring based on a neural network, and the linear spring based on a neural network is prepared by using the method for preparing a linear spring based on a neural network described in Example 4.

[0134] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0135] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0136] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A linear spring design method based on neural network, characterized in that: The linear spring design method based on neural network includes: Constructing a single-input single-output neural network; the single-input single-output neural network includes an input layer, a hidden layer and an output layer connected in sequence; Using displacement as input and load as output, a single-input single-output neural network is used to perform curve fitting on a preset load-displacement curve of a linear spring to obtain a first expression; the first expression uses the weight, bias and activation function of the single-input single-output neural network to characterize the relationship between load and displacement; Constructing a linear spring simulation mechanism; the linear spring simulation mechanism includes an input component, a transmission component and a plurality of neuron components, the number of the neuron components being the same as the number of nodes in the hidden layer; the input component is used to move a certain displacement under the action of a load, the transmission component is transmission-connected to the input component, the neuron component is transmission-connected to the transmission component, and the unknown structural parameters of the transmission component and the unknown structural parameters of the neuron component are used to simulate the weight, bias and activation function of a single-input single-output neural network; Performing force analysis on the linear spring simulation mechanism to obtain a second expression; the second expression uses unknown structural parameters of the linear spring simulation mechanism to characterize the relationship between load and displacement, and the unknown structural parameters of the linear spring simulation mechanism include unknown structural parameters of the transmission component and unknown structural parameters of the neuron component; The correlation coefficients of the first expression and the second expression are made equal to determine the unknown structural parameters of the linear spring simulation mechanism.

2. The linear spring design method based on neural network according to claim 1 is characterized in that: With displacement as input and load as output, a single-input single-output neural network is used to perform curve fitting on the load-displacement curve of a preset linear spring to obtain a first expression, which specifically includes: Determine the functional relationship between input and output based on the structure of a single-input single-output neural network; Taking displacement as input and load as output, unknown parameters in the functional relationship between input and output are determined using a preset load-displacement curve of a linear spring to obtain a first expression; the unknown parameters include the weight and bias of each node in the hidden layer and the weight and bias of the nodes in the output layer.

3. The linear spring design method based on neural network according to claim 2 is characterized in that: The first expression is: Among them, y is the output, representing the load; m is the number of nodes in the hidden layer; w 2i is the weight of the connection between the i-th node in the hidden layer and the node in the output layer; w 1i is the weight of the node in the input layer connected to the i-th node in the hidden layer; σ is the activation function; x is the displacement; b 1i is the bias of the i-th node in the hidden layer; b2 is the bias of the node in the output layer.

4. The linear spring design method based on neural network according to claim 1 is characterized in that: The input assembly includes an input rod, a horizontally arranged guide cylinder and a first connecting rod; the transmission assembly includes a fixed support, a lever arm and a constant torque torsion spring; the neuron assembly includes a spring, a sleeve, a piston rod and a second connecting rod; The first end of the input rod is used to bear the load and move a certain displacement under the action of the load. The input rod reciprocates in the horizontal direction along the guide cylinder. The second end of the input rod is hinged to the first end of the first connecting rod, and the second end of the first connecting rod is hinged to the lever arm. The lever arm is hinged on a fixed support, the first end of the constant torque torsion spring is fixed, and the second end of the constant torque torsion spring is connected to the lever arm; the constant torque torsion spring is used to simulate the bias of the node in the output layer of the single-input single-output neural network; The first end of the spring is fixed, the second end of the spring is connected to the sleeve, the first end of the piston rod extends into the sleeve, the second end of the piston rod is hinged to the first end of the second connecting rod, and the second end of the second connecting rod is hinged to the lever arm; the sleeve and the piston rod are used to simulate the activation function of the single-input single-output neural network; At this time, the unknown structural parameters of the transmission assembly include the constant torque exerted by the constant torque torsion spring on the lever arm and the distance from the hinge point between the second connecting rod and the lever arm in each neuron assembly to the hinge point between the lever arm and the fixed support; the unknown structural parameters of the neuron assembly include the stiffness of the spring in each neuron assembly and the stroke of the piston rod moving freely into the sleeve.

5. The linear spring design method based on neural network according to claim 1, characterized in that: The input assembly includes an input rod and a horizontally arranged guide cylinder; the transmission assembly includes a transmission shaft, a constant torque torsion spring, an input rack, an input gear, a plurality of proportional racks and a plurality of proportional gears, and the proportional racks, the proportional gears and the neuron assembly correspond one to one; the neuron assembly includes a spring, a sleeve and a piston rod; The first end of the input rod is used to bear the load and move a certain displacement under the action of the load. The input rod reciprocates in the horizontal direction along the guide cylinder. The second end of the input rod is connected to the input rack. The input rack and the plurality of proportional racks are respectively mounted on fixed linear guide rails; the input gear is meshed and connected with the input rack; the input gear and the plurality of proportional gears are both mounted on the transmission shaft; the first end of the constant torque torsion spring is fixed, and the second end of the constant torque torsion spring is connected to the transmission shaft; The proportional rack is meshed with the proportional gear; the constant torque torsion spring is used to simulate the bias of the node in the output layer of the single-input single-output neural network; The first end of the spring is fixed, the second end of the spring is connected to the sleeve, the first end of the piston rod extends into the sleeve, and the second end of the piston rod is connected to the proportional rack; the sleeve and the piston rod are used to simulate the activation function of the single-input single-output neural network; At this time, the unknown structural parameters of the transmission assembly include the constant torque exerted by the constant torque torsion spring on the transmission shaft and the tooth ratio of each proportional gear to the input gear; the unknown structural parameters of the neuron assembly include the stiffness of the spring in each neuron assembly and the stroke of the piston rod moving freely into the sleeve.

6. The linear spring design method based on neural network according to claim 4 is characterized in that: The second expression is: Among them, F is the load; m is the number of neuron components; k i is the stiffness of the spring in the i-th neuron component; l i is the distance between the hinge point between the second link and the lever arm and the hinge point between the lever arm and the fixed support in the i-th neuron component; σ is the activation function; x is the displacement; d i is the stroke of the piston rod in the i-th neuron assembly moving freely into the sleeve; M0 is the constant torque exerted by the constant torque torsion spring on the lever arm.

7. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the linear spring design method based on a neural network as claimed in any one of claims 1 to 6.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the neural network-based linear spring design method described in any one of claims 1 to 6 is implemented.

9. A method for preparing a linear spring based on a neural network, characterized in that: The method for preparing a linear spring based on a neural network comprises: Determine the unknown structural parameters of the linear spring simulation mechanism using the linear spring design method based on neural network described in any one of claims 1 to 6; Based on the unknown structural parameters, the input component, transmission component and multiple neuron components of the linear spring simulation mechanism are assembled to prepare a linear spring based on a neural network.

10. A linear spring based on a neural network, characterized in that: The neural network-based linear spring is prepared by using the neural network-based linear spring preparation method described in claim 9.

Citation Information

Patent Citations

  • Intelligent control method of steering engine electrohydraulic load simulator based on neural network identification

    CN109814383A

  • On-load tap-changer spring energy storage insufficiency fault identification method based on neural network response surface

    CN110457750A

  • Working condition fusion road feel simulation method based on SVM and BP neural network

    CN112572606A

  • Wind turbine load prediction and analysis method based on BP neural network and storage medium

    CN113919221A

  • Information identifying processing method based on nervous network

    CN1457021A