Neural network training method, device and electronic equipment

By analyzing symbolic differential equations and converting them into solution term calculations, the problem of low calculation efficiency of differential equations in computational fluid dynamics is solved, and the efficiency of neural network training is improved.

CN114970817BActive Publication Date: 2024-10-18BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210567107.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2024-10-18
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

In the existing technology, the calculation efficiency of differential equations in computational fluid dynamics is low and takes a long time, which affects the efficiency of neural network training.

Method used

By obtaining the sample data set, inputting time points and position coordinates into the pre-trained neural network, mobile parameter information is generated. Based on this information, the symbolic differential equation is analyzed and converted into solution terms for calculation, thereby reducing computational complexity and improving efficiency.

Benefits of technology

It shortens the calculation time, improves the efficiency of neural network training, has a wide range of applications, and does not need to modify the sympy backend.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114970817B_ABST
    Figure CN114970817B_ABST
Patent Text Reader

Abstract

The present disclosure provides a neural network training method, device and electronic device, which relate to the field of artificial intelligence, and in particular to the field of deep learning. The specific implementation scheme is: obtaining a sample data set, wherein the sample data set includes the time points at which the moving object is detected during the movement process, and the position coordinates corresponding to the time points; inputting the time points and position coordinates in the sample data set into the pre-trained neural network to generate the predicted movement parameter information of the moving object; based on the predicted movement parameter information, obtaining the corresponding loss value; and training the pre-trained neural network according to the loss value. The embodiments of the present disclosure can improve the calculation efficiency of the loss value and reduce the time of training the neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence, and in particular to the field of deep learning technology. Background Art

[0002] Fluid mechanics is a branch of mechanics that studies the flow laws of fluids. However, computational fluid dynamics is relatively complex and requires the use of neural networks to perform calculations and simulate the movement of fluids. For example, it simulates the movement of ships and airplanes underwater or in the air. The loss function corresponding to the neural network of fluid mechanics is a differential equation. In the process of training the neural network, it is necessary to continuously calculate the differential equation to obtain the loss value and train the neural network.

[0003] However, the current methods for calculating differential equations have low computational efficiency and are time-consuming. Summary of the invention

[0004] The present disclosure provides a training method, apparatus, device and storage medium for a neural network.

[0005] According to one aspect of the present disclosure, a neural network training method is provided, comprising:

[0006] Acquire a sample data set, wherein the sample data set includes time points at which the moving object is detected during the motion process, and position coordinates corresponding to the time points;

[0007] Inputting the time points and position coordinates in the sample data set into a pre-trained neural network to generate predicted movement parameter information of the moving object;

[0008] Based on the predicted movement parameter information, a corresponding loss value is obtained;

[0009] The pre-trained neural network is trained according to the loss value.

[0010] Optionally, the training the pre-trained neural network according to the loss value includes:

[0011] The parameters of the pre-trained neural network are updated based on the gradient descent algorithm and the loss value until the pre-trained neural network converges to obtain a target neural network.

[0012] Optionally, obtaining a corresponding loss value based on the predicted movement parameter information includes:

[0013] Get the symbolic differential equation corresponding to the loss function;

[0014] Analyzing the symbolic differential equation to obtain a solution of the symbolic differential equation;

[0015] The solution item is calculated based on the predicted movement parameter information to obtain a corresponding loss value.

[0016] Optionally, the step of parsing the symbolic differential equation to obtain a solution of the symbolic differential equation includes:

[0017] The differential equation is analyzed using symbols of the first priority to obtain a plurality of calculation terms;

[0018] Using the symbol of the second priority level to parse each of the plurality of calculation items, to obtain a solution item corresponding to each calculation item, wherein the solution item includes a derivative item;

[0019] The derivative term in each of the solution terms is analyzed to obtain a parameter term corresponding to the derivative term.

[0020] Optionally, the calculating the solution item based on the predicted movement parameter information to obtain a corresponding loss value includes:

[0021] Calculating a parameter item in each derivative item based on the predicted movement parameter information to obtain a value of each derivative item;

[0022] Calculating each solution item based on the predicted movement parameter information and the value of each derivative item to obtain the value of each solution item;

[0023] Calculating each calculation item based on the sign of the second priority and the value of each solution item to obtain the value of each calculation item;

[0024] The symbolic differential equation is calculated based on the sign of the first priority and the value of each of the calculation items to obtain the value of the loss function.

[0025] Optionally, the method further includes:

[0026] Acquire the time points of the moving object to be analyzed during its motion and the position coordinates corresponding to the time points;

[0027] The acquired time point and position coordinates are input into the target neural network to obtain the movement parameter information corresponding to the moving object to be analyzed.

[0028] Optionally, the movement parameter information includes the speed and pressure of the moving object at the position coordinates.

[0029] According to a second aspect of the present disclosure, there is provided a neural network training device, comprising:

[0030] An acquisition module, used to acquire a sample data set, wherein the sample data set includes a time point at which the moving object is detected during the motion process, and a position coordinate corresponding to the time point;

[0031] A processing module, used for inputting the time points and position coordinates in the sample data set into a pre-trained neural network to generate predicted movement parameter information of the moving object;

[0032] A calculation module, used for obtaining a corresponding loss value based on the predicted movement parameter information;

[0033] A training module is used to train the pre-trained neural network according to the loss value.

[0034] Optionally, the training module is further used to:

[0035] The parameters of the pre-trained neural network are updated based on the gradient descent algorithm and the loss value until the pre-trained neural network converges to obtain a target neural network.

[0036] Optionally, the computing module includes:

[0037] Get submodule, used to get the symbolic differential equation corresponding to the loss function;

[0038] An analysis submodule, used for analyzing the symbolic differential equation to obtain calculation items and solution items of the symbolic differential equation;

[0039] The calculation submodule is used to calculate the solution item based on the predicted movement parameter information to obtain a corresponding loss value.

[0040] Optionally, the parsing submodule is further used for:

[0041] The differential equation is analyzed using symbols of the first priority to obtain a plurality of calculation terms;

[0042] Using the symbol of the second priority level to parse each of the plurality of calculation items, to obtain a solution item corresponding to each calculation item, wherein the solution item includes a derivative item;

[0043] The derivative term in each of the solution terms is analyzed to obtain a parameter term corresponding to the derivative term.

[0044] Optionally, the calculation submodule is further used for:

[0045] Calculating a parameter item in each derivative item based on the predicted movement parameter information to obtain a value of each derivative item;

[0046] Calculating each solution item based on the predicted movement parameter information and the value of each derivative item to obtain the value of each solution item;

[0047] Calculating each calculation item based on the sign of the second priority and the value of each solution item to obtain the value of each calculation item;

[0048] The symbolic differential equation is calculated based on the sign of the first priority and the value of each of the calculation items to obtain the value of the loss function.

[0049] Optionally, the device is also used for:

[0050] Acquire the time points of the moving object to be analyzed during its motion and the position coordinates corresponding to the time points;

[0051] The acquired time point and position coordinates are input into the target neural network to obtain the movement parameter information corresponding to the moving object to be analyzed.

[0052] Optionally, the movement parameter information includes the speed and pressure of the moving object at the position coordinates.

[0053] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0054] at least one processor; and

[0055] a memory communicatively connected to the at least one processor; wherein,

[0056] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method of the first aspect mentioned above.

[0057] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method according to any one of the above-mentioned first aspects.

[0058] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of the above-mentioned first aspects.

[0059] Compared with the prior art, the present invention has the following beneficial effects:

[0060] The symbolic differential equation corresponding to the loss function is parsed to obtain the solution of the symbolic differential equation, so that the calculation of the symbolic differential equation is converted into the calculation of each solution obtained by parsing, which reduces the complexity of the calculation, thereby shortening the calculation time, improving the calculation efficiency, and further shortening the time for training neural networks. At the same time, the general symbolization defined by sympy in python can be parsed as a differential equation without modifying the sympy backend, and has a wide range of applications.

[0061] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0063] Figure 1 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure;

[0064] Figure 2 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure;

[0065] Figure 3 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure;

[0066] Figure 4 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure;

[0067] Figure 5 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure;

[0068] Figure 6 is a structural schematic diagram of a neural network training device provided according to an embodiment of the present disclosure;

[0069] Figure 7 It is a block diagram of an electronic device used to implement the neural network training method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0070] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0071] Artificial Intelligence (AI) is a technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. At present, AI technology has the advantages of high automation, high precision and low cost, and has been widely used.

[0072] The following describes the neural network training method, device and equipment according to the embodiments of the present disclosure with reference to the accompanying drawings.

[0073] Figure 1 A flowchart of a neural network training method provided according to an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method may include:

[0074] Step 101: Obtain a sample data set.

[0075] In the disclosed embodiment, the sample data set may include the time point at which the moving object is detected during the motion process, and the position coordinates corresponding to the time point. Also, the moving object may be an object moving in water or in the air, such as a ship or an airplane.

[0076] Among them, the time point can be a specific moment in the movement of the moving object, and the position coordinates corresponding to the time point can be (x, y, z), where x, y, and z respectively represent the coordinate values ​​of the moving object's position on the x, y, and z axes at that time point.

[0077] Step 102: input the time points and position coordinates in the sample data set into the pre-trained neural network to generate predicted movement parameter information of the moving object.

[0078] In an embodiment of the present disclosure, before inputting the time points and position coordinates in the sample data set into the pre-trained neural network, it is necessary to initialize the parameters in the pre-trained neural network. Specifically, the pre-trained neural network can be initialized by randomly generated parameters.

[0079] The movement parameter information of the moving object may include the speed and pressure of the moving object at the position coordinates.

[0080] Specifically, when the time point of the moving object is t and the position coordinates are (x, y, z), the predicted pressure of the moving object at the position coordinates generated by the pre-trained neural network is P, and the speed is u, v, w, where u, v, w are the speeds of the moving object in the x, y, and z directions, respectively.

[0081] Step 103: Obtain a corresponding loss value based on the predicted movement parameter information.

[0082] In the disclosed embodiment, the symbolic differential equation corresponding to the loss function can be parsed into various items that need to be calculated, and then the differential equation is calculated based on the predicted movement parameter information to obtain the corresponding loss value, making the calculation process of the differential equation simpler, thereby shortening the calculation time, and further shortening the time for training the neural network.

[0083] Step 104: Train the pre-trained neural network according to the loss value.

[0084] In an embodiment of the present disclosure, a method for training a pre-trained neural network according to a loss value may include: updating parameters of the pre-trained neural network based on a gradient descent algorithm and a loss value until the pre-trained neural network converges to obtain a target neural network.

[0085] Figure 2 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure, such as Figure 2 As shown, Figure 1 Step 103 in the method specifically includes:

[0086] Step 201: Obtain a symbolic differential equation corresponding to the loss function.

[0087] In the disclosed embodiment, the user may input a general symbolic differential equation corresponding to the loss function by using the python sympy module.

[0088] For example, assume that the differential equation corresponding to the loss function is The symbolic differential equation corresponding to the Python sympy module is u · diff(x)+v · diff(y)+w · diff(z).

[0089] Furthermore, the differential equation corresponding to the loss function in the above pre-trained neural network may be the Navier-Stokes equation.

[0090] Specifically, the Navier-Stokes equation is:

[0091]

[0092]

[0093]

[0094]

[0095] Among them, u, t, x, y, z satisfy the function u(t, x, y, z); v, t, x, y, z satisfy the function v(t, x, y, z); w, t, x, y, z satisfy the function w(t, x, y, z), μ is the viscosity of water flow or air flow, ρ is the density of water flow or air flow, and P is the pressure.

[0096] In addition, the symbolic differential equation corresponding to the loss function can be obtained before training the preset neural network, so that the symbolic differential equation can be directly calculated during the training process.

[0097] Step 202: Analyze the symbolic differential equation to obtain the solution of the symbolic differential equation.

[0098] In the embodiment of the present disclosure, the symbolic differential equation may include a calculation item, a solution item, a derivative item, and a parameter item. Furthermore, the calculation item includes a solution item, the solution item includes a derivative item, and the derivative item includes a parameter item.

[0099] Among them, by analyzing the symbolic differential equation, the calculation terms, solution terms, derivative terms and parameter terms of the symbolic differential equation can be obtained.

[0100] In the disclosed embodiment, the general symbolization defined by sympy in python can be parsed into differential equations without modifying the sympy backend, and has a wide range of applications.

[0101] Step 203: Calculate the solution items based on the predicted movement parameter information to obtain corresponding loss values.

[0102] In the disclosed embodiment, the solution terms are calculated using the predicted mobile parameter information to obtain corresponding loss values, so that the calculation of the symbolic differential equation is converted into the calculation of each resolved solution term, which reduces the complexity of the calculation, thereby shortening the calculation time, improving the calculation efficiency, and further shortening the time for training the neural network.

[0103] Figure 3 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure, such as Figure 3 As shown, Figure 2 Step 202 in the embodiment specifically includes:

[0104] Step 301: Analyze the differential equation using symbols of the first priority to obtain multiple calculation items.

[0105] In the implementation of the present disclosure, the symbol of the first priority may include + and - in the symbol operation.

[0106] Among them, through the operation of step 301, the calculation items on both sides of the + and - in the differential equation can be obtained.

[0107] For example, assume that the differential equation is the first equation u in the above Navier-Stokes equations · diff(x)+v · diff(y)+w · diff(z), then the differential equation is analyzed using the first priority symbol to obtain three calculation items, namely u · diff(x), v · diff(y),w · diff(z).

[0108] Step 302: parse each calculation item in the multiple calculation items using the symbol of the second priority level to obtain a solution item corresponding to each calculation item.

[0109] In the embodiment of the present disclosure, the symbols of the second priority may include × and / in symbol operations.

[0110] Among them, through the operation of step 302, the solution items on both sides of × and / in each calculation item can be obtained.

[0111] For example, assume that the calculation term is u×u · diff(x), the calculation term is parsed by the second priority symbol to obtain two solution terms, namely u and u · diff(x).

[0112] Furthermore, the solution items may include multiple different types. Among them, the types of solution items may include at least one of the following:

[0113] function;

[0114] Independent variable;

[0115] constant;

[0116] Derivative term.

[0117] Furthermore, the type of the solution item can be obtained based on its own properties. For example, the type of the solution item u is a function, and the solution item u · diff(x) is of type derivative term.

[0118] Step 303: Analyze the derivative term in each solution term to obtain the parameter term corresponding to the derivative term.

[0119] In the embodiment of the present disclosure, the parameter item corresponding to the above derivative item can be any one of the following:

[0120] Independent variable;

[0121] Dependent variable;

[0122] Derivative order.

[0123] Furthermore, if there is no derivative term in the solution term, the derivative term will not be analyzed for the solution term.

[0124] Among them, through the above steps, the symbolic differential equation can be disassembled to obtain solution items that do not need to be disassembled and calculated, thereby reducing the complexity of the calculation, so that the calculation of the symbolic differential equation is converted into the calculation of each solution item obtained by analysis, shortening the calculation time, improving the calculation efficiency, and thus shortening the time for training the neural network.

[0125] Figure 4 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure, such as Figure 4 As shown, Figure 2 Step 203 in the method specifically includes:

[0126] Step 401: Calculate the parameter item in each derivative item based on the predicted movement parameter information to obtain the value of each derivative item.

[0127] In the disclosed embodiment, if the parameter item in the derivative item is an independent variable or a dependent variable, the value in the predicted movement parameter information is directly substituted into the parameter item of the derivative item to obtain the value of the corresponding derivative item.

[0128] Among them, if the parameter term in the derivative term is the derivative order, it can be directly obtained through the corresponding calling function.

[0129] Step 402: Calculate each solution item based on the predicted movement parameter information and the value of each derivative item to obtain the value of each solution item.

[0130] Step 403: Calculate each calculation item based on the symbol of the second priority and the value of each solution item to obtain the value of each calculation item.

[0131] In the disclosed embodiment, each solution item is calculated based on the corresponding symbol of the second priority to obtain the value of each calculation item.

[0132] Step 404: Calculate the symbolic differential equation based on the sign of the first priority and the value of each calculation item to obtain a loss value.

[0133] In the disclosed embodiment, each calculation item is calculated based on the corresponding symbol of the first priority to obtain the value of the corresponding symbolic differential equation, which is also the corresponding loss value.

[0134] Figure 5 is a flowchart of a neural network training method provided according to an embodiment of the present disclosure, such as Figure 5 As shown, the method includes:

[0135] Step 501: Obtain a sample data set.

[0136] Step 502: Input the time points and position coordinates in the sample data set into the pre-trained neural network to generate predicted movement parameter information of the moving object.

[0137] Step 503: Obtain a corresponding loss value based on the predicted movement parameter information.

[0138] Step 504: Train the pre-trained neural network according to the loss value.

[0139] For a detailed description of the above steps 501 to 504 , reference may be made to the relevant description in the above embodiment, which will not be elaborated in detail in this embodiment.

[0140] Step 505: Obtain the time points of the moving object to be analyzed during its motion and the position coordinates corresponding to the time points.

[0141] Step 506: input the acquired time point and position coordinates into the target neural network to obtain the movement parameter information corresponding to the moving object to be analyzed.

[0142] Figure 6 is a schematic diagram of a neural network training device according to an embodiment of the present disclosure, such as Figure 6 As shown, the device 600 includes:

[0143] An acquisition module 601 is used to acquire a sample data set, wherein the sample data set includes a time point at which a moving object is detected during movement, and a position coordinate corresponding to the time point;

[0144] A processing module 602 is used to input the time points and position coordinates in the sample data set into a pre-trained neural network to generate predicted movement parameter information of the moving object;

[0145] A calculation module 603, used to obtain a corresponding loss value based on the predicted movement parameter information;

[0146] The training module 604 is used to train the pre-trained neural network according to the loss value.

[0147] Optionally, the training module is further used to:

[0148] The parameters of the pre-trained neural network are updated based on the gradient descent algorithm and the loss value until the pre-trained neural network converges to obtain a target neural network.

[0149] Optionally, the computing module includes:

[0150] Get submodule, used to get the symbolic differential equation corresponding to the loss function;

[0151] An analysis submodule, used for analyzing the symbolic differential equation to obtain calculation items and solution items of the symbolic differential equation;

[0152] The calculation submodule is used to calculate the solution item based on the predicted movement parameter information to obtain a corresponding loss value.

[0153] Optionally, the parsing submodule is further used for:

[0154] The differential equation is analyzed using symbols of the first priority to obtain a plurality of calculation terms;

[0155] Using the symbol of the second priority level to parse each of the plurality of calculation items, to obtain a solution item corresponding to each calculation item, wherein the solution item includes a derivative item;

[0156] The derivative term in each of the solution terms is analyzed to obtain a parameter term corresponding to the derivative term.

[0157] Optionally, the calculation submodule is further used for:

[0158] Calculating a parameter item in each derivative item based on the predicted movement parameter information to obtain a value of each derivative item;

[0159] Calculating each solution item based on the predicted movement parameter information and the value of each derivative item to obtain the value of each solution item;

[0160] Calculating each calculation item based on the sign of the second priority and the value of each solution item to obtain the value of each calculation item;

[0161] The symbolic differential equation is calculated based on the sign of the first priority and the value of each of the calculation items to obtain the value of the loss function.

[0162] Optionally, the device is also used for:

[0163] Acquire the time points of the moving object to be analyzed during its motion and the position coordinates corresponding to the time points;

[0164] The acquired time point and position coordinates are input into the target neural network to obtain the movement parameter information corresponding to the moving object to be analyzed.

[0165] Optionally, the movement parameter information includes the speed and pressure of the moving object at the position coordinates.

[0166] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0167] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0168] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0169] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0170] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0171] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as method XXX. For example, in some embodiments, method XXX may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the method XXX described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform method XXX in any other appropriate manner (e.g., by means of firmware).

[0172] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0173] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0174] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0175] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0176] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0177] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0178] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0179] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A neural network training method, in, The method comprises: Acquire a sample data set, wherein the sample data set includes time points at which the moving object is detected during the motion process, and position coordinates corresponding to the time points; Inputting the time points and position coordinates in the sample data set into a pre-trained neural network to generate predicted movement parameter information of the moving object, wherein the movement parameter information of the moving object includes the speed and pressure of the moving object at the position coordinates; Based on the predicted movement parameter information, a corresponding loss value is obtained; Training the pre-trained neural network according to the loss value; Wherein, obtaining a corresponding loss value based on the predicted movement parameter information includes: Get the symbolic differential equation corresponding to the loss function; Analyzing the symbolic differential equation to obtain a solution of the symbolic differential equation; Calculating the solution item based on the predicted movement parameter information to obtain a corresponding loss value; The step of calculating the solution item based on the predicted movement parameter information to obtain the corresponding loss value includes: Calculating a parameter item in each derivative item based on the predicted movement parameter information to obtain a value of each derivative item; Calculating each solution item based on the predicted movement parameter information and the value of each derivative item to obtain the value of each solution item; Calculating each calculation item based on the sign of the second priority and the value of each solution item to obtain the value of each calculation item; The symbolized differential equation is calculated based on the sign of the first priority and the value of each of the calculation items to obtain a loss value.

2. The method according to claim 1, in, The training of the pre-trained neural network according to the loss value comprises: The parameters of the pre-trained neural network are updated based on the gradient descent algorithm and the loss value until the pre-trained neural network converges to obtain a target neural network.

3. The method according to claim 1, in, The step of analyzing the symbolic differential equation to obtain a solution of the symbolic differential equation includes: The differential equation is analyzed using symbols of the first priority to obtain a plurality of calculation terms; Using the symbol of the second priority level to parse each of the plurality of calculation items, to obtain a solution item corresponding to each calculation item, wherein the solution item includes a derivative item; The derivative term in each of the solution terms is analyzed to obtain a parameter term corresponding to the derivative term.

4. The method according to claim 1, in, The method further comprises: Acquire the time points of the moving object to be analyzed during its motion and the position coordinates corresponding to the time points; The acquired time point and position coordinates are input into the target neural network to obtain the movement parameter information corresponding to the moving object to be analyzed.

5. A neural network training device, in, The device comprises: An acquisition module, used to acquire a sample data set, wherein the sample data set includes a time point at which the moving object is detected during the motion process, and a position coordinate corresponding to the time point; A processing module, used for inputting the time points and position coordinates in the sample data set into a pre-trained neural network to generate predicted movement parameter information of the moving object, wherein the movement parameter information of the moving object includes the speed and pressure of the moving object at the position coordinate; A calculation module, used for obtaining a corresponding loss value based on the predicted movement parameter information; A training module, used for training the pre-trained neural network according to the loss value; The computing module comprises: Get submodule, used to get the symbolic differential equation corresponding to the loss function; An analysis submodule, used for analyzing the symbolic differential equation to obtain calculation items and solution items of the symbolic differential equation; A calculation submodule, used for calculating the solution item based on the predicted movement parameter information to obtain a corresponding loss value; The calculation submodule is also used for: Calculating a parameter item in each derivative item based on the predicted movement parameter information to obtain a value of each derivative item; Calculating each solution item based on the predicted movement parameter information and the value of each derivative item to obtain the value of each solution item; Calculating each calculation item based on the sign of the second priority and the value of each solution item to obtain the value of each calculation item; The symbolic differential equation is calculated based on the sign of the first priority and the value of each of the calculation items to obtain the value of the loss function.

6. The apparatus according to claim 5, wherein the training module is further used for: The parameters of the pre-trained neural network are updated based on the gradient descent algorithm and the loss value until the pre-trained neural network converges to obtain a target neural network.

7. The apparatus according to claim 5, wherein the parsing submodule is further configured to: The differential equation is analyzed using symbols of the first priority to obtain a plurality of calculation terms; Using the symbol of the second priority level to parse each of the plurality of calculation items, to obtain a solution item corresponding to each calculation item, in, The solution term includes a derivative term; The derivative term in each of the solution terms is analyzed to obtain a parameter term corresponding to the derivative term.

8. The device according to claim 5, in, The device is also used for: Acquire the time points of the moving object to be analyzed during its motion and the position coordinates corresponding to the time points; The acquired time point and position coordinates are input into the target neural network to obtain the movement parameter information corresponding to the moving object to be analyzed.

9. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.

11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Motion parameter prediction method and device of fluid mechanics and storage medium

    CN112784496A