JP5843636B2 - Time-series data inquiry device, time-series data inquiry method, and time-series data inquiry program - Google Patents
Time-series data inquiry device, time-series data inquiry method, and time-series data inquiry program Download PDFInfo
- Publication number
- JP5843636B2 JP5843636B2 JP2012019725A JP2012019725A JP5843636B2 JP 5843636 B2 JP5843636 B2 JP 5843636B2 JP 2012019725 A JP2012019725 A JP 2012019725A JP 2012019725 A JP2012019725 A JP 2012019725A JP 5843636 B2 JP5843636 B2 JP 5843636B2
- Authority
- JP
- Japan
- Prior art keywords
- time
- signal value
- sensor
- series data
- query
- 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.)
- Active
Links
Images
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、ビルやプラントなどの設備監視・保全等を目的として、設備を構成する機器に付与されたセンサー信号等の時系列データを照会する技術に関する。 The present invention relates to a technique for inquiring time-series data such as sensor signals given to devices constituting facilities for the purpose of monitoring and maintaining facilities such as buildings and plants.
ビルやプラントの設備監視・管理などの分野では、設備に付与されたセンサーが観測した信号値を所定時間毎に取得し、時系列データとしてデータベースに蓄積して、時系列データの値の変動を表示、解析することが行われている。
特許文献1には、時系列データを特性に応じて効率よくデータベースに格納し、時系列データを活用する方法について記載されている。
In the field of equipment monitoring and management of buildings and plants, signal values observed by sensors attached to equipment are acquired at predetermined intervals and accumulated in a database as time-series data, and fluctuations in the values of time-series data are detected. Display and analysis are performed.
時系列データの収集・蓄積・活用が進むにしたがって、時系列データの照会内容を示すシナリオを簡単に記述し、評価したいという課題が生じた。
特許文献2には、従来のデータベース管理システム(DBMS)で広く用いられているSQL(Structured Query Language)を拡張したCQL(Continuous Query Language)について記載されている。CQLでは、一定期間の時系列データを抽出するスライディングウインドウを導入することにより、時系列データに対する照会式を、従来のSQLのような宣言的な照会式と同様の形式で記述・評価できるようになる。
As the collection, storage, and utilization of time-series data progressed, there was a problem of simply describing and evaluating scenarios showing the contents of time-series data queries.
ビルやプラントの設備監視・管理などの分野において、時系列データのシナリオを記述する際には、設備の構成に応じて、シナリオが対象としているセンサー信号の組み合わせが異なる。そのため、数千から数万になるセンサー信号から照会に必要な信号の組み合わせを指定する手間が大きいという課題がある。
この課題を解決するための関連技術としては、非特許文献1に記載されたXML(eXtended Markup Language)データベース技術がある。XMLデータベース技術におけるXML検索言語XML−QLでは、設備の構成関係をXMLで表現することにより、照会に必要なセンサー信号の組み合わせを求めることができる。
When describing scenarios of time-series data in fields such as facility monitoring and management of buildings and plants, combinations of sensor signals targeted by the scenario differ depending on the configuration of the facility. For this reason, there is a problem that it takes a lot of time to specify a combination of signals necessary for inquiry from sensor signals that are several thousand to several tens of thousands.
As a related technique for solving this problem, there is an XML (eXtended Markup Language) database technique described in Non-Patent
CQLやXML−QLでは、設備構成に依存して決まる信号の組み合わせに対して、異なる時刻に観測された信号値を用いた制約条件を有する照会を記述できない。
本発明は、設備構成に依存して決まる信号の組み合わせと、異なる時刻に観測された信号値を用いた制約条件を有する照会を可能とすることを目的とする。
In CQL or XML-QL, a query having a constraint condition using signal values observed at different times cannot be described for a combination of signals determined depending on the equipment configuration.
An object of the present invention is to enable a query having a constraint condition using a combination of signals determined depending on the equipment configuration and signal values observed at different times.
この発明に係る時系列データ照会装置は、
センサーが時間の経過に従って順次観測した信号値である時系列データに対して、照会を行う時系列データ照会装置であり、
前記センサーが観測した信号値が、観測した時刻毎に記憶された第1信号値記憶装置に対する照会内容を示す照会式であって、時刻tの第1信号値と、前記時刻tのx時間前の第2信号値とを用いた制約条件が規定された照会式を入力する照会式入力部と、
前記照会式入力部が入力した照会式に規定された制約条件中の第1信号値と第2信号値とを前記第1信号値記憶装置から読み出し、時刻tにおける前記第1信号値と時刻tのx時間前における前記第2信号値とを時刻tにおける信号値として第2信号記憶装置に記憶する時間正規化部と、
前記時間正規化部が前記第2信号記憶装置に記憶した信号値を用いて、前記照会式に規定された制約条件から時刻の情報を除いた照会式の結果を取得する結果取得部と
を備えることを特徴とする。
The time-series data inquiry device according to the present invention is:
It is a time-series data inquiry device that makes inquiries for time-series data that are signal values observed sequentially by the sensor over time,
The signal value observed by the sensor is a query expression indicating a query content to the first signal value storage device stored at each observed time, and the first signal value at time t and x hours before time t An inquiry expression input unit for inputting an inquiry expression in which a constraint condition is defined using the second signal value of
The first signal value and the second signal value in the constraint condition defined in the query expression input by the query expression input unit are read from the first signal value storage device, and the first signal value at time t and the time t A time normalization unit for storing the second signal value x hours before the second signal storage device as a signal value at time t;
A result obtaining unit that obtains a result of a query expression obtained by removing time information from a constraint condition defined in the query expression using a signal value stored in the second signal storage device by the time normalization unit; It is characterized by that.
この発明に係る時系列データ照会装置では、制約条件に規定されたセンサー信号の時間のずれを正規化した上で、照会式の結果を取得する。そのため、異なる時刻に観測された信号値を用いた制約条件を有する照会をすることができる。 In the time-series data inquiry device according to the present invention, the time difference of the sensor signal defined in the constraint condition is normalized, and the result of the inquiry expression is acquired. Therefore, it is possible to make a query having a constraint condition using signal values observed at different times.
実施の形態1.
図1は、実施の形態1に係る時系列データ照会装置100の構成図である。
時系列データ照会装置100は、複数のセンサーが時間の経過に従って順次観測した信号値である時系列データに対して、時間に依存した制約条件を含む照会を行う。
時系列データ照会装置100は、照会式入力部101、機器構成情報記憶装置102、変数具体化部103、第1時系列データ記憶装置104、第2時系列データ記憶装置105、時間正規化部106、充足時間記憶装置107、結果取得部108を備える。
FIG. 1 is a configuration diagram of a time-series
The time-series
The time series
照会式入力部101は、時系列データに対する照会式を入力装置により入力する。
照会式には、時間に依存した制約条件が含まれる。制約条件は、センサーIDを特定するセンサー変数等を用いて記述された1つ以上の部分制約式と、部分制約式を継続して所定時間満たすことを条件とする継続時間制約式とから構成されている。少なくとも1つ部分制約式は、参照する時刻の異なるセンサー変数を用いて記述されている。
The query
The query expression includes time dependent constraints. The constraint condition is composed of one or more partial constraint expressions described using sensor variables or the like that specify the sensor ID, and a continuous time constraint expression that satisfies the condition that the partial constraint expression is continuously satisfied for a predetermined time. ing. At least one partial constraint equation is described using sensor variables with different reference times.
機器構成情報記憶装置102は、センサーが設置された機器の構成を示す機器構成情報を記憶した記憶装置である。
The device configuration
変数具体化部103は、機器構成情報記憶装置102に記憶された機器構成情報に基づき、照会式入力部101が入力した照会式のセンサー変数に具体的なセンサーIDを割当て、具体化した照会式を処理装置により生成する。
1つのセンサー変数が複数のセンサーIDを特定する場合、変数具体化部103は、1つの照会式から複数の具体化した照会式を出力する。
Based on the device configuration information stored in the device configuration
When one sensor variable specifies a plurality of sensor IDs, the variable materializing
第1時系列データ記憶装置104は、複数のセンサーが時間の経過に従って順次観測した信号値である時系列データを記憶した記憶装置である。第1時系列データ記憶装置104に記憶された時系列データが、照会式による照会の対象となる時系列データである。
The first time-series
第2時系列データ記憶装置105は、照会式の評価に必要な信号値等を記憶するための記憶装置である。
The second time-series
時間正規化部106は、変数具体化部103が具体化した照会式における制約条件に含まれるセンサーIDの信号値を抽出し、抽出した信号値について、参照する時刻のずれを処理装置により正規化して、第2時系列データ記憶装置105に格納する。
The
充足時間記憶装置107は、各部分制約式を充足する時刻を示す時間情報等を記憶するための記憶装置である。
The satisfaction
結果取得部108は、第2時系列データ記憶装置105に記憶されたデータと、具体化された照会式とを用いて、照会式を評価した結果を取得する。
結果取得部108は、部分制約式評価部109、時間制約処理部110、部分制約関係処理部111を備える。
The
The
部分制約式評価部109は、第2時系列データ記憶装置105に記憶されたデータを用いて、各部分制約式について処理装置により評価し、各部分制約式を評価した結果を充足時間記憶装置107に格納する。
The partial constraint
時間制約処理部110は、部分制約式評価部109により充足時間記憶装置107に格納されたデータを用いて、継続時間制約式を処理装置により評価し、結果を充足時間記憶装置107に格納する。
The time
部分制約関係処理部111は、時間制約処理部110により充足時間記憶装置107に格納されたデータを用いて、各部分制約式及び継続時間制約式の時間関係の制約を処理装置により評価し、照会式の結果を取得する。
The partial constraint
図2は、機器構成情報記憶装置102が記憶する機器構成情報の概念図である。図2では、一例として、ビルの空調機器の接続関係を表現している。
図2における矢印は、機器の親子関係を表現している。例えば、「外調機1は、空調機1_1の親である」ことを表現している。また、四角枠の中の点は、四角枠の機器に設置されたセンサーの種別を示している。例えば、可変定量風量装置VAV1_1_1は、温度と湿度のセンサーが設置されていることを表現している。
なお、図2では、木構造としているが、電気設備のように機器の接続関係がグラフ構造となっていてもよい。
FIG. 2 is a conceptual diagram of device configuration information stored in the device configuration
The arrows in FIG. 2 represent the parent-child relationship of devices. For example, “the
In FIG. 2, the tree structure is used, but the connection relationship between the devices may be a graph structure like an electrical facility.
図3は、機器構成情報をXML形式で表現した例を示す図である。図3では、図2に示す機器構成情報をXML形式で表現している。
図3のXMLのタグは、機器を表現しており、タグ名は機器の種別を表現している。タグのid属性は値として機器IDが設定され、その他の属性はセンサーの種別を表現しており、値としてセンサーIDが設定される。また、XMLのタグの入れ子関係により、機器の親子関係を表現している。具体的には、図3の符号301、302、303、304は、図2の符号201、202、203、204に対応している。
なお、機器構成情報における機器の接続関係がグラフ構造である場合は、RDF(Resource Description Framework)を用いて表現することができる。
FIG. 3 is a diagram illustrating an example in which the device configuration information is expressed in the XML format. In FIG. 3, the device configuration information shown in FIG. 2 is expressed in XML format.
The XML tag in FIG. 3 represents a device, and the tag name represents the type of device. The id attribute of the tag is set with a device ID as a value, the other attributes express the type of the sensor, and the sensor ID is set as a value. Further, the parent-child relationship of the devices is expressed by the nested relationship of XML tags. Specifically,
In addition, when the connection relationship of the apparatus in apparatus structure information is a graph structure, it can represent using RDF (Resource Description Framework).
図4は、照会式の例を示す図である。
照会式401は、ビル設備のセンサーにより観測された時系列データに対する照会式の例である。
照会式401は、部分制約式406,407,408の全てを満たす状態が、継続時間制約式409が規定する時間(2分)以上継続する場合に、その開始時刻と、その開始時刻における外調機の状態、空調機の温度、可変定量風量装置VAVの1分前の温度を、空調機毎に求めよということを表している。
なお、部分制約式406,407,408は、「空調機の親の外調機の状態が運転中であり(部分制約式406)」、かつ、「空調機の温度よりも、空調機の子である可変定量風量装置(VAV)の1分前の温度の平均が大きい(部分制約式407)」、かつ、「開始時刻が2010/07/01 00:00:00から2010/07/01 00:02:00の間である(部分制約式408)」ことを表す。
FIG. 4 is a diagram illustrating an example of a query expression.
A
When the state satisfying all of the
The
照会式401の解釈について、図3の機器構成情報の表現に即して説明する。
Foreach句402における『Foreach X:空調機』は、「設備の種別が空調機である機器毎に、照会式を評価すること」を表現している。ここで、Xは機器変数であり、Xには、空調機の機器IDが割り当てられる。
The interpretation of the
“Foreach X: air conditioner” in the
SELECT句403における「SELECT t,Y1,Y2,Y3」は、照会式の評価結果として出力するデータ項目名を指定している。SQLやCQLとの違いは、データ項目名に変数を指定している点である。なお、Y1,Y2、Y3は部分制約式406,407において定義されている。
“SELECT t, Y1, Y2, Y3” in the
FROM句404は、照会式の評価対象となるデータが記憶された記憶装置を指定している。ここでは、機器構成情報記憶装置102と第1時系列データ記憶装置104とが指定されている。
The FROM
WHERE句405は、制約条件を表現した制約式である。制約条件には、制約式として、部分制約式406,407,408と、継続時間制約式409とが含まれている。
部分制約式406は、「空調機の親の外調機の状態が運転中である」ことを意味する。部分制約式406を構成するパス式411は、「タグXの親タグでタグ名が外調機(種別が外調機)の属性「状態」が示すセンサーIDの時刻tの信号値」を意味する。
部分制約式407は、「空調機の温度よりも、空調機の子である可変定量風量装置(VAV)の1分前の温度の平均が大きい」ことを意味する。部分制約式407を構成するパス式412は、「タグXの属性「温度」が示すセンサーIDの時刻tの信号値」を意味する。また、パス式413は、「タグXの子タグでタグ名がVAVである機器における属性「温度」が示すセンサーの1分前の信号値の平均」を意味する。
部分制約式408は、「時刻tが2010/07/01 00:00:00から2010/07/01 00:02:00の間である」ことを意味する。
継続時間制約式409は、「部分制約式406,407,408をANDで結んだ制約式410がある時刻から2分間満たされる際の開始時刻の集合」を意味する。
なお、制約式における時刻tを基準時刻と呼ぶ。tに対する和や差は、基準時刻に対する時間のずれを表現している。例えば、パス式412におけるVAV.温度(t−00:01:00)は、基準時刻の1分間前に観測された温度を意味する。
The WHERE
The
The
The
The
The time t in the constraint equation is referred to as a reference time. The sum and difference with respect to t express a time lag relative to the reference time. For example, VAV. The temperature (t-00: 01: 00) means a temperature observed one minute before the reference time.
部分制約式や継続時間制約式をAND,OR,NOTで結合して得られる式も制約式である。制約式のAND,OR,NOTは、それぞれの部分制約式を満たす時刻の集合の積集合、和集合、補集合として定義される。制約式の意味を時刻の集合とすることにより、時間制約を含む制約式の論理演算を矛盾なく定義できるようになる。 Expressions obtained by combining partial constraint expressions and duration constraint expressions with AND, OR, and NOT are also constraint expressions. The constraint expressions AND, OR, and NOT are defined as a product set, union set, and complement set of sets of times satisfying the respective partial constraint expressions. By defining the meaning of the constraint expression as a set of times, the logical operation of the constraint expression including the time constraint can be defined without contradiction.
図5は、第1時系列データ記憶装置104が記憶する情報の説明図である。
第1時系列データ記憶装置104は、センサーID毎に、そのセンサーから信号値を取得した時刻と、取得した信号値との対が記憶されており、センサーIDと時刻とを指定すると信号値を取り出すことができるようになっている。
例えば、テーブル501には、センサーIDが「外調機_1_状態」のセンサーが信号値を取得した時刻と取得した信号値との対が記憶されている。同様に、テーブル502,503,504では、センサーIDがそれぞれ「空調機_1_1_温度」、「VAV_1_1_1_温度」、「VAV_1_1_2_温度」のセンサーが信号値を取得した時刻と取得した信号値との対が記憶されている。
FIG. 5 is an explanatory diagram of information stored in the first time-series
The first time-series
For example, the table 501 stores a pair of the acquired signal value and the time at which the sensor with the sensor ID “external conditioner_1_state” acquires the signal value. Similarly, in the tables 502, 503, and 504, a pair of the acquired signal value and the time when the sensor IDs of the “air conditioner_1_1_temperature”, “VAV_1_1_1_temperature”, and “VAV_1_1_2_temperature” are acquired is stored. Has been.
図6は、第2時系列データ記憶装置105が記憶する情報の説明図である。
第2時系列データ記憶装置105は、第1時系列データ記憶装置104に記憶された信号値のうち、照会式を評価するために必要な信号値が、時刻毎に横並びで比較できるように配置し直されて記憶される。従来の関係データベースの照会言語SQLの観点でいうと、時系列データベースのデータを時刻でJOINした後に得られるテーブルに相当するが、時刻を特別扱いしている点が異なる。
図4の部分制約式407において、センサー変数VAVの時刻は、「外調機の状態」や「空調機の温度」と比較して1分前の時刻を比較するよう指定されている。そのため、センサーID「VAV_1_1_1_温度」の値は、時刻を1分前にずらした値を代入している。具体的には、情報601は、図5の第1時系列データ記憶装置104の情報505に対応しており、情報602は、図5の第1時系列データ記憶装置104の情報506に対応している。
FIG. 6 is an explanatory diagram of information stored in the second time-series
The second time-series
In the
図7は、充足時間記憶装置107が記憶する情報の説明図である。
充足時間テーブルは、制約式毎に、その部分制約式を満たす時刻と時間の区間とが記憶される。
例えば、情報701は、図4の部分制約式406を満たす時刻と時間の区間とを示している。同様に、情報702,703,704は、それぞれ図4の部分制約式407、410、405を満たす時刻と時間の区間を示している。
FIG. 7 is an explanatory diagram of information stored in the satisfaction
The satisfaction time table stores, for each constraint equation, a time and a time interval that satisfy the partial constraint equation.
For example, the
図8は、第2時系列データ記憶装置105への照会式の説明図である。
従来のSQLと比較すると、時刻を特別扱いする点が異なる。つまり、部分制約式の評価では、SELECT句の対象としては、時刻だけに限定する点が特徴である。
具体化した照会式801は、図4の照会式401において、Foreach句402の機器変数Xを空調機1_1とし、センサー変数Y1、Y2、Y3をそれぞれ具体的なセンサーIDとして具体化されている。具体化した照会式802は、同様に、図4の照会式402の機器変数Xを空調機1_2とし、センサー変数Y1、Y2、Y3をそれぞれ具体的なセンサーIDとして具体化されている。
FIG. 8 is an explanatory diagram of a query expression for the second time-series
Compared to the conventional SQL, the time is specially handled. That is, the evaluation of the partial constraint expression is characterized in that the object of the SELECT phrase is limited to only time.
The
図9は、照会結果の説明図である。
図9は、図4の照会式401を、図3の機器構成情報と、図5の第1時系列データ記憶装置104とに基づき評価した結果を示している。
図9のテーブル中のカラム「外調機_1_状態(t)」、「空調機_1_1_温度(t)」は、それぞれ図4のセンサー変数Y1、Y2に割り当てられたセンサーID名である。また、「VAV_1_1_1_温度(t−00:01:00)」、「VAV_1_1_2_温度(t−00:01:00)」は、図4のセンサー変数Y3に割り当てられたセンサーID名である。
FIG. 9 is an explanatory diagram of the inquiry result.
9 shows a result of evaluating the
The columns “external conditioner_1_state (t)” and “air conditioner_1_1_temperature (t)” in the table of FIG. 9 are sensor ID names assigned to the sensor variables Y1 and Y2 of FIG. 4, respectively. Further, “VAV_1_1_1_temperature (t−00: 01: 00)” and “VAV_1_1_2_temperature (t−00: 01: 00)” are sensor ID names assigned to the sensor variable Y3 in FIG.
図10は、時系列データ照会装置100の処理の流れを示すフローチャートである。
図10に基づき、図4の照会式401を評価して、図9の結果を得る処理について説明する。
FIG. 10 is a flowchart showing a processing flow of the time-series
Based on FIG. 10, the process of evaluating the
(S1)
照会式入力部101は、照会式401を入力する。
(S1)
The query
(S2)
変数具体化部103は、図3の機器構成管理情報300を参照して、照会対象の機器情報を抽出する。
照会式401の機器変数Xは、Foreach句402に示すように種別が空調機なので、3つの空調機タグ302,305,306のid属性の値である「空調機_1_1」、「空調機_1_2」、「空調機_2_1」が抽出される。
(S2)
The
Since the device variable X of the
(S3)
変数具体化部103は、S2で抽出した対象機器のうち、処理が終わっていない対象機器があるか否かを判定する。処理が終わっていない対象機器がある場合(S3でYES)、処理をS4へ進める。一方、理が終わっていない対象機器がない場合(S3でNO)、処理を終了する。
ここでは、S2で抽出された「空調機_1_1」、「空調機_1_2」、「空調機_2_1」を順に処理し、すべての対象機器を処理したら終了する。
(S3)
The
Here, “air conditioner_1_1”, “air conditioner_1_2”, and “air conditioner_2_1” extracted in S2 are processed in order, and the process ends when all target devices are processed.
(S4)
変数具体化部103は、照会式401における制約条件を構成する部分制約式を取り出す。
照会式401からは、部分制約式406、407、408が取り出される。
(S4)
The
From the
(S5)
変数具体化部103は、各部分制約式中のパス式の相対関係を解釈し、図3の機器構成情報300を参照して、照会対象のセンサーIDを抽出する。
例えば、空調機1_1について処理を行っている場合には、機器変数Xに「空調機1_1」が割当られている。この場合、パス式411では、センサー変数Y1には、「外調機_1_状態」が割り当てられる。また、パス式412では、センサー変数Y2には、「空調機_1_1_温度」が割り当てられる。同様に、パス式413では、センサー変数Y3には、「VAV_1_1_1_温度」、「VAV_1_1_2_温度」が割り当てられる。
(S5)
The
For example, when processing is performed for the air conditioner 1_1, “air conditioner 1_1” is assigned to the device variable X. In this case, in the
(S6)
時間正規化部106は、第1時系列データ記憶装置104からS5で抽出されたセンサーIDの信号値を取り出して、時間のずれを正規化して第2時系列データ記憶装置105に格納する。
例えば、S5で抽出したセンサーID「外調機_1_状態」、「空調機_1_1_温度」、「VAV_1_1_1_温度」、「VAV_1_1_2_温度」に対して、時刻に対する部分制約式408を満たす時刻のデータを抽出して、第2時系列データ記憶装置105に格納する。この際、部分制約式407において、センサー変数VAVの時刻は、「外調機の状態」や「空調機の温度」と比較して1分前の時刻を比較するよう指定されているので、センサーID「VAV_1_1_1_温度」、「VAV_1_1_2_温度」の値は、時刻を1分前にずらした値が代入される。例えば、図5の情報505,506は、図6の情報601,602に対応している。
(S6)
The
For example, for the sensor IDs “external conditioner_1_state”, “air conditioner_1_1_temperature”, “VAV_1_1_1_temperature”, and “VAV_1_1_2_temperature” extracted in S5, data at a time satisfying the
(S7)
変数具体化部103は、各部分制約式中のセンサー変数に、S5で抽出したセンサーIDを代入して、第2時系列データ記憶装置105への照会式を生成する。
例えば、制約式410に対して、S5で抽出したセンサーIDを割当てることにより、照会式を生成する。空調機1_1について処理を行っている場合には、照会式401からは、図8の照会式801が生成される。また、空調機1_2について処理を行っている場合には、照会式401からは、図8の照会式802が生成される。
(S7)
The
For example, a query expression is generated by assigning the sensor ID extracted in S5 to the
(S8)
部分制約式評価部109は、第2時系列データ記憶装置105に記憶された情報に基づき、S7で生成された各部分制約式を評価して、各部分制約式を満たす時刻を充足時間記憶装置107に格納する。そして、部分制約式評価部109は、充足時間記憶装置107に記憶された情報に基づき、各部分制約条件と継続時間制約式とをAND,OR,NOTで結合した制約式を評価して、結合した制約式を満たす時刻を充足時間記憶装置107に格納する。
例えば、照会式801について、部分制約式406,407を満たす時間は、それぞれ図7の情報701,702に対応する。また、部分制約式406,407をANDで結合した制約式410を満たす時刻は、図7の情報703に対応する。
なお、部分制約式408は時刻に対する制約であり、第2時系列データ記憶装置105に格納する情報を抽出する際に考慮したので、ここでは省略される。
(S8)
The partial constraint
For example, for the
The
(S9)
時間制約処理部110は、照会式が継続時間制約式を含む場合は、充足時間記憶装置107に記憶された情報を参照し、継続時間を算出し、その結果を充足時間記憶装置107に格納する。
例えば、照会式801には、制約式410に対して継続時間制約式409が指定されているので、図7の制約式IDが410の時刻が2つ(2分)連続している時間を併合した行704が生成される。これにより、照会式801の結果として、時刻2010−07−01 00:01:00から2分間の時間区間が得られる。
(S9)
When the query expression includes a duration constraint expression, the time
For example, in the
(S10)
部分制約関係処理部111は、照会式401のSELECT句403の変数にセンサーIDを割り当て、S9で得た時刻の値を出力する。
例えば、空調機1_1について処理を行っている場合には、評価結果として、図9の情報が出力される。図9の情報では、変数Y1,Y2には、それぞれ、「外調機_1_状態(t)」、「空調機_1_1_温度(t)」が割り当てられている。変数Y3には、「VAV_1_1_1_温度(t−00:01:00)」と「VAV_1_1_2_温度(t−00:01:00)」が割り当てられている。
(S10)
The partial constraint
For example, when processing is performed for the air conditioner 1_1, the information of FIG. 9 is output as the evaluation result. In the information of FIG. 9, “external air conditioner_1_state (t)” and “air conditioner_1_1_temperature (t)” are assigned to the variables Y1 and Y2, respectively. “VAV_1_1_1_temperature (t−00: 01: 00)” and “VAV_1_1_2_temperature (t−00: 01: 00)” are assigned to the variable Y3.
以上のように、実施の形態1に係る時系列データ照会装置100では、センサー変数と時間に関する制約とを記述できる照会式を新たに導入した。そして、照会式におけるセンサー変数の具体化や、参照時刻のずれの正規化等を行う。これにより、センサーが設置されている設備構成上の相対関係と、時間の相対的な関係とを同時に考慮しながら、時系列データ構造を処理できるようになる。その結果、ビルやプラント設備に付与された大量のセンサー信号データに対する分析シナリオを記述・評価しやすくなる。
As described above, in the time-series
図11は、時系列データ照会装置100のハードウェア構成図である。
図11に示すように、時系列データ照会装置100は、プログラムを実行するCPU911(Central・Processing・Unit、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、プロセッサともいう)を備えている。CPU911は、バス912を介してROM913、RAM914、LCD901(Liquid Crystal Display)、キーボード902(K/B)、通信ボード915、磁気ディスク装置920と接続され、これらのハードウェアデバイスを制御する。磁気ディスク装置920(固定ディスク装置)の代わりに、光ディスク装置、メモリカード読み書き装置などの記憶装置でもよい。磁気ディスク装置920は、所定の固定ディスクインタフェースを介して接続される。
FIG. 11 is a hardware configuration diagram of the time-series
As illustrated in FIG. 11, the time-series
磁気ディスク装置920又はROM913などには、オペレーティングシステム921(OS)、ウィンドウシステム922、プログラム群923、ファイル群924が記憶されている。プログラム群923のプログラムは、CPU911、オペレーティングシステム921、ウィンドウシステム922により実行される。
An operating system 921 (OS), a
プログラム群923には、上記の説明において「照会式入力部101」、「変数具体化部103」、「時間正規化部106」、「結果取得部108」、「部分制約式評価部109」、「時間制約処理部110」、「部分制約関係処理部111」等として説明した機能を実行するソフトウェアやプログラムやその他のプログラムが記憶されている。プログラムは、CPU911により読み出され実行される。
ファイル群924には、上記の説明において「機器構成情報記憶装置102」、「第1時系列データ記憶装置104」、「第2時系列データ記憶装置105」、「充足時間記憶装置107」等に記憶される情報やデータや信号値や変数値やパラメータが、「データベース」の各項目として記憶される。「データベース」は、ディスクやメモリなどの記録媒体に記憶される。ディスクやメモリなどの記憶媒体に記憶された情報やデータや信号値や変数値やパラメータは、読み書き回路を介してCPU911によりメインメモリやキャッシュメモリに読み出され、抽出・検索・参照・比較・演算・計算・処理・出力・印刷・表示などのCPU911の動作に用いられる。抽出・検索・参照・比較・演算・計算・処理・出力・印刷・表示のCPU911の動作の間、情報やデータや信号値や変数値やパラメータは、メインメモリやキャッシュメモリやバッファメモリに一時的に記憶される。
The
The
また、上記の説明におけるフローチャートの矢印の部分は主としてデータや信号の入出力を示し、データや信号値は、RAM914のメモリ、その他光ディスク等の記録媒体やICチップに記録される。また、データや信号は、バス912や信号線やケーブルその他の伝送媒体や電波によりオンライン伝送される。
また、上記の説明において「〜部」として説明するものは、「〜回路」、「〜装置」、「〜機器」、「〜手段」、「〜機能」であってもよく、また、「〜ステップ」、「〜手順」、「〜処理」であってもよい。また、「〜装置」として説明するものは、「〜回路」、「〜機器」、「〜手段」、「〜機能」であってもよく、また、「〜ステップ」、「〜手順」、「〜処理」であってもよい。すなわち、「〜部」として説明するものは、ROM913に記憶されたファームウェアで実現されていても構わない。或いは、ソフトウェアのみ、或いは、素子・デバイス・基板・配線などのハードウェアのみ、或いは、ソフトウェアとハードウェアとの組合せ、さらには、ファームウェアとの組合せで実施されても構わない。ファームウェアとソフトウェアは、プログラムとして、ROM913等の記録媒体に記憶される。プログラムはCPU911により読み出され、CPU911により実行される。すなわち、プログラムは、上記で述べた「〜部」としてコンピュータ等を機能させるものである。あるいは、上記で述べた「〜部」の手順や方法をコンピュータ等に実行させるものである。
In the above description, the arrows in the flowchart mainly indicate input / output of data and signals, and the data and signal values are recorded in a memory of the
In addition, what is described as “to part” in the above description may be “to circuit”, “to device”, “to device”, “to means”, and “to function”. It may be “step”, “˜procedure”, “˜processing”. In addition, what is described as “˜device” may be “˜circuit”, “˜device”, “˜means”, “˜function”, and “˜step”, “˜procedure”, “ ~ Process ". That is, what is described as “˜unit” may be realized by firmware stored in the
100 時系列データ照会装置、101 照会式入力部、102 機器構成情報記憶装置、103 変数具体化部、104 第1時系列データ記憶装置、105 第2時系列データ記憶装置、106 時間正規化部、107 充足時間記憶装置、108 結果取得部、109 部分制約式評価部、110 時間制約処理部、111 部分制約関係処理部。 100 time-series data inquiry device, 101 inquiry expression input unit, 102 device configuration information storage device, 103 variable instantiation unit, 104 first time-series data storage device, 105 second time-series data storage device, 106 time normalization unit, 107 satisfaction time storage device, 108 result acquisition unit, 109 partial constraint expression evaluation unit, 110 time constraint processing unit, 111 partial constraint relation processing unit.
Claims (6)
前記各センサーが観測した信号値が、観測した時刻毎に記憶された第1時系列データ記憶装置に対する照会内容を示す照会式であって、時刻tの第1信号値と、前記時刻tのx時間前の第2信号値とを用いた制約条件が規定され、前記複数のセンサーのうちの1つ以上のセンサーを、前記第1信号値を観測する第1センサーとして特定する第1センサー変数と、前記複数のセンサーのうちの1つ以上のセンサーを、前記第2信号値を観測する第2センサーとして特定する第2センサー変数とを含む照会式を入力する照会式入力部と、
前記照会式入力部が入力した照会式に含まれる前記第1センサー変数により特定される全ての第1センサーと、前記第2センサー変数により特定される全ての第2センサーとをセンサーを一意に特定するセンサーIDに置き換えて照会式を具体化することにより、前記第1センサーと前記第2センサーとの全ての組合せに対応する照会式を生成する変数具体化部と、
前記変数具体化部が生成した照会式に規定された制約条件中の第1信号値と第2信号値とを前記第1時系列データ記憶装置から読み出し、時刻tにおける前記第1信号値と時刻tのx時間前における前記第2信号値とを時刻tにおける信号値として第2時系列データ記憶装置に記憶する時間正規化部と、
前記時間正規化部が前記第2時系列データ記憶装置に記憶した信号値を用いて、前記照会式に規定された制約条件から時刻の情報を除いた照会式の結果を取得する結果取得部とを備えることを特徴とする時系列データ照会装置。 It is a time-series data inquiry device that inquires for time-series data that is a signal value that each sensor of a plurality of sensors sequentially observed over time,
The signal value observed by each sensor is a query expression indicating the query content for the first time-series data storage device stored at each observed time, and the first signal value at time t and x at time t A constraint using a second signal value before time is defined, and a first sensor variable that identifies one or more of the plurality of sensors as a first sensor that observes the first signal value; A query expression input unit that inputs a query expression including a second sensor variable that identifies one or more of the plurality of sensors as a second sensor that observes the second signal value ;
The sensor uniquely identifies all the first sensors specified by the first sensor variable and all the second sensors specified by the second sensor variable included in the inquiry expression input by the inquiry expression input unit. A variable instantiation unit that generates a query expression corresponding to all combinations of the first sensor and the second sensor by substituting the query ID with a sensor ID to be embodied;
The first signal value and the second signal value in the constraint condition defined in the query expression generated by the variable instantiation unit are read from the first time-series data storage device, and the first signal value and the time at time t a time normalization unit for storing the second signal value x time before t in the second time-series data storage device as a signal value at time t;
A result obtaining unit that obtains a result of the query expression obtained by removing time information from the constraint condition defined in the query expression, using the signal value stored in the second time-series data storage device by the time normalization unit; A time-series data inquiry device comprising:
前記結果取得部は、前記制約条件に含まれる各部分制約式について、その部分制約式から時刻の情報を除いた条件を満たす時刻を、前記第2時系列データ記憶装置に記憶された信号値に基づき特定して、特定した時刻のうち全ての条件を満たす時刻を特定し、特定した全ての条件を満たす時刻に基づき、照会式の結果を取得する
ことを特徴とする請求項1に記載の時系列データ照会装置。 The constraint condition includes a plurality of conditions as a partial constraint expression,
The result acquisition unit sets, for each partial constraint expression included in the constraint condition, a time satisfying a condition obtained by removing time information from the partial constraint expression as a signal value stored in the second time-series data storage device. 2. The time according to claim 1, wherein a time satisfying all conditions among the specified times is specified, and a result of the query expression is acquired based on the times satisfying all the specified conditions. Series data inquiry device.
前記結果取得部は、前記抽出した全ての条件を満たす時刻から、前記継続時間制約式を満たす時刻を特定し、特定した時刻に基づき、照会式の結果を取得する
ことを特徴とする請求項2に記載の時系列データ照会装置。 In addition to the partial constraint equation, the constraint condition includes a duration constraint equation on condition that the partial constraint equation is continuously satisfied for a predetermined time,
The said result acquisition part specifies the time which satisfy | fills the said duration constraint expression from the time which satisfy | fills all the said extracted conditions, and acquires the result of a query formula based on the specified time. The time-series data inquiry device described in 1.
前記時間正規化部は、前記制約条件に含まれた時間範囲内の時刻tについて、第1信号値と第2信号値とを前記第1時系列データ記憶装置から読み出す
ことを特徴とする請求項1から3までのいずれかに記載の時系列データ照会装置。 The constraint condition includes a time range taken by the time t,
The time normalization unit reads a first signal value and a second signal value from the first time-series data storage device for a time t within a time range included in the constraint condition. The time-series data inquiry device according to any one of 1 to 3.
入力装置が、前記各センサーが観測した信号値が、観測した時刻毎に記憶された第1時系列データ記憶装置に対する照会内容を示す照会式であって、時刻tの第1信号値と、前記時刻tのx時間前の第2信号値とを用いた制約条件が規定され、前記複数のセンサーのうちの1つ以上のセンサーを、前記第1信号値を観測する第1センサーとして特定する第1センサー変数と、前記複数のセンサーのうちの1つ以上のセンサーを、前記第2信号値を観測する第2センサーとして特定する第2センサー変数とを含む照会式を入力する照会式入力ステップと、
処理装置が、前記照会式入力ステップで入力された照会式に含まれる前記第1センサー変数により特定される全ての第1センサーと、前記第2センサー変数により特定される全ての第2センサーとをセンサーを一意に特定するセンサーIDに置き換えて照会式を具体化することにより、前記第1センサーと前記第2センサーとの全ての組合せに対応する照会式を生成する変数具体化ステップと、
処理装置が、前記変数具体化ステップで生成された照会式に規定された制約条件中の第1信号値と第2信号値とを前記第1時系列データ記憶装置から読み出し、時刻tにおける前記第1信号値と時刻tのx時間前における前記第2信号値とを時刻tにおける信号値として第2時系列データ記憶装置に記憶する時間正規化ステップと、
処理装置が、前記時間正規化ステップで前記第2時系列データ記憶装置に記憶された信号値を用いて、前記照会式に規定された制約条件から時刻の情報を除いた照会式の結果を取得する結果取得ステップと
を備えることを特徴とする時系列データ照会方法。 It is a time-series data query method for querying time-series data, which are signal values observed sequentially by each sensor of a plurality of sensors ,
The input device is a query expression indicating a query content to the first time-series data storage device in which the signal value observed by each sensor is stored at each observed time, and the first signal value at time t, A constraint condition using a second signal value x hours before time t is defined, and one or more sensors among the plurality of sensors are specified as a first sensor that observes the first signal value. A query expression input step of inputting a query expression including one sensor variable and a second sensor variable that identifies one or more of the plurality of sensors as a second sensor that observes the second signal value ; ,
The processing device includes all first sensors specified by the first sensor variable included in the query expression input in the query expression input step, and all second sensors specified by the second sensor variable. A variable instantiation step for generating query expressions corresponding to all combinations of the first sensor and the second sensor by substituting a sensor ID that uniquely identifies the sensor to instantiate the query expression;
The processing device reads the first signal value and the second signal value in the constraint condition defined in the query expression generated in the variable instantiation step from the first time-series data storage device, and the first signal value at time t A time normalization step of storing one signal value and the second signal value x hours before time t in the second time-series data storage device as a signal value at time t;
The processing device obtains a result of the query expression obtained by removing time information from the constraint condition defined in the query expression using the signal value stored in the second time series data storage device in the time normalization step. A time series data inquiry method comprising: a result acquisition step.
前記各センサーが観測した信号値が、観測した時刻毎に記憶された第1時系列データ記憶装置に対する照会内容を示す照会式であって、時刻tの第1信号値と、前記時刻tのx時間前の第2信号値とを用いた制約条件が規定され、前記複数のセンサーのうちの1つ以上のセンサーを、前記第1信号値を観測する第1センサーとして特定する第1センサー変数と、前記複数のセンサーのうちの1つ以上のセンサーを、前記第2信号値を観測する第2センサーとして特定する第2センサー変数とを含む照会式を入力する照会式入力処理と、
前記照会式入力処理で入力された照会式に含まれる前記第1センサー変数により特定される全ての第1センサーと、前記第2センサー変数により特定される全ての第2センサーとをセンサーを一意に特定するセンサーIDに置き換えて照会式を具体化することにより、前記第1センサーと前記第2センサーとの全ての組合せに対応する照会式を生成する変数具体化処理と、
前記変数具体化処理で生成された前記照会式入力処理で入力された照会式に規定された制約条件中の第1信号値と第2信号値とを前記第1時系列データ記憶装置から読み出し、時刻tにおける前記第1信号値と時刻tのx時間前における前記第2信号値とを時刻tにおける信号値として第2時系列データ記憶装置に記憶する時間正規化処理と、
前記時間正規化処理で前記第2時系列データ記憶装置に記憶された信号値を用いて、前記照会式に規定された制約条件から時刻の情報を除いた照会式の結果を取得する結果取得処理と
をコンピュータに実行させることを特徴とする時系列データ照会プログラム。 A time-series data inquiry program that inquires for time-series data that is a signal value observed sequentially by each sensor of a plurality of sensors over time.
The signal value observed by each sensor is a query expression indicating the query content for the first time-series data storage device stored at each observed time, and the first signal value at time t and x at time t A constraint using a second signal value before time is defined, and a first sensor variable that identifies one or more of the plurality of sensors as a first sensor that observes the first signal value; A query expression input process for inputting a query expression including a second sensor variable that identifies one or more of the plurality of sensors as a second sensor for observing the second signal value ;
All the first sensors specified by the first sensor variable included in the inquiry expression input in the inquiry expression input process and all the second sensors specified by the second sensor variable are uniquely set as sensors. A variable instantiation process for generating a query expression corresponding to all combinations of the first sensor and the second sensor by substituting the specified sensor ID and embodying the query expression;
Reading out the first signal value and the second signal value in the constraint condition defined in the query expression input in the query expression input process generated in the variable instantiation process from the first time-series data storage device; A time normalization process for storing the first signal value at time t and the second signal value x hours before time t in a second time-series data storage device as a signal value at time t;
Result acquisition process for acquiring the result of the query expression obtained by removing the time information from the constraint condition defined in the query expression using the signal value stored in the second time-series data storage device in the time normalization process A time series data inquiry program characterized by causing a computer to execute the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012019725A JP5843636B2 (en) | 2012-02-01 | 2012-02-01 | Time-series data inquiry device, time-series data inquiry method, and time-series data inquiry program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012019725A JP5843636B2 (en) | 2012-02-01 | 2012-02-01 | Time-series data inquiry device, time-series data inquiry method, and time-series data inquiry program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2013161101A JP2013161101A (en) | 2013-08-19 |
JP5843636B2 true JP5843636B2 (en) | 2016-01-13 |
Family
ID=49173336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012019725A Active JP5843636B2 (en) | 2012-02-01 | 2012-02-01 | Time-series data inquiry device, time-series data inquiry method, and time-series data inquiry program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5843636B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116049153B (en) * | 2022-12-12 | 2023-08-25 | 本原数据(北京)信息技术有限公司 | Database data processing method and device, electronic equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006031066A (en) * | 2004-07-12 | 2006-02-02 | Ksl:Kk | System and method for searching chronological table, program, and recording medium |
KR100694968B1 (en) * | 2005-06-30 | 2007-03-14 | 주식회사 하이닉스반도체 | Non-volatile memory device and multi-page programming, reading and copyback programming method thereof |
JP4925143B2 (en) * | 2009-08-12 | 2012-04-25 | 株式会社日立製作所 | Stream data processing system, stream data processing method, and stream data processing program |
JP4880025B2 (en) * | 2009-11-26 | 2012-02-22 | 株式会社日立製作所 | Stream data processing method, stream data processing program, and stream data processing apparatus |
JP5423553B2 (en) * | 2010-04-09 | 2014-02-19 | 株式会社日立製作所 | Database management method, computer, sensor network system, and database search program |
-
2012
- 2012-02-01 JP JP2012019725A patent/JP5843636B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2013161101A (en) | 2013-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9928155B2 (en) | Automated anomaly detection service on heterogeneous log streams | |
US10296658B2 (en) | Use of context-dependent statistics to suggest next steps while exploring a dataset | |
CN107250932B (en) | Programmable logic controller and semantic contextualization method therein | |
US20150242409A1 (en) | Automated Data Shaping | |
US9223815B2 (en) | Method, apparatus, and program for supporting creation and management of metadata for correcting problem in dynamic web application | |
US11550856B2 (en) | Artificial intelligence for product data extraction | |
KR20150057322A (en) | System and Method for Deducting about Weak Signal Using Big Data Analysis | |
CN109815382B (en) | Method and system for sensing and acquiring large-scale network data | |
JP5373870B2 (en) | Prediction device, prediction method, and program | |
JP2011081491A (en) | Time series analysis device, time series analysis method and program | |
CN109753596B (en) | Information source management and configuration method and system for large-scale network data acquisition | |
CN110489653A (en) | Public feelings information querying method and device, system, electronic equipment, storage medium | |
JPWO2012020456A1 (en) | Time-series data processing apparatus and method | |
US20140324518A1 (en) | Autotagging business processes | |
US10671631B2 (en) | Method, apparatus, and computer-readable medium for non-structured data profiling | |
CN103412903A (en) | Method and system for interested object prediction based real-time search of Internet of Things | |
US20200099621A1 (en) | Sensing device management apparatus | |
JP5843636B2 (en) | Time-series data inquiry device, time-series data inquiry method, and time-series data inquiry program | |
US20150186476A1 (en) | Search method and information processing device | |
JP2019174983A (en) | Data management system and relevant data recommendation method | |
US20230097665A1 (en) | Tag domain presentation device, tag domain presentation method, and information processing system using the same | |
JP2010044605A (en) | Device and program for searching database of steel plate production result | |
US20140358818A1 (en) | Product-information management device, method, and program | |
JP2017151731A (en) | Demand amount prediction program, demand amount prediction method, and information processor | |
CN112214660A (en) | Industrial information identification and retrieval system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20141106 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150717 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150728 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150917 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20151020 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20151117 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5843636 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 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |