Interpolation device, interpolation method, and interpolation program
The interpolation device uses multidimensional expansion and NPMR to accurately interpolate time-series data with varying periods, maintaining structure and reducing costs.
Patent Information
- Application Number
- JP2023060442
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
AI Technical Summary
Existing data interpolation techniques are inadequate for accurately interpolating missing portions of time-series data with varying periods.
An interpolation device and method that multidimensionally expands data groups before and after a missing portion using Non-parametric Multiplicative Regression (NPMR) and averages predictions from these expanded groups to accurately interpolate missing data.
Highly accurate interpolation of time-series data missing portions is achieved while maintaining the periodic structure, reducing computational costs by avoiding expensive optimization calculations.
Smart Images

Figure 2024147429000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to an interpolation device, an interpolation method, and an interpolation program. [Background technology]
[0002] Patent Document 1 discloses a technique for performing data interpolation processing when observation data is acquired intermittently, so that when data interpolation processing is performed on the same waveform pattern, a substantially identical waveform pattern is acquired regardless of where the missing parts of the observation data are. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2022-079868 Summary of the Invention [Problem to be solved by the invention]
[0004] The technique described in Patent Document 1 is applicable only to data interpolation of the same waveform pattern, and there are cases where missing parts of time-series data cannot be interpolated with high accuracy.
[0005] The present disclosure has been made in consideration of the above circumstances, and aims to provide an interpolation device, an interpolation method, and an interpolation program that can accurately interpolate missing portions of time-series data. [Means for solving the problem]
[0006] The interpolation device of the first aspect includes an expansion unit that multi-dimensionally expands at least one of a first data group in a period before the missing portion of time series data having a plurality of different periods and having a missing portion and a second data group in the time series data in a period after the missing portion in accordance with the plurality of periods, and a prediction unit that predicts the missing portion using at least one of the first data group and the second data group multi-dimensionally expanded by the expansion unit.
[0007] According to the first aspect of the interpolation device, in time series data having a plurality of different periods and having missing parts, the missing parts are predicted using a multidimensionally expanded data group. Therefore, the missing parts of the time series data can be accurately interpolated.
[0008] The second aspect of the interpolation device is the interpolation device of the first aspect, wherein the expansion unit multi-dimensionally expands both the first data group and the second data group, and the prediction unit predicts the missing portion using both the first data group and the second data group multi-dimensionally expanded by the expansion unit.
[0009] According to the second aspect of the interpolation device, the missing portion of the time series data is predicted using both the first data group in the period before the missing portion of the time series data and the second data group in the period after the missing portion of the time series data, so that the missing portion of the time series data can be accurately interpolated.
[0010] The third aspect of the interpolation device is the interpolation device of the second aspect, wherein the prediction unit predicts a first missing portion using the first data group multidimensionally expanded by the expansion unit, predicts a second missing portion using the second data group multidimensionally expanded by the expansion unit, and predicts the missing portion by averaging the first missing portion and the second missing portion.
[0011] According to the third aspect of the interpolation device, the first missing portion and the second missing portion are averaged to predict the missing portion, so that the missing portion of the time series data can be accurately interpolated.
[0012] An interpolation device according to a fourth aspect is the interpolation device according to any one of the first to third aspects, wherein the prediction unit predicts the missing portion by NPMR.
[0013] According to the interpolation device of the fourth aspect, it is not necessary to perform calculations such as optimization calculations that have a relatively high calculation cost, and as a result, it is possible to reduce the calculation cost.
[0014] In a fifth aspect of the interpolation method, a computer executes a process of multidimensionally expanding at least one of a first data group in a period before the missing portion of time series data having a plurality of different periods and having a missing portion and a second data group in the time series data in a period after the missing portion according to the plurality of periods, and predicting the missing portion using at least one of the first data group and the second data group that have been multidimensionally expanded.
[0015] The interpolation program of the sixth aspect causes a computer to execute a process of multidimensionally expanding at least one of a first data group in a period before the missing portion of time series data having a plurality of different periods and having a missing portion and a second data group in a period after the missing portion of the time series data in accordance with the plurality of periods, and predicting the missing portion using at least one of the multidimensionally expanded first data group and second data group. Effect of the Invention
[0016] According to the present disclosure, missing portions of time-series data can be interpolated with high accuracy. [Brief description of the drawings]
[0017] [Figure 1] FIG. 2 is a block diagram showing an example of a hardware configuration of an interpolation device. [Diagram 2] 1 is a graph for explaining time series data. [Diagram 3]1 is a graph for explaining time series data. [Figure 4] FIG. 2 is a block diagram showing an example of a functional configuration of an interpolation device. [Diagram 5] FIG. 13 is a diagram for explaining multidimensional expansion. [Figure 6] FIG. 13 is a diagram for explaining a prediction process. [Figure 7] 13 is a flowchart illustrating an example of a data interpolation process. [Figure 8] 11 is a graph showing an example of an interpolation result according to the embodiment. [Figure 9] 13 is a graph showing an example of an interpolation result according to the comparative example. [Figure 10] 13 is a graph showing an example of an interpolation result according to a comparative example. [Figure 11] 13 is a graph showing an example of an interpolation result according to the comparative example. [Figure 12] 13 is a graph showing an example of an interpolation result according to the comparative example. [Figure 13] 13 is a graph showing an example of an interpolation result according to the comparative example. [Figure 14] 13 is a graph showing an example of an interpolation result according to the comparative example. [Figure 15] 13 is a graph showing an example of an interpolation result according to the comparative example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, examples of embodiments for carrying out the technology of the present disclosure will be described in detail with reference to the drawings.
[0019] Next, a hardware configuration of an interpolation device 10 according to this embodiment will be described with reference to Fig. 1. As shown in Fig. 1, the interpolation device 10 includes a CPU (Central Processing Unit) 20, a ROM (Read Only Memory) 21, a RAM (Random Access Memory) 22, a communication I / F (Interface) 23, an input device 24, and a display device 25. The CPU 20, the ROM 21, the RAM 22, the communication I / F 23, the input device 24, and the display device 25 are connected to each other so as to be able to communicate with each other via a bus 27. An example of the interpolation device 10 is a computer such as a personal computer or a server computer.
[0020] The CPU 20 is an example of a processor, and executes various programs and controls various parts. That is, the CPU 20 reads out a program from the ROM 21 and executes the program using the RAM 22 as a working area.
[0021] An interpolation program 30 and time-series data 32 are stored in the ROM 21 as a storage unit. The RAM 22 temporarily stores programs and data as a working area. The communication I / F 23 is an interface for communicating with an external system. The input device 24 is, for example, a keyboard and a mouse, and is a device for a user to input data. The display device 25 is, for example, a liquid crystal display, and displays various screens under the control of the CPU 20.
[0022] The time series data 32 according to this embodiment will be described with reference to Figs. 2 and 3. As shown in Fig. 2, the time series data 32 has a plurality of different periods. The time series data 32 shown in Fig. 2 represents the time series transition of the number of passengers per month of a certain transportation facility. In the example of Fig. 2, the time series data 32 has a yearly period in which the number of passengers increases linearly over the course of a year, and a monthly period in which the number of passengers reaches a peak in a specific month of the year. The number of periods that the time series data 32 has is not limited to two, and may be, for example, three, i.e., one year, one month, and one week, or may be four or more.
[0023] As shown in Fig. 3, the time series data 32 has missing parts. In the example of Fig. 3, the time series data 32 is missing one year's worth of data, as indicated by the dashed rectangle. The time series data 32 is composed of a data group 32A and a data group 32B. The data group 32A is a first data group for a period before the missing part of the time series data 32. The data group 32B is a second data group for a period after the missing part of the time series data 32.
[0024] Next, a functional configuration of the interpolation device 10 according to the present embodiment will be described with reference to Fig. 4. As shown in Fig. 4, the interpolation device 10 includes a development unit 40 and a prediction unit 42. The CPU 20 executes the interpolation program 30 to function as the development unit 40 and the prediction unit 42.
[0025] The expansion unit 40 performs multi-dimensional expansion on both the data group 32A and the data group 32B according to a plurality of periods. As an example, as shown in Fig. 5, in this embodiment, the time series data 32 has two periods, so the expansion unit 40 performs two-dimensional expansion on both the data group 32A and the data group 32B according to the two periods.
[0026] The prediction unit 42 predicts the missing portion using both the data group 32A and the data group 32B multidimensionally expanded by the expansion unit 40. The prediction unit 42 according to this embodiment predicts the missing portion by NPMR (Non-parametric Multiplicative Regression). Note that the prediction unit 42 may use a known prediction algorithm other than NPMR to predict the missing portion.
[0027] Specifically, as shown in FIG. 6, the prediction unit 42 predicts the first missing portion using the data group 32A multidimensionally expanded by the expansion unit 40, according to the following formula (1).
[0028]
number
[0029] Moreover, as shown in FIG. 6, the prediction unit 42 predicts the second missing portion using the data group 32B multidimensionally expanded by the expansion unit 40, according to the following formula (2).
[0030]
number
[0031] In addition, W in equations (1) and (2) ij is the weight and is expressed by the following equation (3).
[0032]
number
[0033] Then, the prediction unit 42 predicts the missing portion of the time series data 32 by averaging the first missing portion and the second missing portion according to the following formula (4). Note that the prediction unit 42 may predict the missing portion of the time series data 32 from the first missing portion and the second missing portion by a method other than the simple averaging, such as a weighted average.
[0034]
number
[0035] Next, the operation of the interpolation device 10 according to this embodiment will be described with reference to Fig. 7. The data interpolation process shown in Fig. 7 is executed, for example, when a command to start execution is input by a user.
[0036] 7, the expansion unit 40 performs multidimensional expansion on both the data group 32A and the data group 32B according to a plurality of periods. In step S12, the prediction unit 42 predicts the first missing portion according to formula (1) using the data group 32A that has been multidimensionally expanded in step S10.
[0037] In step S14, the prediction unit 42 predicts the second missing portion according to equation (2) using the data group 32B multidimensionally expanded in step S10. In step S16, the prediction unit 42 predicts the missing portion of the time series data 32 by averaging the first missing portion predicted in step S12 and the second missing portion predicted in step S14 according to equation (4). When the process of step S16 ends, the data interpolation process ends.
[0038] FIG. 8 shows an example of an interpolation result by the interpolation device 10 according to the present embodiment, and FIGS. 9 to 15 show an example of an interpolation result according to a comparative example. In all of FIGS. 8 to 15, the dashed lines represent correct data of the missing portion, and the solid lines in the period of the missing portion represent the interpolation result. FIG. 9 shows the interpolation result by the Last Observation Carried Forward (LOCF) method. FIG. 10 shows the interpolation result by the mean value substitution method. FIG. 11 shows the interpolation result by the median value substitution method. FIG. 12 shows the interpolation result by the linear interpolation method. FIG. 13 shows the interpolation result by the spline interpolation method. FIG. 14 shows the interpolation result by the moving average interpolation method. FIG. 15 shows the interpolation result by the Kalman smoothing interpolation method.
[0039] In this embodiment, time series data 32 having multiple periods and missing parts is multidimensionally expanded according to the multiple periods, and the missing parts are predicted. Therefore, the missing parts are interpolated while maintaining the periodic structure of the time series data 32. In contrast, in the comparative example, the missing parts are interpolated without maintaining the periodic structure of the time series data 32. Therefore, according to this embodiment, the missing parts of the time series data 32 can be interpolated with high accuracy.
[0040] In the above embodiment, the expansion unit 40 performs multidimensional expansion on both the data group 32A and the data group 32B according to a plurality of periods, but the disclosed technology is not limited to this example. The expansion unit 40 may perform multidimensional expansion on either the data group 32A or the data group 32B according to a plurality of periods. In this case, the prediction unit 42 predicts the missing portion using either the data group 32A or the data group 32B multidimensionally expanded by the expansion unit 40.
[0041] In the above embodiment, the functional units of the interpolation device 10 that execute various processes may be realized by a processor other than a CPU. Examples of the processor in this case include a PLD (Programmable Logic Device) such as an FPGA (Field-Programmable Gate Array) whose circuit configuration can be changed after manufacture, and a dedicated electric circuit such as an ASIC (Application Specific Integrated Circuit) that is a processor having a circuit configuration designed exclusively for executing a specific process. Each functional unit of the interpolation device 10 may be realized by one of these various processors, or may be realized by a combination of two or more processors of the same or different types (e.g., a plurality of FPGAs, and a combination of a CPU and an FPGA). More specifically, the hardware structure of these various processors is an electric circuit that combines circuit elements such as semiconductor elements.
[0042] In the above embodiment, the interpolation program 30 is stored (installed) in advance in the ROM 21, but the present invention is not limited to this. The interpolation program 30 may be provided in a form recorded on a recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD-ROM (Digital Versatile Disc Read Only Memory), or a USB (Universal Serial Bus) memory. The interpolation program 30 may be downloaded from an external device via a network. [Explanation of symbols]
[0043] 10 Interpolator 20 CPU 21 ROM 22 RAM 23 Communication I / F 24 Input Devices 25 Display device 27 Bus 30 Interpolation Program 32 Time Series Data 32A Data Group 32B Data Group 40 Development Section 42 Prediction Department
Claims
1. an expansion unit that performs multidimensional expansion on at least one of a first data group in a period before a missing portion of time-series data having a plurality of different periods and a missing portion and a second data group in a period after the missing portion of the time-series data according to the plurality of periods; a prediction unit that predicts the missing portion using at least one of the first data group and the second data group that have been multidimensionally expanded by the expansion unit; An interpolator including:
2. The expansion unit expands both the first data group and the second data group into a multi-dimensional form, The prediction unit predicts the missing portion by using both the first data group and the second data group multidimensionally expanded by the expansion unit.
2. The interpolation device according to claim 1.
3. The prediction unit predicts a first missing portion by using the first data group multidimensionally expanded by the expansion unit, predicting a second missing portion using the second data group multidimensionally expanded by the expansion unit; Predicting the missing portion by averaging the first missing portion and the second missing portion.
3. The interpolation device according to claim 2.
4. The prediction unit predicts the missing portion by NPMR. An interpolation device according to any one of claims 1 to 3.
5. performing multidimensional expansion on at least one of a first data group in a period before the missing portion of time-series data having a plurality of different periods and a missing portion and a second data group in a period after the missing portion of the time-series data according to the plurality of periods; The missing portion is predicted using at least one of the first data group and the second data group that have been multidimensionally expanded. A computer-implemented method of interpolation.
6. performing multidimensional expansion on at least one of a first data group in a period before the missing portion of time-series data having a plurality of different periods and a missing portion and a second data group in a period after the missing portion of the time-series data according to the plurality of periods; The missing portion is predicted using at least one of the first data group and the second data group that have been multidimensionally expanded. An interpolation program for causing a computer to carry out the processing.
Citation Information
Patent Citations
Data interpolation processing method, data interpolation processing apparatus, program, learning processing device and prediction processing device
JP2022079868A
