[go: up one dir, main page]

JP6571027B2 - Data storage device and data storage program - Google Patents

Data storage device and data storage program Download PDF

Info

Publication number
JP6571027B2
JP6571027B2 JP2016043226A JP2016043226A JP6571027B2 JP 6571027 B2 JP6571027 B2 JP 6571027B2 JP 2016043226 A JP2016043226 A JP 2016043226A JP 2016043226 A JP2016043226 A JP 2016043226A JP 6571027 B2 JP6571027 B2 JP 6571027B2
Authority
JP
Japan
Prior art keywords
data
amount
storage
unit
sensor
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
JP2016043226A
Other languages
Japanese (ja)
Other versions
JP2017161973A (en
Inventor
貴成 和田
貴成 和田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Information Network Corp
Original Assignee
Mitsubishi Electric Information Network Corp
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 Mitsubishi Electric Information Network Corp filed Critical Mitsubishi Electric Information Network Corp
Priority to JP2016043226A priority Critical patent/JP6571027B2/en
Publication of JP2017161973A publication Critical patent/JP2017161973A/en
Application granted granted Critical
Publication of JP6571027B2 publication Critical patent/JP6571027B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Recording Measured Values (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

この発明は、センサから取得されたデータをストレージに格納する技術に関する。   The present invention relates to a technique for storing data acquired from a sensor in a storage.

1つ以上のセンサから取得されたデータをストレージに格納しておき、後にストレージに格納されたデータを用いて分析を行う場合がある。多くの場合、分析の精度を高くするため、センサから取得されたデータが全てそのままストレージに格納される。   In some cases, data acquired from one or more sensors is stored in a storage, and later analysis is performed using the data stored in the storage. In many cases, in order to increase the accuracy of the analysis, all data acquired from the sensor is stored in the storage as it is.

特開2015−28742号公報JP 2015-28742 A

センサから取得されたデータが全てそのままストレージに格納されれば、分析の精度が高くなる可能性がある。しかし、ストレージに格納されるデータ量が多くなってしまう。
この発明は、分析の精度を維持しつつ、ストレージに格納されるデータ量を減らすことを目的とする。
If all the data acquired from the sensor is stored as it is in the storage, the accuracy of the analysis may increase. However, the amount of data stored in the storage increases.
An object of the present invention is to reduce the amount of data stored in a storage while maintaining the accuracy of analysis.

この発明に係るデータ格納装置は、
センサからデータを受信する受信部と、
分析に必要なデータ量である必要量を特定する必要量特定部と、
前記必要量特定部によって特定された必要量と前記受信部によって基準期間に受信されたデータのデータ量である受信量とからデータの抽出間隔を特定し、前記受信部によって受信されたデータから、特定された抽出間隔でデータを抽出して、ストレージに格納する格納部と
を備える。
A data storage device according to the present invention includes:
A receiver for receiving data from the sensor;
A required quantity identifying unit that identifies the required quantity, which is the amount of data necessary for analysis,
Specify the data extraction interval from the required amount specified by the required amount specifying unit and the received amount which is the data amount of data received in the reference period by the receiving unit, and from the data received by the receiving unit, A storage unit that extracts data at the specified extraction interval and stores the data in a storage;

前記必要量特定部は、前記ストレージに格納されたデータを入力として分析を行った場合に、指定された分析精度が得られるデータ量を前記必要量として特定する。   The required amount specifying unit specifies, as the required amount, a data amount that provides a specified analysis accuracy when an analysis is performed using data stored in the storage as an input.

前記必要量特定部は、指定された分析精度が得られるデータ量を分析手法毎に特定し、分析手法毎に特定されたデータ量のうち、最も多いデータ量を前記必要量として特定する
The required amount specifying unit specifies a data amount for which the specified analysis accuracy is obtained for each analysis method, and specifies the largest data amount as the required amount among the data amounts specified for each analysis method.

前記必要量特定部は、更新期間が経過した場合と、分析手法が追加された場合と、分析手法が削除された場合と、指定された分析精度が変更された場合とに、前記必要量を特定し直す。   The required amount specifying unit calculates the required amount when an update period has elapsed, when an analysis method is added, when an analysis method is deleted, and when a specified analysis accuracy is changed. Re-identify.

前記格納部は、前記更新期間中に前記必要量が増加した場合には、前記更新期間の開始時点から前記必要量が特定し直された時点までの過去期間については、増加した前記必要量で特定された前記抽出間隔により抽出された件数になるようにストレージに格納されたデータを補間して得られたデータを格納する。   When the required amount increases during the update period, the storage unit is configured to increase the required amount for a past period from the start of the update period to the time when the required amount is specified again. Data obtained by interpolating the data stored in the storage so as to be the number of cases extracted by the specified extraction interval is stored.

前記データ格納装置は、さらに、
前記データの形式が正しいか否か判定する形式判定部を備え、
前記格納部は、前記形式判定部によって正しいと判定されたデータから、抽出間隔でデータを抽出して、ストレージに格納する。
The data storage device further includes:
A format determination unit for determining whether the format of the data is correct;
The storage unit extracts data from the data determined to be correct by the format determination unit at an extraction interval and stores the data in the storage.

前記データには、取得元のセンサのセンサIDが含まれ、
前記データ格納装置は、さらに、
センサの識別情報であるセンサIDを1つ以上記憶したセンサ記憶部と、
前記センサ記憶部に記憶されたセンサIDに、前記受信部が受信したデータに含まれるセンサIDがあるか否か判定するセンサ判定部と
を備え、
前記格納部は、前記センサ判定部にあると判定されたデータから、抽出間隔でデータを抽出して、ストレージに格納する。
The data includes the sensor ID of the source sensor,
The data storage device further includes:
A sensor storage unit that stores one or more sensor IDs that are sensor identification information;
A sensor determination unit that determines whether or not the sensor ID stored in the sensor storage unit includes a sensor ID included in the data received by the reception unit;
The storage unit extracts data from the data determined to be in the sensor determination unit at an extraction interval and stores the data in the storage.

前記格納部は、前記受信部によって受信されたデータを一時記憶部に格納し、前記一時記憶部に基準量のデータが蓄積されると、前記一時記憶部から前記抽出間隔でデータを抽出して、ストレージに格納する。   The storage unit stores data received by the receiving unit in a temporary storage unit, and when a reference amount of data is accumulated in the temporary storage unit, the data is extracted from the temporary storage unit at the extraction interval. Store in storage.

この発明に係るデータ格納プログラムは、
センサからデータを受信する受信処理と、
分析に必要なデータ量である必要量を特定する必要量特定処理と、
前記必要量特定処理によって特定された必要量と前記受信処理によって基準期間に受信されたデータのデータ量である受信量とからデータの抽出間隔を特定し、前記受信処理によって受信されたデータから、特定された抽出間隔でデータを抽出して、ストレージに格納する格納処理と
をコンピュータに実行させる。
A data storage program according to the present invention includes:
A receiving process for receiving data from the sensor;
A required amount specifying process for specifying a required amount, which is the amount of data necessary for analysis,
Specify the data extraction interval from the required amount specified by the required amount specifying process and the received amount that is the data amount of data received in the reference period by the receiving process, and from the data received by the receiving process, Data is extracted at the specified extraction interval and stored in the storage.

この発明では、データの分析に必要な必要量からデータの抽出間隔が特定され、抽出間隔でデータが抽出されてストレージに格納される。そのため、分析の精度を維持しつつ、ストレージに格納されるデータ量を減らすことができる。   In this invention, the data extraction interval is specified from the necessary amount necessary for data analysis, and the data is extracted at the extraction interval and stored in the storage. Therefore, the amount of data stored in the storage can be reduced while maintaining the accuracy of analysis.

実施の形態1に係るデータ格納装置10の構成図。1 is a configuration diagram of a data storage device 10 according to Embodiment 1. FIG. 実施の形態1に係る収集条件記憶部121が記憶するデータの説明図。Explanatory drawing of the data which the collection condition memory | storage part 121 which concerns on Embodiment 1 memorize | stores. 実施の形態1に係る分析精度記憶部122が記憶するデータの説明図。Explanatory drawing of the data which the analysis precision memory | storage part 122 which concerns on Embodiment 1 memorize | stores. 実施の形態1に係るセンサ記憶部123が記憶するデータの説明図。Explanatory drawing of the data which the sensor memory | storage part 123 which concerns on Embodiment 1 memorize | stores. 実施の形態1に係るストレージ32に格納されるデータの説明図。FIG. 3 is an explanatory diagram of data stored in a storage 32 according to the first embodiment. 実施の形態1に係るデータ格納装置10の全体的な動作を示すフローチャート。3 is a flowchart showing an overall operation of the data storage device 10 according to the first embodiment. 実施の形態1に係る必要量の特定タイミングの説明図。Explanatory drawing of the specific timing of the required amount which concerns on Embodiment 1. FIG. 実施の形態1に係るステップS1の必要量特定処理を示すフローチャート。5 is a flowchart showing a necessary amount specifying process in step S1 according to the first embodiment. 実施の形態1に係る結果精度の説明図。Explanatory drawing of the result precision which concerns on Embodiment 1. FIG. 実施の形態1に係るステップS8のデータ格納処理を示すフローチャート。5 is a flowchart showing data storage processing in step S8 according to the first embodiment. 実施の形態1に係る更新期間の途中で必要量が増加した場合の説明図。Explanatory drawing when a required amount increases in the middle of the update period which concerns on Embodiment 1. FIG. 変形例1に係るデータ補間の説明図。Explanatory drawing of the data interpolation which concerns on the modification 1. FIG. 変形例4に係る対象量の特定処理を示すフローチャート。10 is a flowchart showing a target amount specifying process according to Modification 4; 変形例5に係るデータ格納装置10の構成図。The block diagram of the data storage apparatus 10 which concerns on the modification 5. FIG.

実施の形態1.
***構成の説明***
図1から図5を参照して、実施の形態1に係るデータ格納装置10の構成を説明する。
図1に示すように、データ格納装置10は、コンピュータである。
データ格納装置10は、プロセッサ11と、記憶装置12と、入力インタフェース13と、出力インタフェース14とのハードウェアを備える。プロセッサ11は、信号線を介して他のハードウェアと接続され、これら他のハードウェアを制御する。
Embodiment 1 FIG.
*** Explanation of configuration ***
The configuration of the data storage device 10 according to the first embodiment will be described with reference to FIGS. 1 to 5.
As shown in FIG. 1, the data storage device 10 is a computer.
The data storage device 10 includes hardware of a processor 11, a storage device 12, an input interface 13, and an output interface 14. The processor 11 is connected to other hardware via a signal line, and controls these other hardware.

プロセッサ11は、プロセッシングを行うIC(Integrated Circuit)である。プロセッサ11は、具体的には、CPU(Central Processing Unit)、DSP(Digital Signal Processor)、GPU(Graphics Processing Unit)である。   The processor 11 is an IC (Integrated Circuit) that performs processing. Specifically, the processor 11 is a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or a GPU (Graphics Processing Unit).

記憶装置12は、RAM(Random Access Memory)、HDD(Hard Disk Drive)である。また、記憶装置12は、SD(Secure Digital)メモリカード、CF(CompactFlash)、NANDフラッシュ、フレキシブルディスク、光ディスク、コンパクトディスク、ブルーレイ(登録商標)ディスク、DVDといった可搬記憶媒体であってもよい。   The storage device 12 is a RAM (Random Access Memory) or an HDD (Hard Disk Drive). The storage device 12 may be a portable storage medium such as an SD (Secure Digital) memory card, a CF (Compact Flash), a NAND flash, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) disk, or a DVD.

入力インタフェース13は、1つ以上のセンサ31が接続され、センサ31からデータを受信するための装置である。入力インタフェース13は、具体例としては、USB(Universal Serial Bus)、IEEE1394の接続端子、又は、NIC(Network Interface Card)である。   The input interface 13 is a device that is connected to one or more sensors 31 and receives data from the sensors 31. As a specific example, the input interface 13 is a USB (Universal Serial Bus), a connection terminal of IEEE1394, or a NIC (Network Interface Card).

出力インタフェース14は、ストレージ32が接続され、データをストレージ32に送信するための装置である。出力インタフェース14は、具体例としては、USB、IEEE1394の接続端子、又は、NICである。   The output interface 14 is a device that is connected to the storage 32 and transmits data to the storage 32. As a specific example, the output interface 14 is a connection terminal of USB or IEEE1394, or a NIC.

データ格納装置10は、機能構成要素として、必要量特定部21と、受信部22と、形式判定部23と、センサ判定部24と、格納部25とを備える。必要量特定部21と、受信部22と、形式判定部23と、センサ判定部24と、格納部25との各部の機能はソフトウェアにより実現される。
記憶装置12には、データ格納装置10の各部の機能を実現するプログラムが記憶されている。このプログラムは、プロセッサ11により読み込まれ、実行される。これにより、データ格納装置10の各部の機能が実現される。
The data storage device 10 includes a necessary amount specifying unit 21, a receiving unit 22, a format determining unit 23, a sensor determining unit 24, and a storing unit 25 as functional components. The functions of the necessary amount specifying unit 21, the receiving unit 22, the format determining unit 23, the sensor determining unit 24, and the storage unit 25 are realized by software.
The storage device 12 stores a program that realizes the functions of the respective units of the data storage device 10. This program is read and executed by the processor 11. Thereby, the function of each part of the data storage device 10 is realized.

プロセッサ11によって実現される各部の機能の処理の結果を示す情報とデータと信号値と変数値は、記憶装置12、又は、プロセッサ11内のレジスタ又はキャッシュメモリに記憶される。以下の説明では、プロセッサ11によって実現される各部の機能の処理の結果を示す情報とデータと信号値と変数値は、記憶装置12に記憶されるものとして説明する。   Information, data, signal values, and variable values indicating the processing results of the functions of the respective units realized by the processor 11 are stored in the storage device 12 or in a register or cache memory in the processor 11. In the following description, it is assumed that information, data, signal values, and variable values indicating the processing results of the functions of the respective units realized by the processor 11 are stored in the storage device 12.

プロセッサ11によって実現される各機能を実現するプログラムは、記憶装置12に記憶されているとした。しかし、このプログラムは、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ブルーレイ(登録商標)ディスク、DVDといった可搬記憶媒体に記憶されてもよい。   It is assumed that a program for realizing each function realized by the processor 11 is stored in the storage device 12. However, this program may be stored in a portable storage medium such as a magnetic disk, a flexible disk, an optical disk, a compact disk, a Blu-ray (registered trademark) disk, or a DVD.

図1では、プロセッサ11は、1つだけ示されていた。しかし、プロセッサ11は、複数であってもよく、複数のプロセッサ11が、各機能を実現するプログラムを連携して実行してもよい。   In FIG. 1, only one processor 11 is shown. However, a plurality of processors 11 may be provided, and a plurality of processors 11 may execute programs that realize each function in cooperation with each other.

記憶装置12は、収集条件記憶部121と、分析精度記憶部122と、センサ記憶部123と、一時記憶部124とを実現する。   The storage device 12 implements a collection condition storage unit 121, an analysis accuracy storage unit 122, a sensor storage unit 123, and a temporary storage unit 124.

収集条件記憶部121は、データを収集する条件が記憶される。
図2に示すように、収集条件記憶部121は、データ収集間隔と、正常列数とが記憶される。データ収集間隔は、センサ31からデータを受信する間隔である。正常列数は、センサ31から受信したデータの正常な項目数である。正常列数は、センサ31毎に定められていてもよい。
The collection condition storage unit 121 stores conditions for collecting data.
As shown in FIG. 2, the collection condition storage unit 121 stores a data collection interval and the number of normal columns. The data collection interval is an interval for receiving data from the sensor 31. The normal column number is the number of normal items of data received from the sensor 31. The number of normal rows may be determined for each sensor 31.

分析精度記憶部122は、センサ31から収集されたデータを用いた分析の精度が記憶される。
図3に示すように、分析精度記憶部122は、分析方法毎に、分析精度と、許容範囲と、データ量と、総計収束時間と、試行回数と、精度遷移と、データ量遷移と、入力データとが記憶される。分析精度は、対応する分析方法で求められる精度である。許容範囲は、分析精度が示す精度の前後何パーセントであれば許容されるかを示す。データ量は、分析精度が示す精度の分析をするのに必要なデータ量である。総計収束時間は、データ量を計算するのにかかった時間である。試行回数は、データ量を計算する際に分析処理が実行された回数である。精度遷移は、分析処理で得られた精度の遷移である。データ量遷移は、分析処理で使用したデータ量の遷移である。入力データは、分析処理で使用した学習用データ33の識別子である。
The analysis accuracy storage unit 122 stores the accuracy of analysis using the data collected from the sensor 31.
As shown in FIG. 3, the analysis accuracy storage unit 122 inputs, for each analysis method, analysis accuracy, tolerance, data amount, total convergence time, number of trials, accuracy transition, data amount transition, and input. Data is stored. The analysis accuracy is the accuracy required by the corresponding analysis method. The allowable range indicates what percentage is acceptable before and after the accuracy indicated by the analysis accuracy. The amount of data is the amount of data necessary for analyzing the accuracy indicated by the analysis accuracy. The total convergence time is the time taken to calculate the amount of data. The number of trials is the number of times analysis processing has been performed when calculating the data amount. The precision transition is a precision transition obtained by the analysis process. The data amount transition is a transition of the data amount used in the analysis process. The input data is an identifier of the learning data 33 used in the analysis process.

センサ記憶部123は、センサ31についての情報が記憶される。
図4に示すように、センサ記憶部123は、データ格納装置10に接続されたセンサ31毎に、センサグループ、優先順位、センサID、施設名称、機器名称、型番が記憶される。センサグループは、1つ以上のセンサ31の集合に付された名称である。優先順位は、センサグループ内における優先順位である。センサIDは、センサ31の識別子である。施設名称は、センサ31が設置された施設の名称である。機器名称は、センサ31の種別を表す名称であり、具体例としては、温度センサ、湿度センサ、圧力センサである。型番は、センサ31の型番である。
The sensor storage unit 123 stores information about the sensor 31.
As illustrated in FIG. 4, the sensor storage unit 123 stores a sensor group, a priority order, a sensor ID, a facility name, a device name, and a model number for each sensor 31 connected to the data storage device 10. The sensor group is a name given to a set of one or more sensors 31. The priority order is a priority order within the sensor group. The sensor ID is an identifier of the sensor 31. The facility name is the name of the facility where the sensor 31 is installed. The device name is a name indicating the type of the sensor 31, and specific examples include a temperature sensor, a humidity sensor, and a pressure sensor. The model number is the model number of the sensor 31.

一時記憶部124は、データ格納装置10で処理中のデータが一時的に記憶される。   The temporary storage unit 124 temporarily stores data being processed by the data storage device 10.

センサ31は、検出値を検出して、検出値を含むデータを、収集条件記憶部121に記憶された間隔でデータ格納装置10に送信する。検出値は、具体例としては、温度、湿度、圧力である。   The sensor 31 detects the detection value and transmits data including the detection value to the data storage device 10 at intervals stored in the collection condition storage unit 121. Specific examples of the detected value include temperature, humidity, and pressure.

ストレージ32は、センサ31で検出されたデータのうち、データ格納装置10によって抽出された少なくとも一部のデータが格納される。
図5に示すように、ストレージ32は、更新期間毎にデータが分けられて格納される。更新期間毎に分けられたデータの集合を学習用データ33と呼ぶ。実施の形態1では、更新期間は、月初から月末までの1か月であるとする。そのため、例えば、2015年12月の学習用データ33、2016年1月の学習用データ33、2016年2月の学習用データ33というように、ストレージ32は月毎の学習用データ33が格納される。
The storage 32 stores at least a part of the data extracted by the data storage device 10 among the data detected by the sensor 31.
As shown in FIG. 5, the storage 32 stores data separately for each update period. A set of data divided for each update period is referred to as learning data 33. In Embodiment 1, it is assumed that the update period is one month from the beginning of the month to the end of the month. Therefore, for example, the learning data 33 for each month is stored in the storage 32 such as the learning data 33 for December 2015, the learning data 33 for January 2016, and the learning data 33 for February 2016. The

***動作の説明***
図6から図10を参照して、実施の形態1に係るデータ格納装置10の動作を説明する。
実施の形態1に係るデータ格納装置10の動作は、実施の形態1に係るデータ格納方法に相当する。また、実施の形態1に係るデータ格納装置10の動作は、実施の形態1に係るデータ格納プログラムの処理に相当する。
*** Explanation of operation ***
The operation of the data storage device 10 according to the first embodiment will be described with reference to FIGS.
The operation of the data storage device 10 according to the first embodiment corresponds to the data storage method according to the first embodiment. The operation of the data storage device 10 according to the first embodiment corresponds to the processing of the data storage program according to the first embodiment.

図6を参照して、実施の形態1に係るデータ格納装置10の全体的な動作を説明する。
ステップS1の必要量特定処理では、必要量特定部21は、分析に必要なデータ量である必要量を特定する。分析に必要なデータ量とは、指定された分析精度が得られるデータ量という意味である。
具体的には、必要量特定部21は、分析精度記憶部122に記憶された各分析方法を対象方法とし、ストレージに格納されたデータを入力として対象方法で分析する。これにより、必要量特定部21は、対象方法について分析精度記憶部122に記憶された分析精度が得られるデータ量を特定する。そして、必要量特定部21は、分析方法毎に特定されたデータ量のうち、最も多いデータ量を必要量として特定する。
With reference to FIG. 6, the overall operation of the data storage apparatus 10 according to the first embodiment will be described.
In the required amount specifying process of step S1, the required amount specifying unit 21 specifies a required amount that is a data amount necessary for analysis. The amount of data necessary for analysis means the amount of data that provides the specified analysis accuracy.
Specifically, the necessary amount specifying unit 21 uses each analysis method stored in the analysis accuracy storage unit 122 as a target method, and analyzes the data stored in the storage by using the target method. As a result, the necessary amount specifying unit 21 specifies the amount of data from which the analysis accuracy stored in the analysis accuracy storage unit 122 for the target method can be obtained. And the required amount specific | specification part 21 specifies the largest data amount as a required amount among the data amounts specified for every analysis method.

ステップS2のデータ受信処理では、受信部22は、収集条件記憶部121に記憶されたデータ収集間隔で、センサ31からデータを受信する。   In the data reception process of step S <b> 2, the reception unit 22 receives data from the sensor 31 at the data collection interval stored in the collection condition storage unit 121.

ステップS3の形式判定処理では、形式判定部23は、ステップS2で受信されたデータの形式が正しいか否かを判定する。
具体的には、形式判定部23は、データを項目毎に分解して、データに含まれる項目数を特定する。そして、形式判定部23は、特定された項目数と、収集条件記憶部121に記憶された正常列数とが一致するか否かを判定する。形式判定部23は、一致した場合にはデータの形式が正しいと判定し、一致しない場合にはデータの形式が正しくないと判定する。つまり、形式判定部23は、通信中にデータの一部が欠落したような場合には、データの形式が正しくないと判定する。
形式判定部23は、データの形式が正しい場合には処理をステップS4に進め、そうでない場合には、処理をステップS6に進める。
In the format determination process in step S3, the format determination unit 23 determines whether the format of the data received in step S2 is correct.
Specifically, the format determination unit 23 decomposes the data for each item and specifies the number of items included in the data. Then, the format determination unit 23 determines whether or not the specified number of items matches the number of normal columns stored in the collection condition storage unit 121. The format determination unit 23 determines that the data format is correct if they match, and determines that the data format is incorrect if they do not match. That is, the format determination unit 23 determines that the data format is not correct when a part of the data is lost during communication.
If the data format is correct, the format determination unit 23 proceeds to step S4. If not, the format determination unit 23 proceeds to step S6.

ステップS4のセンサ判定処理では、センサ判定部24は、ステップS2で受信されたデータが指定されたセンサ31から送信されたデータか否かを判定する。
具体的には、センサ判定部24は、ステップS2で受信されたデータに含まれるセンサIDが、センサ記憶部123に記憶されており、かつ、ステップS2で受信されたデータに含まれるセンサIDについての優先順位が1であるか否かを判定する。センサ判定部24は、センサIDが記憶されており、優先順位が1である場合には、データが指定されたセンサ31から送信されたと判定し、そうでない場合、データが指定されたセンサ31以外から送信されたと判定する。
センサ判定部24は、データが指定されたセンサ31から送信された場合には、処理をステップS5に進め、そうでない場合には、処理をステップS6に進める。
In the sensor determination process in step S4, the sensor determination unit 24 determines whether the data received in step S2 is data transmitted from the designated sensor 31.
Specifically, the sensor determination unit 24 stores the sensor ID included in the data received in step S2 in the sensor storage unit 123 and the sensor ID included in the data received in step S2. It is determined whether or not the priority order is 1. When the sensor ID is stored and the priority is 1, the sensor determination unit 24 determines that the data is transmitted from the specified sensor 31. Otherwise, the sensor determination unit 24 is other than the sensor 31 for which the data is specified. It is determined that it was transmitted from.
The sensor determination unit 24 advances the process to step S5 when data is transmitted from the designated sensor 31, and advances the process to step S6 if not.

ステップS5の一時記憶処理では、格納部25は、ステップS2で受信されたデータを一時記憶部124に格納する。一方、ステップS6のデータ破棄処理では、格納部25は、ステップS1で受信されたデータを破棄する。   In the temporary storage process of step S5, the storage unit 25 stores the data received in step S2 in the temporary storage unit 124. On the other hand, in the data discarding process in step S6, the storage unit 25 discards the data received in step S1.

ステップS7の容量判定処理では、格納部25は、一時記憶部124に記憶されたデータ量が基準量以上であるか否かを判定する。基準量は、事前に設定されたデータ量であり、任意のデータ量である。
格納部25は、データ量が基準量以上である場合には処理をステップS8に進め、そうでない場合には処理をステップS2に戻す。
In the capacity determination process in step S7, the storage unit 25 determines whether or not the amount of data stored in the temporary storage unit 124 is greater than or equal to the reference amount. The reference amount is a data amount set in advance, and is an arbitrary data amount.
If the data amount is greater than or equal to the reference amount, the storage unit 25 advances the process to step S8, and otherwise returns the process to step S2.

ステップS8のデータ格納処理では、格納部25は、ステップS1で特定された必要量と、ステップS2で基準期間に受信されたデータのデータ量である受信量とから、更新期間に必要量のデータが抽出されるデータの抽出間隔を特定する。
そして、格納部25は、一時記憶部124から1件ずつ受信時刻の順にデータを読み出し、抽出間隔でデータを抽出して、ストレージ32に格納する。この際、格納部25は、更新期間毎にデータを分けてストレージ32に格納する。具体例としては、格納部25は、更新期間毎に別のテーブル又はファイルにデータを格納する、あるいは、更新期間毎に別の識別子を付けてデータを格納する。なお、格納部25は、読み出されたデータのうち、抽出されなかったデータについては、破棄する。
In the data storage process in step S8, the storage unit 25 uses the necessary amount specified in step S1 and the received amount that is the data amount of the data received in the reference period in step S2, to store the necessary amount of data in the update period. The extraction interval of the data from which is extracted is specified.
Then, the storage unit 25 reads the data from the temporary storage unit 124 one by one in the order of the reception time, extracts the data at the extraction interval, and stores it in the storage 32. At this time, the storage unit 25 stores the data in the storage 32 separately for each update period. As a specific example, the storage unit 25 stores data in a separate table or file for each update period, or stores data with a different identifier for each update period. The storage unit 25 discards data that has not been extracted from the read data.

ステップS9の必要量判定処理では、必要量特定部21は、必要量の再特定が必要か否かを判定する。
具体的には、必要量特定部21は、(1)更新期間を経過した場合、(2)分析精度記憶部122にレコードが追加され、分析手法が追加された場合、(3)分析精度記憶部122からレコードが削除され、分析手法が削除された場合、(4)指定された分析精度が変更された場合のいずれかに該当するか否かを判定する。そして、必要量特定部21は、(1)から(4)のいずれかに該当する場合には、必要量の再特定が必要であると判定し、そうでない場合には、必要量の再特定が必要ないと判定する。
つまり、図7に示すように、(0)図6に示す処理の開始時に必要量が特定された後は、(1)により更新期間毎に必要量が再特定されるとともに、(2)から(4)により、更新期間中に必要量が再特定される場合がある。
必要量特定部21は、必要量の再特定が必要な場合には処理をステップS1に戻し、そうでない場合には処理をステップS2に戻す。
In the necessary amount determination process in step S9, the necessary amount specifying unit 21 determines whether or not re-specification of the necessary amount is necessary.
Specifically, the necessary amount specifying unit 21 (1) when the update period has elapsed, (2) when a record is added to the analysis accuracy storage unit 122 and an analysis method is added, (3) analysis accuracy storage When the record is deleted from the part 122 and the analysis technique is deleted, it is determined whether or not (4) any of the cases where the designated analysis accuracy is changed. Then, the necessary amount specifying unit 21 determines that re-specification of the necessary amount is necessary if any of (1) to (4) is applicable, and if not, re-identifies the necessary amount. Is determined to be unnecessary.
That is, as shown in FIG. 7, (0) after the required amount is specified at the start of the process shown in FIG. 6, the required amount is re-specified for each update period by (1), and from (2) Due to (4), the required amount may be re-specified during the update period.
The necessary amount specifying unit 21 returns the process to step S1 if re-specification of the required amount is necessary, and returns the process to step S2 otherwise.

図8を参照して、ステップS1の必要量特定処理を説明する。
必要量特定処理について、図7に示す(0)から(4)の5つの場合についてそれぞれ説明する。
With reference to FIG. 8, the required amount specifying process in step S1 will be described.
The required amount specifying process will be described for each of the five cases (0) to (4) shown in FIG.

(0)図6に示す処理の開始時
前提として、図6に示す処理の開示時には、ストレージ32に学習用データ33が1つ格納されているとする。この学習用データ33は、具体例としては、直近の更新期間にセンサ31から送信された全てのデータである。あるいは、この学習用データ33は、直近の更新期間にセンサ31から送信された全てのデータのうち、ステップS3で形式が正しいと判定され、かつ、ステップS4で指定されたセンサ31から送信されたと判定されるデータでもよい。あるいは、この学習用データ33は、別途生成されたテストデータであってもよい。
(0) At the start of the process shown in FIG. 6 As a premise, it is assumed that one learning data 33 is stored in the storage 32 when the process shown in FIG. 6 is disclosed. The learning data 33 is, as a specific example, all data transmitted from the sensor 31 during the most recent update period. Alternatively, the learning data 33 is determined to be correct in step S3 among all data transmitted from the sensor 31 during the most recent update period, and transmitted from the sensor 31 designated in step S4. Data to be determined may be used. Alternatively, the learning data 33 may be test data generated separately.

ステップS11では、必要量特定部21は、ストレージ32に格納された学習用データ33を読み出す。そして、必要量特定部21は、読み出された学習用データ33から対象量のデータを抽出する。対象量の初期値は、事前に設定されているものとする。   In step S <b> 11, the necessary amount specifying unit 21 reads the learning data 33 stored in the storage 32. Then, the necessary amount specifying unit 21 extracts target amount data from the read learning data 33. It is assumed that the initial value of the target amount is set in advance.

ステップS12では、必要量特定部21は、分析精度記憶部122に記憶された1つの分析手法を対象方法として、抽出されたデータを用いて対象方法により分析する。   In step S <b> 12, the necessary amount specifying unit 21 uses one extracted analysis method stored in the analysis accuracy storage unit 122 as a target method and analyzes the extracted data using the target method.

ステップS13では、必要量特定部21は、分析した結果の分析精度である結果精度と、対象方法について分析精度記憶部122に記憶された分析精度とを比較する。
分析精度記憶部122に記憶された分析精度を基準として許容範囲内に結果精度が入っていれば、必要量特定部21は、現在の対象量を対象方法に対するデータ量として分析精度記憶部122に書き込み、処理をステップS14に進める。
一方、許容範囲内に結果精度が入っていなければ、必要量特定部21は、対象量を変更して、処理をステップS11に戻す。この際、必要量特定部21は、分析精度記憶部122に記憶された分析精度よりも結果精度が低い場合には対象量を増やし、分析精度記憶部122に記憶された分析精度よりも結果精度が高い場合には対象量を減らす。
In step S <b> 13, the necessary amount specifying unit 21 compares the result accuracy, which is the analysis accuracy of the analysis result, with the analysis accuracy stored in the analysis accuracy storage unit 122 for the target method.
If the result accuracy is within the allowable range based on the analysis accuracy stored in the analysis accuracy storage unit 122, the required amount specifying unit 21 stores the current target amount as the data amount for the target method in the analysis accuracy storage unit 122. The writing and processing are advanced to step S14.
On the other hand, if the result accuracy is not within the allowable range, the required amount specifying unit 21 changes the target amount and returns the process to step S11. At this time, the required amount specifying unit 21 increases the target amount when the result accuracy is lower than the analysis accuracy stored in the analysis accuracy storage unit 122, and the result accuracy is higher than the analysis accuracy stored in the analysis accuracy storage unit 122. If is high, reduce the target amount.

ステップS14では、必要量特定部21は、分析精度記憶部122に未処理の分析方法が記憶されているか否かを判定する。
必要量特定部21は、未処理の分析方法が記憶されている場合には、処理をステップS12に戻し、未処理の分析方法が記憶されていない場合には、処理をステップS15に進める。
In step S <b> 14, the necessary amount specifying unit 21 determines whether an unprocessed analysis method is stored in the analysis accuracy storage unit 122.
If the unprocessed analysis method is stored, the required amount specifying unit 21 returns the process to step S12. If the unprocessed analysis method is not stored, the necessary amount specifying unit 21 proceeds with the process to step S15.

ステップS15では、必要量特定部21は、ステップS13で各分析方法について分析精度記憶部122に書き込まれたデータ量のうち、最も多いデータ量を必要量として特定する。   In step S15, the required amount specifying unit 21 specifies the largest data amount as the required amount among the data amounts written in the analysis accuracy storage unit 122 for each analysis method in step S13.

図3を参照して具体例を説明する。
対象量の初期値を15MB(メガバイト)とする(図3のデータ量遷移欄参照)。ステップS11で、必要量特定部21は、学習用データ33から15MBのデータを抽出する。ステップS12で、必要量特定部21は、分析手法“ニューラルネットワーク”を対象方法として、15MBのデータを入力として分析する。その結果、結果精度が20%であったとする(図3の精度遷移欄参照)。すると、分析手法“ニューラルネットワーク”の分析精度80%を基準として許容範囲±5%内に入っていない。そのため、必要量特定部21は、対象量を倍の30MBに増やして処理をステップS11に戻す(図3のデータ量遷移欄参照)。
A specific example will be described with reference to FIG.
The initial value of the target amount is 15 MB (megabytes) (see the data amount transition column in FIG. 3). In step S <b> 11, the necessary amount specifying unit 21 extracts 15 MB of data from the learning data 33. In step S12, the necessary amount specifying unit 21 analyzes the 15 MB data as an input using the analysis method “neural network” as a target method. As a result, the result accuracy is assumed to be 20% (see the accuracy transition column in FIG. 3). Then, the analysis technique “neural network” does not fall within the allowable range of ± 5% based on the analysis accuracy of 80%. Therefore, the necessary amount specifying unit 21 increases the target amount to 30 MB, and returns the process to step S11 (see the data amount transition column in FIG. 3).

次に、必要量特定部21は、ステップS11で学習用データ33から30MBのデータを抽出する。ステップS12で、必要量特定部21は、分析手法“ニューラルネットワーク”を対象方法として、30MBのデータを入力として分析する。その結果、結果精度が40%であったとする(図3の精度遷移欄参照)。すると、分析精度80%を基準として許容範囲±5%内に入っていない。そのため、必要量特定部21は、対象量を倍の60MBに増やして処理をステップS11に戻す(図3のデータ量遷移欄参照)。   Next, the required amount specifying unit 21 extracts 30 MB of data from the learning data 33 in step S11. In step S12, the necessary amount specifying unit 21 analyzes the 30-MB data as an input using the analysis method “neural network” as a target method. As a result, it is assumed that the result accuracy is 40% (see the accuracy transition column in FIG. 3). Then, it is not within the allowable range ± 5% based on the analysis accuracy of 80%. Therefore, the necessary amount specifying unit 21 increases the target amount to double 60 MB and returns the process to step S11 (see the data amount transition column in FIG. 3).

同様の処理を実行すると、対象量が60MBの場合には結果精度が60%となり、分析精度80%を基準として許容範囲±5%内に入っていないので、対象量が120MBに増やされる。対象量が120MBの場合に、結果精度が90%となる。この場合、分析精度80%を基準として許容範囲±5%内に入っていないが、初めて結果精度が分析精度80%よりも高くなる。そこで、必要量特定部21は、対象量を100MBに減らして処理をステップS11に戻す(図3のデータ量遷移欄参照)。ここで、対象量が60MBから120MBに増やされた際、結果精度が60%から90%に変化した。そこで、対象量である100MBは、対象量の変化と結果精度の変化とが正比例するものとして計算された、結果精度が80%になる場合のデータ量である。具体的には、100MB=60MB+((120MB−60MB)/(90%−60%)×(80%−60%))である。
対象量が100MBの場合には結果精度が80%となり、分析精度80%を基準として許容範囲±5%内に入っている。そのため、ステップS13で、必要量特定部21は、対象量である100MBを分析手法“ニューラルネットワーク”についてのデータ量として分析精度記憶部122に書き込む。
When the same processing is executed, the result accuracy is 60% when the target amount is 60 MB, and the target amount is increased to 120 MB because it is not within the allowable range ± 5% with reference to the analysis accuracy of 80%. When the target amount is 120 MB, the result accuracy is 90%. In this case, the analysis accuracy is not within the allowable range of ± 5% based on the analysis accuracy of 80%, but the result accuracy is higher than the analysis accuracy of 80% for the first time. Therefore, the necessary amount specifying unit 21 reduces the target amount to 100 MB and returns the process to step S11 (see the data amount transition column in FIG. 3). Here, when the target amount was increased from 60 MB to 120 MB, the result accuracy changed from 60% to 90%. Therefore, the target amount of 100 MB is a data amount when the result accuracy is 80%, which is calculated on the assumption that the change in the target amount is directly proportional to the change in the result accuracy. Specifically, 100 MB = 60 MB + ((120 MB−60 MB) / (90% −60%) × (80% −60%)).
When the target amount is 100 MB, the accuracy of the result is 80%, which is within the allowable range ± 5% based on the analysis accuracy of 80%. Therefore, in step S13, the necessary amount specifying unit 21 writes the target amount of 100 MB in the analysis accuracy storage unit 122 as the data amount for the analysis method “neural network”.

次に、ステップS14で分析精度記憶部122に未処理の分析方法が記憶されているため、処理がステップS12に戻される。そして、ステップS12で必要量特定部21は、分析手法“ベイジアンネットワーク”を対象方法として、対象量である100MBのデータを入力として分析する。その結果、結果精度が75%であったとする(図3の精度遷移欄参照)。すると、分析手法“ベイジアンネットワーク”の分析精度70%を基準として許容範囲±5%内に入っている。そのため、ステップS13で、必要量特定部21は、対象量である100MBを分析手法“ベイジアンネットワーク”についてのデータ量として分析精度記憶部122に書き込む。   Next, since an unprocessed analysis method is stored in the analysis accuracy storage unit 122 in step S14, the process returns to step S12. Then, in step S12, the necessary amount specifying unit 21 uses the analysis method “Bayesian network” as an object method, and analyzes 100 MB of data that is the object amount as input. As a result, the result accuracy is assumed to be 75% (see the accuracy transition column in FIG. 3). Then, the analysis accuracy of the Bayesian network is 70% within the allowable range ± 5% with reference to the analysis accuracy of 70%. Therefore, in step S <b> 13, the necessary amount specifying unit 21 writes the target amount of 100 MB in the analysis accuracy storage unit 122 as the data amount for the analysis technique “Bayesian network”.

同様に、分析手法“ランダムフォレスト”について処理が実行され、データ量として200MBが書き込まれる。   Similarly, processing is executed for the analysis technique “random forest”, and 200 MB is written as the data amount.

そして、ステップS15で必要量特定部21は、各分析手法について分析精度記憶部122に書き込まれたデータ量のうち、最も多いデータ量である200MBを必要量として特定する。   Then, in step S15, the required amount specifying unit 21 specifies 200 MB, which is the largest data amount among the data amounts written in the analysis accuracy storage unit 122 for each analysis method, as the required amount.

(1)更新期間を経過した場合
(1)更新期間を経過した場合は、最新の学習用データ33が使用される点が、(0)図6に示す処理の開始時と異なる。つまり、ステップS11で必要量特定部21は、ストレージ32に格納された学習用データ33のうち、最新の学習用データ33を読み出す。以降の処理は、(0)図6に示す処理の開始時と同じである。
(1) When the update period has passed (1) When the update period has passed, the point that the latest learning data 33 is used is different from (0) when the process shown in FIG. 6 is started. That is, in step S <b> 11, the necessary amount specifying unit 21 reads the latest learning data 33 among the learning data 33 stored in the storage 32. The subsequent processing is the same as (0) at the start of the processing shown in FIG.

(2)分析精度記憶部122にレコードが追加された場合
追加されたレコードの分析方法だけを処理対象として、ステップS11からステップS14が実行される点が、(1)更新期間を経過した場合と異なる。つまり、ステップS12で対象方法とされるのは、追加されたレコードの分析方法だけである。そして、ステップS15では、分析精度記憶部122に記憶された全ての分析方法を対象として、最も多いデータ量が必要量として特定される。
(2) When a record is added to the analysis accuracy storage unit 122 The point that steps S11 to S14 are executed only for the analysis method of the added record is the processing target. (1) When the update period has passed Different. That is, only the analysis method of the added record is set as the target method in step S12. In step S15, the largest amount of data is specified as the required amount for all analysis methods stored in the analysis accuracy storage unit 122.

(3)分析精度記憶部122からレコードが削除された場合
ステップS11からステップS14を実行せず、ステップS15で残っているレコードの分析方法を対象として、最も多いデータ量が必要量として特定される。
(3) When a record is deleted from the analysis accuracy storage unit 122 Steps S11 to S14 are not executed, and the largest amount of data is specified as the required amount for the analysis method of the remaining record in step S15. .

(4)指定された分析精度が変更された場合
分析精度が変更されたレコードの分析方法だけを処理対象として、ステップS11からステップS14が実行される点が、(1)更新期間を経過した場合と異なる。つまり、ステップS12で対象方法とされるのは、分析精度が変更されたレコードの分析方法だけである。そして、ステップS15では、分析精度記憶部122に記憶された全ての分析方法を対象として、最も多いデータ量が必要量として特定される。
(4) When the designated analysis accuracy is changed The point that steps S11 to S14 are executed only for the analysis method of the record whose analysis accuracy has been changed is the processing target. And different. That is, only the analysis method of the record whose analysis accuracy is changed is set as the target method in step S12. In step S15, the largest amount of data is specified as the required amount for all analysis methods stored in the analysis accuracy storage unit 122.

なお、ステップS11で必要量特定部21は、学習用データ33に含まれるデータ量が対象量よりも少ない場合には、1つ古い学習用データ33も用いる。   In step S <b> 11, when the amount of data included in the learning data 33 is smaller than the target amount, the necessary amount specifying unit 21 also uses the old learning data 33.

ステップS13で用いる結果精度について補足する。
結果精度を計算するために、必要量特定部21は、正解データを事前に用意しておき、分析した結果と正解データとを比較することにより結果精度を計算する。
具体例としては、(0)図6に示す処理の開始時に用いる学習用データ33の一部を正解データ34とする。例えば、(0)図6に示す処理の開始時に用いる学習用データ33が1月間にセンサ31から送信された全てのデータである場合に、学習用データ33のうちの1日分のデータを正解データ34とする。
ステップS12で必要量特定部21は、分析を行い1日分の分析値を計算する。そして、ステップS13で必要量特定部21は、同じ時刻についての分析値と正解データ34の値とを比較して、一致率を計算する。必要量特定部21は計算された一致率を結果精度とする。
例えば、図9に示すように、正解データ34として、a1〜a15の値が与えられ、分析値としてb1〜b15の値が得られたとする。このとき、必要量特定部21は、a1とb1、a2とb2というように、同じ時刻の値どうしを比較する。そして、必要量特定部21は、分析値の値が、比較される正解データ34の値を基準として基準範囲内に入っていれば、分析値の値と正解データ34の値とが一致するとして、一致率を計算する。例えば、a2−(0.1×a2)≦b2≦a2+(0.1×a2)であれば、分析値b2は、正解データ34の値と一致すると判定される。
分析によって、学習用データ33の値が補間されるような場合には、正解データ34と比較される対象から、学習用データ33に含まれていた値を除外してもよい。図9において、分析値のうち、黒塗りで示された点は学習用データ33に含まれていた値を示すとする。この場合、残りの白抜きで示された点であるb2,b4,b6,...についてのみ、同じ時刻の正解データ34の値と比較して、一致率が計算される。
It supplements about the result precision used by step S13.
In order to calculate the result accuracy, the necessary amount specifying unit 21 prepares correct data in advance, and calculates the result accuracy by comparing the analyzed result with the correct data.
As a specific example, (0) a part of the learning data 33 used at the start of the process shown in FIG. For example, (0) When the learning data 33 used at the start of the process shown in FIG. 6 is all data transmitted from the sensor 31 in one month, the data for one day of the learning data 33 is correct. Data 34 is assumed.
In step S12, the necessary amount specifying unit 21 performs an analysis and calculates an analysis value for one day. Then, in step S13, the necessary amount specifying unit 21 compares the analysis value for the same time with the value of the correct answer data 34, and calculates the coincidence rate. The necessary amount specifying unit 21 uses the calculated coincidence rate as the result accuracy.
For example, as shown in FIG. 9, it is assumed that the values a1 to a15 are given as the correct answer data 34 and the values b1 to b15 are obtained as analysis values. At this time, the necessary amount specifying unit 21 compares values at the same time such as a1 and b1 and a2 and b2. Then, if the value of the analysis value is within the reference range based on the value of the correct answer data 34 to be compared, the necessary amount specifying unit 21 determines that the value of the analysis value matches the value of the correct answer data 34. , Calculate the match rate. For example, if a2− (0.1 × a2) ≦ b2 ≦ a2 + (0.1 × a2), it is determined that the analysis value b2 matches the value of the correct answer data 34.
When the value of the learning data 33 is interpolated by the analysis, the value included in the learning data 33 may be excluded from the objects to be compared with the correct answer data 34. In FIG. 9, it is assumed that the points shown in black among the analysis values indicate values included in the learning data 33. In this case, b2, b4, b6,. . . Only for, the matching rate is calculated by comparing with the value of the correct answer data 34 at the same time.

図10を参照して、ステップS8のデータ格納処理を説明する。
ステップS81では、格納部25は、後述するステップS82の処理で抽出間隔を特定した後に、ステップS1で必要量が特定されたか否かを判定する。
格納部25は、必要量が特定された場合には処理をステップS82に進め、必要量が特定されていない場合には処理をステップS83に進める。
With reference to FIG. 10, the data storage processing in step S8 will be described.
In step S81, the storage unit 25 determines whether or not the necessary amount has been specified in step S1, after specifying the extraction interval in the process of step S82 described later.
The storage unit 25 advances the process to step S82 when the required amount is specified, and advances the process to step S83 when the required amount is not specified.

ステップS82では、格納部25は、更新期間に必要量のデータが均等に抽出されるようにするためのデータの抽出間隔を特定する。データが均等に抽出されるようにするのは、ある時期又はある時間帯等に偏ったデータでは、分析精度が低くなってしまう場合と、ある用途にしか利用できない場合とがあるためである。
具体的には、格納部25は、ステップS1で特定された必要量を、更新期間を基準期間で除した値で除して、基準期間当たりの必要量を計算する。また、格納部25は、基準期間当たりに受信部22によって受信される平均的なデータ量を計算する。ここでは、格納部25は、指定されたセンサ31の数と、データの収集間隔から特定される基準期間当たりに1つのセンサ31から収集されるデータ数と、1件のデータの平均データ量とを乗じて、平均的なデータ量を計算する。
そして、格納部25は、1つのセンサ31から収集されるデータ数を、平均的なデータ量を必要量で除した値で除して、基準期間当たりに1つのセンサ31から抽出するデータ数を計算する。格納部25は、基準期間当たりに1つのセンサ31から収集されるデータ数を、計算されたデータ数で除して抽出間隔を計算する。
In step S <b> 82, the storage unit 25 specifies a data extraction interval so that a necessary amount of data is evenly extracted during the update period. The reason why the data is evenly extracted is that there is a case where the analysis accuracy is low for data biased at a certain time period or a certain time zone, and the data can be used only for a certain purpose.
Specifically, the storage unit 25 calculates the necessary amount per reference period by dividing the necessary amount specified in step S1 by a value obtained by dividing the update period by the reference period. In addition, the storage unit 25 calculates an average amount of data received by the receiving unit 22 per reference period. Here, the storage unit 25 stores the number of designated sensors 31, the number of data collected from one sensor 31 per reference period specified from the data collection interval, and the average data amount of one piece of data. Multiply to calculate the average amount of data.
Then, the storage unit 25 divides the number of data collected from one sensor 31 by a value obtained by dividing the average data amount by the necessary amount, and determines the number of data extracted from one sensor 31 per reference period. calculate. The storage unit 25 calculates the extraction interval by dividing the number of data collected from one sensor 31 per reference period by the calculated number of data.

具体例としては、基準期間を1分とする。また、1分当たりの必要量が10MBであるとする。また、指定されたセンサ31の数が1000であり、1分当たりに1つのセンサ31から収集されるデータ数が61件であり、1つのデータの平均データ量が512B(バイト)であるとする。すると、1分当たりに受信部22が受信する平均的なデータ量は29.7MBとなり、基準期間当たりに1つのセンサ31から抽出するデータ数は、61件/(29.7MB/10MB)=20.54件になる。そして、抽出間隔は、61件/20.54件=2.97件となる。
つまり、各センサ31から収集されたデータについて、2.97≒3件に1件ずつデータを抽出すれば、更新期間に必要量のデータがストレージ32に格納されることになる。
As a specific example, the reference period is 1 minute. Also, assume that the required amount per minute is 10 MB. Further, it is assumed that the number of designated sensors 31 is 1000, the number of data collected from one sensor 31 per minute is 61, and the average data amount of one data is 512 B (bytes). . Then, the average amount of data received by the receiving unit 22 per minute is 29.7 MB, and the number of data extracted from one sensor 31 per reference period is 61 cases / (29.7 MB / 10 MB) = 20. 54. The extraction interval is 61 cases / 20.54 cases = 2.97 cases.
In other words, if data collected from each sensor 31 is extracted for every 2.97≈3, a necessary amount of data is stored in the storage 32 during the update period.

ステップS83では、格納部25は、一時記憶部124から収集された順に1件のデータを読み出す。   In step S <b> 83, the storage unit 25 reads one piece of data in the order collected from the temporary storage unit 124.

ステップS84では、格納部25は、カウンタの値が抽出間隔と等しいか否かを判定する。なお、抽出間隔は、正の整数であるとする。
格納部25は、カウンタの値が抽出間隔と等しければ処理をステップS85に進め、カウンタの値が抽出間隔と等しくなければ処理をステップS86に進める。なお、カウンタの値の初期値は0とする。
In step S84, the storage unit 25 determines whether or not the counter value is equal to the extraction interval. Note that the extraction interval is a positive integer.
The storage unit 25 advances the process to step S85 if the counter value is equal to the extraction interval, and advances the process to step S86 if the counter value is not equal to the extraction interval. The initial value of the counter is 0.

ステップS85では、格納部25は、カウンタの値を0にした上で、読み出されたデータを保持しておく。一方、ステップS86では、格納部25は、カウンタの値に1を加算した上で、読み出されたデータを破棄する。
そして、ステップS87では、格納部25は、一時記憶部124に未処理のデータがあるか否か判定する。格納部25は、未処理のデータがあれば、処理をステップS83に戻し、なければ、処理をステップS88に進める。
In step S85, the storage unit 25 sets the value of the counter to 0 and holds the read data. On the other hand, in step S86, the storage unit 25 adds 1 to the counter value and discards the read data.
In step S <b> 87, the storage unit 25 determines whether there is unprocessed data in the temporary storage unit 124. If there is unprocessed data, the storage unit 25 returns the process to step S83; otherwise, the process proceeds to step S88.

ステップS88では、格納部25は、保持されたデータを、収集元のセンサ31毎に分けて、圧縮した上でストレージ32に格納する。また、格納部25は、一時記憶部124のデータを削除する。   In step S <b> 88, the storage unit 25 divides the held data for each collection source sensor 31, compresses it, and stores it in the storage 32. In addition, the storage unit 25 deletes the data in the temporary storage unit 124.

***実施の形態1の効果***
以上のように、実施の形態1に係るデータ格納装置10は、データの分析に必要な必要量からデータの抽出間隔を特定して、特定された抽出間隔でデータを抽出してストレージ32に格納する。これにより、分析の精度を維持しつつ、ストレージ32に格納されるデータ量を減らすことができる。
*** Effects of Embodiment 1 ***
As described above, the data storage device 10 according to the first embodiment specifies the data extraction interval from the necessary amount necessary for data analysis, extracts the data at the specified extraction interval, and stores the data in the storage 32. To do. As a result, the amount of data stored in the storage 32 can be reduced while maintaining the accuracy of analysis.

また、実施の形態1に係るデータ格納装置10は、データの形式を確認し、形式が正しいデータのみをストレージ32に格納する。そのため、通信エラー等によりデータの一部が欠落し、分析に利用できないデータをストレージ32に格納することを防止できる。これにより、ストレージ32に不要なデータが格納されることを防止できる。   In addition, the data storage device 10 according to the first embodiment checks the data format and stores only the data in the correct format in the storage 32. Therefore, it is possible to prevent the storage 32 from storing data that is partially lost due to a communication error or the like and cannot be used for analysis. Thereby, unnecessary data can be prevented from being stored in the storage 32.

また、実施の形態1に係るデータ格納装置10は、指定されたセンサ31から収集されたデータのみをストレージ32に格納する。そのため、バックアップ用として同様のセンサ31を複数稼働させている場合に、重複してデータをストレージ32に格納することを防止できる。   Further, the data storage device 10 according to the first embodiment stores only the data collected from the designated sensor 31 in the storage 32. Therefore, it is possible to prevent duplicate data from being stored in the storage 32 when a plurality of similar sensors 31 are operated for backup.

***他の構成***   *** Other configurations ***

<変形例1>
更新期間の途中で必要量が増加し、抽出間隔が再特定される場合がある。この場合、単純に実施の形態1で説明した処理を続けると、その更新期間においてストレージ32に格納されるデータ量は、再特定された必要量にはならない。
図11を参照して具体的に説明する。更新期間の中間点で必要量が50MBから100MBに増えたとする。この場合、更新期間の前半は、更新期間の終了時点で50MB分のデータがストレージ32に格納されるペースでデータが抽出される。したがって、更新期間の前半には25MB分のデータがストレージ32に格納される。更新期間の後半は、前半の倍のペースでデータが抽出される。したがって、更新期間の後半には50MB分のデータがストレージ32に格納される。その結果、更新期間の終了時点で75MB分のデータがストレージ32に格納されることになる。
<Modification 1>
The required amount may increase during the update period, and the extraction interval may be re-specified. In this case, if the processing described in the first embodiment is simply continued, the amount of data stored in the storage 32 during the update period is not the re-specified required amount.
This will be specifically described with reference to FIG. Assume that the required amount increases from 50 MB to 100 MB at the midpoint of the update period. In this case, in the first half of the update period, data is extracted at a pace at which 50 MB of data is stored in the storage 32 at the end of the update period. Therefore, 25 MB of data is stored in the storage 32 in the first half of the update period. In the second half of the update period, data is extracted at twice the pace of the first half. Therefore, 50 MB of data is stored in the storage 32 in the second half of the update period. As a result, 75 MB of data is stored in the storage 32 at the end of the update period.

これでは、その更新期間については、データの分析に必要なデータ量がストレージ32に蓄積されないことになってしまう。そこで、変形例1として、格納部25は、更新期間の途中で必要量が増加した場合、更新期間の開始時点から必要量が特定し直された時点までの過去期間については、増加した必要量で特定された抽出間隔により抽出された件数になるようにストレージ32に格納されたデータを補間して等間隔に挿入する。これにより、過去期間分についてストレージ32に格納されたデータ量を増加させる。
具体的には、格納部25は、ストレージ32に格納された過去期間のデータを収集元のセンサ31毎に時系列に並べ、スプライン補間といった処理により、データ間の値を特定する。そして、格納部25は、不足する分だけデータを取り出して、別データとしてストレージ32に格納する。
図12を参照して具体的に説明する。図12では、黒塗りの点がストレージ32に格納されたデータを示し、白抜きの点が補間された点を示す。更新期間の中間点で必要量が50MBから100MBに増えたとする。この場合、更新期間の前半においてストレージ32に格納されたデータ量を倍にする必要がある。そこで、格納部25は、更新期間の前半においてストレージ32に格納されたデータを、収集元のセンサ31毎に時系列に並べ、補間することにより、データ間の値を特定する。ここでは、iを1以上の整数とすると、補間点i+0.5の値は、隣り合う2つの値i,i+1の平均値としている。そして、特定された値を示すデータをストレージ32に格納する。これにより、更新期間の前半分のデータ量が25MBから50MBになる。そのため、更新期間の後半に、前半の倍のペースでデータが抽出され50MB分のデータが抽出されれば、更新期間の終了時点で100MB分のデータがストレージ32に格納されることになる。
In this case, during the update period, the amount of data necessary for data analysis is not accumulated in the storage 32. Therefore, as a first modification, when the required amount increases in the middle of the update period, the storage unit 25 increases the required amount for the past period from the start of the update period to the time when the required amount is specified again. The data stored in the storage 32 is interpolated and inserted at equal intervals so that the number of cases extracted by the extraction interval specified in step (b) is obtained. As a result, the amount of data stored in the storage 32 for the past period is increased.
Specifically, the storage unit 25 arranges data in the past period stored in the storage 32 in time series for each collection source sensor 31, and specifies values between the data by processing such as spline interpolation. Then, the storage unit 25 extracts data for the shortage and stores it in the storage 32 as separate data.
This will be specifically described with reference to FIG. In FIG. 12, black dots indicate data stored in the storage 32, and white dots indicate points interpolated. Assume that the required amount increases from 50 MB to 100 MB at the midpoint of the update period. In this case, it is necessary to double the amount of data stored in the storage 32 in the first half of the update period. Therefore, the storage unit 25 specifies values between data by arranging the data stored in the storage 32 in the first half of the update period in time series for each collection source sensor 31 and performing interpolation. Here, when i is an integer of 1 or more, the value of the interpolation point i + 0.5 is an average value of two adjacent values i and i + 1. Then, data indicating the specified value is stored in the storage 32. As a result, the data amount of the first half of the update period is changed from 25 MB to 50 MB. Therefore, in the second half of the update period, if data is extracted at a rate twice that of the first half and 50 MB of data is extracted, 100 MB of data is stored in the storage 32 at the end of the update period.

なお、更新期間の途中で必要量が再特定された場合、更新期間の残りの期間で必要量のデータがストレージ32に格納されるように抽出間隔を特定することも考えられる。つまり、上述したように、更新期間の中間点で必要量が50MBから100MBに増えた場合であれば、更新期間の前半で25MBのデータしか格納されていないので、後半で75MBのデータが格納されるように抽出間隔を特定することも考えられる。
しかし、こうしてしまうと、ストレージ32には、後半のデータが多くなってしまい、データに偏りが生じてしまう。そのため、分析精度が高くならない可能性がある。
Note that if the required amount is re-specified during the update period, the extraction interval may be specified so that the required amount of data is stored in the storage 32 in the remaining period of the update period. In other words, as described above, if the required amount increases from 50 MB to 100 MB at the midpoint of the update period, only 25 MB of data is stored in the first half of the update period, so 75 MB of data is stored in the second half. It is also conceivable to specify the extraction interval as described above.
However, if this is done, the data in the latter half will increase in the storage 32, and the data will be biased. Therefore, there is a possibility that the analysis accuracy does not increase.

ここでは、更新期間の途中で必要量が増加した場合を説明した。更新期間の途中で必要量が減少する場合もある。この場合、単純に実施の形態1で説明した処理を続けると、ストレージ32に格納されるデータ量が多くなってしまう。しかし、データ量が少し多くなるだけで分析に必要なデータ量は確保される。そのため、単純に実施の形態1で説明した処理を続けてもよい。また、ストレージ32に格納されたその更新期間のデータを一定間隔で間引いて、ストレージ32に格納されたデータ量を減らしてもよい。   Here, the case where the required amount has increased during the update period has been described. The required amount may decrease during the renewal period. In this case, if the processing described in the first embodiment is simply continued, the amount of data stored in the storage 32 increases. However, the amount of data required for analysis is ensured only by increasing the amount of data a little. Therefore, the process described in the first embodiment may be simply continued. Further, the amount of data stored in the storage 32 may be reduced by thinning out the data of the update period stored in the storage 32 at regular intervals.

<変形例2>
実施の形態1では、形式が正しいデータをストレージ32に格納していた。しかし、通信状態等によっては、多くのデータの形式に誤りがある場合もある。その結果、必要量のデータをストレージ32に格納できなくなってしまう場合もある。
そこで、変形例2として、形式判定部23は、基準率以上のデータの形式に誤りがある場合には、同じセンサ31から前後に収集されたデータを用いて補間を行い、データ形式を整える。具体例としては、形式判定部23は、データの温度の項目が欠けていた場合、そのデータの前に収集されたデータの温度と、そのデータの後に収集されたデータの温度とから、欠けていた温度の項目の値を計算して、データ形式を整える。そして、格納部25は、データ形式が整ったデータをストレージ32に格納する対象として一時記憶部124に格納する。
<Modification 2>
In the first embodiment, data having the correct format is stored in the storage 32. However, there are cases where there are errors in the format of many data depending on the communication status. As a result, the required amount of data may not be stored in the storage 32.
Therefore, as a second modification, when there is an error in the data format equal to or higher than the reference rate, the format determination unit 23 performs interpolation using data collected before and after the same sensor 31 to adjust the data format. As a specific example, if the item of the data temperature is missing, the format determination unit 23 is missing from the temperature of the data collected before the data and the temperature of the data collected after the data. Calculate the value of the measured temperature item and arrange the data format. The storage unit 25 stores the data in the data format in the temporary storage unit 124 as a target to be stored in the storage 32.

<変形例3>
実施の形態1では、優先順位が1のセンサ31から収集されたデータをストレージ32に格納していた。しかし、優先順位が1のセンサ31が故障する場合もある。
そこで、変形例3として、受信部22は、あるセンサ31から送信されたデータを一定期間受信しない場合、そのセンサ31は故障したものとみなす。そして、そのセンサ31の優先順位を対象外にし、そのセンサ31と同じセンサグループに属する他のセンサ31の優先順位を繰り上げる。具体例としては、故障したとみなされたセンサ31の優先順位が3であれば、優先順位が4以下であった他のセンサ31の優先順位を1つずつ上げる。
これにより、優先順位が1のセンサ31が故障した場合であっても、同じセンサグループに属する他のセンサ31のデータがストレージ32に格納されるようになる。
<Modification 3>
In the first embodiment, data collected from the sensor 31 having the priority order 1 is stored in the storage 32. However, the sensor 31 with the priority order 1 may fail.
Therefore, as a third modification, when the receiving unit 22 does not receive data transmitted from a certain sensor 31 for a certain period, it is considered that the sensor 31 has failed. Then, the priority order of the sensor 31 is excluded, and the priority order of other sensors 31 belonging to the same sensor group as the sensor 31 is increased. As a specific example, if the priority order of the sensor 31 that is regarded as having failed is 3, the priority order of the other sensors 31 whose priority order is 4 or less is increased by one.
As a result, even if the sensor 31 with the priority order 1 fails, data of other sensors 31 belonging to the same sensor group is stored in the storage 32.

<変形例4>
実施の形態1では、図8のステップS13で、許容範囲内に結果精度が入っていない場合に、分析精度よりも結果精度が低い場合には対象量を増やし、分析精度よりも結果精度が高い場合には対象量を減らした。これは、入力とするデータが多いほど、分析精度が高くなるということを前提としていたためである。しかし、入力とするデータが多いほど、分析精度が高くならない場合もあり得る。
そこで、変形例4として、過去の対象量の変化と結果精度の変化とに応じて、対象量を増減させる。
<Modification 4>
In the first embodiment, when the result accuracy is not within the allowable range in step S13 of FIG. 8, the target amount is increased if the result accuracy is lower than the analysis accuracy, and the result accuracy is higher than the analysis accuracy. In some cases the target amount was reduced. This is because it was assumed that the more data to be input, the higher the analysis accuracy. However, the analysis accuracy may not increase as the input data increases.
Therefore, as a fourth modification, the target amount is increased or decreased according to the past change in the target amount and the result accuracy.

図13を参照して具体的に説明する。
ステップS131では、必要量特定部21は、分析精度よりも結果精度が低いか否かを判定する。必要量特定部21は、分析精度よりも結果精度が低い場合には処理をステップS132に進め、そうでない場合には処理をステップS135に進める。
This will be specifically described with reference to FIG.
In step S131, the required amount specifying unit 21 determines whether the result accuracy is lower than the analysis accuracy. If the result accuracy is lower than the analysis accuracy, the required amount specifying unit 21 proceeds to step S132, and otherwise proceeds to step S135.

ステップS132では、必要量特定部21は、直近に実行されたステップS11では、その前に実行されたステップS11よりも対象量を増やしたか否かを判定する。必要量特定部21は、増やした場合には処理をステップS133に進め、そうでない場合には処理をステップS134に進める。
ステップS133では、必要量特定部21は、直近に実行されたステップS12での結果精度が、その前に実行されたステップS12での結果精度よりも高いか否かを判定する。必要量特定部21は、高い場合には対象量を増加させ、そうでない場合には対象量を減少させる。
ステップS134では、必要量特定部21は、直近に実行されたステップS12での結果精度が、その前に実行されたステップS12での結果精度よりも高いか否かを判定する。必要量特定部21は、高い場合には対象量を減少させ、そうでない場合には対象量を増加させる。
In step S132, the required amount specifying unit 21 determines whether or not the target amount has been increased in step S11 executed most recently compared to step S11 executed previously. The necessary amount specifying unit 21 advances the process to step S133 if it is increased, and advances the process to step S134 if not.
In step S133, the required amount specifying unit 21 determines whether or not the result accuracy in the most recently executed step S12 is higher than the result accuracy in the previously executed step S12. The necessary amount specifying unit 21 increases the target amount when it is high, and decreases the target amount otherwise.
In step S134, the necessary amount specifying unit 21 determines whether or not the result accuracy in the most recently executed step S12 is higher than the result accuracy in the previously executed step S12. The required amount specifying unit 21 decreases the target amount when it is high, and increases the target amount otherwise.

ステップS135では、必要量特定部21は、直近に実行されたステップS11では、その前に実行されたステップS11よりも対象量を増やしたか否かを判定する。必要量特定部21は、増やした場合には処理をステップS136に進め、そうでない場合には処理をステップS137に進める。
ステップS136では、必要量特定部21は、直近に実行されたステップS12での結果精度が、その前に実行されたステップS12での結果精度よりも高いか否かを判定する。必要量特定部21は、高い場合には対象量を減少させ、そうでない場合には対象量を増加させる。
ステップS137では、必要量特定部21は、直近に実行されたステップS12での結果精度が、その前に実行されたステップS12での結果精度よりも高いか否かを判定する。必要量特定部21は、高い場合には対象量を増加させ、そうでない場合には対象量を減少させる。
In step S135, the necessary amount specifying unit 21 determines whether or not the target amount has been increased in step S11 executed most recently compared to step S11 executed previously. The necessary amount specifying unit 21 advances the process to step S136 if it is increased, and advances the process to step S137 if not.
In step S136, the necessary amount specifying unit 21 determines whether or not the result accuracy in the most recently executed step S12 is higher than the result accuracy in the previously executed step S12. The required amount specifying unit 21 decreases the target amount when it is high, and increases the target amount otherwise.
In step S137, the necessary amount specifying unit 21 determines whether or not the result accuracy in the most recently executed step S12 is higher than the result accuracy in the previously executed step S12. The necessary amount specifying unit 21 increases the target amount when it is high, and decreases the target amount otherwise.

<変形例5>
実施の形態1では、データ格納装置10の各部の機能がソフトウェアで実現された。しかし、変形例5として、データ格納装置10の各部の機能はハードウェアで実現されてもよい。この変形例5について、実施の形態1と異なる点を説明する。
<Modification 5>
In the first embodiment, the function of each unit of the data storage device 10 is realized by software. However, as a fifth modification, the function of each unit of the data storage device 10 may be realized by hardware. The fifth modification will be described with respect to differences from the first embodiment.

図14を参照して、変形例5に係るデータ格納装置10の構成を説明する。
各部の機能がハードウェアで実現される場合、データ格納装置10は、プロセッサ11と記憶装置12とに代えて、処理回路15を備える。処理回路15は、データ格納装置10の各部の機能及び記憶装置12の機能を実現する専用の電子回路である。
With reference to FIG. 14, the structure of the data storage apparatus 10 which concerns on the modification 5 is demonstrated.
When the functions of the respective units are realized by hardware, the data storage device 10 includes a processing circuit 15 instead of the processor 11 and the storage device 12. The processing circuit 15 is a dedicated electronic circuit that realizes the functions of the respective units of the data storage device 10 and the functions of the storage device 12.

処理回路15は、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ロジックIC、GA(Gate Array)、ASIC(Application Specific Integrated Circuit)、FPGA(Field−Programmable Gate Array)が想定される。
各部の機能を1つの処理回路15で実現してもよいし、各部の機能を複数の処理回路15に分散させて実現してもよい。
The processing circuit 15 is assumed to be a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a logic IC, a GA (Gate Array), an ASIC (Application Specific Integrated Circuit), or an FPGA (Field-Programmable Gate Array). Is done.
The function of each part may be realized by one processing circuit 15, or the function of each part may be realized by being distributed to a plurality of processing circuits 15.

<変形例6>
変形例6として、一部の機能がハードウェアで実現され、他の機能がソフトウェアで実現されてもよい。つまり、データ格納装置10の各部のうち、一部の機能がハードウェアで実現され、他の機能がソフトウェアで実現されてもよい。
<Modification 6>
As a sixth modification, some functions may be realized by hardware and other functions may be realized by software. That is, some of the functions of the data storage device 10 may be realized by hardware, and other functions may be realized by software.

プロセッサ11と記憶装置12と処理回路15とを、総称して「プロセッシングサーキットリー」という。つまり、各部の機能は、プロセッシングサーキットリーにより実現される。   The processor 11, the storage device 12, and the processing circuit 15 are collectively referred to as “processing circuitry”. That is, the function of each part is realized by a processing circuit.

10 データ格納装置、11 プロセッサ、12 記憶装置、121 収集条件記憶部、122 分析精度記憶部、123 センサ記憶部、124 一時記憶部、13 入力インタフェース、14 出力インタフェース、15 処理回路、21 必要量特定部、22 受信部、23 形式判定部、24 センサ判定部、25 格納部、31 センサ、32 ストレージ、33 学習用データ。   10 data storage device, 11 processor, 12 storage device, 121 collection condition storage unit, 122 analysis accuracy storage unit, 123 sensor storage unit, 124 temporary storage unit, 13 input interface, 14 output interface, 15 processing circuit, 21 required amount specification Unit, 22 receiving unit, 23 format determining unit, 24 sensor determining unit, 25 storage unit, 31 sensor, 32 storage, 33 learning data.

Claims (9)

センサからデータを受信する受信部と、
分析に必要なデータ量である必要量を特定する必要量特定部と、
前記必要量特定部によって特定された必要量と前記受信部によって基準期間に受信されたデータのデータ量である受信量とからデータの抽出間隔を特定し、前記受信部によって受信されたデータから、特定された抽出間隔でデータを抽出して、ストレージに格納する格納部と
を備えるデータ格納装置。
A receiver for receiving data from the sensor;
A required quantity identifying unit that identifies the required quantity, which is the amount of data necessary for analysis,
Specify the data extraction interval from the required amount specified by the required amount specifying unit and the received amount which is the data amount of data received in the reference period by the receiving unit, and from the data received by the receiving unit, A data storage device comprising a storage unit that extracts data at a specified extraction interval and stores the data in a storage.
前記必要量特定部は、前記ストレージに格納されたデータを入力として分析を行った場合に、指定された分析精度が得られるデータ量を前記必要量として特定する
請求項1に記載のデータ格納装置。
The data storage device according to claim 1, wherein the required amount specifying unit specifies, as the required amount, a data amount that provides a specified analysis accuracy when an analysis is performed using data stored in the storage as an input. .
前記必要量特定部は、指定された分析精度が得られるデータ量を分析手法毎に特定し、分析手法毎に特定されたデータ量のうち、最も多いデータ量を前記必要量として特定する
請求項2に記載のデータ格納装置。
The required amount specifying unit specifies a data amount for which a specified analysis accuracy is obtained for each analysis method, and specifies the largest data amount as the required amount among the data amounts specified for each analysis method. 2. The data storage device according to 2.
前記必要量特定部は、更新期間が経過した場合と、分析手法が追加された場合と、分析手法が削除された場合と、指定された分析精度が変更された場合とに、前記必要量を特定し直す
請求項3に記載のデータ格納装置。
The required amount specifying unit calculates the required amount when an update period has elapsed, when an analysis method is added, when an analysis method is deleted, and when a specified analysis accuracy is changed. The data storage device according to claim 3, wherein the data storage device is specified again.
前記格納部は、前記更新期間中に前記必要量が増加した場合には、前記更新期間の開始時点から前記必要量が特定し直された時点までの過去期間については、増加した前記必要量で特定された前記抽出間隔により抽出された件数になるようにストレージに格納されたデータを補間して得られたデータを格納する
請求項4に記載のデータ格納装置。
When the required amount increases during the update period, the storage unit is configured to increase the required amount for a past period from the start of the update period to the time when the required amount is specified again. The data storage device according to claim 4, wherein data obtained by interpolating data stored in a storage so as to be the number of cases extracted by the specified extraction interval is stored.
前記データ格納装置は、さらに、
前記データの形式が正しいか否か判定する形式判定部を備え、
前記格納部は、前記形式判定部によって正しいと判定されたデータから、抽出間隔でデータを抽出して、ストレージに格納する
請求項1から5までのいずれか1項に記載のデータ格納装置。
The data storage device further includes:
A format determination unit for determining whether the format of the data is correct;
The data storage device according to any one of claims 1 to 5, wherein the storage unit extracts data at an extraction interval from data determined to be correct by the format determination unit and stores the extracted data in a storage.
前記データには、取得元のセンサのセンサIDが含まれ、
前記データ格納装置は、さらに、
センサの識別情報であるセンサIDを1つ以上記憶したセンサ記憶部と、
前記センサ記憶部に記憶されたセンサIDに、前記受信部が受信したデータに含まれるセンサIDがあるか否か判定するセンサ判定部と
を備え、
前記格納部は、前記センサ判定部にあると判定されたデータから、抽出間隔でデータを抽出して、ストレージに格納する
請求項1から6までのいずれか1項に記載のデータ格納装置。
The data includes the sensor ID of the source sensor,
The data storage device further includes:
A sensor storage unit that stores one or more sensor IDs that are sensor identification information;
A sensor determination unit that determines whether or not the sensor ID stored in the sensor storage unit includes a sensor ID included in the data received by the reception unit;
The data storage device according to any one of claims 1 to 6, wherein the storage unit extracts data at an extraction interval from data determined to be in the sensor determination unit and stores the data in a storage.
前記格納部は、前記受信部によって受信されたデータを一時記憶部に格納し、前記一時記憶部に基準量のデータが蓄積されると、前記一時記憶部から前記抽出間隔でデータを抽出して、ストレージに格納する
請求項1から7までのいずれか1項に記載のデータ格納装置。
The storage unit stores data received by the receiving unit in a temporary storage unit, and when a reference amount of data is accumulated in the temporary storage unit, the data is extracted from the temporary storage unit at the extraction interval. The data storage device according to claim 1, wherein the data storage device is stored in a storage.
センサからデータを受信する受信処理と、
分析に必要なデータ量である必要量を特定する必要量特定処理と、
前記必要量特定処理によって特定された必要量と前記受信処理によって基準期間に受信されたデータのデータ量である受信量とからデータの抽出間隔を特定し、前記受信処理によって受信されたデータから、特定された抽出間隔でデータを抽出して、ストレージに格納する格納処理と
をコンピュータに実行させるデータ格納プログラム。
A receiving process for receiving data from the sensor;
A required amount specifying process for specifying a required amount, which is the amount of data necessary for analysis,
Specify the data extraction interval from the required amount specified by the required amount specifying process and the received amount that is the data amount of data received in the reference period by the receiving process, and from the data received by the receiving process, A data storage program for causing a computer to execute a storage process of extracting data at a specified extraction interval and storing it in a storage.
JP2016043226A 2016-03-07 2016-03-07 Data storage device and data storage program Expired - Fee Related JP6571027B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016043226A JP6571027B2 (en) 2016-03-07 2016-03-07 Data storage device and data storage program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016043226A JP6571027B2 (en) 2016-03-07 2016-03-07 Data storage device and data storage program

Publications (2)

Publication Number Publication Date
JP2017161973A JP2017161973A (en) 2017-09-14
JP6571027B2 true JP6571027B2 (en) 2019-09-04

Family

ID=59857015

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016043226A Expired - Fee Related JP6571027B2 (en) 2016-03-07 2016-03-07 Data storage device and data storage program

Country Status (1)

Country Link
JP (1) JP6571027B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7203963B2 (en) * 2019-05-15 2023-01-13 三菱電機株式会社 Information processing device, information processing system, program and information processing method
JP7328799B2 (en) * 2019-06-12 2023-08-17 株式会社日立製作所 Storage system and storage control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2010095457A1 (en) * 2009-02-20 2012-08-23 日本電気株式会社 Analysis preprocessing system, analysis preprocessing method, and analysis preprocessing program
US8478418B2 (en) * 2011-04-15 2013-07-02 Infobionic, Inc. Remote health monitoring system
US9237932B2 (en) * 2013-02-08 2016-01-19 Bahram Ghaderi Vacuum shell for robotic surgery of soft tissue
JP6149893B2 (en) * 2015-04-24 2017-06-21 カシオ計算機株式会社 Data extraction system, data extraction method, and data extraction program

Also Published As

Publication number Publication date
JP2017161973A (en) 2017-09-14

Similar Documents

Publication Publication Date Title
CN112256635B (en) Method and device for identifying file type
US11221904B2 (en) Log analysis system, log analysis method, and log analysis program
CN115033453B (en) Abnormality detection method, device, equipment, storage medium and program
CN110232095B (en) Data synchronization method, device, storage medium and server
CN114817645A (en) Time sequence data storage and reading method, device, equipment and storage medium
CN112506869B (en) File processing method, device and system
WO2018069950A1 (en) Method, system, and program for analyzing logs
CN110580220B (en) Method for measuring code segment execution time and terminal equipment
CN111475505A (en) Data acquisition method and equipment
CN108121774B (en) Data table backup method and terminal equipment
CN104317850A (en) Data processing method and device
JP6571027B2 (en) Data storage device and data storage program
CN112579327A (en) Fault detection method, device and equipment
CN110647913A (en) Abnormal data detection method and device based on clustering algorithm
CN113722302A (en) Data management method and device
JP6579995B2 (en) Still-view candidate identification device, still-view candidate identification method and still-view candidate identification program
CN109710626B (en) Data warehousing management method and device, electronic equipment and storage medium
CN104270155B (en) A kind of Manchester code stream receives anti-interference bit parsing method
CN112445835A (en) Business data processing method and device, network management server and storage medium
US10474666B2 (en) Metadata validation tool
US9690639B2 (en) Failure detecting apparatus and failure detecting method using patterns indicating occurrences of failures
CN112463564A (en) Method and device for determining correlation index influencing host state
CN115237680B (en) Distributed data recovery system and method
CN117478804A (en) Synchronization method and system based on double systems and readable storage medium
CN113992597B (en) Cable monitoring data reporting method, device, equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181002

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190724

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190730

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190807

R150 Certificate of patent or registration of utility model

Ref document number: 6571027

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees