WO2021258882A1 - Recurrent neural network-based data processing method, apparatus, and device, and medium - Google Patents

Recurrent neural network-based data processing method, apparatus, and device, and medium Download PDF

Info

Publication number
WO2021258882A1
WO2021258882A1 PCT/CN2021/093152 CN2021093152W WO2021258882A1 WO 2021258882 A1 WO2021258882 A1 WO 2021258882A1 CN 2021093152 W CN2021093152 W CN 2021093152W WO 2021258882 A1 WO2021258882 A1 WO 2021258882A1
Authority
WO
WIPO (PCT)
Prior art keywords
neural network
preset
last moment
model
series data
Prior art date
Application number
PCT/CN2021/093152
Other languages
French (fr)
Chinese (zh)
Inventor
康焱
张天豫
刘洋
陈天健
Original Assignee
深圳前海微众银行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2021258882A1 publication Critical patent/WO2021258882A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/27Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling

Definitions

  • This application relates to the field of artificial intelligence technology, and in particular to a data processing method, device, equipment and medium based on a recurrent neural network.
  • Time series data refers to data arranged based on time series.
  • Time series data of users at different moments includes the same user at different moments.
  • Characteristic data on different data sources such as different parties or different devices.
  • the same patient may have visited several different medical institutions at different times to diagnose the same (or similar) condition. The same patient is in different conditions.
  • Time (different moments) access to different medical institutions (different participants or different equipment) for the same disease diagnosis time series data is the same user at different times, in different data sources such as different server characteristic data.
  • the time series data of users at different moments are stored in different parties or different devices.
  • different participants or different devices cannot directly interact with the time series data of users at different moments, that is, each participant or Different devices cannot share user timing data at different moments for joint modeling.
  • each participant or different device can only model based on a small amount of user timing data at different moments, and can only be based on a small amount of timing data.
  • the data is modeled, so it takes longer to train to make the trained model reach the target performance, which in turn causes the computer to consume a lot of resources and computing power, resulting in low utilization of computer computing resources.
  • the main purpose of this application is to provide a data processing method, device, equipment, and medium based on a recurrent neural network, which aims to solve the problem that in the prior art, different participants or different equipment cannot directly perform user timing data at different moments.
  • the interaction between different parties or different devices can only perform modeling based on a small amount of time-series data of users at different moments, which makes it difficult for the model obtained after modeling to achieve the expected prediction effect.
  • this application provides a data processing method based on a cyclic neural network.
  • the preset time series data refers to the time series data of a user at a different time.
  • the data processing method based on the cyclic neural network includes:
  • the data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
  • a preset data processing procedure is executed on the to-be-processed time-series data to obtain a target prediction tag of the to-be-processed time-series data.
  • This application also provides a data processing device based on a cyclic neural network.
  • the preset time series data refers to the time series data of a user at a different time.
  • the data processing device based on the cyclic neural network includes:
  • the first acquisition module is configured to acquire time series data to be processed, and input the time series data to be processed into the data processing model;
  • the data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
  • the second acquisition module is configured to execute a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data.
  • This application also provides a data processing device based on a recurrent neural network.
  • the data processing device based on a recurrent neural network is a physical device.
  • the data processing device based on a recurrent neural network includes: a memory, a processor, and The program of the data processing method based on the recurrent neural network that can be executed on the memory and can be run on the processor, and when the program of the data processing method based on the recurrent neural network is executed by the processor, the recurrent neural network based Steps of network data processing method.
  • the application also provides a medium storing a program for realizing the above-mentioned data processing method based on cyclic neural network.
  • the program of the data processing method based on cyclic neural network is executed by a processor, the above-mentioned loop-based Steps of neural network data processing method.
  • This application obtains time series data to be processed, and inputs the time series data to be processed into a data processing model; the data processing model is fed forward training of the recurrent neural network model at different times based on the time series data of the user at different times After that, the cyclic neural network model at different moments when the federated forward training is completed is obtained after federated reverse training is performed at each moment; based on the data processing model, the preset data processing flow is executed on the to-be-processed time series data to obtain The target prediction label of the time series data to be processed.
  • the data processing model executes the preset data processing procedure to obtain the technical means of the target prediction label of the time series data to be processed, because the data processing model is based on the time series data of the user at different times to federate the cyclic neural network models at different times
  • the cyclic neural network model at different moments of the federated forward training is obtained after federated reverse training at each moment, and then while protecting privacy, it realizes the federation construction model based on time series data at different moments.
  • FIG. 1 is a schematic flowchart of a first embodiment of a data processing method based on a recurrent neural network according to this application;
  • FIG. 2 is a second embodiment of the application based on the recurrent neural network data processing method based on the intermediate parameters at the last moment, the tag timing data with preset tags, and the preset predictions of the preset recurrent neural network model Model, a detailed flow diagram of the step of determining the intermediate gradient corresponding to the predicted time at the last moment;
  • FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the application;
  • FIG. 4 is a schematic diagram of the first scene in the data processing method based on the recurrent neural network of this application;
  • FIG. 5 is a schematic diagram of the second scene in the data processing method based on the recurrent neural network of this application.
  • the embodiment of the application provides a data processing method based on a recurrent neural network.
  • the data processing method based on the recurrent neural network includes:
  • Step S10 acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model
  • the data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
  • Step S20 Perform a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain a target prediction tag of the to-be-processed time-series data.
  • Step S10 acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model
  • the data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
  • the data processing method based on the recurrent neural network can be applied to a data processing system based on the recurrent neural network.
  • the data processing system based on the recurrent neural network includes a plurality of different parties or devices, and the plurality of different Among the participants or devices, the participant containing the tag timing data with preset tags is the main participant (or the main device), and the data processing method based on the recurrent neural network can also be applied to the main participant or the main device
  • the data processing method based on the recurrent neural network is applied to a data processing system based on the recurrent neural network instead of a certain device as an example for specific description.
  • the time series data to be processed is input into the data processing model of the data processing system based on the cyclic neural network, so that the data processing model processes the time series data to be processed, that is, in this embodiment
  • the time series data is processed through the trained data processing model, where the time series data refers to the data arranged based on time series.
  • the time series data in this embodiment refers to the time series data of the user at different moments. In particular, it refers to the time series data of users at different moments in the preset sample set.
  • the time series data of users at different moments includes different moments of the same user.
  • the characteristic data on different data sources such as different participants or different devices needs to be explained.
  • the different data sources can be of the same type.
  • the same patient may have visited several different medical institutions at different times (although the specific institutions are different, they are all types of medical institutions) to diagnose the same condition.
  • Different medical institutions (different parties or different devices) visited by the same patient at different times (different moments) to diagnose time series data of the same condition, which is the characteristic data of the same user at different times and on different data sources such as different servers .
  • the time series data of users at different moments does not include the feature data of the same user at the same time at different data sources (participants or equipment).
  • user m is in a medical institution. (Participants or equipment) purchased drug A, and a new sales record was generated on the server of the medical institution.
  • the time series data includes the characteristic data of the same user at the same time and in different data sources (participants or devices).
  • the time series data in this embodiment does not include this situation.
  • the data processing model is based on the user's time series data at different moments after fed forward training of the cyclic neural network model at different moments, and then the cyclic neural network model at different moments when the federated forward training is completed
  • the target model obtained after the federated reverse training at each time is carried out.
  • the recurrent neural network model at different moments is fed forward based on the time series data of the user at different moments, and then the federated forward training is completed at different moments.
  • the federated reverse training of the cyclic neural network model at each moment specifically refers to: based on the user's preset time series data at different moments, such as the user's preset time series data at time t1, before the federation of the preset cyclic neural network model at time t1 Forward training to obtain the preset cyclic neural network model of the federated forward propagation at the first moment (it can be the preset cyclic neural network model at time t2), and then based on the user’s preset timing data at different moments, such as the user’s prediction at time t2 Set time series data, perform federated forward training on the preset recurrent neural network model at time t2, and obtain the preset recurrent neural network model of federated forward propagation at the second time (it can be the preset recurrent neural network model at time t3), Based on this, the federated forward training is continuously performed until the last-minute cyclic neural network model is obtained.
  • the preset time series data based on the user at the last time is not the same time, such as user t(N) time
  • the preset time sequence data at the time, the federated reverse update of the cyclic neural network model at the last moment, and the federated reverse update of the cyclic neural network model at each subsequent time, until the preset cycle at the initial moment The neural network model is updated.
  • the time series data involved without the preset tags is the preset time series data at different moments of the user.
  • the data is in different devices or participants in order to obtain the parameters for federation based on the preset timing data of the users at different moments.
  • the preset timing data of the users at different moments at different moments can also be in the same Participating parties.
  • the method before the step of executing a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data, the method includes:
  • Step S11 based on the user's time series data at different moments, after federated forward training is performed on the recurrent neural network model at different moments, then federated reverse training is performed on the recurrent neural network model at different moments when the federated forward training is completed.
  • the tag timing data with preset tags is acquired, where the preset tags include types such as type tags, and the tag timing data with preset tags refers to data arranged in time with preset tags.
  • the cyclic neural network model at different moments is fed forward training, and then the fed forward training is completed at different moments.
  • the recurrent neural network model performs federated reverse training at each time to obtain a joint model.
  • the federated forward training is performed, based on the tag timing data and the preset timing data of users of the multiple data sources (participants or devices) at different moments, the federated forward
  • the cyclic neural network models at different moments after the training are completed perform federated reverse training at each moment to obtain a joint model, that is, the time is different, and the preset time series data of the user at different moments are the time series data of different participants, for example, the first The preset time series data at one time is in the first medical institution, and the preset time series data at the second time is in the second medical institution.
  • preset federated communication is performed between each participant, and the preset time sequence data of the user at different times includes the preset time sequence data at each time;
  • the preset time series data of the user at different moments include preset time series data at various moments;
  • the forward federated training is performed on the cyclic neural network model at different moments based on the time series data of the user at different moments
  • the federated reverse training is performed on the cyclical neural network model at different moments when the federated forward training is completed.
  • the steps to get the joint model include:
  • Step a1 based on the received intermediate parameters of the forward propagation corresponding to the previous time at the target time, the preset time series data of the target time and the model parameters of the preset recurrent neural network model at the target time, determine the target time The forward propagation intermediate parameters of, and the federated forward training for each subsequent time based on the intermediate parameters of forward propagation at the target time, until the intermediate parameters at the final time are obtained;
  • the intermediate parameter is the state information h
  • the initial parameter is the initialization state information
  • the various intermediate parameters include
  • the preset time series data of users at different moments are in different data sources or participants. Specifically, as shown in FIG. 4, the data sets X1, X2, and X3 respectively record the user k in the sample set.
  • the sample set it includes multiple users.
  • the data sets X1, X2, and X3 also record the time series characteristics of user m in the sample set at time t1 (in participant 1), and user k at time t2 Time sequence features generated at time (in participant 2), and user k generated at time t3 (in participant 3). It should be noted that based on the time sequence data of users at different moments, the cycle of different moments After the neural network model undergoes federated forward training, the cyclic neural network model at different moments when the federated forward training is completed is then federated backward training at each moment to obtain the joint model.
  • the essence of the steps in this embodiment is:
  • the preset time series data of the participants at the target time at the target time is the preset time series data at the target time.
  • the target time corresponds to the participation at the next time.
  • the preset time sequence data corresponding to the next time at the target time is the preset time sequence data corresponding to the next time at the target time, and the forward training process of the federation at the target time corresponding to the next time is carried out, and the federation at different times is continued.
  • the forward training process is to obtain the preset cyclic neural network model at the last moment.
  • the preset time sequence data at the last moment such as the preset time sequence data at the user t(N)
  • update the preset loop neural network model at the last moment and continue to perform the federal reverse update of the preset loop neural network model at different moments.
  • the preset cyclic neural network model is updated.
  • the target time participant receives the intermediate parameter of the forward propagation at the target time corresponding to the previous time, where the intermediate parameter of the forward propagation at the target time corresponding to the previous time is determined by the intermediate parameter corresponding to the previous time at the target time or the initial parameters, the preset time series data corresponding to the previous time at the target time and the target time corresponding to the previous time of the preset cyclic neural network model are determined by the model parameters of the previous time, as shown in Figure 5, based on Intermediate parameters or initialization state information at the initial time t0 (the target time corresponds to the previous time)
  • the preset time series data at the first time t1, namely X1 and the model parameters at the first time t1 determine the intermediate parameters of the forward propagation at the second time t2
  • the target moment corresponds to the intermediate parameter of the forward propagation by the participant at the previous moment
  • the target moment corresponds to the participant's local model at the previous moment and is sent to the target moment participant.
  • Step a2 calculating the last-minute loss gradient based on the last-minute intermediate parameters, the last-minute preset time series data, and the last-minute preset prediction model to calculate the last-minute prediction model intermediate gradient;
  • Step a3 based on the intermediate gradient of the prediction model at the last moment and the preset timing data at the last moment, calculate the intermediate gradient corresponding to the last moment, and update the preset recurrent neural network based on the intermediate gradient at the last moment
  • Step a4 Perform federated reverse training based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network model at the first moment is updated.
  • the preset time series data X2 of the target time and the target time model parameters of the preset cyclic neural network model at the target time determine the intermediate parameters of the forward propagation at the target time And so on, and based on the intermediate parameters of the forward propagation at the target moment Carry out the federal forward training at each subsequent moment, and get And so on, and get the intermediate parameters corresponding to the last moment of the target moment Intermediate parameters based on the last moment
  • the tag timing data Y n with preset tags at the last moment and the preset prediction model V0 at the last moment are calculated, the loss gradient at the last moment is calculated, and the preset is updated based on the loss gradient at the last moment
  • the model parameters of the prediction model specifically, calculate the loss gradient y t n at the last moment, and update the model parameters of the preset prediction model V0 based on the intermediate gradient y t n corresponding to the prediction moment at the last moment.
  • model parameters corresponding to each moment in the federated forward training may be the same, that is, the model parameters corresponding to each moment in the federated forward training process may be the same or different, for example, the preset cyclic nerve
  • the model parameters of the network model at the last time of the target time, the model parameters of the preset recurrent neural network model at the last time of the last time, and the like can all be the same.
  • the intermediate gradient at the last moment And the preset time series data X n-1 corresponding to the last moment at the last moment and calculate the intermediate gradient corresponding to the last moment at the last moment And based on the intermediate gradient of the last moment corresponding to the previous moment
  • the preset time series data X n-1 corresponding to the last moment at the last moment is updated, and the preset cyclic neural network model corresponding to the last moment is updated until the preset cyclic neural network model at the initial moment is updated.
  • Step S12 Set the joint model as the data processing model.
  • the target model is set as the data processing model.
  • Step S20 Perform a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain a target prediction tag of the to-be-processed time-series data.
  • a preset data processing procedure is performed on the to-be-processed time-series data based on the data-processing model to obtain the target prediction tag of the to-be-processed time-series data.
  • the target prediction label of the time series data to be processed can be accurately obtained, and the target prediction
  • the label may be a classification label for classifying the time sequence data to be processed, for example, the user corresponding to the time sequence data to be processed is a high-consumption user in the corresponding time sequence period.
  • This application obtains time series data to be processed, and inputs the time series data to be processed into a data processing model; the data processing model is fed forward training of the recurrent neural network model at different times based on the time series data of the user at different times After that, the cyclic neural network model at different moments when the federated forward training is completed is obtained after federated reverse training is performed at each moment; based on the data processing model, the preset data processing flow is executed on the to-be-processed time series data to obtain The target prediction label of the time series data to be processed.
  • the data processing model executes the preset data processing procedure to obtain the technical means of the target prediction label of the time series data to be processed, because the data processing model is based on the time series data of the user at different times to federate the cyclic neural network models at different times
  • the cyclic neural network model at different moments of the federated forward training is obtained after federated reverse training at each moment, and then while protecting privacy, it realizes the federation construction model based on time series data at different moments.
  • the intermediate parameters based on the last moment, the preset time sequence data at the last moment, and the last moment preset Set a prediction model calculate the loss gradient at the last moment, and update the model parameters of the preset prediction model based on the loss gradient at the last moment, including:
  • Step b1 based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment, determining the prediction result of the preset recurrent neural network model at the last moment;
  • Step b2 based on the prediction result of the preset cyclic neural network model at the last moment, the real result of the preset time series data at the last moment, and the preset loss function at the last moment, determine the loss gradient at the last moment.
  • the step of determining the loss gradient at the last moment Specifically, based on the intermediate parameters at the last moment, the tag timing data with preset tags at the last moment and the last moment preset prediction
  • the model determines the prediction result of the preset cyclic neural network model at the last moment, based on the prediction result of the preset cyclic neural network model at the last moment, the real result of the preset time series data at the last moment, and the preset at the last moment
  • the loss function determines the loss gradient at the last moment, and based on the loss gradient at the last moment, determines the loss gradient at the last moment through a preset calculation formula to update the model parameters of the preset prediction model.
  • the prediction result of the preset recurrent neural network model at the last time is determined based on the intermediate parameters at the last time, the preset time series data at the last time, and the preset prediction model at the last time;
  • the prediction result of the preset cyclic neural network model at the moment, the real result of the preset time series data at the last moment, and the preset loss function at the last moment determine the loss gradient at the last moment, and based on the loss gradient at the last moment, Update the model parameters of the preset prediction model. And then lay the foundation for accurately obtaining the target model.
  • the preset recurrent neural network model based on the update at the last moment and the last moment correspond to the middle of the previous moment
  • the gradient performs federated reverse training until the preset recurrent neural network model at the initial moment is updated, including:
  • Step c1 based on the preset recurrent neural network model updated at the last moment, the intermediate gradient corresponding to the last moment at the last moment and the preset time series data at the last moment corresponding to the last moment, update the preset recurrent neural network model to correspond to the last moment
  • Step c2 based on the preset recurrent neural network model updated at the last moment corresponding to the last moment and the intermediate gradient of the last moment corresponding to the last moment and the last moment of the last moment, perform the federated reverse training of the previous moments until the initial moment.
  • the recurrent neural network model is updated.
  • the last moment corresponds to the intermediate gradient of the previous moment and the last moment corresponds to
  • the preset time series data at the last moment update the model parameters of the preset loop neural network model at the last moment corresponding to the previous moment, and calculate the intermediate gradient of the last moment corresponding to the previous moment, based on the last moment corresponding to the previous moment
  • the preset recurrent neural network model updated at all times and the intermediate gradient corresponding to the last time at the last moment are used to perform the federated reverse training of the previous moments until the preset recurrent neural network model at the first moment is updated.
  • the federated reverse training is accurately performed.
  • the time series data at different times of the user is medical time series data at the different times of the user
  • the time series data to be processed is medical time series data to be processed
  • the data processing model is medical time series data. Attribute prediction model
  • the medical attribute prediction model is based on the user's medical time series data at different moments after the fed forward training of the cyclic neural network model at different moments, and then the cyclic neural network model at different moments when the federated forward training is completed. Obtained after federated reverse training;
  • the step of executing a preset data processing procedure on the time series data to be processed based on the data processing model to obtain the target prediction tag of the time series data to be processed includes:
  • Step M1 Perform medical attribute prediction processing on the medical time series data to be processed based on the medical attribute prediction model to obtain a medical attribute prediction result of the medical time series data to be processed.
  • a data processing method based on recurrent neural network is provided in a medical institution application scenario.
  • this application scenario if the same patient has visited several different medical institutions at different times to perform data processing on the same type of data After labeling and obtaining preset medical time series data at different times, a data processing model is obtained based on the medical time series data at different times.
  • the medical time series data of the user at different moments may be the currently detected blood pressure, blood lipids, blood glucose, uric acid, cholesterol, the number of times of detection, the length of the detection, etc., and the medical time series data of the user at different moments are input to the training.
  • the medical attribute prediction model performs medical attribute prediction processing on the medical time series data to be processed based on the medical attribute prediction model to obtain the medical attribute prediction results of the medical time series data to be processed ,
  • the medical attribute prediction result includes the first medical attribute prediction result that is greater than the first preset label value (the probability of a certain medical attribute data is greater than 90%), or is less than the first preset label value and greater than the second preset label value
  • the second medical attribute prediction result, or the third medical attribute prediction result less than the second preset label value, the medical attribute prediction result is different, and the associated loan amount obtained based on the medical attribute prediction result is different.
  • FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.
  • the data processing device based on the cyclic neural network may include a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection and communication between the processor 1001 and the memory 1005.
  • the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • the data processing device based on a recurrent neural network may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on.
  • the rectangular user interface may include a display screen (Display) and an input sub-module such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface.
  • the network interface can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the structure of the data processing device based on the recurrent neural network shown in FIG. 3 does not constitute a limitation on the data processing device based on the recurrent neural network, and may include more or less components than shown in the figure. Or some parts are combined, or different parts are arranged.
  • the memory 1005 as a computer medium may include an operating system, a network communication module, and a data processing program based on a cyclic neural network.
  • the operating system is a program that manages and controls the hardware and software resources of the data processing equipment based on the cyclic neural network, and supports the operation of the data processing program based on the cyclic neural network and other software and/or programs.
  • the network communication module is used to realize the communication between the components in the memory 1005 and the communication with other hardware and software in the data processing system based on the cyclic neural network.
  • the processor 1001 is used to execute the data processing program based on the recurrent neural network stored in the memory 1005 to realize the data based on the recurrent neural network described in any one of the above Processing method steps.
  • the specific implementation of the data processing device based on the recurrent neural network of this application is basically the same as the foregoing embodiments of the data processing method based on the recurrent neural network, and will not be repeated here.
  • This application also provides a data processing device based on a cyclic neural network.
  • the preset time series data refers to the time series data of a user at a different time.
  • the data processing device based on the cyclic neural network includes:
  • the first acquisition module is configured to acquire time series data to be processed, and input the time series data to be processed into the data processing model;
  • the data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
  • the second acquisition module is configured to execute a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data.
  • the data processing device based on recurrent neural network further includes:
  • the training module is used to perform federated forward training on the cyclic neural network model at different moments based on the time series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed.
  • To train to obtain a joint model To train to obtain a joint model;
  • the setting module is used to set the joint model as the data processing model.
  • the preset time sequence data of the user at different moments includes preset time sequence data at various moments
  • the training module includes:
  • the first receiving unit is configured to receive, based on the received intermediate parameters of the forward propagation corresponding to the previous time at the target time, the preset time series data of the target time and the model parameters of the preset cyclic neural network model at the target time, Determine the intermediate parameters of the forward propagation at the target time, and perform federated forward training at each subsequent time based on the intermediate parameters of the forward propagation at the target time, until the intermediate parameters at the final time are obtained;
  • the first calculation unit is configured to calculate the loss gradient at the last moment based on the intermediate parameters at the last moment, the preset timing data at the last moment, and the preset prediction model at the last moment to calculate the prediction at the last moment
  • the intermediate gradient of the model
  • the second calculation unit is configured to calculate the intermediate gradient corresponding to the final time based on the intermediate gradient of the prediction model at the final time and the preset time series data at the final time, and update the prediction based on the intermediate gradient at the final time Suppose the model parameters of the recurrent neural network model at the last moment and the intermediate gradient of the last moment corresponding to the last moment are calculated;
  • the first update unit is used to perform federated reverse training based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network model at the first moment is updated.
  • the second determining unit includes:
  • the first determining subunit is configured to determine the prediction result of the preset cyclic neural network model at the last moment based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment;
  • the second determining subunit is used to determine the loss at the last moment based on the prediction result of the preset recurrent neural network model at the last moment, the real result of the preset time series data at the last moment, and the preset loss function at the last moment gradient.
  • the second update unit includes:
  • the update subunit is used to update the preset recurrent neural network model based on the preset recurrent neural network model updated at the last moment, the intermediate gradient corresponding to the last time at the last time and the preset time series data at the last time corresponding to the last time, to update the preset recurrent neural network model at the end Time corresponds to the model parameters of the previous time and calculates the intermediate gradient of the last time corresponding to the previous time;
  • the federated reverse training unit is used to perform federated reverse training for each previous moment based on the preset recurrent neural network model updated at the last moment corresponding to the previous moment and the intermediate gradient of the last moment corresponding to the previous moment and the last moment. Until the initial moment, the preset cyclic neural network model is updated.
  • model parameters corresponding to each moment in the federated forward training are the same.
  • the preset time series data refers to the medical time series data of the user at different moments
  • the data processing device based on the recurrent neural network further includes:
  • the third acquisition module is used to acquire the medical time series data to be processed, and input the medical time series data to be processed into the data processing model;
  • the data processing model is based on the user's medical time series data at different moments after fed forward training of the cyclic neural network model at different moments, and then federation of the cyclic neural network model at different moments when the federated forward training is completed. Obtained after reverse training;
  • the processing module is configured to execute a preset data processing procedure on the medical time series data to be processed based on the data processing model to obtain the target predicted medical label of the medical time series data to be processed.
  • the specific implementation of the data processing device based on the recurrent neural network of the present application is basically the same as the foregoing embodiments of the data processing method based on the recurrent neural network, and will not be repeated here.
  • the embodiment of the present application provides a medium, and the medium stores one or more programs, and the one or more programs may also be executed by one or more processors to implement any one of the foregoing The steps of the data processing method based on recurrent neural network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Data Mining & Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A recurrent neural network-based data processing method, apparatus, and device, and a medium. The method comprises: obtaining time sequence data to be processed, and inputting the time sequence data to be processed to a data processing model, the data processing model being obtained by performing federated forward training on recurrent neural network models at difference moments on the basis of time sequence data of a user at different moments and then performing federated backward training of the moments on the recurrent neural network models at difference moments after the federated forward training is completed (S10); and executing, on the basis of the data processing model, a preset data processing process on the time sequence data to be processed to obtain a target prediction label of the time sequence data to be processed (S20).

Description

基于循环神经网络的数据处理方法、装置、设备及介质Data processing method, device, equipment and medium based on cyclic neural network
优先权信息Priority information
本申请要求于2020年6月24日申请的、申请号为202010596089.8的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 24, 2020 with the application number 202010596089.8, the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及人工智能技术领域,尤其涉及一种基于循环神经网络的数据处理方法、装置、设备及介质。This application relates to the field of artificial intelligence technology, and in particular to a data processing method, device, equipment and medium based on a recurrent neural network.
背景技术Background technique
随着互联网的不断发展,越来越多的技术(如分布式、区块链Blockchain、人工智能等)等得到应用,但互联网也对技术提出了更高的要求,如对数据处理也有更高的要求。With the continuous development of the Internet, more and more technologies (such as distributed, blockchain, artificial intelligence, etc.) have been applied, but the Internet has also put forward higher requirements for technology, such as data processing. Requirements.
循环神经网络(Recurrent Neural Network,RNN)模型常用于处理用户非相同时刻的时序数据,其中,时序数据指的是基于时间序列排列的数据,用户非相同时刻的时序数据包括同一用户在不同时刻,在不同数据源如不同参与方或者不同设备上的特征数据,例如,同一病人可能在不同的时间访问过几家不同的医疗机构来对同一种(或相似)病情进行诊断,同一病人在不同的时间(不同时刻)访问的不同医疗机构(不同参与方或者不同设备)对同一种病情的诊断时序数据,为同一用户的不同时刻,在不同数据源如不同服务器上的特征数据。Recurrent Neural Network (RNN) models are often used to process time series data of users at different moments. Time series data refers to data arranged based on time series. Time series data of users at different moments includes the same user at different moments. Characteristic data on different data sources such as different parties or different devices. For example, the same patient may have visited several different medical institutions at different times to diagnose the same (or similar) condition. The same patient is in different conditions. Time (different moments) access to different medical institutions (different participants or different equipment) for the same disease diagnosis time series data, is the same user at different times, in different data sources such as different server characteristic data.
目前,用户非相同时刻的时序数据存储在不同参与方或者不同设备中,出于隐私保护,不同参与方或者不同设备之间不能直接进行用户非相同时刻的时序数据的交互,即各参与方或者不同设备之间不能共享用户非相同时刻的时序数据以进行联合建模,进而导致各参与方或者不同设备只能基于各自少量的用户非相同时刻的时序数据进行建模,只能基于少量的时序数据进行建模,致使需要训练更长时间才能使得训练后的模型达到目标性能,进而导致计算机需要耗费大量资源算力,致使计算机算力资源的利用率低。At present, the time series data of users at different moments are stored in different parties or different devices. For privacy protection, different participants or different devices cannot directly interact with the time series data of users at different moments, that is, each participant or Different devices cannot share user timing data at different moments for joint modeling. As a result, each participant or different device can only model based on a small amount of user timing data at different moments, and can only be based on a small amount of timing data. The data is modeled, so it takes longer to train to make the trained model reach the target performance, which in turn causes the computer to consume a lot of resources and computing power, resulting in low utilization of computer computing resources.
发明内容Summary of the invention
本申请的主要目的在于提供一种基于循环神经网络的数据处理方法、装置、设备和介质,旨在解决现有技术中,不同参与方或者不同设备之间不能直接进行用户非相同时刻的时序数据的交互,导致各参与方或者不同设备只能基于各自少量的用户非相同时刻的时序数据进行建模,致使建模后得到的模型难以达到预期的预测效果的技术问题。The main purpose of this application is to provide a data processing method, device, equipment, and medium based on a recurrent neural network, which aims to solve the problem that in the prior art, different participants or different equipment cannot directly perform user timing data at different moments. The interaction between different parties or different devices can only perform modeling based on a small amount of time-series data of users at different moments, which makes it difficult for the model obtained after modeling to achieve the expected prediction effect.
为实现上述目的,本申请提供一种基于循环神经网络的数据处理方法,预设时序数据指的是用户非相同时刻的时序数据,所述基于循环神经网络的数据处理方法包括:To achieve the above objective, this application provides a data processing method based on a cyclic neural network. The preset time series data refers to the time series data of a user at a different time. The data processing method based on the cyclic neural network includes:
获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;Acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model;
所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个 时刻的联邦反向训练后得到的;The data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。Based on the data processing model, a preset data processing procedure is executed on the to-be-processed time-series data to obtain a target prediction tag of the to-be-processed time-series data.
本申请还提供一种基于循环神经网络的数据处理装置,预设时序数据指的是用户非相同时刻的时序数据,所述基于循环神经网络的数据处理装置包括:This application also provides a data processing device based on a cyclic neural network. The preset time series data refers to the time series data of a user at a different time. The data processing device based on the cyclic neural network includes:
第一获取模块,用于获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;The first acquisition module is configured to acquire time series data to be processed, and input the time series data to be processed into the data processing model;
所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
第二获取模块,用于基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。The second acquisition module is configured to execute a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data.
本申请还提供一种基于循环神经网络的数据处理设备,所述基于循环神经网络的数据处理设备为实体设备,所述基于循环神经网络的数据处理设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述基于循环神经网络的数据处理方法的程序,所述基于循环神经网络的数据处理方法的程序被处理器执行时可实现如上述的基于循环神经网络的数据处理方法的步骤。This application also provides a data processing device based on a recurrent neural network. The data processing device based on a recurrent neural network is a physical device. The data processing device based on a recurrent neural network includes: a memory, a processor, and The program of the data processing method based on the recurrent neural network that can be executed on the memory and can be run on the processor, and when the program of the data processing method based on the recurrent neural network is executed by the processor, the recurrent neural network based Steps of network data processing method.
本申请还提供一种介质,所述介质上存储有实现上述基于循环神经网络的数据处理方法的程序,所述基于循环神经网络的数据处理方法的程序被处理器执行时实现如上述的基于循环神经网络的数据处理方法的步骤。The application also provides a medium storing a program for realizing the above-mentioned data processing method based on cyclic neural network. When the program of the data processing method based on cyclic neural network is executed by a processor, the above-mentioned loop-based Steps of neural network data processing method.
本申请通过获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。与现有技术中基于少量时序数据进行建模,进而处理待处理时序数据相比,在本申请中,采用在得到待处理时序数据后,基于已经训练完成的,数据处理模型对所述待处理时序数据执行预设数据处理流程,以得到所述待处理时序数据的目标预测标签的技术手段,由于所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的,进而在保护隐私的同时,实现了基于非相同时刻时序数据联邦构建模型,客服了现有技术中大量耗费计算机算力资源的缺陷,减少训练后的模型达到目标性能的时间耗费,提升计算机算力资源的利用率,且在本申请中由于基于非相同时刻时序数据联邦构建模型,因而提升了对待处理时序数据进行类型等预测的准确性,解决现有技术中,不同参与方或者不同设备之间不能直接进行用户非相同时刻的时序数据的交互,导致各参与方或者不同设备只能基于少量的用户非相同时刻的时序数据进行建模,进而致使建模后得到的模型难以达到预期的预测效果的技术问题。This application obtains time series data to be processed, and inputs the time series data to be processed into a data processing model; the data processing model is fed forward training of the recurrent neural network model at different times based on the time series data of the user at different times After that, the cyclic neural network model at different moments when the federated forward training is completed is obtained after federated reverse training is performed at each moment; based on the data processing model, the preset data processing flow is executed on the to-be-processed time series data to obtain The target prediction label of the time series data to be processed. Compared with modeling based on a small amount of time series data in the prior art, and then processing the time series data to be processed, in this application, after the time series data to be processed is obtained, based on the training completed, the data processing model The time series data executes the preset data processing procedure to obtain the technical means of the target prediction label of the time series data to be processed, because the data processing model is based on the time series data of the user at different times to federate the cyclic neural network models at different times After forward training, the cyclic neural network model at different moments of the federated forward training is obtained after federated reverse training at each moment, and then while protecting privacy, it realizes the federation construction model based on time series data at different moments. , Which overcomes the defects in the prior art that consumes a large number of computer computing resources, reduces the time it takes for the trained model to reach the target performance, and improves the utilization of computer computing resources. In this application, it is based on the federation of time series data at different times. The model is constructed, thus improving the accuracy of predicting the types of time series data to be processed, and solves the problem that in the prior art, different participants or different devices cannot directly interact with the time series data of users at different moments, causing each participant to or Different devices can only perform modeling based on a small number of users' time series data at different moments, which makes it difficult for the model obtained after modeling to achieve the expected prediction effect.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments that conform to the application, and are used together with the specification to explain the principle of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can be obtained based on these drawings without creative labor.
图1为本申请基于循环神经网络的数据处理方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a data processing method based on a recurrent neural network according to this application;
图2为本申请基于循环神经网络的数据处理方法第二实施例中基于所述最后时刻的中间参数,所述具有预设标签的标签时序数据以及所述预设循环神经网络模型的预设预测模型,确定所述最后时刻对应预测时刻的中间梯度的步骤的细化流程示意图;2 is a second embodiment of the application based on the recurrent neural network data processing method based on the intermediate parameters at the last moment, the tag timing data with preset tags, and the preset predictions of the preset recurrent neural network model Model, a detailed flow diagram of the step of determining the intermediate gradient corresponding to the predicted time at the last moment;
图3为本申请实施例方案涉及的硬件运行环境的设备结构示意图;3 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the application;
图4为本申请基于循环神经网络的数据处理方法中的第一场景示意图;FIG. 4 is a schematic diagram of the first scene in the data processing method based on the recurrent neural network of this application;
图5为本申请基于循环神经网络的数据处理方法中的第二场景示意图。FIG. 5 is a schematic diagram of the second scene in the data processing method based on the recurrent neural network of this application.
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional characteristics and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
本申请实施例提供一种基于循环神经网络的数据处理方法,在本申请基于循环神经网络的数据处理方法的第一实施例中,参照图1,所述基于循环神经网络的数据处理方法包括:The embodiment of the application provides a data processing method based on a recurrent neural network. In the first embodiment of the data processing method based on the recurrent neural network of the present application, referring to FIG. 1, the data processing method based on the recurrent neural network includes:
步骤S10,获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;Step S10, acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model;
所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
步骤S20,基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。Step S20: Perform a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain a target prediction tag of the to-be-processed time-series data.
具体步骤如下:Specific steps are as follows:
步骤S10,获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;Step S10, acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model;
所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
在本实施例中,基于循环神经网络的数据处理方法可以应用于基于循环神经网络的数据处理系统,该基于循环神经网络的数据处理系统中包括多个不同的参与方或者设备,该多个不同的参与方或者设备中,包含具有预设标签的标签时序数据的参与方是主参与方(或者主设备),其中,基于循环神经网络的数据处理方法还可以应用于主参与方或者主设备中,在本实施例中,以基于循环神经网络的数据处理方法应用于基于循环神经网络的数据处理系统中而不是某一个设备中为例进行具体说明。具体地,在获取待处理时序数据后,将所述待处理时序数据输入至基于循环神经网络的数据处理系统的数据处理模型中,以便数据处理模型对待处理时序数据进行处理,即在本实施例中,通过已经训练好的,数据处理模型处理时序数据,其中,时序数据指的是基于时间序列排列的数据,具体地,本实施例中的时序数据指的是用户非相同时刻的时序数据,特别地,指的是预设样本集中用户非相同时刻的时序数据,用户非相同时刻的时序数据包括同一用户的不同时刻,在不同数据源如不同参与方或者不同设备上的特征数据,需要说明的是,该不同数据源可以是类型相同,例如,同一病人可能在不同的时间访问过几家不同的医疗机构(尽管具体机构不同,但是都是医疗机构类型)来对同一种病情进行诊断,同一病人在不同的时间(不同时刻)访问的不同医疗机构(不同参与方或者不同设备)对同一种病情的诊断时序数据,为 同一用户的不同时刻,在不同数据源如不同服务器上的特征数据。需要说明的是,在本实施例中,用户非相同时刻的时序数据是不包括同一用户的同一时刻,在不同数据源(参与方或者设备)上的特征数据的,例如,用户m在医疗机构(参与方或者设备)购买了A药品,在医疗机构的服务器中产生一条新的销售记录,同时,用户m在银行系统(参与方或者设备)的服务器也伴随着产生一条新的支出记录,这是时序数据包括的同一用户的同一时刻,在不同数据源(参与方或者设备)的特征数据,本实施例中的时序数据不包括这种情况。In this embodiment, the data processing method based on the recurrent neural network can be applied to a data processing system based on the recurrent neural network. The data processing system based on the recurrent neural network includes a plurality of different parties or devices, and the plurality of different Among the participants or devices, the participant containing the tag timing data with preset tags is the main participant (or the main device), and the data processing method based on the recurrent neural network can also be applied to the main participant or the main device In this embodiment, the data processing method based on the recurrent neural network is applied to a data processing system based on the recurrent neural network instead of a certain device as an example for specific description. Specifically, after acquiring the time series data to be processed, the time series data to be processed is input into the data processing model of the data processing system based on the cyclic neural network, so that the data processing model processes the time series data to be processed, that is, in this embodiment In, the time series data is processed through the trained data processing model, where the time series data refers to the data arranged based on time series. Specifically, the time series data in this embodiment refers to the time series data of the user at different moments. In particular, it refers to the time series data of users at different moments in the preset sample set. The time series data of users at different moments includes different moments of the same user. The characteristic data on different data sources such as different participants or different devices needs to be explained. However, the different data sources can be of the same type. For example, the same patient may have visited several different medical institutions at different times (although the specific institutions are different, they are all types of medical institutions) to diagnose the same condition. Different medical institutions (different parties or different devices) visited by the same patient at different times (different moments) to diagnose time series data of the same condition, which is the characteristic data of the same user at different times and on different data sources such as different servers . It should be noted that, in this embodiment, the time series data of users at different moments does not include the feature data of the same user at the same time at different data sources (participants or equipment). For example, user m is in a medical institution. (Participants or equipment) purchased drug A, and a new sales record was generated on the server of the medical institution. At the same time, a new expenditure record was also generated by user m on the server of the banking system (participant or equipment). The time series data includes the characteristic data of the same user at the same time and in different data sources (participants or devices). The time series data in this embodiment does not include this situation.
在本实施例中,所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的目标模型,其中,基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练具体指的是:基于用户非相同时刻的预设时序数据如用户t1时刻的预设时序数据,对t1时刻的预设循环神经网络模型进行联邦前向训练,得到第一时刻的联邦前向传播的预设循环神经网络模型(可以是t2时刻的预设循环神经网络模型),然后基于用户非相同时刻的预设时序数据如用户t2时刻的预设时序数据,对t2时刻的预设循环神经网络模型进行联邦前向训练,得到第二时刻的联邦前向传播的预设循环神经网络模型(可以是t3时刻的预设循环神经网络模型),基于此不断进行联邦前向训练,直至得到最后时刻的循环神经网络模型,在得到最后时刻的循环神经网络模型后,基于最后时刻的用户非相同时刻的预设时序数据如用户t(N)时刻的预设时序数据,进行最后时刻的循环神经网络模型的联邦反向训练,得到最后时刻的联邦反向更新的循环神经网络模型,基于用户非相同时刻的预设时序数据如用户t(N-1)时刻的预设时序数据,对最后时刻的上一时刻的循环神经网络模型进行联邦反向更新,并对后续各个时刻的循环神经网络模型进行联邦反向更新,直至最初时刻的预设循环神经网络模型得到更新。需要说明的是,在本实施例中,除了具有预设标签的时序数据外,涉及的不具有预设标签的时序数据即用户非相同时刻的预设时序数据,该非相同时刻的预设时序数据在不同的设备或者参与方中,以实现基于用户非相同时刻的预设时序数据获取用于联邦的参数,当然,在各个时刻的用户非相同时刻的预设时序数据还可以是在同一个参与方中。In this embodiment, the data processing model is based on the user's time series data at different moments after fed forward training of the cyclic neural network model at different moments, and then the cyclic neural network model at different moments when the federated forward training is completed The target model obtained after the federated reverse training at each time is carried out. Among them, the recurrent neural network model at different moments is fed forward based on the time series data of the user at different moments, and then the federated forward training is completed at different moments. The federated reverse training of the cyclic neural network model at each moment specifically refers to: based on the user's preset time series data at different moments, such as the user's preset time series data at time t1, before the federation of the preset cyclic neural network model at time t1 Forward training to obtain the preset cyclic neural network model of the federated forward propagation at the first moment (it can be the preset cyclic neural network model at time t2), and then based on the user’s preset timing data at different moments, such as the user’s prediction at time t2 Set time series data, perform federated forward training on the preset recurrent neural network model at time t2, and obtain the preset recurrent neural network model of federated forward propagation at the second time (it can be the preset recurrent neural network model at time t3), Based on this, the federated forward training is continuously performed until the last-minute cyclic neural network model is obtained. After the last-minute cyclic neural network model is obtained, the preset time series data based on the user at the last time is not the same time, such as user t(N) time Perform the federated reverse training of the recurrent neural network model at the last moment to obtain the recurrent neural network model of the federated reverse update at the last moment, based on the preset time sequence data of the user at different moments, such as user t(N- 1) The preset time sequence data at the time, the federated reverse update of the cyclic neural network model at the last moment, and the federated reverse update of the cyclic neural network model at each subsequent time, until the preset cycle at the initial moment The neural network model is updated. It should be noted that, in this embodiment, in addition to the time series data with preset tags, the time series data involved without the preset tags is the preset time series data at different moments of the user. The data is in different devices or participants in order to obtain the parameters for federation based on the preset timing data of the users at different moments. Of course, the preset timing data of the users at different moments at different moments can also be in the same Participating parties.
在本实施例中,需要强调的是,对于每次的联邦前向训练以及联邦反向训练,都是按照时序进行的。In this embodiment, it needs to be emphasized that for each federated forward training and federated reverse training, they are performed in time sequence.
其中,所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤之前,所述方法包括:Wherein, before the step of executing a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data, the method includes:
步骤S11,基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型;Step S11, based on the user's time series data at different moments, after federated forward training is performed on the recurrent neural network model at different moments, then federated reverse training is performed on the recurrent neural network model at different moments when the federated forward training is completed. To get the joint model;
在本实施例中,获取具有预设标签的标签时序数据,其中,预设标签包括类型标签等类型,具有预设标签的标签时序数据指的是具有预设标签的按照时间排列的数据。In this embodiment, the tag timing data with preset tags is acquired, where the preset tags include types such as type tags, and the tag timing data with preset tags refers to data arranged in time with preset tags.
在得到所述标签时序数据后,基于所述标签时序数据以及用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型,具体地,指的是,对不同时刻的循环神经网络模型进行基于多个数据源(参与方或者设备)的用户非相同时刻的预设时序数据,进行联邦前向训练后,基于所述标签时序数据,以及基于所述多个数据源(参与方或者设备)的用户非相同时刻的预设时序数据,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型,也即,时刻不同,用户非相同时刻的预设时序数据是不同参与方的时序数据,例如,第一时刻的预设时序数据在第一医疗机构中,第二时刻的预设时序数据在第二医疗机构中。After the tag time series data is obtained, based on the tag time series data and the time series data of the user at different moments, the cyclic neural network model at different moments is fed forward training, and then the fed forward training is completed at different moments. The recurrent neural network model performs federated reverse training at each time to obtain a joint model. Specifically, it refers to the recurrent neural network model at different times based on multiple data sources (participants or devices) at different user moments After the federated forward training is performed, based on the tag timing data and the preset timing data of users of the multiple data sources (participants or devices) at different moments, the federated forward The cyclic neural network models at different moments after the training are completed perform federated reverse training at each moment to obtain a joint model, that is, the time is different, and the preset time series data of the user at different moments are the time series data of different participants, for example, the first The preset time series data at one time is in the first medical institution, and the preset time series data at the second time is in the second medical institution.
其中,各个参与方之间进行预设联邦通信,所述用户非相同时刻的预设时序数据包括在各个时刻的预设时序数据;Wherein, preset federated communication is performed between each participant, and the preset time sequence data of the user at different times includes the preset time sequence data at each time;
所述用户非相同时刻的预设时序数据包括在各个时刻的预设时序数据;The preset time series data of the user at different moments include preset time series data at various moments;
所述基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型的步骤,包括:After the forward federated training is performed on the cyclic neural network model at different moments based on the time series data of the user at different moments, the federated reverse training is performed on the cyclical neural network model at different moments when the federated forward training is completed, The steps to get the joint model include:
步骤a1,基于接收的在目标时刻对应上一时刻的前向传播的中间参数,所述目标时刻的预设时序数据和所述预设循环神经网络模型在目标时刻的模型参数,确定在目标时刻的前向传播的中间参数,并基于所述在目标时刻的前向传播的中间参数进行对后续各个时刻的联邦前向训练,直到得到最后时刻的中间参数;Step a1, based on the received intermediate parameters of the forward propagation corresponding to the previous time at the target time, the preset time series data of the target time and the model parameters of the preset recurrent neural network model at the target time, determine the target time The forward propagation intermediate parameters of, and the federated forward training for each subsequent time based on the intermediate parameters of forward propagation at the target time, until the intermediate parameters at the final time are obtained;
在本实施例中,中间参数即是为状态信息h,初始参数即为初始化状态信息
Figure PCTCN2021093152-appb-000001
各个中间参数包括
Figure PCTCN2021093152-appb-000002
等,在本实施例中,用户非相同时刻的预设时序数据在不同数据源或者参与方中,具体地,如图4所示,数据集X1,X2,X3分别记录了样本集中用户k在时刻t1时产生的时序特征(在参与方1中),用户k在时刻t2时产生的时序特征(在参与方2中),用户k在时刻t3时产生的时序特征(在参与方3中),对于样本集而言,是包括多个用户的,数据集X1,X2,X3还分别记录了样本集中用户m在时刻t1时产生的时序特征(在参与方1中),用户k在时刻t2时产生的时序特征(在参与方2中),用户k在时刻t3时产生的时序特征(在参与方3中),需要说明的是,基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型的步骤在本实施例中的实质为:基于目标时刻的参与方的在目标时刻的预设时序数据即目标时刻的预设时序数据,进行目标时刻的预设循环神经网络模型的联邦前向训练后,还基于目标时刻对应下一时刻的参与方的在目标时刻对应下一时刻的预设时序数据即在目标时刻对应下一时刻的预设时序数据,进行目标时刻对应下一时刻的联邦前向训练流程,并进行持续的不同时刻的联邦前向训练流程,以得到最后时刻的预设循环神经网络模型,在得到最后时刻的预设循环神经网络模型后,基于具有预设标签的标签时序数据,最后时刻的预设循环神经网络模型,最后时刻的预设时序数据如用户t(N)时刻的预设时序数据,进行最后时刻的预设循环神经网络模型的更新,持续对不同时刻的预设循环神经网络模型进行联邦反向更新,直至最初时刻的预设循环神经网络模型得到更新。
In this embodiment, the intermediate parameter is the state information h, and the initial parameter is the initialization state information
Figure PCTCN2021093152-appb-000001
The various intermediate parameters include
Figure PCTCN2021093152-appb-000002
In this embodiment, the preset time series data of users at different moments are in different data sources or participants. Specifically, as shown in FIG. 4, the data sets X1, X2, and X3 respectively record the user k in the sample set. The timing feature generated at time t1 (in participant 1), the timing feature generated by user k at time t2 (in participant 2), and the timing feature generated by user k at time t3 (in participant 3) For the sample set, it includes multiple users. The data sets X1, X2, and X3 also record the time series characteristics of user m in the sample set at time t1 (in participant 1), and user k at time t2 Time sequence features generated at time (in participant 2), and user k generated at time t3 (in participant 3). It should be noted that based on the time sequence data of users at different moments, the cycle of different moments After the neural network model undergoes federated forward training, the cyclic neural network model at different moments when the federated forward training is completed is then federated backward training at each moment to obtain the joint model. The essence of the steps in this embodiment is: The preset time series data of the participants at the target time at the target time is the preset time series data at the target time. After the federated forward training of the preset recurrent neural network model at the target time is performed, the target time corresponds to the participation at the next time. The preset time sequence data corresponding to the next time at the target time is the preset time sequence data corresponding to the next time at the target time, and the forward training process of the federation at the target time corresponding to the next time is carried out, and the federation at different times is continued. The forward training process is to obtain the preset cyclic neural network model at the last moment. After obtaining the preset cyclic neural network model at the last moment, based on the tag timing data with preset tags, the preset cyclic neural network model at the last moment, The preset time sequence data at the last moment, such as the preset time sequence data at the user t(N), update the preset loop neural network model at the last moment, and continue to perform the federal reverse update of the preset loop neural network model at different moments. Until the initial moment, the preset cyclic neural network model is updated.
具体地,目标时刻参与方接收目标时刻对应上一时刻的前向传播的中间参数,其中,在目标时刻对应上一时刻的前向传播的中间参数是通过在目标时刻对应上一时刻的中间参数或者初始参数、在目标时刻对应上一时刻的预设时序数据和预设循环神经网络模型的在目标时刻对应上一时刻的目标时刻对应上一时刻模型参数确定的,如图5所示,基于初始时刻t0(目标时刻对应上一时刻)的中间参数或者初始化状态信息
Figure PCTCN2021093152-appb-000003
在第一时刻t1的预设时序数据即X1与和第一时刻t1的模型参数,确定第二时刻t2的前向传播的中间参数
Figure PCTCN2021093152-appb-000004
在本实施例中,目标时刻对应上一时刻参与方将前向传播的中间参数
Figure PCTCN2021093152-appb-000005
以及目标时刻对应上一时刻参与方本地的模型发送给目标时刻参与方。
Specifically, the target time participant receives the intermediate parameter of the forward propagation at the target time corresponding to the previous time, where the intermediate parameter of the forward propagation at the target time corresponding to the previous time is determined by the intermediate parameter corresponding to the previous time at the target time Or the initial parameters, the preset time series data corresponding to the previous time at the target time and the target time corresponding to the previous time of the preset cyclic neural network model are determined by the model parameters of the previous time, as shown in Figure 5, based on Intermediate parameters or initialization state information at the initial time t0 (the target time corresponds to the previous time)
Figure PCTCN2021093152-appb-000003
The preset time series data at the first time t1, namely X1 and the model parameters at the first time t1, determine the intermediate parameters of the forward propagation at the second time t2
Figure PCTCN2021093152-appb-000004
In this embodiment, the target moment corresponds to the intermediate parameter of the forward propagation by the participant at the previous moment
Figure PCTCN2021093152-appb-000005
And the target moment corresponds to the participant's local model at the previous moment and is sent to the target moment participant.
步骤a2,基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度,以计算所述最后时刻的预测模型中间梯度;Step a2, calculating the last-minute loss gradient based on the last-minute intermediate parameters, the last-minute preset time series data, and the last-minute preset prediction model to calculate the last-minute prediction model intermediate gradient;
步骤a3,基于所述最后时刻的预测模型中间梯度,以及所述在最后时刻的预设时序数据,计算对应最后时刻的中间梯度,并基于所述最后时刻的中间梯度,更新预设循环神经网络模型在最后时刻的模型参数和计算最后时刻对应上一时刻的中间梯度;Step a3, based on the intermediate gradient of the prediction model at the last moment and the preset timing data at the last moment, calculate the intermediate gradient corresponding to the last moment, and update the preset recurrent neural network based on the intermediate gradient at the last moment The model parameters at the last moment of the model and the intermediate gradient corresponding to the last moment in the calculation of the last moment;
步骤a4,基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中 间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。Step a4: Perform federated reverse training based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network model at the first moment is updated.
具体地,基于目标时刻对应上一时刻参与方将前向传播的中间参数
Figure PCTCN2021093152-appb-000006
所述目标时刻的预设时序数据X2和所述预设循环神经网络模型的在目标时刻的目标时刻模型参数,确定在目标时刻的前向传播的中间参数
Figure PCTCN2021093152-appb-000007
等,并基于所述在目标时刻的前向传播的中间参数
Figure PCTCN2021093152-appb-000008
进行后续各个时刻的联邦前向训练,得到
Figure PCTCN2021093152-appb-000009
等,并得到所述目标时刻对应最后时刻的中间参数
Figure PCTCN2021093152-appb-000010
基于所述最后时刻的中间参数
Figure PCTCN2021093152-appb-000011
所述最后时刻的具有预设标签的标签时序数据Y n以及所述最后时刻预设预测模型V0,计算所述最后时刻的损失梯度,并基于所述最后时刻的损失梯度,更新所述预设预测模型的模型参数,具体地,计算所述最后时刻的损失梯度y t n,并基于所述最后时刻对应预测时刻的中间梯度y t n,更新所述预设预测模型V0的模型参数。
Specifically, based on the target moment corresponding to the previous moment the participants will forward the intermediate parameters
Figure PCTCN2021093152-appb-000006
The preset time series data X2 of the target time and the target time model parameters of the preset cyclic neural network model at the target time determine the intermediate parameters of the forward propagation at the target time
Figure PCTCN2021093152-appb-000007
And so on, and based on the intermediate parameters of the forward propagation at the target moment
Figure PCTCN2021093152-appb-000008
Carry out the federal forward training at each subsequent moment, and get
Figure PCTCN2021093152-appb-000009
And so on, and get the intermediate parameters corresponding to the last moment of the target moment
Figure PCTCN2021093152-appb-000010
Intermediate parameters based on the last moment
Figure PCTCN2021093152-appb-000011
The tag timing data Y n with preset tags at the last moment and the preset prediction model V0 at the last moment are calculated, the loss gradient at the last moment is calculated, and the preset is updated based on the loss gradient at the last moment The model parameters of the prediction model, specifically, calculate the loss gradient y t n at the last moment, and update the model parameters of the preset prediction model V0 based on the intermediate gradient y t n corresponding to the prediction moment at the last moment.
需要说明的是,所述联邦前向训练中每个时刻对应的模型参数可以相同,即联邦前向训练过程中每个时刻对应的模型参数可以相同,也可以不相同,例如,预设循环神经网络模型的在目标时刻的最后时刻模型参数,预设循环神经网络模型的在最后时刻的上一时刻的模型参数等都可以相同。It should be noted that the model parameters corresponding to each moment in the federated forward training may be the same, that is, the model parameters corresponding to each moment in the federated forward training process may be the same or different, for example, the preset cyclic nerve The model parameters of the network model at the last time of the target time, the model parameters of the preset recurrent neural network model at the last time of the last time, and the like can all be the same.
基于所述最后时刻对应的损失梯度y t n以及所述更新的预设预测模型的模型参数,计算所述最后时刻的预测模型中间梯度
Figure PCTCN2021093152-appb-000012
所述最后时刻的损失梯度
Figure PCTCN2021093152-appb-000013
基于所述最后时刻的预测模型中间梯度,以及所述最后时刻的预设时序数据X n,计算对应最后时刻的中间梯度
Figure PCTCN2021093152-appb-000014
并基于所述最后时刻的中间梯度
Figure PCTCN2021093152-appb-000015
所述在最后时刻的预设时序数据X n,更新预设循环神经网络模型在最后时刻的模型参数和计算最后时刻对应上一时刻的中间梯度。
Calculate the intermediate gradient of the prediction model at the last moment based on the loss gradient y t n corresponding to the last moment and the model parameters of the updated preset prediction model
Figure PCTCN2021093152-appb-000012
Loss gradient at the last moment
Figure PCTCN2021093152-appb-000013
Based on the intermediate gradient of the prediction model at the last moment and the preset time series data X n at the last moment, calculate the intermediate gradient corresponding to the last moment
Figure PCTCN2021093152-appb-000014
And based on the intermediate gradient at the last moment
Figure PCTCN2021093152-appb-000015
According to the preset time series data X n at the last moment, the model parameters of the preset cyclic neural network model at the last moment are updated and the intermediate gradient corresponding to the last moment at the last moment is calculated.
具体地,基于所述更新预设循环神经网络模型,所述最后时刻的中间梯度
Figure PCTCN2021093152-appb-000016
以及在最后时刻对应上一时刻的预设时序数据X n-1,计算所述最后时刻对应上一时刻的中间梯度
Figure PCTCN2021093152-appb-000017
并基于所述最后时刻对应上一时刻的中间梯度
Figure PCTCN2021093152-appb-000018
所述在最后时刻对应上一时刻的预设时序数据X n-1,更新对应最后时刻对应上一时刻预设循环神经网络模型,直至最初时刻的预设循环神经网络模型得到更新。
Specifically, based on the updated preset recurrent neural network model, the intermediate gradient at the last moment
Figure PCTCN2021093152-appb-000016
And the preset time series data X n-1 corresponding to the last moment at the last moment, and calculate the intermediate gradient corresponding to the last moment at the last moment
Figure PCTCN2021093152-appb-000017
And based on the intermediate gradient of the last moment corresponding to the previous moment
Figure PCTCN2021093152-appb-000018
The preset time series data X n-1 corresponding to the last moment at the last moment is updated, and the preset cyclic neural network model corresponding to the last moment is updated until the preset cyclic neural network model at the initial moment is updated.
步骤S12,将所述联合模型设置为所述数据处理模型。Step S12: Set the joint model as the data processing model.
将所述目标模型设置为所述数据处理模型。The target model is set as the data processing model.
步骤S20,基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。Step S20: Perform a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain a target prediction tag of the to-be-processed time-series data.
在得到所述数据处理模型后,基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。After the data processing model is obtained, a preset data processing procedure is performed on the to-be-processed time-series data based on the data-processing model to obtain the target prediction tag of the to-be-processed time-series data.
在本实施例中,由于所述数据处理模型是已经经过训练的,得到的准确模型,因而,在得到待处理时序数据后,能够准确得到所述待处理时序数据的目标预测标签,该目标预测标签可以是对待处理时序数据进行分类的分类标签,如待处理时序数据对应用户在对应时序段是高消费用户等。In this embodiment, since the data processing model has been trained to obtain an accurate model, after the time series data to be processed is obtained, the target prediction label of the time series data to be processed can be accurately obtained, and the target prediction The label may be a classification label for classifying the time sequence data to be processed, for example, the user corresponding to the time sequence data to be processed is a high-consumption user in the corresponding time sequence period.
本申请通过获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。与现有技术中基于少量时序数据进行建模,进而处理待处理时序数据相比,在本申请中,采用在得到待处理时序数据后,基于已 经训练完成的,数据处理模型对所述待处理时序数据执行预设数据处理流程,以得到所述待处理时序数据的目标预测标签的技术手段,由于所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的,进而在保护隐私的同时,实现了基于非相同时刻时序数据联邦构建模型,客服了现有技术中大量耗费计算机算力资源的缺陷,减少训练后的模型达到目标性能的时间耗费,提升计算机算力资源的利用率,且在本申请中由于基于非相同时刻时序数据联邦构建模型,因而提升了对待处理时序数据进行类型等预测的准确性,解决现有技术中,不同参与方或者不同设备之间不能直接进行用户非相同时刻的时序数据的交互,导致各参与方或者不同设备只能基于少量的用户非相同时刻的时序数据进行建模,进而致使建模后得到的模型难以达到预期的预测效果的技术问题。This application obtains time series data to be processed, and inputs the time series data to be processed into a data processing model; the data processing model is fed forward training of the recurrent neural network model at different times based on the time series data of the user at different times After that, the cyclic neural network model at different moments when the federated forward training is completed is obtained after federated reverse training is performed at each moment; based on the data processing model, the preset data processing flow is executed on the to-be-processed time series data to obtain The target prediction label of the time series data to be processed. Compared with modeling based on a small amount of time series data in the prior art, and then processing the time series data to be processed, in this application, after the time series data to be processed is obtained, based on the training completed, the data processing model The time series data executes the preset data processing procedure to obtain the technical means of the target prediction label of the time series data to be processed, because the data processing model is based on the time series data of the user at different times to federate the cyclic neural network models at different times After forward training, the cyclic neural network model at different moments of the federated forward training is obtained after federated reverse training at each moment, and then while protecting privacy, it realizes the federation construction model based on time series data at different moments. , Which overcomes the defects in the prior art that consumes a large number of computer computing resources, reduces the time it takes for the trained model to reach the target performance, and improves the utilization of computer computing resources. In this application, it is based on the federation of time series data at different times. The model is constructed, thus improving the accuracy of predicting the types of time series data to be processed, and solves the problem that in the prior art, different participants or different devices cannot directly interact with the time series data of users at different moments, causing each participant to or Different devices can only perform modeling based on a small number of users' time series data at different moments, which makes it difficult for the model obtained after modeling to achieve the expected prediction effect.
进一步地,参照图2,基于本申请中第一实施例,在本申请的另一实施例中,所述基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度,并基于所述最后时刻的损失梯度,更新所述预设预测模型的模型参数的步骤,包括:Further, referring to FIG. 2, based on the first embodiment of the present application, in another embodiment of the present application, the intermediate parameters based on the last moment, the preset time sequence data at the last moment, and the last moment preset Set a prediction model, calculate the loss gradient at the last moment, and update the model parameters of the preset prediction model based on the loss gradient at the last moment, including:
步骤b1,基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,确定所述最后时刻的预设循环神经网络模型的预测结果;Step b1, based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment, determining the prediction result of the preset recurrent neural network model at the last moment;
步骤b2,基于所述最后时刻的预设循环神经网络模型的预测结果,最后时刻的预设时序数据的真实结果以及最后时刻的预设损失函数,确定所述最后时刻的损失梯度。Step b2, based on the prediction result of the preset cyclic neural network model at the last moment, the real result of the preset time series data at the last moment, and the preset loss function at the last moment, determine the loss gradient at the last moment.
在本实施例中,是确定最后时刻的损失梯度的步骤,具体地,基于所述最后时刻的中间参数,在所述最后时刻的所述具有预设标签的标签时序数据和最后时刻预设预测模型,确定所述最后时刻的预设循环神经网络模型的预测结果,基于所述最后时刻的预设循环神经网络模型的预测结果,最后时刻的预设时序数据的真实结果以及最后时刻的预设损失函数,确定所述最后时刻的损失梯度,并基于所述最后时刻的损失梯度,通过预设计算公式确定所述最后时刻的损失梯度,以更新所述预设预测模型的模型参数。In this embodiment, it is the step of determining the loss gradient at the last moment. Specifically, based on the intermediate parameters at the last moment, the tag timing data with preset tags at the last moment and the last moment preset prediction The model determines the prediction result of the preset cyclic neural network model at the last moment, based on the prediction result of the preset cyclic neural network model at the last moment, the real result of the preset time series data at the last moment, and the preset at the last moment The loss function determines the loss gradient at the last moment, and based on the loss gradient at the last moment, determines the loss gradient at the last moment through a preset calculation formula to update the model parameters of the preset prediction model.
本实施例通过基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,确定所述最后时刻的预设循环神经网络模型的预测结果;基于所述最后时刻的预设循环神经网络模型的预测结果,最后时刻的预设时序数据的真实结果以及最后时刻的预设损失函数,确定所述最后时刻的损失梯度,并基于所述最后时刻的损失梯度,更新所述预设预测模型的模型参数。进而为准确得到目标模型奠定基础。In this embodiment, the prediction result of the preset recurrent neural network model at the last time is determined based on the intermediate parameters at the last time, the preset time series data at the last time, and the preset prediction model at the last time; The prediction result of the preset cyclic neural network model at the moment, the real result of the preset time series data at the last moment, and the preset loss function at the last moment, determine the loss gradient at the last moment, and based on the loss gradient at the last moment, Update the model parameters of the preset prediction model. And then lay the foundation for accurately obtaining the target model.
进一步地,基于本申请中第一实施例和第二实施例,在本申请的另一实施例中,所述基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新的步骤,包括:Further, based on the first and second embodiments of the present application, in another embodiment of the present application, the preset recurrent neural network model based on the update at the last moment and the last moment correspond to the middle of the previous moment The gradient performs federated reverse training until the preset recurrent neural network model at the initial moment is updated, including:
步骤c1,基于在最后时刻更新的预设循环神经网络模型,最后时刻对应上一时刻的中间梯度和最后时刻对应上一时刻的预设时序数据,更新预设循环神经网络模型在最后时刻对应上一时刻的模型参数和计算最后时刻对应上一时刻的再上一时刻的中间梯度;Step c1, based on the preset recurrent neural network model updated at the last moment, the intermediate gradient corresponding to the last moment at the last moment and the preset time series data at the last moment corresponding to the last moment, update the preset recurrent neural network model to correspond to the last moment The model parameters at a moment and the intermediate gradient of the last moment corresponding to the last moment in the calculation;
步骤c2,基于在最后时刻对应上一时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的再上一时刻的中间梯度进行对前面各个时刻的联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。Step c2, based on the preset recurrent neural network model updated at the last moment corresponding to the last moment and the intermediate gradient of the last moment corresponding to the last moment and the last moment of the last moment, perform the federated reverse training of the previous moments until the initial moment. Suppose the recurrent neural network model is updated.
需要说明的是,在本实施例中,是得到联邦反向训练的具体过程,也即,基于在最后时刻更新的预设循环神经网络模型,最后时刻对应上一时刻的中间梯度和最后时刻对应上一时刻的预设时序数据,更新预设循环神经网络模型在最后时刻对应上一时刻的模型参数和计算最后时刻对应上一时刻的再上一时刻的中间梯度,基于在最后时刻对应上一时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的再上一时刻的中间梯度进行对前 面各个时刻的联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新,在本实施例中,准确进行联邦反向训练。It should be noted that in this embodiment, it is the specific process of obtaining federated reverse training, that is, based on the preset recurrent neural network model updated at the last moment, the last moment corresponds to the intermediate gradient of the previous moment and the last moment corresponds to The preset time series data at the last moment, update the model parameters of the preset loop neural network model at the last moment corresponding to the previous moment, and calculate the intermediate gradient of the last moment corresponding to the previous moment, based on the last moment corresponding to the previous moment The preset recurrent neural network model updated at all times and the intermediate gradient corresponding to the last time at the last moment are used to perform the federated reverse training of the previous moments until the preset recurrent neural network model at the first moment is updated. In the embodiment, the federated reverse training is accurately performed.
进一步地,基于本申请中的第一实施例,用户非相同时刻的时序数据为用户非相同时刻的医疗时序数据,所述待处理时序数据为待处理医疗时序数据,所述数据处理模型为医疗属性预测模型,Further, based on the first embodiment of the present application, the time series data at different times of the user is medical time series data at the different times of the user, the time series data to be processed is medical time series data to be processed, and the data processing model is medical time series data. Attribute prediction model,
所述医疗属性预测模型为基于用户非相同时刻的医疗时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The medical attribute prediction model is based on the user's medical time series data at different moments after the fed forward training of the cyclic neural network model at different moments, and then the cyclic neural network model at different moments when the federated forward training is completed. Obtained after federated reverse training;
所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤,包括:The step of executing a preset data processing procedure on the time series data to be processed based on the data processing model to obtain the target prediction tag of the time series data to be processed includes:
步骤M1,基于所医疗属性预测模型对所述待处理医疗时序数据执行医疗属性预测处理,得到所述待处理医疗时序数据的医疗属性预测结果。Step M1: Perform medical attribute prediction processing on the medical time series data to be processed based on the medical attribute prediction model to obtain a medical attribute prediction result of the medical time series data to be processed.
在本实施例中,提供一种基于循环神经网络的数据处理方法应用于医疗机构应用场景,在该应用场景中,若同一病人在不同的时间访问过几家不同的医疗机构来对同一种数据进行标签,得到不同时刻的预设医疗时序数据后,基于不同时刻的医疗时序数据,得到数据处理模型。In this embodiment, a data processing method based on recurrent neural network is provided in a medical institution application scenario. In this application scenario, if the same patient has visited several different medical institutions at different times to perform data processing on the same type of data After labeling and obtaining preset medical time series data at different times, a data processing model is obtained based on the medical time series data at different times.
具体地,用户非相同时刻的医疗时序数据可以是当前检测到的血压,血脂,血糖,尿酸,胆固醇,检测次数,检测时长等数据,将所述用户非相同时刻的医疗时序数据输入至训练好的医疗属性预测模型中(所述医疗属性预测模型为基于用户非相同时刻的医疗时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的)后,基于所医疗属性预测模型对所述待处理医疗时序数据执行医疗属性预测处理,得到所述待处理医疗时序数据的医疗属性预测结果,该医疗属性预测结果包括大于第一预设标签值的第一医疗属性预测结果(某一医疗属性数据可能性大于90%),或者小于第一预设标签值大于第二预设标签值的第二医疗属性预测结果,或者小于第二预设标签值的第三医疗属性预测结果医疗属性预测结果不同,基于医疗属性预测结果得到的关联贷款额度不同。Specifically, the medical time series data of the user at different moments may be the currently detected blood pressure, blood lipids, blood glucose, uric acid, cholesterol, the number of times of detection, the length of the detection, etc., and the medical time series data of the user at different moments are input to the training. In the medical attribute prediction model (the medical attribute prediction model is based on the user's medical time series data at different moments after the fed forward training of the cyclic neural network model at different moments, and then the cycle of different moments when the fed forward training is completed After the neural network model performs the federated reverse training at each time), it performs medical attribute prediction processing on the medical time series data to be processed based on the medical attribute prediction model to obtain the medical attribute prediction results of the medical time series data to be processed , The medical attribute prediction result includes the first medical attribute prediction result that is greater than the first preset label value (the probability of a certain medical attribute data is greater than 90%), or is less than the first preset label value and greater than the second preset label value The second medical attribute prediction result, or the third medical attribute prediction result less than the second preset label value, the medical attribute prediction result is different, and the associated loan amount obtained based on the medical attribute prediction result is different.
参照图3,图3是本申请实施例方案涉及的硬件运行环境的设备结构示意图。Referring to FIG. 3, FIG. 3 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.
如图3所示,该基于循环神经网络的数据处理设备可以包括:处理器1001,例如CPU,存储器1005,通信总线1002。其中,通信总线1002用于实现处理器1001和存储器1005之间的连接通信。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储设备。As shown in FIG. 3, the data processing device based on the cyclic neural network may include a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
在一实施例中,该基于循环神经网络的数据处理设备还可以包括矩形用户接口、网络接口、摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。矩形用户接口可以包括显示屏(Display)、输入子模块比如键盘(Keyboard),可选矩形用户接口还可以包括标准的有线接口、无线接口。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。In an embodiment, the data processing device based on a recurrent neural network may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. The rectangular user interface may include a display screen (Display) and an input sub-module such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
本领域技术人员可以理解,图3中示出的基于循环神经网络的数据处理设备结构并不构成对基于循环神经网络的数据处理设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the data processing device based on the recurrent neural network shown in FIG. 3 does not constitute a limitation on the data processing device based on the recurrent neural network, and may include more or less components than shown in the figure. Or some parts are combined, or different parts are arranged.
如图3所示,作为一种计算机介质的存储器1005中可以包括操作系统、网络通信模块以及基于循环神经网络的数据处理程序。操作系统是管理和控制基于循环神经网络的数据处理设备硬件和软件资源的程序,支持基于循环神经网络的数据处理程序以及其它软件和 /或程序的运行。网络通信模块用于实现存储器1005内部各组件之间的通信,以及与基于循环神经网络的数据处理系统中其它硬件和软件之间通信。As shown in FIG. 3, the memory 1005 as a computer medium may include an operating system, a network communication module, and a data processing program based on a cyclic neural network. The operating system is a program that manages and controls the hardware and software resources of the data processing equipment based on the cyclic neural network, and supports the operation of the data processing program based on the cyclic neural network and other software and/or programs. The network communication module is used to realize the communication between the components in the memory 1005 and the communication with other hardware and software in the data processing system based on the cyclic neural network.
在图3所示的基于循环神经网络的数据处理设备中,处理器1001用于执行存储器1005中存储的基于循环神经网络的数据处理程序,实现上述任一项所述的基于循环神经网络的数据处理方法的步骤。In the data processing device based on the recurrent neural network shown in FIG. 3, the processor 1001 is used to execute the data processing program based on the recurrent neural network stored in the memory 1005 to realize the data based on the recurrent neural network described in any one of the above Processing method steps.
本申请基于循环神经网络的数据处理设备具体实施方式与上述基于循环神经网络的数据处理方法各实施例基本相同,在此不再赘述。The specific implementation of the data processing device based on the recurrent neural network of this application is basically the same as the foregoing embodiments of the data processing method based on the recurrent neural network, and will not be repeated here.
本申请还提供一种基于循环神经网络的数据处理装置,预设时序数据指的是用户非相同时刻的时序数据,所述基于循环神经网络的数据处理装置包括:This application also provides a data processing device based on a cyclic neural network. The preset time series data refers to the time series data of a user at a different time. The data processing device based on the cyclic neural network includes:
第一获取模块,用于获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;The first acquisition module is configured to acquire time series data to be processed, and input the time series data to be processed into the data processing model;
所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is to perform federated forward training of the cyclic neural network model at different moments based on the time-series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
第二获取模块,用于基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。The second acquisition module is configured to execute a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data.
在一实施例中,所述基于循环神经网络的数据处理装置还包括:In an embodiment, the data processing device based on recurrent neural network further includes:
训练模块,用于基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型;The training module is used to perform federated forward training on the cyclic neural network model at different moments based on the time series data of the user at different moments, and then perform federated feedback on the cyclic neural network model at different moments when the federated forward training is completed. To train to obtain a joint model;
设置模块,用于将所述联合模型设置为所述数据处理模型。The setting module is used to set the joint model as the data processing model.
在一实施例中,所述用户非相同时刻的预设时序数据包括在各个时刻的预设时序数据;In an embodiment, the preset time sequence data of the user at different moments includes preset time sequence data at various moments;
所述训练模块包括:The training module includes:
第一接收单元,用于基于接收的在目标时刻对应上一时刻的前向传播的中间参数,所述目标时刻的预设时序数据和所述预设循环神经网络模型在目标时刻的模型参数,确定在目标时刻的前向传播的中间参数,并基于所述在目标时刻的前向传播的中间参数进行对后续各个时刻的联邦前向训练,直到得到最后时刻的中间参数;The first receiving unit is configured to receive, based on the received intermediate parameters of the forward propagation corresponding to the previous time at the target time, the preset time series data of the target time and the model parameters of the preset cyclic neural network model at the target time, Determine the intermediate parameters of the forward propagation at the target time, and perform federated forward training at each subsequent time based on the intermediate parameters of the forward propagation at the target time, until the intermediate parameters at the final time are obtained;
第一计算单元,用于基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度,以计算所述最后时刻的预测模型中间梯度;The first calculation unit is configured to calculate the loss gradient at the last moment based on the intermediate parameters at the last moment, the preset timing data at the last moment, and the preset prediction model at the last moment to calculate the prediction at the last moment The intermediate gradient of the model;
第二计算单元,用于基于所述最后时刻的预测模型中间梯度,以及所述在最后时刻的预设时序数据,计算对应最后时刻的中间梯度,并基于所述最后时刻的中间梯度,更新预设循环神经网络模型在最后时刻的模型参数和计算最后时刻对应上一时刻的中间梯度;The second calculation unit is configured to calculate the intermediate gradient corresponding to the final time based on the intermediate gradient of the prediction model at the final time and the preset time series data at the final time, and update the prediction based on the intermediate gradient at the final time Suppose the model parameters of the recurrent neural network model at the last moment and the intermediate gradient of the last moment corresponding to the last moment are calculated;
第一更新单元,用于基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。The first update unit is used to perform federated reverse training based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network model at the first moment is updated.
在一实施例中,所述第二确定单元包括:In an embodiment, the second determining unit includes:
第一确定子单元,用于基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,确定所述最后时刻的预设循环神经网络模型的预测结果;The first determining subunit is configured to determine the prediction result of the preset cyclic neural network model at the last moment based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment;
第二确定子单元,用于基于所述最后时刻的预设循环神经网络模型的预测结果,最后时刻的预设时序数据的真实结果以及最后时刻的预设损失函数,确定所述最后时刻的损失梯度。The second determining subunit is used to determine the loss at the last moment based on the prediction result of the preset recurrent neural network model at the last moment, the real result of the preset time series data at the last moment, and the preset loss function at the last moment gradient.
在一实施例中,所述第二更新单元包括:In an embodiment, the second update unit includes:
更新子单元,用于基于在最后时刻更新的预设循环神经网络模型,最后时刻对应上一时刻的中间梯度和最后时刻对应上一时刻的预设时序数据,更新预设循环神经网络模型在 最后时刻对应上一时刻的模型参数和计算最后时刻对应上一时刻的再上一时刻的中间梯度;The update subunit is used to update the preset recurrent neural network model based on the preset recurrent neural network model updated at the last moment, the intermediate gradient corresponding to the last time at the last time and the preset time series data at the last time corresponding to the last time, to update the preset recurrent neural network model at the end Time corresponds to the model parameters of the previous time and calculates the intermediate gradient of the last time corresponding to the previous time;
联邦反向训练单元,用于基于在最后时刻对应上一时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的再上一时刻的中间梯度进行对前面各个时刻的联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。The federated reverse training unit is used to perform federated reverse training for each previous moment based on the preset recurrent neural network model updated at the last moment corresponding to the previous moment and the intermediate gradient of the last moment corresponding to the previous moment and the last moment. Until the initial moment, the preset cyclic neural network model is updated.
在一实施例中,所述联邦前向训练中每个时刻对应的模型参数相同。In an embodiment, the model parameters corresponding to each moment in the federated forward training are the same.
在一实施例中,预设时序数据指的是用户非相同时刻的医疗时序数据,所述基于循环神经网络的数据处理装置还包括:In an embodiment, the preset time series data refers to the medical time series data of the user at different moments, and the data processing device based on the recurrent neural network further includes:
第三获取模块,用于获取待处理医疗时序数据,将所述待处理医疗时序数据输入至数据处理模型中;The third acquisition module is used to acquire the medical time series data to be processed, and input the medical time series data to be processed into the data processing model;
所述数据处理模型为基于用户非相同时刻的医疗时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is based on the user's medical time series data at different moments after fed forward training of the cyclic neural network model at different moments, and then federation of the cyclic neural network model at different moments when the federated forward training is completed. Obtained after reverse training;
处理模块,用于基于所述数据处理模型对所述待处理医疗时序数据执行预设数据处理流程,得到所述待处理医疗时序数据的目标预测医疗标签。The processing module is configured to execute a preset data processing procedure on the medical time series data to be processed based on the data processing model to obtain the target predicted medical label of the medical time series data to be processed.
本申请基于循环神经网络的数据处理装置的具体实施方式与上述基于循环神经网络的数据处理方法各实施例基本相同,在此不再赘述。The specific implementation of the data processing device based on the recurrent neural network of the present application is basically the same as the foregoing embodiments of the data processing method based on the recurrent neural network, and will not be repeated here.
本申请实施例提供了一种介质,且所述介质存储有一个或者一个以上程序,所述一个或者一个以上程序还可被一个或者一个以上的处理器执行以用于实现上述任一项所述的基于循环神经网络的数据处理方法的步骤。The embodiment of the present application provides a medium, and the medium stores one or more programs, and the one or more programs may also be executed by one or more processors to implement any one of the foregoing The steps of the data processing method based on recurrent neural network.
本申请介质具体实施方式与上述基于循环神经网络的数据处理方法各实施例基本相同,在此不再赘述。The specific implementation of the medium of the present application is basically the same as the foregoing embodiments of the data processing method based on the recurrent neural network, and will not be repeated here.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only the preferred embodiments of this application, and do not limit the scope of this application. Any equivalent structure or equivalent process transformation made using the content of the description and drawings of this application, or directly or indirectly used in other related technical fields , The same reason is included in the scope of patent processing of this application.

Claims (20)

  1. 一种基于循环神经网络的数据处理方法,其中,预设时序数据指的是用户非相同时刻的时序数据,所述基于循环神经网络的数据处理方法包括:A data processing method based on a cyclic neural network, wherein the preset time series data refers to the time series data of a user at a different time, and the data processing method based on the cyclic neural network includes:
    获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;Acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model;
    所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is based on the user's time series data at different moments after the federated forward training of the cyclic neural network model at different moments, and then the federated feedback of the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
    基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。Based on the data processing model, a preset data processing procedure is executed on the to-be-processed time-series data to obtain a target prediction tag of the to-be-processed time-series data.
  2. 如权利要求1所述的基于循环神经网络的数据处理方法,其中,所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤之前,所述方法包括:The data processing method based on recurrent neural network according to claim 1, wherein said performing a preset data processing procedure on said to-be-processed time-series data based on said data processing model to obtain a target prediction of said to-be-processed time-series data Before the labeling step, the method includes:
    基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型;Based on the user's time series data at different moments, after federated forward training is performed on the cyclic neural network model at different moments, the federated reverse training is performed on the cyclic neural network model at different moments when the federated forward training is completed to obtain Joint model
    将所述联合模型设置为所述数据处理模型。The joint model is set as the data processing model.
  3. 如权利要求2所述的基于循环神经网络的数据处理方法,其中,所述用户非相同时刻的预设时序数据包括在各个时刻的预设时序数据;3. The data processing method based on recurrent neural network according to claim 2, wherein the preset time series data of the user at different moments include preset time series data at various moments;
    所述基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型的步骤,包括:After the forward federated training is performed on the cyclic neural network model at different moments based on the time series data of the user at different moments, the federated reverse training is performed on the cyclical neural network model at different moments when the federated forward training is completed, The steps to get the joint model include:
    基于接收的在目标时刻对应上一时刻的前向传播的中间参数,所述目标时刻的预设时序数据和所述预设循环神经网络模型在目标时刻的模型参数,确定在目标时刻的前向传播的中间参数,并基于所述在目标时刻的前向传播的中间参数进行对后续各个时刻的联邦前向训练,直到得到最后时刻的中间参数;Based on the received intermediate parameters of the forward propagation at the target time corresponding to the previous time, the preset time series data of the target time and the model parameters of the preset recurrent neural network model at the target time, the forward direction at the target time is determined Propagate intermediate parameters, and perform federated forward training at each subsequent time based on the intermediate parameters of forward propagation at the target time, until the intermediate parameters at the final time are obtained;
    基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度,以计算所述最后时刻的预测模型中间梯度;Based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment, calculating the loss gradient at the last moment to calculate the intermediate gradient of the prediction model at the last moment;
    基于所述最后时刻的预测模型中间梯度,以及所述在最后时刻的预设时序数据,计算对应最后时刻的中间梯度,并基于所述最后时刻的中间梯度,更新预设循环神经网络模型在最后时刻的模型参数和计算最后时刻对应上一时刻的中间梯度;Based on the intermediate gradient of the prediction model at the last moment and the preset time series data at the last moment, calculate the intermediate gradient corresponding to the last moment, and update the preset recurrent neural network model based on the intermediate gradient at the last moment. The model parameters at time and the intermediate gradient at the last time corresponding to the last time in the calculation;
    基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。The federated reverse training is performed based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network model at the first moment is updated.
  4. 如权利要求3所述的基于循环神经网络的数据处理方法,其中,所述基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度的步骤,包括:The data processing method based on the recurrent neural network according to claim 3, wherein the intermediate parameters based on the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment are calculated to calculate the last The steps of the loss gradient at time include:
    基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,确定所述最后时刻的预设循环神经网络模型的预测结果;Determine the prediction result of the preset recurrent neural network model at the last moment based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment;
    基于所述最后时刻的预设循环神经网络模型的预测结果,最后时刻的预设时序数据的真实结果以及最后时刻的预设损失函数,确定所述最后时刻的损失梯度。Based on the prediction result of the preset cyclic neural network model at the last moment, the actual result of the preset time series data at the last moment, and the preset loss function at the last moment, the loss gradient at the last moment is determined.
  5. 如权利要求3所述的基于循环神经网络的数据处理方法,其中,所述基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新的步骤,包括:The data processing method based on a recurrent neural network according to claim 3, wherein the federated reverse training is performed based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last moment at the last moment, until the initial The steps for updating the preset recurrent neural network model at all times include:
    基于在最后时刻更新的预设循环神经网络模型,最后时刻对应上一时刻的中间梯度和最后时刻对应上一时刻的预设时序数据,更新预设循环神经网络模型在最后时刻对应上一时刻的模型参数和计算最后时刻对应上一时刻的再上一时刻的中间梯度;Based on the preset loop neural network model updated at the last moment, the last moment corresponds to the intermediate gradient of the previous moment and the last moment corresponds to the preset timing data of the previous moment, and the preset loop neural network model is updated at the last moment corresponding to the previous moment. The model parameters and the intermediate gradient of the last moment corresponding to the last moment in the calculation;
    基于在最后时刻对应上一时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的再上一时刻的中间梯度进行对前面各个时刻的联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。Based on the preset recurrent neural network model updated at the last moment corresponding to the previous moment and the intermediate gradient of the last moment corresponding to the last moment and the last moment, the federated reverse training of the previous moments is performed until the preset recurrent neural network at the first moment The network model is updated.
  6. 如权利要求1-5中任一项所述的基于循环神经网络的数据处理方法,其中,所述联邦前向训练中每个时刻对应的模型参数相同。The data processing method based on recurrent neural network according to any one of claims 1 to 5, wherein the model parameters corresponding to each moment in the federated forward training are the same.
  7. 如权利要求1所述的基于循环神经网络的数据处理方法,其中,用户非相同时刻的时序数据为用户非相同时刻的医疗时序数据,所述待处理时序数据为待处理医疗时序数据,所述数据处理模型为医疗属性预测模型,The data processing method based on the recurrent neural network according to claim 1, wherein the time series data of the user at a different time is medical time series data of the user at a different time, and the time series data to be processed is the medical time series data to be processed. The data processing model is a medical attribute prediction model,
    所述医疗属性预测模型为基于用户非相同时刻的医疗时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The medical attribute prediction model is based on the user's medical time series data at different moments after the federated forward training of the recurrent neural network model at different moments, and then the recurrent neural network model at different moments when the federated forward training is completed. Obtained after federated reverse training;
    所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤,包括:The step of executing a preset data processing procedure on the time series data to be processed based on the data processing model to obtain the target prediction tag of the time series data to be processed includes:
    基于所医疗属性预测模型对所述待处理医疗时序数据执行医疗属性预测处理,得到所述待处理医疗时序数据的医疗属性预测结果。Performing medical attribute prediction processing on the medical time series data to be processed based on the medical attribute prediction model to obtain the medical attribute prediction result of the medical time series data to be processed.
  8. 一种基于循环神经网络的数据处理装置,其中,预设时序数据指的是用户非相同时刻的时序数据,所述基于循环神经网络的数据处理装置包括:A data processing device based on a cyclic neural network, wherein the preset time series data refers to the time series data of a user at a different time, and the data processing device based on the cyclic neural network includes:
    第一获取模块,用于获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;The first acquisition module is configured to acquire time series data to be processed, and input the time series data to be processed into the data processing model;
    所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is based on the user's time series data at different moments after the federated forward training of the cyclic neural network model at different moments, and then the federated feedback of the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
    第二获取模块,用于基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。The second acquisition module is configured to execute a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data.
  9. 一种基于循环神经网络的数据处理设备,其中,所述基于循环神经网络的数据处理设备包括:存储器、处理器以及存储在存储器上的用于实现所述基于循环神经网络的数据处理方法的程序,A data processing device based on a recurrent neural network, wherein the data processing device based on a recurrent neural network includes: a memory, a processor, and a program stored in the memory for implementing the data processing method based on the recurrent neural network ,
    所述存储器用于存储实现基于循环神经网络的数据处理方法的程序;The memory is used to store a program for realizing a data processing method based on a cyclic neural network;
    所述处理器用于执行实现所述基于循环神经网络的数据处理方法的程序,以实现以下步骤:The processor is configured to execute a program for realizing the data processing method based on the recurrent neural network, so as to implement the following steps:
    获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;Acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model;
    所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The data processing model is based on the user's time series data at different moments after the federated forward training of the cyclic neural network model at different moments, and then the federated feedback of the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
    基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。Based on the data processing model, a preset data processing procedure is executed on the to-be-processed time-series data to obtain a target prediction tag of the to-be-processed time-series data.
  10. 如权利要求9所述的基于循环神经网络的数据处理设备,其中,所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤之前,所述方法包括:The data processing device based on a recurrent neural network according to claim 9, wherein the data processing model performs a preset data processing procedure on the to-be-processed time-series data to obtain the target prediction of the to-be-processed time-series data Before the labeling step, the method includes:
    基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型;Based on the user's time series data at different moments, after federated forward training is performed on the cyclic neural network model at different moments, the federated reverse training is performed on the cyclic neural network model at different moments when the federated forward training is completed to obtain Joint model
    将所述联合模型设置为所述数据处理模型。The joint model is set as the data processing model.
  11. 如权利要求10所述的基于循环神经网络的数据处理设备,其中,所述用户非相同时刻的预设时序数据包括在各个时刻的预设时序数据;10. The data processing device based on a recurrent neural network according to claim 10, wherein the preset time series data of the user at different moments include preset time series data at various moments;
    所述基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型的步骤,包括:After the forward federated training is performed on the cyclic neural network model at different moments based on the time series data of the user at different moments, the federated reverse training is performed on the cyclical neural network model at different moments when the federated forward training is completed, The steps to get the joint model include:
    基于接收的在目标时刻对应上一时刻的前向传播的中间参数,所述目标时刻的预设时序数据和所述预设循环神经网络模型在目标时刻的模型参数,确定在目标时刻的前向传播的中间参数,并基于所述在目标时刻的前向传播的中间参数进行对后续各个时刻的联邦前向训练,直到得到最后时刻的中间参数;Based on the received intermediate parameters of the forward propagation at the target time corresponding to the previous time, the preset time series data of the target time and the model parameters of the preset recurrent neural network model at the target time, the forward direction at the target time is determined Propagate intermediate parameters, and perform federated forward training at each subsequent time based on the intermediate parameters of forward propagation at the target time, until the intermediate parameters at the final time are obtained;
    基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度,以计算所述最后时刻的预测模型中间梯度;Based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment, calculating the loss gradient at the last moment to calculate the intermediate gradient of the prediction model at the last moment;
    基于所述最后时刻的预测模型中间梯度,以及所述在最后时刻的预设时序数据,计算对应最后时刻的中间梯度,并基于所述最后时刻的中间梯度,更新预设循环神经网络模型在最后时刻的模型参数和计算最后时刻对应上一时刻的中间梯度;Based on the intermediate gradient of the prediction model at the last moment and the preset time series data at the last moment, calculate the intermediate gradient corresponding to the last moment, and update the preset recurrent neural network model based on the intermediate gradient at the last moment. The model parameters at the moment and the intermediate gradient of the last moment corresponding to the last moment in the calculation;
    基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。The federated reverse training is performed based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network model at the first moment is updated.
  12. 如权利要求11所述的基于循环神经网络的数据处理设备,其中,所述基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度的步骤,包括:The data processing device based on the recurrent neural network according to claim 11, wherein the intermediate parameters based on the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment are calculated to calculate the last The steps of the loss gradient at time include:
    基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,确定所述最后时刻的预设循环神经网络模型的预测结果;Determine the prediction result of the preset recurrent neural network model at the last moment based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment;
    基于所述最后时刻的预设循环神经网络模型的预测结果,最后时刻的预设时序数据的真实结果以及最后时刻的预设损失函数,确定所述最后时刻的损失梯度。Based on the prediction result of the preset cyclic neural network model at the last moment, the actual result of the preset time series data at the last moment, and the preset loss function at the last moment, the loss gradient at the last moment is determined.
  13. 如权利要求11所述的基于循环神经网络的数据处理设备,其中,所述基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新的步骤,包括:The data processing device based on a recurrent neural network according to claim 11, wherein the federated reverse training is performed based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last moment at the last moment, until the initial The steps for updating the preset cyclic neural network model at all times include:
    基于在最后时刻更新的预设循环神经网络模型,最后时刻对应上一时刻的中间梯度和最后时刻对应上一时刻的预设时序数据,更新预设循环神经网络模型在最后时刻对应上一时刻的模型参数和计算最后时刻对应上一时刻的再上一时刻的中间梯度;Based on the preset loop neural network model updated at the last moment, the last moment corresponds to the intermediate gradient of the previous moment and the last moment corresponds to the preset timing data of the previous moment, and the preset loop neural network model is updated at the last moment corresponding to the previous moment. The model parameters and the intermediate gradient of the last moment corresponding to the last moment in the calculation;
    基于在最后时刻对应上一时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的再上一时刻的中间梯度进行对前面各个时刻的联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。Based on the preset recurrent neural network model updated at the last moment corresponding to the previous moment and the intermediate gradient of the last moment corresponding to the last moment and the last moment, the federated reverse training of the previous moments is performed until the preset recurrent neural network at the first moment The network model is updated.
  14. 如权利要求9所述的基于循环神经网络的数据处理方法,其中,用户非相同时刻的时序数据为用户非相同时刻的医疗时序数据,所述待处理时序数据为待处理医疗时序数据,所述数据处理模型为医疗属性预测模型,The data processing method based on the recurrent neural network according to claim 9, wherein the time series data of the user at a different time is medical time series data of the user at a different time, and the time series data to be processed is the medical time series data to be processed. The data processing model is a medical attribute prediction model,
    所述医疗属性预测模型为基于用户非相同时刻的医疗时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The medical attribute prediction model is based on the user's medical time series data at different moments after the federated forward training of the recurrent neural network model at different moments, and then the recurrent neural network model at different moments when the federated forward training is completed. Obtained after federated reverse training;
    所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤,包括:The step of executing a preset data processing procedure on the time series data to be processed based on the data processing model to obtain the target prediction tag of the time series data to be processed includes:
    基于所医疗属性预测模型对所述待处理医疗时序数据执行医疗属性预测处理,得到所述待处理医疗时序数据的医疗属性预测结果。Performing medical attribute prediction processing on the medical time series data to be processed based on the medical attribute prediction model to obtain the medical attribute prediction result of the medical time series data to be processed.
  15. 一种介质,其中,所述介质上存储有实现基于循环神经网络的数据处理方法的程序,所述实现基于循环神经网络的数据处理方法的程序被处理器执行以实现以下步骤:A medium, wherein a program for realizing a data processing method based on a recurrent neural network is stored on the medium, and the program for realizing a data processing method based on a recurrent neural network is executed by a processor to implement the following steps:
    获取待处理时序数据,将所述待处理时序数据输入至数据处理模型中;Acquiring time series data to be processed, and inputting the time series data to be processed into a data processing model;
    所述数据处理模型为基于用户非相同时刻的时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个 时刻的联邦反向训练后得到的;The data processing model is based on the user's time series data at different moments after the federated forward training of the cyclic neural network model at different moments, and then the federated feedback of the cyclic neural network model at different moments when the federated forward training is completed. Obtained after training;
    基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签。Based on the data processing model, a preset data processing procedure is executed on the to-be-processed time-series data to obtain a target prediction tag of the to-be-processed time-series data.
  16. 如权利要求15所述的介质,其中,所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤之前,所述方法包括:The medium of claim 15, wherein before the step of executing a preset data processing procedure on the to-be-processed time-series data based on the data processing model to obtain the target prediction tag of the to-be-processed time-series data, the Methods include:
    基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型;Based on the user's time series data at different moments, after federated forward training is performed on the cyclic neural network model at different moments, the federated reverse training is performed on the cyclic neural network model at different moments when the federated forward training is completed to obtain Joint model
    将所述联合模型设置为所述数据处理模型。The joint model is set as the data processing model.
  17. 如权利要求16所述的介质,其中,所述用户非相同时刻的预设时序数据包括在各个时刻的预设时序数据;The medium according to claim 16, wherein the preset time sequence data of the user at different moments includes preset time sequence data at various moments;
    所述基于用户非相同时刻的时序数据,对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练,以得到联合模型的步骤,包括:After the forward federated training is performed on the cyclic neural network model at different moments based on the time series data of the user at different moments, the federated reverse training is performed on the cyclical neural network model at different moments when the federated forward training is completed, The steps to get the joint model include:
    基于接收的在目标时刻对应上一时刻的前向传播的中间参数,所述目标时刻的预设时序数据和所述预设循环神经网络模型在目标时刻的模型参数,确定在目标时刻的前向传播的中间参数,并基于所述在目标时刻的前向传播的中间参数进行对后续各个时刻的联邦前向训练,直到得到最后时刻的中间参数;Based on the received intermediate parameters of the forward propagation at the target time corresponding to the previous time, the preset time series data of the target time and the model parameters of the preset recurrent neural network model at the target time, the forward direction at the target time is determined Propagate intermediate parameters, and perform federated forward training at each subsequent time based on the intermediate parameters of forward propagation at the target time, until the intermediate parameters at the final time are obtained;
    基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度,以计算所述最后时刻的预测模型中间梯度;Based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment, calculating the loss gradient at the last moment to calculate the intermediate gradient of the prediction model at the last moment;
    基于所述最后时刻的预测模型中间梯度,以及所述在最后时刻的预设时序数据,计算对应最后时刻的中间梯度,并基于所述最后时刻的中间梯度,更新预设循环神经网络模型在最后时刻的模型参数和计算最后时刻对应上一时刻的中间梯度;Based on the intermediate gradient of the prediction model at the last moment and the preset time series data at the last moment, calculate the intermediate gradient corresponding to the last moment, and update the preset recurrent neural network model based on the intermediate gradient at the last moment. The model parameters at the moment and the intermediate gradient of the last moment corresponding to the last moment in the calculation;
    基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。The federated reverse training is performed based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network model at the first moment is updated.
  18. 如权利要求17所述的介质,其中,所述基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,计算所述最后时刻的损失梯度的步骤,包括:The medium according to claim 17, wherein the step of calculating the loss gradient at the last moment based on the intermediate parameters at the last moment, the preset time series data at the last moment and the preset prediction model at the last moment, include:
    基于所述最后时刻的中间参数,所述最后时刻的预设时序数据和最后时刻预设预测模型,确定所述最后时刻的预设循环神经网络模型的预测结果;Determine the prediction result of the preset recurrent neural network model at the last moment based on the intermediate parameters at the last moment, the preset time series data at the last moment, and the preset prediction model at the last moment;
    基于所述最后时刻的预设循环神经网络模型的预测结果,最后时刻的预设时序数据的真实结果以及最后时刻的预设损失函数,确定所述最后时刻的损失梯度。Based on the prediction result of the preset cyclic neural network model at the last moment, the actual result of the preset time series data at the last moment, and the preset loss function at the last moment, the loss gradient at the last moment is determined.
  19. 如权利要求17所述的介质,其中,所述基于在最后时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的中间梯度进行联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新的步骤,包括:The medium according to claim 17, wherein the federated reverse training is performed based on the preset recurrent neural network model updated at the last moment and the intermediate gradient corresponding to the last time at the last moment, until the preset recurrent neural network at the initial moment The steps to update the model include:
    基于在最后时刻更新的预设循环神经网络模型,最后时刻对应上一时刻的中间梯度和最后时刻对应上一时刻的预设时序数据,更新预设循环神经网络模型在最后时刻对应上一时刻的模型参数和计算最后时刻对应上一时刻的再上一时刻的中间梯度;Based on the preset loop neural network model updated at the last moment, the last moment corresponds to the intermediate gradient of the previous moment and the last moment corresponds to the preset time series data of the previous moment, and the preset loop neural network model is updated at the last moment corresponding to the previous moment. The model parameters and the intermediate gradient of the last moment corresponding to the last moment in the calculation;
    基于在最后时刻对应上一时刻更新的预设循环神经网络模型和最后时刻对应上一时刻的再上一时刻的中间梯度进行对前面各个时刻的联邦反向训练,直至最初时刻的预设循环神经网络模型得到更新。Based on the preset recurrent neural network model updated at the last moment corresponding to the previous moment and the intermediate gradient of the last moment corresponding to the last moment and the last moment, the federated reverse training of the previous moments is performed until the preset recurrent neural network at the first moment The network model is updated.
  20. 如权利要求15所述的介质,其中,用户非相同时刻的时序数据为用户非相同时刻的医疗时序数据,所述待处理时序数据为待处理医疗时序数据,所述数据处理模型为医疗属性预测模型,The medium according to claim 15, wherein the time series data at different times of the user is medical time series data at different times of the user, the time series data to be processed is medical time series data to be processed, and the data processing model is medical attribute prediction Model,
    所述医疗属性预测模型为基于用户非相同时刻的医疗时序数据对不同时刻的循环神经网络模型进行联邦前向训练后,再对联邦前向训练完成的不同时刻的循环神经网络模型进行各个时刻的联邦反向训练后得到的;The medical attribute prediction model is based on the user's medical time series data at different moments after the fed forward training of the cyclic neural network model at different moments, and then the cyclic neural network model at different moments when the federated forward training is completed. Obtained after federated reverse training;
    所述基于所述数据处理模型对所述待处理时序数据执行预设数据处理流程,得到所述待处理时序数据的目标预测标签的步骤,包括:The step of executing a preset data processing procedure on the time series data to be processed based on the data processing model to obtain the target prediction tag of the time series data to be processed includes:
    基于所医疗属性预测模型对所述待处理医疗时序数据执行医疗属性预测处理,得到所述待处理医疗时序数据的医疗属性预测结果。Performing medical attribute prediction processing on the medical time series data to be processed based on the medical attribute prediction model to obtain the medical attribute prediction result of the medical time series data to be processed.
PCT/CN2021/093152 2020-06-24 2021-05-11 Recurrent neural network-based data processing method, apparatus, and device, and medium WO2021258882A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010596089.8A CN111737922A (en) 2020-06-24 2020-06-24 Data processing method, device, equipment and medium based on recurrent neural network
CN202010596089.8 2020-06-24

Publications (1)

Publication Number Publication Date
WO2021258882A1 true WO2021258882A1 (en) 2021-12-30

Family

ID=72652115

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/093152 WO2021258882A1 (en) 2020-06-24 2021-05-11 Recurrent neural network-based data processing method, apparatus, and device, and medium

Country Status (2)

Country Link
CN (1) CN111737922A (en)
WO (1) WO2021258882A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116452212A (en) * 2023-04-24 2023-07-18 深圳迅销科技股份有限公司 Intelligent customer service commodity knowledge base information management method and system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737922A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device, equipment and medium based on recurrent neural network
CN112149171B (en) * 2020-10-27 2021-07-09 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for training federal neural network model
CN112508705A (en) * 2020-12-18 2021-03-16 北京航空航天大学 Method and system for detecting money laundering transaction in complex association transaction

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190188572A1 (en) * 2016-05-20 2019-06-20 Deepmind Technologies Limited Memory-efficient backpropagation through time
CN110797124A (en) * 2019-10-30 2020-02-14 腾讯科技(深圳)有限公司 Model multi-terminal collaborative training method, medical risk prediction method and device
CN111222628A (en) * 2019-11-20 2020-06-02 深圳前海微众银行股份有限公司 Method, device and system for optimizing recurrent neural network training and readable storage medium
CN111738422A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device and medium based on recurrent neural network
CN111737922A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device, equipment and medium based on recurrent neural network
CN111737920A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device and medium based on recurrent neural network
CN111738421A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device and medium based on recurrent neural network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778014B (en) * 2016-12-29 2020-06-16 浙江大学 Disease risk prediction modeling method based on recurrent neural network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190188572A1 (en) * 2016-05-20 2019-06-20 Deepmind Technologies Limited Memory-efficient backpropagation through time
CN110797124A (en) * 2019-10-30 2020-02-14 腾讯科技(深圳)有限公司 Model multi-terminal collaborative training method, medical risk prediction method and device
CN111222628A (en) * 2019-11-20 2020-06-02 深圳前海微众银行股份有限公司 Method, device and system for optimizing recurrent neural network training and readable storage medium
CN111738422A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device and medium based on recurrent neural network
CN111737922A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device, equipment and medium based on recurrent neural network
CN111737920A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device and medium based on recurrent neural network
CN111738421A (en) * 2020-06-24 2020-10-02 深圳前海微众银行股份有限公司 Data processing method, device and medium based on recurrent neural network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116452212A (en) * 2023-04-24 2023-07-18 深圳迅销科技股份有限公司 Intelligent customer service commodity knowledge base information management method and system
CN116452212B (en) * 2023-04-24 2023-10-31 深圳迅销科技股份有限公司 Intelligent customer service commodity knowledge base information management method and system

Also Published As

Publication number Publication date
CN111737922A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
WO2021258882A1 (en) Recurrent neural network-based data processing method, apparatus, and device, and medium
CN110929807B (en) Training method of image classification model, and image classification method and device
WO2023005133A1 (en) Federated learning modeling optimization method and device, and readable storage medium and program product
US20220036135A1 (en) Method and apparatus for determining image to be labeled and model training method and apparatus
WO2022022274A1 (en) Model training method and apparatus
KR20200109230A (en) Method and apparatus for generating neural network
WO2022028045A1 (en) Data processing method, apparatus, and device, and medium
WO2020062493A1 (en) Image processing method and apparatus
CN109389072B (en) Data processing method and device
WO2022116502A1 (en) Model training method and device, data processing method and device, client and storage medium
WO2021139462A1 (en) Stepwise model selection method and device, and readable storage medium
CN114693934B (en) Training method of semantic segmentation model, video semantic segmentation method and device
CN112785144A (en) Model construction method, device and storage medium based on federal learning
JP2022163051A (en) Compound property prediction model training method and device, electronic device, storage medium, and computer program
Zou et al. GMDN: A lightweight graph-based mixture density network for 3D human pose regression
CN111737920B (en) Data processing method, equipment and medium based on cyclic neural network
CN115439192A (en) Medical commodity information pushing method and device, storage medium and computer equipment
CN110503181B (en) Method and apparatus for generating a multi-layer neural network
CN108460364B (en) Method and apparatus for generating information
CN111738422A (en) Data processing method, device and medium based on recurrent neural network
WO2023246735A1 (en) Item recommendation method and related device therefor
CN111737921B (en) Data processing method, equipment and medium based on cyclic neural network
CN111241746A (en) Forward model selection method, apparatus and readable storage medium
US20210210214A1 (en) Optimisation system and method
CN111738421A (en) Data processing method, device and medium based on recurrent neural network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21828019

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21828019

Country of ref document: EP

Kind code of ref document: A1