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 PDF

Info

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
Application number
JP2012019725A
Other languages
Japanese (ja)
Other versions
JP2013161101A (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 Corp
Mitsubishi Electric Building Techno-Service Co Ltd
Original Assignee
Mitsubishi Electric Corp
Mitsubishi Electric Building Techno-Service Co Ltd
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 Corp, Mitsubishi Electric Building Techno-Service Co Ltd filed Critical Mitsubishi Electric Corp
Priority to JP2012019725A priority Critical patent/JP5843636B2/en
Publication of JP2013161101A publication Critical patent/JP2013161101A/en
Application granted granted Critical
Publication of JP5843636B2 publication Critical patent/JP5843636B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.
Patent Document 1 describes a method of efficiently storing time series data in a database according to characteristics and utilizing the time series data.

時系列データの収集・蓄積・活用が進むにしたがって、時系列データの照会内容を示すシナリオを簡単に記述し、評価したいという課題が生じた。
特許文献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.
Patent Document 2 describes a CQL (Continuous Query Language) that is an extension of SQL (Structured Query Language) widely used in a conventional database management system (DBMS). In CQL, by introducing a sliding window that extracts time-series data for a certain period, query expressions for time-series data can be described and evaluated in the same format as declarative query expressions such as conventional SQL. Become.

ビルやプラントの設備監視・管理などの分野において、時系列データのシナリオを記述する際には、設備の構成に応じて、シナリオが対象としているセンサー信号の組み合わせが異なる。そのため、数千から数万になるセンサー信号から照会に必要な信号の組み合わせを指定する手間が大きいという課題がある。
この課題を解決するための関連技術としては、非特許文献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 Document 1. In the XML search language XML-QL in the XML database technology, a combination of sensor signals necessary for an inquiry can be obtained by expressing the configuration relationship of equipment in XML.

特願平10−069498号公報Japanese Patent Application No. 10-069498 特開2011−113273号公報JP 2011-113273 A

Serge Abiteboul, Peter Buneman, dansuciu: Data on the Web−From Relations to Semistructured Data and XML, Elseview Science, 2000)Serge Abiteboule, Peter Buneman, dansiu: Data on the Web-From Relations to Semi-Structured Data and XML, Elevenview Science, 2000)

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に係る時系列データ照会装置100の構成図。1 is a configuration diagram of a time-series data inquiry device 100 according to Embodiment 1. FIG. 機器構成情報記憶装置102が記憶する機器構成情報の概念図。The conceptual diagram of the apparatus structure information which the apparatus structure information storage device 102 memorize | stores. 機器構成情報をXML形式で表現した例を示す図。The figure which shows the example which expressed apparatus structure information in the XML format. 照会式の例を示す図。The figure which shows the example of a query expression. 第1時系列データ記憶装置104が記憶する情報の説明図。Explanatory drawing of the information which the 1st time series data storage device 104 memorize | stores. 第2時系列データ記憶装置105が記憶する情報の説明図。Explanatory drawing of the information which the 2nd time series data storage apparatus 105 memorize | stores. 充足時間記憶装置107が記憶する情報の説明図。Explanatory drawing of the information which the satisfaction time memory | storage device 107 memorize | stores. 第2時系列データ記憶装置105への照会式の説明図。Explanatory drawing of the inquiry type | formula to the 2nd time series data storage apparatus 105. FIG. 照会結果の説明図。Explanatory drawing of an inquiry result. 時系列データ照会装置100の処理の流れを示すフローチャート。The flowchart which shows the flow of a process of the time series data inquiry apparatus. 時系列データ照会装置100のハードウェア構成図。2 is a hardware configuration diagram of the time-series data inquiry device 100. FIG.

実施の形態1.
図1は、実施の形態1に係る時系列データ照会装置100の構成図である。
時系列データ照会装置100は、複数のセンサーが時間の経過に従って順次観測した信号値である時系列データに対して、時間に依存した制約条件を含む照会を行う。
時系列データ照会装置100は、照会式入力部101、機器構成情報記憶装置102、変数具体化部103、第1時系列データ記憶装置104、第2時系列データ記憶装置105、時間正規化部106、充足時間記憶装置107、結果取得部108を備える。
Embodiment 1 FIG.
FIG. 1 is a configuration diagram of a time-series data inquiry device 100 according to the first embodiment.
The time-series data inquiry device 100 makes an inquiry including time-dependent constraints on time-series data that are signal values that are sequentially observed by a plurality of sensors over time.
The time series data inquiry device 100 includes an inquiry expression input unit 101, a device configuration information storage device 102, a variable materialization unit 103, a first time series data storage device 104, a second time series data storage device 105, and a time normalization unit 106. A sufficient time storage device 107 and a result acquisition unit 108.

照会式入力部101は、時系列データに対する照会式を入力装置により入力する。
照会式には、時間に依存した制約条件が含まれる。制約条件は、センサーIDを特定するセンサー変数等を用いて記述された1つ以上の部分制約式と、部分制約式を継続して所定時間満たすことを条件とする継続時間制約式とから構成されている。少なくとも1つ部分制約式は、参照する時刻の異なるセンサー変数を用いて記述されている。
The query expression input unit 101 inputs a query expression for time-series data using an input device.
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 information storage device 102 is a storage device that stores device configuration information indicating the configuration of the device in which the sensor is installed.

変数具体化部103は、機器構成情報記憶装置102に記憶された機器構成情報に基づき、照会式入力部101が入力した照会式のセンサー変数に具体的なセンサーIDを割当て、具体化した照会式を処理装置により生成する。
1つのセンサー変数が複数のセンサーIDを特定する場合、変数具体化部103は、1つの照会式から複数の具体化した照会式を出力する。
Based on the device configuration information stored in the device configuration information storage device 102, the variable instantiation unit 103 assigns a specific sensor ID to the sensor variable of the query formula input by the query formula input unit 101, and a query formula that is embodied. Is generated by the processing device.
When one sensor variable specifies a plurality of sensor IDs, the variable materializing unit 103 outputs a plurality of materialized query expressions from one query expression.

第1時系列データ記憶装置104は、複数のセンサーが時間の経過に従って順次観測した信号値である時系列データを記憶した記憶装置である。第1時系列データ記憶装置104に記憶された時系列データが、照会式による照会の対象となる時系列データである。   The first time-series data storage device 104 is a storage device that stores time-series data that are signal values that are sequentially observed by a plurality of sensors over time. The time-series data stored in the first time-series data storage device 104 is time-series data that is a target of inquiry using the inquiry formula.

第2時系列データ記憶装置105は、照会式の評価に必要な信号値等を記憶するための記憶装置である。   The second time-series data storage device 105 is a storage device for storing signal values and the like necessary for evaluating the query expression.

時間正規化部106は、変数具体化部103が具体化した照会式における制約条件に含まれるセンサーIDの信号値を抽出し、抽出した信号値について、参照する時刻のずれを処理装置により正規化して、第2時系列データ記憶装置105に格納する。   The time normalization unit 106 extracts the signal value of the sensor ID included in the constraint condition in the query expression embodied by the variable materialization unit 103, and normalizes a reference time shift by the processing device for the extracted signal value. And stored in the second time-series data storage device 105.

充足時間記憶装置107は、各部分制約式を充足する時刻を示す時間情報等を記憶するための記憶装置である。   The satisfaction time storage device 107 is a storage device for storing time information indicating the time at which each partial constraint expression is satisfied.

結果取得部108は、第2時系列データ記憶装置105に記憶されたデータと、具体化された照会式とを用いて、照会式を評価した結果を取得する。
結果取得部108は、部分制約式評価部109、時間制約処理部110、部分制約関係処理部111を備える。
The result acquisition unit 108 acquires the result of evaluating the query expression using the data stored in the second time-series data storage device 105 and the embodied query expression.
The result acquisition unit 108 includes a partial constraint expression evaluation unit 109, a time constraint processing unit 110, and a partial constraint relation processing unit 111.

部分制約式評価部109は、第2時系列データ記憶装置105に記憶されたデータを用いて、各部分制約式について処理装置により評価し、各部分制約式を評価した結果を充足時間記憶装置107に格納する。   The partial constraint equation evaluation unit 109 uses the data stored in the second time-series data storage device 105 to evaluate each partial constraint equation by the processing device, and evaluates each partial constraint equation as a satisfaction time storage device 107. To store.

時間制約処理部110は、部分制約式評価部109により充足時間記憶装置107に格納されたデータを用いて、継続時間制約式を処理装置により評価し、結果を充足時間記憶装置107に格納する。   The time constraint processing unit 110 uses the data stored in the satisfaction time storage device 107 by the partial constraint equation evaluation unit 109 to evaluate the duration constraint equation by the processing device, and stores the result in the satisfaction time storage device 107.

部分制約関係処理部111は、時間制約処理部110により充足時間記憶装置107に格納されたデータを用いて、各部分制約式及び継続時間制約式の時間関係の制約を処理装置により評価し、照会式の結果を取得する。   The partial constraint relation processing unit 111 uses the data stored in the satisfaction time storage device 107 by the time constraint processing unit 110 to evaluate the time relation constraints of each partial constraint expression and duration constraint expression by the processing device, Get the result of an expression.

図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 information storage device 102. In FIG. 2, as an example, the connection relationship of air conditioning equipment in a building is expressed.
The arrows in FIG. 2 represent the parent-child relationship of devices. For example, “the external air conditioner 1 is the parent of the air conditioner 1_1” is expressed. A point in the square frame indicates the type of sensor installed in the device of the square frame. For example, the variable fixed air volume device VAV1_1_1 expresses that temperature and humidity sensors are installed.
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, reference numerals 301, 302, 303, and 304 in FIG. 3 correspond to reference numerals 201, 202, 203, and 204 in FIG.
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 query formula 401 is an example of a query formula for time-series data observed by a building facility sensor.
When the state satisfying all of the partial constraint formulas 406, 407, and 408 continues for the time (2 minutes) specified by the duration constraint formula 409, the query formula 401 indicates the start time and the external adjustment at the start time. This indicates that the condition of the machine, the temperature of the air conditioner, and the temperature one minute before the variable volumetric air volume device VAV are obtained for each air conditioner.
The partial constraint equations 406, 407, and 408 are “the condition of the external air conditioner of the air conditioner parent is in operation (partial constraint equation 406)” and “the temperature of the air conditioner is smaller than the temperature of the air conditioner. The average of the temperature of one minute before the variable quantitation air volume device (VAV) is large (partial constraint equation 407) ”and“ start time from 2010/07/01 00:00:00 to 2010/07/01 00 : 02:00 (partial constraint equation 408) ".

照会式401の解釈について、図3の機器構成情報の表現に即して説明する。
Foreach句402における『Foreach X:空調機』は、「設備の種別が空調機である機器毎に、照会式を評価すること」を表現している。ここで、Xは機器変数であり、Xには、空調機の機器IDが割り当てられる。
The interpretation of the query expression 401 will be described with reference to the device configuration information in FIG.
“Foreach X: air conditioner” in the Foreach phrase 402 expresses “evaluating a query expression for each device whose equipment type is an air conditioner”. Here, X is a device variable, and a device ID of the air conditioner is assigned to X.

SELECT句403における「SELECT t,Y1,Y2,Y3」は、照会式の評価結果として出力するデータ項目名を指定している。SQLやCQLとの違いは、データ項目名に変数を指定している点である。なお、Y1,Y2、Y3は部分制約式406,407において定義されている。   “SELECT t, Y1, Y2, Y3” in the SELECT clause 403 designates a data item name to be output as the evaluation result of the query expression. The difference from SQL or CQL is that a variable is specified for the data item name. Y1, Y2, and Y3 are defined in the partial constraint equations 406 and 407.

FROM句404は、照会式の評価対象となるデータが記憶された記憶装置を指定している。ここでは、機器構成情報記憶装置102と第1時系列データ記憶装置104とが指定されている。   The FROM phrase 404 specifies a storage device in which data to be evaluated by the query expression is stored. Here, the device configuration information storage device 102 and the first time-series data storage device 104 are designated.

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 clause 405 is a constraint expression expressing a constraint condition. The constraint conditions include partial constraint equations 406, 407, and 408 and a duration constraint equation 409 as constraint equations.
The partial constraint formula 406 means that “the state of the external air conditioner of the parent of the air conditioner is in operation”. The path expression 411 constituting the partial constraint expression 406 means “signal value at time t of the sensor ID indicated by the attribute“ state ”of the parent tag of tag X and the tag name of the external controller (type is external controller)”. To do.
The partial constraint equation 407 means that “the average of the temperature one minute before the variable volumetric air volume device (VAV) that is a child of the air conditioner is larger than the temperature of the air conditioner”. The path expression 412 constituting the partial constraint expression 407 means “signal value at time t of the sensor ID indicated by the attribute“ temperature ”of the tag X”. Further, the path expression 413 means “average of signal values one minute before the sensor indicated by the attribute“ temperature ”in a device whose tag name is VAV and is a child tag of tag X”.
The partial constraint equation 408 means that “time t is between 2010/07/01 00:00:00 and 2010/07/01 00:02:00”.
The duration constraint expression 409 means “a set of start times when the constraint expression 410 obtained by connecting the partial constraint expressions 406, 407, and 408 with AND is satisfied for two minutes from a certain time”.
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 data storage device 104.
The first time-series data storage device 104 stores, for each sensor ID, a pair of the time when the signal value is acquired from the sensor and the acquired signal value. When the sensor ID and the time are specified, the signal value is stored. It can be taken out.
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 data storage device 105.
The second time-series data storage device 105 is arranged so that the signal values necessary for evaluating the query expression among the signal values stored in the first time-series data storage device 104 can be compared side by side for each time. Reworked and memorized. From the viewpoint of the conventional relational database query language SQL, it corresponds to a table obtained after JOINing data in a time-series database with time, but is different in that time is treated specially.
In the partial constraint equation 407 in FIG. 4, the time of the sensor variable VAV is designated to be compared with the time one minute before the “condition of the external air conditioner” or “temperature of the air conditioner”. For this reason, the value of the sensor ID “VAV_1_1_1_temperature” is substituted by a value obtained by shifting the time one minute ago. Specifically, the information 601 corresponds to the information 505 in the first time-series data storage device 104 in FIG. 5, and the information 602 corresponds to the information 506 in the first time-series data storage device 104 in FIG. ing.

図7は、充足時間記憶装置107が記憶する情報の説明図である。
充足時間テーブルは、制約式毎に、その部分制約式を満たす時刻と時間の区間とが記憶される。
例えば、情報701は、図4の部分制約式406を満たす時刻と時間の区間とを示している。同様に、情報702,703,704は、それぞれ図4の部分制約式407、410、405を満たす時刻と時間の区間を示している。
FIG. 7 is an explanatory diagram of information stored in the satisfaction time storage device 107.
The satisfaction time table stores, for each constraint equation, a time and a time interval that satisfy the partial constraint equation.
For example, the information 701 indicates a time and a time interval that satisfy the partial constraint equation 406 in FIG. Similarly, information 702, 703, and 704 indicate time and time intervals that satisfy the partial constraint equations 407, 410, and 405 of FIG.

図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 data storage device 105.
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 specific query expression 801 is embodied in the query formula 401 of FIG. 4 with the device variable X of the Foreach clause 402 as the air conditioner 1_1 and the sensor variables Y1, Y2, and Y3 as specific sensor IDs. Similarly, the specified query expression 802 is embodied with the device variable X of the query expression 402 in FIG. 4 as the air conditioner 1_2 and the sensor variables Y1, Y2, and Y3 as specific sensor IDs.

図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 inquiry formula 401 in FIG. 4 based on the device configuration information in FIG. 3 and the first time-series data storage device 104 in FIG.
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 data inquiry device 100.
Based on FIG. 10, the process of evaluating the query expression 401 of FIG. 4 and obtaining the result of FIG. 9 will be described.

(S1)
照会式入力部101は、照会式401を入力する。
(S1)
The query expression input unit 101 inputs a query expression 401.

(S2)
変数具体化部103は、図3の機器構成管理情報300を参照して、照会対象の機器情報を抽出する。
照会式401の機器変数Xは、Foreach句402に示すように種別が空調機なので、3つの空調機タグ302,305,306のid属性の値である「空調機_1_1」、「空調機_1_2」、「空調機_2_1」が抽出される。
(S2)
The variable materializing unit 103 refers to the device configuration management information 300 in FIG. 3 and extracts the device information to be queried.
Since the device variable X of the inquiry formula 401 is an air conditioner as shown in the Foreach clause 402, the values of the id attribute of the three air conditioner tags 302, 305, and 306 are “air conditioner_1_1” and “air conditioner_1_2”. , “Air conditioner_2_1” is extracted.

(S3)
変数具体化部103は、S2で抽出した対象機器のうち、処理が終わっていない対象機器があるか否かを判定する。処理が終わっていない対象機器がある場合(S3でYES)、処理をS4へ進める。一方、理が終わっていない対象機器がない場合(S3でNO)、処理を終了する。
ここでは、S2で抽出された「空調機_1_1」、「空調機_1_2」、「空調機_2_1」を順に処理し、すべての対象機器を処理したら終了する。
(S3)
The variable materializing unit 103 determines whether there is a target device that has not been processed among the target devices extracted in S2. If there is a target device that has not been processed (YES in S3), the process proceeds to S4. On the other hand, if there is no target device for which the reason is not finished (NO in S3), the process is terminated.
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 variable materializing unit 103 extracts a partial constraint expression that constitutes a constraint condition in the query expression 401.
From the query expression 401, partial constraint expressions 406, 407, and 408 are extracted.

(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 variable materializing unit 103 interprets the relative relationship of the path expression in each partial constraint expression, and extracts the sensor ID to be queried with reference to the device configuration information 300 in FIG.
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 path expression 411, “external air conditioner_1_state” is assigned to the sensor variable Y1. In the path expression 412, “air conditioner_1_1_temperature” is assigned to the sensor variable Y2. Similarly, in the path expression 413, “VAV_1_1_1_temperature” and “VAV_1_1_2_temperature” are assigned to the sensor variable Y3.

(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 time normalization unit 106 takes out the signal value of the sensor ID extracted in S5 from the first time-series data storage device 104, normalizes the time lag, and stores it in the second time-series data storage device 105.
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 partial constraint equation 408 for the time is extracted. And stored in the second time-series data storage device 105. At this time, in the partial constraint equation 407, the time of the sensor variable VAV is designated to compare the time one minute before the “condition of the external air conditioner” or “the temperature of the air conditioner”. As the values of the IDs “VAV_1_1_1_temperature” and “VAV_1_1_2_temperature”, values obtained by shifting the time one minute ago are substituted. For example, information 505 and 506 in FIG. 5 correspond to information 601 and 602 in FIG.

(S7)
変数具体化部103は、各部分制約式中のセンサー変数に、S5で抽出したセンサーIDを代入して、第2時系列データ記憶装置105への照会式を生成する。
例えば、制約式410に対して、S5で抽出したセンサーIDを割当てることにより、照会式を生成する。空調機1_1について処理を行っている場合には、照会式401からは、図8の照会式801が生成される。また、空調機1_2について処理を行っている場合には、照会式401からは、図8の照会式802が生成される。
(S7)
The variable instantiation unit 103 assigns the sensor ID extracted in S5 to the sensor variable in each partial constraint expression, and generates a query expression for the second time-series data storage device 105.
For example, a query expression is generated by assigning the sensor ID extracted in S5 to the constraint expression 410. When the process is performed for the air conditioner 1_1, the inquiry formula 801 in FIG. In addition, when processing is performed for the air conditioner 1_2, a query formula 802 in FIG. 8 is generated from the query formula 401.

(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 equation evaluation unit 109 evaluates each partial constraint equation generated in S7 based on the information stored in the second time-series data storage device 105, and satisfies the time satisfying each partial constraint equation as a satisfaction time storage device. It stores in 107. Then, the partial constraint expression evaluation unit 109 evaluates a constraint expression obtained by combining each partial constraint condition and the duration constraint expression with AND, OR, and NOT based on the information stored in the satisfaction time storage device 107, and combines them. The time satisfying the constraint expression is stored in the satisfaction time storage device 107.
For example, for the query expression 801, the times satisfying the partial constraint expressions 406 and 407 correspond to the information 701 and 702 in FIG. The time that satisfies the constraint equation 410 obtained by combining the partial constraint equations 406 and 407 with AND corresponds to the information 703 in FIG.
The partial constraint equation 408 is a constraint on time, and is omitted here because it is considered when extracting information to be stored in the second time-series data storage device 105.

(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 constraint processing unit 110 refers to the information stored in the satisfaction time storage device 107, calculates the duration, and stores the result in the satisfaction time storage device 107. .
For example, in the query formula 801, since the duration constraint formula 409 is specified for the constraint formula 410, the time when the constraint formula ID 410 in FIG. 7 is continuous (two minutes) is merged. Row 704 is generated. Thereby, as a result of the query expression 801, a time interval of 2 minutes from the time 2010-07-01 00:01:00 is obtained.

(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 relation processing unit 111 assigns a sensor ID to the variable of the SELECT clause 403 of the query expression 401, and outputs the time value obtained in S9.
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 data inquiry device 100 according to the first embodiment, a query expression that can describe sensor variables and time constraints is newly introduced. Then, actualization of sensor variables in the query expression, normalization of reference time deviation, and the like are performed. As a result, the time-series data structure can be processed while simultaneously considering the relative relationship on the equipment configuration in which the sensor is installed and the relative relationship of time. As a result, it becomes easy to describe and evaluate analysis scenarios for a large amount of sensor signal data given to buildings and plant facilities.

図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 data inquiry device 100.
As illustrated in FIG. 11, the time-series data inquiry device 100 includes a CPU 911 (also referred to as a central processing unit, a central processing unit, a processing unit, an arithmetic unit, a microprocessor, a microcomputer, and a processor) that executes a program. Yes. The CPU 911 is connected to the ROM 913, the RAM 914, the LCD 901 (Liquid Crystal Display), the keyboard 902 (K / B), the communication board 915, and the magnetic disk device 920 via the bus 912, and controls these hardware devices. Instead of the magnetic disk device 920 (fixed disk device), a storage device such as an optical disk device or a memory card read / write device may be used. The magnetic disk device 920 is connected via a predetermined fixed disk interface.

磁気ディスク装置920又はROM913などには、オペレーティングシステム921(OS)、ウィンドウシステム922、プログラム群923、ファイル群924が記憶されている。プログラム群923のプログラムは、CPU911、オペレーティングシステム921、ウィンドウシステム922により実行される。   An operating system 921 (OS), a window system 922, a program group 923, and a file group 924 are stored in the magnetic disk device 920 or the ROM 913. The programs in the program group 923 are executed by the CPU 911, the operating system 921, and the window system 922.

プログラム群923には、上記の説明において「照会式入力部101」、「変数具体化部103」、「時間正規化部106」、「結果取得部108」、「部分制約式評価部109」、「時間制約処理部110」、「部分制約関係処理部111」等として説明した機能を実行するソフトウェアやプログラムやその他のプログラムが記憶されている。プログラムは、CPU911により読み出され実行される。
ファイル群924には、上記の説明において「機器構成情報記憶装置102」、「第1時系列データ記憶装置104」、「第2時系列データ記憶装置105」、「充足時間記憶装置107」等に記憶される情報やデータや信号値や変数値やパラメータが、「データベース」の各項目として記憶される。「データベース」は、ディスクやメモリなどの記録媒体に記憶される。ディスクやメモリなどの記憶媒体に記憶された情報やデータや信号値や変数値やパラメータは、読み書き回路を介してCPU911によりメインメモリやキャッシュメモリに読み出され、抽出・検索・参照・比較・演算・計算・処理・出力・印刷・表示などのCPU911の動作に用いられる。抽出・検索・参照・比較・演算・計算・処理・出力・印刷・表示のCPU911の動作の間、情報やデータや信号値や変数値やパラメータは、メインメモリやキャッシュメモリやバッファメモリに一時的に記憶される。
The program group 923 includes “query expression input unit 101”, “variable materialization unit 103”, “time normalization unit 106”, “result acquisition unit 108”, “partial constraint expression evaluation unit 109” in the above description, Software, programs, and other programs that execute the functions described as “time constraint processing unit 110”, “partial constraint relationship processing unit 111”, and the like are stored. The program is read and executed by the CPU 911.
The file group 924 includes “device configuration information storage device 102”, “first time series data storage device 104”, “second time series data storage device 105”, “satisfaction time storage device 107”, etc. in the above description. Stored information, data, signal values, variable values, and parameters are stored as items in the “database”. The “database” is stored in a recording medium such as a disk or a memory. Information, data, signal values, variable values, and parameters stored in a storage medium such as a disk or memory are read out to the main memory or cache memory by the CPU 911 via a read / write circuit, and extracted, searched, referenced, compared, and calculated. Used for the operation of the CPU 911 such as calculation / processing / output / printing / display. Information, data, signal values, variable values, and parameters are temporarily stored in the main memory, cache memory, and buffer memory during the operation of the CPU 911 for extraction, search, reference, comparison, calculation, calculation, processing, output, printing, and display. Is remembered.

また、上記の説明におけるフローチャートの矢印の部分は主としてデータや信号の入出力を示し、データや信号値は、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 RAM 914, other recording media such as an optical disk, and an IC chip. Data and signals are transmitted online by a bus 912, signal lines, cables, other transmission media, and radio waves.
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 ROM 913. Alternatively, only software, hardware such as elements, devices, substrates, and wirings, a combination of software and hardware, or a combination of firmware may be used. Firmware and software are stored in a recording medium such as ROM 913 as a program. The program is read by the CPU 911 and executed by the CPU 911. That is, the program causes a computer or the like to function as the “˜unit” described above. Alternatively, the computer or the like is caused to execute the procedures and methods of “to part” described above.

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が取る時間範囲が含まれており、
前記時間正規化部は、前記制約条件に含まれた時間範囲内の時刻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.
JP2012019725A 2012-02-01 2012-02-01 Time-series data inquiry device, time-series data inquiry method, and time-series data inquiry program Active JP5843636B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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