Learning device, prediction device, learning method, prediction method, and program

The learning device divides past data into intervals to extract latent vectors, addressing the challenge of capturing event relationships with minimal calculation, enhancing point process prediction accuracy.

JP7540587B2Active Publication Date: 2024-08-27NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023518602
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-07
Publication Date
2024-08-27
Estimated Expiration
2041-05-07

AI Technical Summary

Technical Problem

Conventional meta-learning techniques for point process prediction struggle to appropriately capture relationships between past events with a small amount of calculation.

Method used

A learning device that divides past data into multiple intervals, extracts latent vectors using neural networks for each interval, and derives an intensity function to predict event occurrence, reducing calculation complexity and capturing relationships effectively.

Benefits of technology

The method allows for efficient capture of relationships between past events with reduced computational effort, enabling accurate point process prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540587000012
    Figure 0007540587000012
  • Figure 0007540587000009
    Figure 0007540587000009
  • Figure 0007540587000011
    Figure 0007540587000011
Patent Text Reader

Abstract

This learning device for predicting occurrence of an event is provided with: a division unit that divides, into a plurality of sections, a support set extracted from a group of learning data in the past; a latent representation extraction unit that outputs first latent vectors on the basis of the respective plurality of divided sections and outputs second latent vectors based on the outputted first latent vectors; and a strength function derivation unit that outputs a strength function indicating likelihood of occurrence of the event on the basis of the second latent vectors.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning device, a prediction device, a learning method, a prediction method, and a program. [Background technology]

[0002] Point process prediction technology is being researched as a way to predict the occurrence of events such as equipment failures, human behavior, crimes, earthquakes, and infectious diseases. It is known that point process prediction is performed by learning using past data of the series to be predicted and calculating an intensity function that indicates the likelihood of the event occurring in a future time period.

[0003] In addition, a method of using meta-learning to eliminate the need to learn for each sequence is being studied. For example, Non-Patent Document 1 discloses a meta-learning method based on MAML (Model-Agnostic Meta-Learning). [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Yujia Xie, Haoming Jiang, Feng Liu, Tuo Zhao, and Hongyuan Zha, "Meta Learning with Relational Information for Short Sequences", 33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada Summary of the Invention [Problem to be solved by the invention]

[0005] In conventional techniques, there is a problem in that it is difficult to adequately grasp the relationships between past events with a small amount of computation in meta-learning for prediction using point processes.

[0006] The disclosed technology aims to appropriately capture the relationships between past events with a small amount of computation in meta-learning for predictions using point processes. [Means for solving the problem]

[0007] The disclosed technology is a learning device for predicting the occurrence of an event, comprising: a division unit that divides a support set extracted from a collection of past data for learning into a plurality of intervals; a latent expression extraction unit that outputs a first latent vector based on each of the plurality of divided intervals and outputs a second latent vector based on each of the output first latent vectors; and an intensity function derivation unit that outputs an intensity function indicating the likelihood of an event occurring based on the second latent vector. Effect of the Invention

[0008] In meta-learning for point process prediction, it is possible to appropriately capture the relationships between past events with a small amount of computation. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 is a functional configuration diagram of the learning device. [Diagram 2] 13 is a flowchart showing an example of the flow of a learning process. [Diagram 3] FIG. 2 is a functional configuration diagram of a prediction device. [Figure 4] 13 is a flowchart showing an example of the flow of a prediction process. [Diagram 5] FIG. 1 is a diagram for explaining a conventional process. [Figure 6] FIG. 2 is a diagram for explaining the processing of the present embodiment. [Figure 7] FIG. 2 illustrates an example of a hardware configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention (the present embodiment) will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment.

[0011] The learning device 1 according to the present embodiment is a device that performs meta-learning to predict the occurrence of an event by a point process.

[0012]

number

[0013] Series Data

[0014]

number

[0015] Training dataset for training

[0016]

number

[0017] (Functional configuration of the learning device) 1 is a functional block diagram of a learning device 1. The learning device 1 includes an extraction unit 11, a division unit 12, a latent expression extraction unit 13, a strength function derivation unit 14, and a parameter update unit 15.

[0018] The extraction unit 11 extracts a sequence E from a data set D, which is a collection of past data for learning. j (hereinafter, j is omitted and it is also referred to as E). Next, the extraction unit 11 randomly selects t s ,t q (0 <t s <t q ≦t e The method of determination can be random or based on the expected prediction time t s * ,t q * The extraction unit 11 then extracts the support set E from the sequence E. s ={t i |0≦t i ≦t s} and a query set E q ={t i |t s <t i ≦t q}. The extraction unit 11 extracts the query set E q {t i |0≦t i ≦t q} may be extracted.

[0019] The division unit 12 divides the support set E s Divide into multiple intervals. An example of a division method is to divide into a specified time interval (e.g., [0,t s / 3), [t s / 3,2t s / 3), [2t s / 3,t s ]) and the expected number of events in each interval (

[0020]

number

[0021] The latent expression extraction unit 13 extracts the divided support set

[0022]

number

[0023]

number

[0024] In addition, the latent expression extraction unit 13 extracts the latent vector z k Each of these is input to NN2 to obtain the latent vector z (second latent vector). NN2 (second model) can be any neural network if K is constant, and can be a neural network that can handle variable-length inputs if K can vary.

[0025] The intensity function derivation unit 14 inputs the latent vector z and time t to the NN3 to obtain the intensity function λ(t). The NN3 (third model) is a neural network in which any output is a positive scalar value.

[0026] The parameter update unit 15 calculates the negative log-likelihood from the intensity function λ(t) and Eq, and updates the parameters of the models (NN1, NN2, and NN3) of the latent expression extraction unit 13 or the intensity function derivation unit 14 using the backpropagation method or the like.

[0027] (Learning device operation) FIG. 2 is a flowchart showing an example of the flow of the learning process.

[0028] The learning device 1 executes a learning process in accordance with a user's operation or a predefined schedule. The extraction unit 11 extracts a sequence E from the data set D. j Then, the extraction unit 11 randomly selects t s ,t q (0 <t s <t q ≦t e ) (step S102). Next, the extraction unit 11 extracts a support set E from the sequence E. s and a query set E q (Step S103).

[0029] The division unit 12 divides the support set Es into multiple (K) intervals (step S104). The latent expression extraction unit 13 extracts each of the divided intervals E sk Input each of these to the NN1 corresponding to each interval to obtain the latent vector z k (Step S105). Furthermore, the latent expression extraction unit 13 obtains each latent vector z k is input to NN2 to obtain the latent vector z (step S106).

[0030] Next, the intensity function derivation unit 14 inputs the latent vector z and the time t to the NN3 to obtain the intensity function λ(t) (step S107). The parameter update unit 15 updates the parameters of each model (step S108).

[0031] The learning device 1 determines whether or not a termination condition is satisfied as a result of updating the parameters (step S109). The termination condition is, for example, a condition that the difference between the values ​​before and after the update is less than a predetermined threshold, or a condition that the number of updates reaches a predetermined number.

[0032] If the learning device 1 determines that the termination condition is not satisfied (step S109: No), the process returns to step S101. If the learning device 1 determines that the termination condition is satisfied (step S109: Yes), the learning device 1 ends the learning process.

[0033] Moreover, the prediction device 2 according to this embodiment is a device for predicting the occurrence of an event by a point process, using the models of NN1, NN2, and NN3 whose parameters have been updated by the learning device 1.

[0034] (Functional configuration of the prediction device) 3 is a functional configuration diagram of the prediction device 2. The prediction device 2 includes a division unit 21, a latent expression extraction unit 22, a strength function derivation unit 23, and a prediction unit 24.

[0035] The division unit 21 divides the predicted sequence E * E s * Similarly to the division unit 12 of the learning device 1, E s * Multiple intervals E sk * Divide into:

[0036] The latent expression extraction unit 22, like the latent expression extraction unit 13 of the learning device 1, inputs each of the divided support sets to the NN1 (first model) corresponding to each interval, and extracts the latent vector z k * Then, the latent expression extraction unit 22 obtains the latent vector z k * Each of these is input to NN2 (the second model) to obtain the latent vector z * (the second latent vector).

[0037] The strength function derivation unit 23, like the strength function derivation unit 14 of the learning device 1, adds a latent vector z * and time t are input to obtain the intensity function λ(t).

[0038] The prediction unit 24 uses the intensity function λ(t) to predict the prediction period T q * Predict the occurrence of events during

[0039] The prediction device 2 may generate events through simulation and output the prediction results (Y. Ogata, "On Lewis' simulation method for point processes", IEEE Transactions on Information Theory, Volume 27, Issue 1, Jan. 1981, pp. 23-31).

[0040] (Operation of the prediction device) 4 is a flowchart showing an example of the flow of the prediction process. The prediction device 2 executes the prediction process in accordance with a user's operation or the like.

[0041] The division unit 21 of the prediction device 2 divides the prediction sequence E * E s * (Step S201). Then, the division unit 21 regards t s * and t q * Next, the division unit 21 determines the support set E s * is divided into a plurality of sections (step S203).

[0042] The latent expression extraction unit 22 extracts each divided section E sk * Input each of these to NN1 to obtain the latent vector z k * (Step S204). Furthermore, the latent expression extraction unit 22 obtains each latent vector z k* is input to NN2 to obtain the latent vector z * (step S205).

[0043] Next, the strength function derivation unit 23 inputs the latent vector z * and forecast period T q * Each time t in is input to obtain the intensity function λ(t) (step S206).

[0044] FIG. 5 is a diagram for explaining the conventional processing. In the conventional device, a support set E s The entire system was input into NN1 at once, which output the latent vector z, and then z and t were input into NN2 to obtain the intensity function λ(t).

[0045] In this case, if NN1 is, for example, Deepset, there is a problem that it cannot capture the relationship between past events. In addition, if NN1 is Transformer, there is a problem that the amount of calculation is proportional to the square of the past events, resulting in an enormous amount of calculation. In addition, if NN1 is RNN, there is a problem that it can capture the relationship between adjacent events, but it is difficult to capture the relationship between distant events. Furthermore, when NN1 is Transformer or RNN, it assumes that the input is time-series data at equal intervals, so it is past data, and the input is for each event occurrence, and although it is necessary to capture the sparseness and density, there is a problem that it is difficult to capture such features.

[0046] 6 is a diagram for explaining the process of this embodiment. The learning device 1 or the prediction device 2 in this embodiment performs the following steps: (1) generate a support set E s Divide into multiple (K) intervals, input each interval to a different NN1, and (2) obtain the latent vector z k Then, the learning device 1 or the prediction device 2 obtains (3) each latent vector z k respectively input to NN2 to obtain latent vector z. Next, the learning device 1 or the prediction device 2 (4) inputs the latent vector z and time t to NN3 to obtain the intensity function λ(t).

[0047] According to the learning device 1 or prediction device 2 of this embodiment, the average sequence length to be calculated in the NN1 is 1 / K compared to the conventional method of Fig. 5, so that the amount of calculations can be reduced. For example, when the NN1 is a Transformer, the amount of calculations is proportional to the square of the sequence length, and when the NN1 is an RNN, the amount of calculations is proportional to the sequence length.

[0048] Furthermore, the learning device 1 or the prediction device 2 can perform parallel distributed processing for each interval. In this regard, for example, when the NN1 is an RNN, sequential processing is required in the conventional method.

[0049] In addition, the learning device 1 or the prediction device 2 can grasp the context of events based on which section the event is included in. In this regard, if the NN1 is, for example, Deepset, there is a problem in that it cannot grasp the relationship between past events.

[0050] Furthermore, the learning device 1 or the prediction device 2 can directly grasp whether the occurrence intervals of events are sparse or dense for each interval.

[0051] A mark or additional information may be added to the event data. For example, the event data is (t, m), where m is the mark or additional information. In this case, the learning device 1 or the prediction device 2 may execute the learning process and the prediction process using the neural network NN4 suitable for the mark or additional information before NN1, as follows.

[0052]

number

[0053] In addition, additional information a may be added to the sequence. In this case, the learning device 1 or the prediction device 2 may execute a learning process or a prediction process using a neural network (NN5, NN6) suitable for the additional information before NN3. That is, the learning device 1 or the prediction device 2 inputs the latent vector z' obtained by the following formula to NN3.

[0054] z′=NN6([z,NN5(a)])

[0055] Furthermore, in this embodiment, the dimension of an event is one-dimensional, but this may be expanded to any number of dimensions (for example, three dimensions in time and space).

[0056] (Hardware configuration example according to this embodiment) The learning device 1 and the prediction device 2 can be realized, for example, by making a computer execute a program describing the processing contents described in this embodiment. Note that this "computer" may be a physical machine or a virtual machine on the cloud. When a virtual machine is used, the "hardware" described here is virtual hardware.

[0057] The above program can be recorded on a computer-readable recording medium (such as a portable memory) and can be stored or distributed. The above program can also be provided via a network such as the Internet or e-mail.

[0058] Fig. 7 is a diagram showing an example of the hardware configuration of the computer. The computer in Fig. 7 has a drive device 1000, an auxiliary storage device 1002, a memory device 1003, a CPU 1004, an interface device 1005, a display device 1006, an input device 1007, an output device 1008, etc., which are all connected to each other via a bus B.

[0059] The program for realizing the processing on the computer is provided by a recording medium 1001 such as a CD-ROM or a memory card. When the recording medium 1001 storing the program is set in the drive device 1000, the program is installed from the recording medium 1001 to the auxiliary storage device 1002 via the drive device 1000. However, the program does not necessarily have to be installed from the recording medium 1001, but may be downloaded from another computer via a network. The auxiliary storage device 1002 stores the installed program as well as necessary files, data, etc.

[0060] When a program start instruction is received, the memory device 1003 reads out and stores the program from the auxiliary storage device 1002. The CPU 1004 realizes the functions related to the device according to the program stored in the memory device 1003. The interface device 1005 is used as an interface for connecting to a network. The display device 1006 displays a GUI (Graphical User Interface) or the like according to a program. The input device 1007 is composed of a keyboard, a mouse, a button, a touch panel, or the like, and is used to input various operation instructions. The output device 1008 outputs the calculation result. Note that the above computer may be equipped with a GPU (Graphics Processing Unit) or a TPU (Tensor processing unit) instead of the CPU 1004, or may be equipped with a GPU or a TPU in addition to the CPU 1004. In that case, the processes may be shared and executed, such that the GPU or the TPU executes processes that require special calculations such as neural networks, and the CPU 1004 executes other processes.

[0061] (Example) As an example of this embodiment, for example, it is possible to predict the occurrence of a user's future purchasing behavior on an EC (Electronic Commerce) site as an event. In this case, the series is user information, and the mark or additional information that can be added to the event may be product information, payment method, etc. related to the purchasing behavior of each user. In addition, the additional information of the series may be attributes of the user, such as gender and age.

[0062] In this case, as a first embodiment, the learning data may be an existing user event series of a certain EC site, and the prediction data may be a one-week series of a new user.Also, as a second embodiment, the learning data may be an event series of each user on various EC sites, and the prediction data may be an event series of a user on another EC site.

[0063] The above-described embodiment is merely an example, and the learning device 1 and prediction device 2 according to the present embodiment can be used to predict the occurrence of various events.

[0064] (Summary of the embodiment) This specification describes at least the learning device, prediction device, learning method, prediction method, and program described in the following sections. (Section 1) A learning device for predicting the occurrence of an event, comprising: A division unit that divides a support set extracted from a set of past data for learning into a plurality of intervals; a latent expression extraction unit that outputs a first latent vector based on each of the divided sections and outputs a second latent vector based on each of the output first latent vectors; and an intensity function derivation unit that outputs an intensity function indicating the likelihood of an event occurring based on the second latent vector. Learning device. (Section 2) a parameter update unit that updates, based on the intensity function, any of parameters of a first model for outputting the first latent vector, a second model for outputting the second latent vector, and a third model for outputting the intensity function. 2. A learning device as described in claim 1. (Section 3) the latent expression extraction unit outputs the first latent vector based on each of the divided sections by parallel distributed processing; 3. A learning device according to claim 1 or 2. (Section 4) A prediction device for predicting an occurrence of an event, comprising: a division unit that divides a prediction target sequence into a plurality of intervals by regarding the prediction target sequence as a support set; a latent expression extraction unit that outputs a first latent vector based on each of the divided sections and outputs a second latent vector based on each of the output first latent vectors; and an intensity function derivation unit that outputs an intensity function indicating the likelihood of an event occurring based on the second latent vector. Prediction device. (Section 5) A prediction unit that predicts an occurrence status of an event in a prediction period using the intensity function. 5. The prediction device according to claim 4. (Section 6) A learning method executed by a learning device, comprising: Dividing a support set extracted from a set of past training data into a plurality of intervals; outputting a first latent vector based on each of the divided sections, and outputting a second latent vector based on each of the output first latent vectors; and outputting an intensity function indicating the likelihood of an event occurring based on the second latent vector. How to learn. (Section 7) A prediction method executed by a prediction device, comprising: Dividing a sequence to be predicted into a plurality of intervals as a support set; outputting a first latent vector based on each of the divided sections, and outputting a second latent vector based on each of the output first latent vectors; and outputting an intensity function indicating the likelihood of an event occurring based on the second latent vector. Forecasting methods. (Section 8) A program for causing a computer to function as each unit in the learning device described in any one of paragraphs 1 to 3, or a program for causing a computer to function as each unit in the prediction device described in paragraph 4 or 5.

[0065] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]

[0066] 1 Learning device 2. Prediction Device 11 Extraction part 12 Division 13 Latent expression extraction part 14 Strength function derivation part 15 Parameter Update Section 21 Division 22 Latent expression extraction part 23 Strength function derivation part 24 Prediction Department 1000 Drive Device 1001 Recording media 1002 Auxiliary storage 1003 Memory device 1004 CPU 1005 Interface device 1006 Display device 1007 Input Device 1008 Output device

Claims

1. A learning device for predicting the occurrence of an event, comprising: A division unit that divides a support set extracted from a set of past data for learning into a plurality of intervals; a latent expression extraction unit that outputs a first latent vector based on each of the divided sections and outputs a second latent vector based on each of the output first latent vectors; and an intensity function derivation unit that outputs an intensity function indicating the likelihood of an event occurring based on the second latent vector. Learning device.

2. a parameter update unit that updates, based on the intensity function, any of parameters of a first model for outputting the first latent vector, a second model for outputting the second latent vector, and a third model for outputting the intensity function. The learning device according to claim 1 .

3. the latent expression extraction unit outputs the first latent vector based on each of the divided sections by parallel distributed processing; The learning device according to claim 1 or 2.

4. A prediction device for predicting an occurrence of an event, comprising: a division unit that divides a prediction target sequence into a plurality of intervals by regarding the prediction target sequence as a support set; a latent expression extraction unit that outputs a first latent vector based on each of the divided sections and outputs a second latent vector based on each of the output first latent vectors; and an intensity function derivation unit that outputs an intensity function indicating the likelihood of an event occurring based on the second latent vector. Prediction device.

5. A prediction unit that predicts an occurrence status of an event in a prediction period using the intensity function. The prediction device according to claim 4 .

6. A learning method executed by a learning device, comprising: Dividing a support set extracted from a set of past training data into a plurality of intervals; outputting a first latent vector based on each of the divided sections, and outputting a second latent vector based on each of the output first latent vectors; and outputting an intensity function indicating the likelihood of an event occurring based on the second latent vector. How to learn.

7. A prediction method executed by a prediction device, comprising: Dividing a sequence to be predicted into a plurality of intervals as a support set; outputting a first latent vector based on each of the divided sections, and outputting a second latent vector based on each of the output first latent vectors; and outputting an intensity function indicating the likelihood of an event occurring based on the second latent vector. Forecasting methods.

8. A program for causing a computer to function as each unit in the learning device according to any one of claims 1 to 3, or a program for causing a computer to function as each unit in the prediction device according to claim 4 or 5.

Citation Information

Patent Citations

  • Modelling operational conditions to predict life expectancy and faults of vehicle components in a fleet

    US20200090419A1