JP6569388B2 - Control device, control system, control method, and program - Google Patents
Control device, control system, control method, and program Download PDFInfo
- Publication number
- JP6569388B2 JP6569388B2 JP2015164743A JP2015164743A JP6569388B2 JP 6569388 B2 JP6569388 B2 JP 6569388B2 JP 2015164743 A JP2015164743 A JP 2015164743A JP 2015164743 A JP2015164743 A JP 2015164743A JP 6569388 B2 JP6569388 B2 JP 6569388B2
- Authority
- JP
- Japan
- Prior art keywords
- switching
- accuracy
- analysis
- processing
- program
- 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
- Debugging And Monitoring (AREA)
Description
本発明は、制御装置、制御システム、制御方法、および、プログラム、特に、解析処理を実行する処理装置の切替を制御する制御装置、制御システム、制御方法、および、プログラムに関する。 The present invention relates to a control device, a control system, a control method, and a program, and more particularly to a control device, a control system, a control method, and a program that control switching of a processing device that executes analysis processing.
近年、情報処理技術の発達に伴い、様々なデータの解析を行う解析エンジンの開発が行われている。例えば、映像データから人間の動線をトレースするための位置情報を生成する解析エンジン、 静止映像データから人物を特定する解析エンジン、音声データからテキストデータを生成する解析エンジンが開発されている。 In recent years, with the development of information processing technology, analysis engines that analyze various data have been developed. For example, an analysis engine that generates position information for tracing a human flow line from video data, an analysis engine that identifies a person from still video data, and an analysis engine that generates text data from audio data have been developed.
さらに、同種あるいは異種の解析エンジンを複数組み合わせて、入力データから様々な解析処理結果を得ることができる解析システムも開発されている。例えば 、カメラから入力した映像データを、人物抽出エンジン、動線抽出エンジン、顔抽出エンジン及び顔照合エンジンを用いて、並列または直列に処理し、所定の挙動の人物を判定する、といった解析処理を行うシステムが開発されている。 Furthermore, an analysis system capable of obtaining various analysis processing results from input data by combining a plurality of analysis engines of the same type or different types has been developed. For example, analysis processing such as processing video data input from a camera in parallel or in series using a person extraction engine, a flow line extraction engine, a face extraction engine, and a face matching engine to determine a person with a predetermined behavior. A system to do it has been developed.
これら複数の解析エンジンを用いている解析システムは、複数の処理装置を包含しうる。このような解析システムは、解析結果の精度を一定レベル以上に保証し、さらに、解析結果をリアルタイムで出力するなど処理が高速であることが望ましい。 An analysis system using the plurality of analysis engines can include a plurality of processing devices. In such an analysis system, it is desirable that the accuracy of the analysis result is ensured to a certain level or more and that the analysis result is output in real time so that the processing speed is high.
ところが、上述したような複数の解析エンジンを組み合わせた解析システムでは、解析処理対象となるデータの内容に応じて、それらの解析エンジンのそれぞれに掛かる負荷は大きく変動しうる。また、ある種の解析エンジンは、前後のデータフレームを参照しつつ連続して処理を行うため状態を保持し、データフレーム毎に処理装置を分散して実行することができない。 However, in an analysis system that combines a plurality of analysis engines as described above, the load applied to each of the analysis engines can vary greatly depending on the content of the data to be analyzed. In addition, a certain kind of analysis engine keeps a state because it continuously processes while referring to the preceding and succeeding data frames, and the processing apparatus cannot be distributed and executed for each data frame.
このため、特定の解析エンジンに局所的に、解析処理に掛かる負荷が集中する場合がある。このような場合、解析処理が遅延する、あるいはバッファ溢れによるデータの欠損が起きる。このため、解析システム全体の処理性能や精度が保障されない、という問題が生じる。 For this reason, the load applied to the analysis processing may be concentrated locally on a specific analysis engine. In such a case, analysis processing is delayed or data loss occurs due to buffer overflow. For this reason, there arises a problem that the processing performance and accuracy of the entire analysis system are not guaranteed.
換言すると、解析エンジンに掛かる負荷によっては、その解析エンジンの処理を実行している処理装置の処理能力に対して過負荷が生じ、意図しない解析処理の遅延や、意図しないデータの欠損に起因する解析精度の低下が生じる。 In other words, depending on the load applied to the analysis engine, an overload occurs in the processing capability of the processing apparatus executing the processing of the analysis engine, which is caused by an unintended analysis processing delay or unintended data loss. Decrease in analysis accuracy occurs.
このような問題に対しては、ある解析エンジンを実行する処理装置を、処理能力に余裕がある他の処理装置に変更するという対応が取られることがある。 To cope with such a problem, there is a case in which a processing device that executes a certain analysis engine is changed to another processing device that has sufficient processing capacity.
特許文献1は、上述のような解析システムにおいて、アプリケーションを別のデータセンタにマイグレーションするための方法の一例を開示する。特許文献1に記載の方法では、まず、アプリケーションのマイグレーション元のデータセンタにおける統合管理システムが、ネットワーク要件、装置要件、およびストレージ要件を含むマイグレーション要求文書を生成し、他のデータセンタに送付する。要求を受けたデータセンタにおける統合管理システムは、それぞれのローカル環境をチェックし、アプリケーションを実行するのに十分な資源があるかどうかを決定する。これにより、マイグレーション元のデータセンタは、負荷状況に応じてアプリケーションを実行することが可能なデータセンタを見つけることができる。
特許文献2は、通信状況を測定し、測定された通信状況からスループットを予測するモバイル端末を開示する。この、モバイル端末は、予測されたスループットに応じて、アプリケーションに関する処理を自装置で実行する、または、演算処理装置に実行させる。
上述の特許文献1に記載の方法を用いる装置は、他の処理装置にアプリケーションを移行する場合において、移行後のアプリケーションの性能の低下を抑制することができる。しかし、当該方法は、移行時に一時的に発生する性能や精度の低下については考慮していない。例えば、移行時に、解析エンジンを一旦停止し別の処理装置上で再開する動作を行う場合において、解析エンジンは、それまで保持していた背景学習データ等の一時データを破棄し、別装置にて再び背景の学習を行うことが有る。当該方法は、このような再学習を含む移行処理を終え、正常に解析結果を出力するまでの期間、解析エンジンの解析精度が低下する、といった影響について考慮していない。
An apparatus using the method described in
即ち、上述の先行技術文献に記載の方法は、解析エンジンがステートフル解析エンジンであり、処理装置の切替によって負荷を制御する場合に、複数の処理装置で複数の解析エンジンを効率的に実行させることができない。ここで、ステートフル解析エンジンとは、前後のデータフレームを参照しつつ連続して処理を行うため追跡中のオブジェクトの属性情報等の一時データ等の状態を保持し、データフレーム毎に処理装置を分散して実行することができない解析エンジンである。また、ここで、処理装置の切替とは、或る処理装置で実行中の解析エンジンを停止し、別の処理装置に移動した上で開始する動作である。 That is, according to the method described in the above-mentioned prior art document, when the analysis engine is a stateful analysis engine and the load is controlled by switching the processing devices, the plurality of processing devices are efficiently executed by the plurality of processing devices. I can't. Here, the stateful analysis engine keeps the state of the temporary data such as the attribute information of the object being tracked in order to perform continuous processing while referring to the previous and next data frames, and distributes the processing device for each data frame It is an analysis engine that cannot be executed. Here, the switching of the processing device is an operation that starts after the analysis engine being executed by a certain processing device is stopped and moved to another processing device.
特許文献2が開示する装置も、上記と同様な課題を有する。
The device disclosed in
本発明は、解析エンジン等を実行する処理装置を切替えるときに発生する上述の課題を解決するための、制御装置、制御システム、制御方法、および、プログラム提供することを目的とする。 An object of the present invention is to provide a control device, a control system, a control method, and a program for solving the above-described problems that occur when a processing device that executes an analysis engine or the like is switched.
本発明の1実施の形態の制御装置は、第一の処理装置で実行中の複数の解析処理のひとつ(以降、切替対象解析処理)を、第二の処理装置に切替えて実行した場合の前記切替対象解析処理の精度を示す切替精度スコアを、切替処理中の精度予測値、および、切替完了後の精度予測値に基づいて算出し、算出された前記切替精度スコアに基づいて、前記切替対象解析処理の切替を実行するか否かを決定する切替決定手段を備える。 The control device according to one embodiment of the present invention is configured so that one of a plurality of analysis processes (hereinafter referred to as a switching target analysis process) being executed by the first processing apparatus is switched to the second processing apparatus and executed. A switching accuracy score indicating the accuracy of the switching target analysis processing is calculated based on the accuracy prediction value during the switching processing and the accuracy prediction value after the switching is completed, and based on the calculated switching accuracy score, the switching target A switching determination unit that determines whether or not to switch the analysis process is provided.
本発明の1実施の形態の方法は、第一の処理装置で実行中の複数の解析処理のひとつ(以降、切替対象解析処理)を、第二の処理装置に切替えて実行した場合の前記切替対象解析処理の精度を示す切替精度スコアを、切替処理中の精度予測値、および、切替完了後の精度予測値に基づいて算出し、算出された前記切替精度スコアに基づいて、前記切替対象解析処理の切替を実行するか否かを決定する。 The method according to an embodiment of the present invention provides the switching in the case where one of a plurality of analysis processes (hereinafter referred to as a switching target analysis process) being executed in the first processing apparatus is switched to the second processing apparatus and executed. A switching accuracy score indicating the accuracy of the target analysis processing is calculated based on the accuracy predicted value during the switching processing and the accuracy predicted value after the switching is completed, and the switching target analysis is calculated based on the calculated switching accuracy score. It is determined whether or not to switch processing.
本発明の1実施の形態のプログラムは、第一の処理装置で実行中の複数の解析処理のひとつ(以降、切替対象解析処理)を、第二の処理装置に切替えて実行した場合の前記切替対象解析処理の精度を示す切替精度スコアを、切替処理中の精度予測値、および、切替完了後の精度予測値に基づいて算出し、算出された前記切替精度スコアに基づいて、前記切替対象解析処理の切替を実行するか否かを決定する切替決定処理を、コンピュータに実行させる。 The program according to one embodiment of the present invention provides the switching in a case where one of a plurality of analysis processes (hereinafter referred to as a switching target analysis process) being executed in the first processing apparatus is switched to the second processing apparatus and executed. A switching accuracy score indicating the accuracy of the target analysis processing is calculated based on the accuracy predicted value during the switching processing and the accuracy predicted value after the switching is completed, and the switching target analysis is calculated based on the calculated switching accuracy score. The computer is caused to execute a switching determination process for determining whether or not to execute the process switching.
処理装置を切替えるときに一時的に処理精度の低下を発生する解析処理が存在する。本発明にかかる制御装置は、そのような解析処理の処理装置切替を効率的に実行できる。 There is an analysis process that temporarily reduces the processing accuracy when the processing apparatus is switched. The control device according to the present invention can efficiently execute the processing device switching of such analysis processing.
[第1の実施の形態]
[構成]
図1は、本実施の形態にかかる制御システム50の構成図である。制御システム50は、複数の処理装置20とそれらと接続された制御装置30を包含する。図1の制御システム50は、2台の処理装置20(処理装置20−a、処理装置20−b)を包含する例を示している。
[First embodiment]
[Constitution]
FIG. 1 is a configuration diagram of a control system 50 according to the present embodiment. The control system 50 includes a plurality of processing devices 20 and a
各処理装置20は、解析処理を実行する実行部22と負荷計測部21を備えている。実行部22と負荷計測部21は、互いに接続されている。実行部22は、1以上の解析処理を実行する。図1の処理装置20−aは、2つの解析処理(解析処理aと解析処理b)を実行している例を示す。図1の処理装置20−bは、1つの解析処理(解析処理c)を実行している例を示す。
Each processing device 20 includes an execution unit 22 that executes analysis processing and a
解析処理は、例えば、監視カメラの映像データを受信し、当該画像から立ち入り禁止エリアに入っている人物を検出する処理である。解析処理は、集音マイクの音声データを受信し、特定の特徴を有する音声を検出する処理であっても良い。 The analysis process is, for example, a process of receiving video data from a surveillance camera and detecting a person who is in a no entry area from the image. The analysis process may be a process of receiving sound data of the sound collecting microphone and detecting sound having a specific characteristic.
各解析処理は、関連付けられたデータ配信装置10からデータを受信し、当該データの解析を行い、結果を出力する。各解析処理は、解析結果を処理装置20が備える画面やファイルに出力してもよく、あるいは、図示しない他の表示装置に転送し出力してもよい。
Each analysis process receives data from the associated
図1の例において、解析処理aは、データ配信装置10−aからデータを受信し、当該データの解析を行っている。解析処理bは、データ配信装置10−bからデータを受信し、当該データの解析を行っている。解析処理aは、データ配信装置10−cからデータを受信し、当該データの解析を行っている。 In the example of FIG. 1, the analysis process a receives data from the data distribution apparatus 10-a and analyzes the data. The analysis process b receives data from the data distribution apparatus 10-b and analyzes the data. The analysis process a receives data from the data distribution apparatus 10-c and analyzes the data.
負荷計測部21は、実行部22で実行中の解析処理の負荷を計測し、結果を制御装置30に送信する。
The
制御装置30は、制御システム50内の各処理装置20の負荷計測部21から各解析処理の負荷情報を受け取る。制御装置30は、当該負荷情報に基づいて、解析処理の精度維持・向上の観点から何れかの処理装置20で実行中の解析処理を他の処理装置20に切替えて実行すべきと判断すれば、その切替を実行する。
The
ここで、解析処理の精度は、解析処理結果の正しさを示す指標である。例えば、人が禁止エリアに侵入したことを映像から認識する場合、実際に人物が禁止エリアに侵入している映像に対して、解析処理結果がアラートを示しているケースでは、精度が高いといえる。逆に、人物が禁止エリアに侵入しているのに解析処理結果がアラートを示さないケースや、人物が禁止エリアに侵入していないのに解析処理結果がアラートを示すケースでは、精度が低いといえる。 Here, the accuracy of the analysis process is an index indicating the correctness of the analysis process result. For example, when recognizing that a person has entered the prohibited area from the video, it can be said that the accuracy is high in the case where the analysis processing result indicates an alert for the video in which the person has actually entered the prohibited area. . On the other hand, in the case where the analysis process result does not show an alert even though a person has entered the prohibited area, or the analysis process result shows an alert when the person has not entered the prohibited area, the accuracy is low. I can say that.
さらに例えば、精度は、顔照合における照合結果の正しさを示す。人物顔画像を入力として、照合システムが特定した人物が、実際の人物と合致する率が高ければ精度が高く、低ければ精度が低い。 Further, for example, the accuracy indicates the correctness of the matching result in face matching. The accuracy of the person specified by the collation system using the human face image as input is high if the rate of matching with the actual person is high, and the accuracy is low if the ratio is low.
処理装置20の能力に対し、解析処理の負荷が高い場合、解析結果の精度が低下する場合が有る。例えば、映像ストリームの解析処理は、一般的に、連続フレームをバッファリングしてフレーム毎に解析を行う。処理負荷が高い状況が続きバッファリングするフレーム数が上限値を超えると、バッファ内のフレームを間引く処理が行われることがある。そのため、解析処理を正しく行うのに十分なデータが得られず、解析結果の精度が低下する現象が発生することがある。 When the analysis processing load is high with respect to the capability of the processing device 20, the accuracy of the analysis result may be reduced. For example, in the video stream analysis processing, continuous frames are generally buffered and analyzed for each frame. When the processing load is high and the number of frames to be buffered exceeds the upper limit, processing for thinning out the frames in the buffer may be performed. For this reason, there may be a phenomenon in which sufficient data cannot be obtained for performing the analysis process correctly and the accuracy of the analysis result is lowered.
制御装置30は、上述した解析結果の精度低下を防止あるいは解消するために、解析処理を実行する処理装置20を別の処理装置20に切替る必要性を判断し、必要な場合は切替を実行する。
The
制御装置30は、切替実行部31、切替決定部32、切替時精度予測情報記憶部33、負荷毎精度予測情報記憶部34、および、資源情報記憶部35を備えている。
The
切替実行部31、及び切替決定部32は、互いに接続され、さらに、それぞれ、処理装置20の実行部22、及び負荷計測部21と接続されている。切替決定部32は、切替時精度予測情報記憶部33、負荷毎精度予測情報記憶部34、および、資源情報記憶部35とも接続されている。
The
切替決定部32は、各処理装置20から得た負荷情報に基づいて、切替の対象となる解析処理と切替先の処理装置20との組み合わせを表す切替パターンを決定する。切替実行部31は、切替決定部32が決定した切替を実行する。
Based on the load information obtained from each processing device 20, the switching
ここで、図1および図2を用いて、切替の動作について説明する。図1において、解析処理bを対象として、処理装置20−aから処理装置20−bへの切替を行う場合、切替実行部31は、処理装置20−aの実行部22に解析処理bの停止を指示する。処理装置20−aの実行部22は、解析処理bの実行を停止し、同装置内の負荷計測部21に解析処理bの計測停止を指示する。
Here, the switching operation will be described with reference to FIGS. 1 and 2. In FIG. 1, when switching from the processing device 20-a to the processing device 20-b for the analysis processing b, the switching
次に、切替実行部31は、解析処理bの継続に必要なデータを処理装置20−aから処理装置20−bへと移動する。切替実行部31は、例えば、処理装置20−aの実行部22から、必要なデータを受信し、処理装置20-bの実行部22に転送する。ここで、当解析処理の継続に必要なデータは、例えば、関連付けられているデータ配信装置10の識別子等の設定情報、その他の処理経過情報である。当解析処理の継続に必要なデータは、解析処理bに必要なプログラム、スクリプト等を含んでいても良い。
Next, the switching
最後に、切替実行部31は、処理装置20-bの実行部22に、解析処理bの開始を指示する。処理装置20−bの実行部22は、解析処理bの実行を開始し、同装置内の負荷計測部21に解析処理bの計測開始を指示する。
Finally, the switching
なお、解析処理bの実行に必要な情報等が、予め処理装置20−aおよび処理装置20−bの両方に配置されて、実行可能な状態にセットアップされていても良い。その場合、切替実行部31は、解析処理bの継続に必要なデータ移動の動作を省略する。
It should be noted that information and the like necessary for the execution of the analysis process b may be preliminarily arranged in both the processing device 20-a and the processing device 20-b and set up in an executable state. In this case, the switching
図2は、解析処理bが処理装置20−aから処理装置20−bへと切り替えられた後の制御システム50の様子を示す。なお、他の解析処理の切替も同様に行われる。 FIG. 2 shows a state of the control system 50 after the analysis process b is switched from the processing apparatus 20-a to the processing apparatus 20-b. The switching of other analysis processes is performed in the same manner.
切替決定部32は、各処理装置20から得た負荷情報に基づいて切替パターンを決定する過程で、各解析処理の精度予測を行う。ここで、精度予測について説明する。図3は、解析処理の切替に関連する期間と、各期間の精度予測を説明する図である。切替決定部32は、何れかの解析処理の切替を行うか否かの判断に当たり、パラメータで与えられた一定の長さの予測期間について各解析処理の精度予測を行う。切替決定部32は、解析処理切替を行った場合(図3のb))と行わなかった場合(図3のa))の2つの場合の精度予測を行う。
The switching
解析処理を切替える場合について(図3のb))、切替決定部32は、予測期間を切替期間と切替後予測期間に2に分けて精度予測を行う。切替期間は、元の処理装置20で解析処理を停止し、別の処理装置20にて再開し、解析処理が背景の学習などの事前処理を終えて定常状態で解析結果を出力するまでの期間を表す。切替時精度予測は、この期間の精度予測値である。
In the case where the analysis process is switched (b in FIG. 3), the switching
切替後予測期間は、切替期間が過ぎ、処理装置20を切替えられた解析処理が、学習処理等を終えた後、定常状態で解析結果を出力する期間である。切替後精度予測は、この期間の精度予測値である。 The post-switching prediction period is a period for outputting the analysis result in a steady state after the switching period has passed and the analysis process in which the processing device 20 has been switched finishes the learning process or the like. The post-switching accuracy prediction is an accuracy prediction value for this period.
解析処理は、処理装置20の切替を行われた場合、それまで保持していた背景学習データ等の一時データを破棄し、別処理装置20にて再び背景の学習などの事前処理を行う場合がある。そのため、学習が完了し、定常状態で解析結果を出力するまでの期間、即ち切替期間の間は解析精度が低下する。したがって、切替時精度予測は、切替後精度予測より低いことが多い。解析処理の切替に伴う、この一時的な精度低下を予測に反映するため、切替決定部32は、予測期間を切替期間と切替後予測期間に2に分けて精度予測を行う。
In the analysis process, when the processing device 20 is switched, the temporary data such as the background learning data held so far may be discarded and the preprocessing such as background learning may be performed again in the separate processing device 20. is there. Therefore, the analysis accuracy decreases during the period until learning is completed and the analysis result is output in a steady state, that is, during the switching period. Therefore, the accuracy prediction at switching is often lower than the accuracy prediction after switching. In order to reflect this temporary decrease in accuracy associated with the switching of the analysis process in the prediction, the switching
一方、解析処理切替を行わなかった場合について(図3のa))、切替決定部32は、予測期間全体について一様な精度予測を行う。切替前精度予測は、この場合の精度予測値である。
On the other hand, when the analysis processing is not switched (a in FIG. 3)), the switching
切替時精度予測情報記憶部33は、各解析処理について、切替時精度予測情報を記憶する。切替時精度予測情報は、切替時精度予測、および切替期間を示すデータを包含する。図4は、切替時精度予測情報記憶部33が記憶する切替時精度予測情報の例を示す。図4の例は、切替を行った場合の精度の予測を、精度の最大値を1.0としたときの相対値として表している。例えば、映像データ中の人物が異常行動をとった場合に、解析処理がその異常行動を検知してアラートの発報を行うとする。切替によって、切替期間における正しいアラート発報回数が2分の1に低下する場合、図4の例は、切替時精度予測を0.5として示している。
The switching accuracy prediction
なお、切替時精度予測情報は、図4に示す例に限らず、他の関数や表形式を用いて表現されていてもよい。また、それらの関数の係数や表形式の値は、切替を実行して計測された精度の値から算出した値であってもよく、あるいは、理論値などから算出した値であってもよい。 Note that the switching accuracy prediction information is not limited to the example illustrated in FIG. 4, and may be expressed using other functions or table formats. Further, the coefficients and tabular values of these functions may be values calculated from accuracy values measured by executing switching, or values calculated from theoretical values or the like.
負荷毎精度予測情報記憶部34は、各解析処理について、負荷毎精度予測情報を記憶する。負荷毎精度予測情報は、解析処理毎に、予測時点の負荷に応じた精度の予測を表したものである。
The load accuracy prediction
図5は、負荷毎精度予測情報記憶部34が記憶する負荷毎精度予測情報の例を示す。図6は、図5の例における解析処理aについての負荷毎精度予測情報をグラフ表示した図である。
FIG. 5 shows an example of the load accuracy prediction information stored in the load accuracy prediction
ここで、図5および図6の例では、負荷率Lは、処理装置20の処理資源に対する解析処理の負荷の合計である。例えば、処理装置20のプロセッサが4つであるのに対し、プロセッサ6つ分の負荷が合計で発生した場合、負荷率Lは6/4=1.5となる。 Here, in the example of FIGS. 5 and 6, the load factor L is the total load of the analysis processing for the processing resources of the processing device 20. For example, when there are four processors of the processing device 20 and loads for six processors occur in total, the load factor L is 6/4 = 1.5.
一般に、負荷率Lが1.0未満の場合、処理装置20の処理資源には余力があり、解析の精度の低下は起こらない。負荷率Lが1.0以上の場合、処理装置20は過負荷状態であり、負荷率Lの増加に応じて解析処理の精度が低下する。図5および図6の負荷毎精度予測情報の例は、負荷率Lが1.0未満の場合の精度を1.0とし、負荷率Lが1.0以上の場合に負荷率Lの増加に応じて精度が0.0になるまで線形に減少する関数となっている。ここで、この例では、精度予測値は、予測期間の長さに左右されず一定である。 In general, when the load factor L is less than 1.0, the processing resources of the processing device 20 have sufficient capacity, and the accuracy of analysis does not decrease. When the load factor L is 1.0 or more, the processing device 20 is in an overload state, and the accuracy of the analysis processing decreases as the load factor L increases. In the examples of the accuracy prediction information for each load in FIGS. 5 and 6, the accuracy when the load factor L is less than 1.0 is 1.0, and the load factor L increases when the load factor L is 1.0 or more. Accordingly, the function linearly decreases until the accuracy reaches 0.0. Here, in this example, the accuracy prediction value is constant regardless of the length of the prediction period.
なお、負荷毎精度予測情報は、図5および図6に示す例に限らず、例えば、予測期間の長さに応じて変動する関数など、他の関数や表形式を用いて表現されてもよい。また、それらの関数の係数や表形式の値は、解析を実行して計測された負荷の値から算出された値であってもよく、あるいは、理論値などから算出された値であってもよい。 Note that the per-load accuracy prediction information is not limited to the examples illustrated in FIGS. 5 and 6, and may be expressed using other functions or table formats such as a function that varies depending on the length of the prediction period. . In addition, the coefficients and tabular values of these functions may be values calculated from load values measured by performing analysis, or values calculated from theoretical values, etc. Good.
処理装置資源情報記憶部35は、各処理装置20の処理資源を記憶する。図7は、処理装置資源情報記憶部35が記憶する処理資源情報の例を示す。
The processing device resource
ここで、図7の例では、処理装置20の処理資源は、単位時間に処理装置20全体で処理を実行できる時間(秒)として表現される。例えば、処理装置20のプロセッサ数が4つの場合、1秒間に処理装置全体で処理を実行できる時間は4秒となる。また、処理装置20のプロセッサ数が1つで、当該プロセッサの処理性能が基準となるプロセッサの2分の1である場合、1秒間に処理装置20全体で処理を実行できる時間は0.5秒となる。 Here, in the example of FIG. 7, the processing resource of the processing device 20 is expressed as time (seconds) in which processing can be executed by the entire processing device 20 per unit time. For example, when the number of processors in the processing device 20 is four, the time during which processing can be executed by the entire processing device per second is 4 seconds. In addition, when the number of processors of the processing device 20 is one and the processing performance of the processor is half that of the reference processor, the time that can be executed by the entire processing device 20 per second is 0.5 seconds. It becomes.
これらの値は、実行して計測された負荷の値から算出された値であってもよく、あるいは、理論値などから算出された値であってもよい。 These values may be values calculated from the load values measured and executed, or may be values calculated from theoretical values or the like.
[動作]
図8は、制御装置30の動作を示すフローチャートである。まず、切替決定部32が、各処理装置20の負荷計測部21から各解析処理の負荷を取得する(ステップS1)。切替決定部32は、負荷に基づいて、切替の対象となる解析処理と切替先の処理装置20との組み合わせを表す切替パターンを決定し、切替実行部31に送信する(ステップS2)。切替実行部31は、送信された切替パターンに基づき、切替対象となる解析処理の処理装置20の切替を行う(ステップS3)。制御装置30は、ステップS1、S2、S3を所定の間隔で繰り返し実行する。
[Operation]
FIG. 8 is a flowchart showing the operation of the
図9は、切替決定部32が、切替の対象となる解析処理と切替先の処理装置との組み合わせを表す切替パターンを決定する動作(ステップS2)を詳細に示すフローチャートである。切替決定部32は、解析処理の負荷の情報に基づいて、切替前精度スコアを算出する(ステップS11)。切替前精度スコアは、切替を行わない場合(図3のa))において、予測期間における解析の精度の度合いを数値化したものである。
FIG. 9 is a flowchart showing in detail an operation (step S2) in which the
なお、本スコアおよび今後説明されるスコアは、精度が上がると大きくなる値である。各スコアは、精度が上がると小さくなるものであっても良い。切替決定部32は、切替前精度スコアを、例えば、以下のように算出する。
In addition, this score and the score that will be described later are values that increase as accuracy increases. Each score may be smaller as accuracy increases. The switching
まず、切替決定部32は、処理装置資源情報記憶部35を参照し、各解析処理の負荷と各処理装置20の処理資源の値とから、各処理装置20の切替を行う前の負荷率Lである切替前負荷率Lを算出する。次に、切替決定部32は、負荷毎精度予測情報記憶部34を参照し、各解析処理について、切替前負荷率Lに応じて、切替を行わない場合の予測期間における精度の予測値である切替前精度予測値を算出する。切替決定部32は、各解析処理の切替前精度予測値のうち、最小のものを切替前精度スコアとする。
First, the switching
切替決定部32は、次に、切替パターン毎に、切替精度スコアを算出する(ステップS12)。ここで、切替精度スコアは、予測期間において、切替時および切替後の解析処理の精度の度合いを数値化したものである。切替パターンの切替精度スコアは、各解析処理について算出する解析処理毎切替精度スコア中の最小値である。ここで、解析処理毎切替精度スコアは、解析処理毎に算出する切替時精度予測値および切替後精度予測値の時間平均値である。
Next, the switching
ここで、切替決定部32は、切替の対象でない解析処理の切替時精度予測を取りうる最大値(図4の例では1.0)とする。そうする理由は、切替の対象でない解析処理は、切替に伴う精度劣化が無いからである。また、切替決定部32は、切替の対象となる解析処理については、前述したように切替時精度予測情報記憶部33の値を用いる。
Here, the switching
切替決定部32は、切替後精度予測を以下のように算出する。まず、切替決定部32は、処理装置資源情報記憶部35を参照し、各解析処理の負荷と各処理装置20の処理資源の値とから、切替を行った後の各処理装置20の負荷率Lである切替後負荷率Lを算出する。このとき、切替決定部32は、切替パターンに従った切替後の各処理の各処理装置20上の配置に基づいて切替後負荷率Lを算出する。さらに、切替決定部32は、負荷毎精度予測情報記憶部34を参照し、各解析処理について、切替後に実行される処理装置20の切替後負荷率Lに応じた切替後精度予測を算出する。
The switching
次いで、切替決定部32は、切替時精度予測情報記憶部33を参照し、切替期間の長さを取得する。次に、切替決定部32は、予測期間の長さから切替期間の長さを減算し、切替後予測期間の長さを算出し、切替時精度予測値および切替後精度予測値の時間平均値である解析処理毎切替精度スコアを算出する。
Next, the switching
なお、切替決定部32は、切替の対象でない解析処理については、切替後精度予測値を解析処理毎切替精度スコアとしても良い。すなわち、切替の対象でない解析処理については、予測期間と切替後予測期間が一致することを前提としても良い。
In addition, about the analysis process which is not the object of switching, the switching
最後に、切替決定部32は、切替前精度スコアおよび切替精度スコアに基づいて、最適な切替パターンを選択する(ステップS13)。切替決定部32は、切替パターンを以下のように選択する。まず、切替決定部32は、切替パターンのうち、切替精度スコアが最大のものを選択する。切替精度スコアが切替前精度スコアより大きい場合、切替決定部32は、選択した切替パターンによる切替実施を決定する。切替精度スコアが切替前精度スコア以下の場合、切替決定部32は、切替を行わない旨の決定をする。
Finally, the switching
[効果]
実行する処理装置20を切替えるときに、一時的に処理精度の低下を発生する解析処理が存在する。例えば、切替後に入力データから学習をし直すような解析処理が有る。本実施の形態にかかる制御装置30は、そのような解析処理の処理装置20の切替を効率的に実行できる。すなわち、制御装置30は、処理装置20の切替によって負荷を制御する場合において、精度の低下を抑制しながら、複数の処理装置20で複数の解析処理を実行させることを可能にする。
[effect]
There is an analysis process that temporarily lowers the processing accuracy when the processing device 20 to be executed is switched. For example, there is an analysis process in which learning is performed again from input data after switching. The
その理由は、切替決定部32が、切替による精度の変化を表す切替時精度予測情報に基づいて切替パターンを決定するからである。
The reason is that the switching
このような制御装置30は、解析処理がステートフルであって1つの解析処理を複数の処理装置20に部分散させて実行できない場合、特に有効である。また、解析処理は、解析処理に限定されない。本実施の形態の制御システム50は、実行する処理装置20を切替えるときに、一時的に処理精度の低下を発生する解析処理全般を対象とする。
Such a
[第2の実施の形態]
[構成]
図10は、本実施の形態にかかる制御システム50の構成図である。本実施の形態にかかる処理装置20は、解析処理に加えて環境解析処理も実行している点で、第1の実施形態と異なる。図10の処理装置20−aは、解析処理aと環境解析処理a、並びに、解析処理bと環境解析処理bを実行している例を示す。図10の処理装置20−bは、解析処理cと環境解析処理cを実行している例を示す。
[Second Embodiment]
[Constitution]
FIG. 10 is a configuration diagram of the control system 50 according to the present embodiment. The processing device 20 according to the present embodiment is different from the first embodiment in that an environment analysis process is also executed in addition to the analysis process. The processing apparatus 20-a in FIG. 10 shows an example in which an analysis process a and an environment analysis process a, and an analysis process b and an environment analysis process b are executed. A processing device 20-b in FIG. 10 shows an example in which an analysis process c and an environment analysis process c are executed.
解析処理と環境解析処理は切替単位となるペアを構成し、環境解析処理は、ペアになる解析処理に関連付けられているデータ配信装置10からデータを受信し、環境解析を実行し、解析結果である環境条件Eを切替決定部32に出力する。ここで、環境条件Eとは、例えば映像データの照明条件や映像データ中の人物数など、解析処理の精度に影響を与える特徴量である。
The analysis process and the environment analysis process constitute a pair as a switching unit, and the environment analysis process receives data from the
また、本実施の形態にかかる制御装置30は、切替時精度予測情報記憶部33に代わり、環境毎切替時精度予測情報記憶部36を備える点で、第1の実施の形態と異なる。
Further, the
その他の構成要素については、第1の実施の形態と同様である。第1の実施の形態と同様の構成要素については、図1と同一の符号を付し、詳細な説明を省略する。 Other components are the same as those in the first embodiment. Constituent elements similar to those in the first embodiment are denoted by the same reference numerals as those in FIG. 1, and detailed description thereof is omitted.
切替決定部32は、環境解析処理から環境条件Eを取得し、環境条件Eに応じて切替時精度予測値を算出した上で、切替の対象となる解析処理と切替先の処理装置との組み合わせを表す切替パターンを決定する。
The switching
環境毎切替時精度予測情報記憶部36は、各解析処理について、環境切替時精度予測情報を記憶する。環境切替時精度予測情報は、環境条件Eに依存した切替時精度予測、および切替期間を示すデータを包含する。図11は、環境毎切替時精度予測情報記憶部36が記憶する環境切替時精度予測情報の例を示す。
The switching accuracy prediction
図11の例の切替時間予測は、切替を行った場合の精度の予測を、精度の最大値を1.0としたときの相対値として、環境条件Eをパラメータとした関数を用いて表している。例えば、映像データ中の人物が異常行動をとった場合に、解析処理がその異常行動を検知してアラートの発報を行うとする。人物数が0の場合、異常行動は検知されず、切替によって正しいアラートの発報率は変化しない。映像データ中の人物数が増加すると、異常行動とる人物の数が確率的に増加し、切替によって正しいアラートの発報率は低下することになる。即ち、図11の表の切替時精度予測欄に例示するように、切替時精度予測情報は、映像データ中の人数という環境条件Eの増加に応じて、精度が低下する関数として表すことができる。 The switching time prediction in the example of FIG. 11 is expressed using a function with the environmental condition E as a parameter as a relative value when the maximum value of accuracy is 1.0, when the switching is performed. Yes. For example, when a person in the video data takes an abnormal action, the analysis process detects the abnormal action and issues an alert. When the number of persons is 0, abnormal behavior is not detected and the correct alert rate does not change by switching. If the number of persons in the video data increases, the number of persons who take abnormal actions will increase probabilistically, and the alert rate of correct alerts will drop by switching. That is, as exemplified in the switching accuracy prediction column of the table of FIG. 11, the switching accuracy prediction information can be expressed as a function whose accuracy decreases as the environmental condition E, ie, the number of people in the video data increases. .
なお、環境切替時精度予測情報は、図11に示す例に限らず、他の関数や表形式を用いて表現されてもよい。またそれらの関数の係数や表形式の値は、切替を実行して計測された精度の値から算出した値であってもよく、あるいは、理論値などから算出した値であってもよい。 The environment switching accuracy prediction information is not limited to the example illustrated in FIG. 11, and may be expressed using other functions or table formats. The coefficients and tabular values of these functions may be values calculated from accuracy values measured by executing switching, or values calculated from theoretical values or the like.
また、環境条件Eは映像データ中の人物数に限られない。環境条件Eは、例えば、映像データ中の人物の動きの激しさであっても良い。動きがほとんどない場合、映像データ中の人物がほぼ静止しているため、その後の一定期間に禁止エリアへ人物が侵入する確率は低い。逆に、動きが激しい場合、映像データ中の人物の移動が起こっていて、その後の一定期間に、禁止エリアへ人物が侵入する確率は相対的に高くなる。前者のケースでは、切替を行っても正しいアラートの発報率はあまり低下しない。後者のケースでは、切替を行うと正しいアラートの発報率が低下する可能性が高い。従って、切替時精度予測は、映像フレーム間の動きの激しさの度合いに応じて精度が低下する関数として表すことができる。 The environmental condition E is not limited to the number of persons in the video data. The environmental condition E may be, for example, the intensity of movement of a person in the video data. When there is almost no movement, since the person in the video data is almost stationary, the probability that the person enters the prohibited area for a certain period thereafter is low. On the other hand, when the movement is intense, the movement of the person in the video data has occurred, and the probability that the person will enter the prohibited area in a certain period thereafter is relatively high. In the former case, even if switching is performed, the alert rate of the correct alert does not decrease much. In the latter case, if the switching is performed, there is a high possibility that the alert rate of the correct alert is lowered. Therefore, the switching accuracy prediction can be expressed as a function whose accuracy decreases in accordance with the degree of intenseness of motion between video frames.
[動作]
図12は、本実施の形態にかかる制御装置30の動作を示すフローチャートである。また、第1の実施の形態の説明でも使用した図9は、切替決定部32が、切替の対象となる解析処理と切替先の処理装置との組み合わせを表す切替パターンを決定する動作(ステップS2)を詳細に示すフローチャートである。以下の説明において、第1の実施の形態と同様の動作については詳細を省略する。
[Operation]
FIG. 12 is a flowchart showing the operation of the
第2の実施の形態にかかる制御装置30の動作は、以下の点で第1の実施の形態と異なる。相違点の一つ目は、切替決定部32が、各環境解析処理から環境条件Eを取得する(ステップS4)点である。また、相違点の二つ目は、切替決定部32が、環境条件Eに応じて切替時精度予測値を算出した上で、切替パターン毎に切替精度スコアを算出する(ステップS12)点である。相違点の三つ目は、切替実行部31が、解析処理と共に環境解析処理も切り替える(ステップS3)点である。
The operation of the
切替決定部32は、環境条件Eに応じて、切替パターン毎に、切替精度スコアを以下のように算出する。まず、切替決定部32は、各環境解析処理から取得した環境条件Eの値を元に、環境毎切替時精度予測情報記憶部36を参照し、各解析処理の切替時精度予測値を計算する。その後、切替決定部32は、第1の実施の形態における動作と同様にして、切替パターン毎に切替精度スコアを算出する。
The switching
切替実行部31は、切替パターンに基づき、切替対象となる解析処理、および当該解析処理とペアを構成する環境解析処理の処理装置20の切替を行う。例えば、解析処理bを対象として処理装置20−aから処理装置20-bへの切替を行う場合、切替決定部32は、環境解析処理bについても、処理装置20−aから処理装置20−bへの切替を行う。
Based on the switching pattern, the switching
[効果]
第2の実施の形態にかかる制御装置30は、解析処理を実行する処理装置20の切替を行う場合の精度の変化が解析対象のデータの内容によって異なる場合でも、精度の低下を抑制しながら切替を効率的に実行できる。
[effect]
The
その理由は、切替決定部32が、環境解析処理が出力するデータの内容に応じた環境条件Eを元に切替時精度予測値を計算し、切替精度スコアの算出に利用するからである。
The reason is that the switching
[第3の実施の形態]
[構成]
図13は、本実施の形態にかかる制御装置30の構成図である。本実施の形態にかかる制御装置30は、精度要求情報記憶部37を備える点で、第一の実施形態と異なる。その他の構成要素については、第1の実施の形態と同様である。第1の実施の形態と同様の構成要素については、図1と同一の符号を付し、詳細な説明を省略する。
[Third embodiment]
[Constitution]
FIG. 13 is a configuration diagram of the
精度要求情報記憶部37は、各解析処理に対するユーザの精度要求を記憶する。図14は、精度要求情報記憶部37が記憶するユーザの精度要求の例を示す。
The accuracy request
図14の例は、精度要求を、最大値を1.0とした時の相対値として表している。例えば、映像データ中の人物が異常行動をとった場合に、解析処理がその異常行動を検知してアラートの発報を行うとする。可能な限り全てのアラートが発報されることをユーザが望む場合、この例において、ユーザは精度要求を1.0に設定する。5分の4の確率でアラートが発報されればよい場合、この例において、ユーザは、精度要求を0.8に設定する。なお、精度要求情報は、図16に示す例に限らず、他の値や形式を用いて記憶してもよい。 The example of FIG. 14 represents the accuracy request as a relative value when the maximum value is 1.0. For example, when a person in the video data takes an abnormal action, the analysis process detects the abnormal action and issues an alert. If the user wants all possible alerts to be raised, in this example, the user sets the accuracy requirement to 1.0. If the alert should be issued with a probability of 4/5, in this example, the user sets the accuracy requirement to 0.8. The accuracy request information is not limited to the example shown in FIG. 16, and may be stored using other values and formats.
[動作]
本実施の形態にかかる制御装置30の動作を、第1の実施の形態の説明で用いた図8および図9のフローチャートを用いて説明する。本実施の形態にかかる制御装置30の動作は、以下の点で第1の実施の形態の動作と異なる。第1の実施の形態と同様の動作については、詳細な説明を省略する。
[Operation]
The operation of the
相違点は、切替決定部32が、精度要求を考慮して、切替前精度スコアを算出し(ステップS11)、切替精度スコアを算出する(ステップS12)点である。
The difference is that the switching
切替決定部32は、切替前精度スコアを以下のように算出する(ステップS11)。まず、切替決定部32は、処理装置資源情報記憶部35を参照し、各解析処理の負荷と各処理装置20の処理資源の値とから、各処理装置20の切替を行う前の負荷率Lを表す切替前負荷率Lを算出する。
The switching
次に、切替決定部32は、負荷毎精度予測情報記憶部34を参照し、各解析処理について、切替前負荷率Lに応じて、切替を行う前の精度の予測値を表す切替前精度予測値を算出する。次に、切替決定部32は、精度要求情報記憶部37を参照し、各解析処理について、切替を行う前の精度要求を満たす度合いを表す切替前精度要求充足率を以下の式を用いて算出する。
Next, the switching
切替前精度要求充足率=切替前精度予測値/精度要求
切替決定部32は、各解析処理の切替前精度要求充足率のうち、最小のものを切替パターンの切替前精度スコアとする。
Pre-switching accuracy requirement fulfillment rate = pre-switching accuracy predicted value / accuracy request The switching
また、切替決定部32は、切替精度スコアを以下のように算出する(ステップS12)。切替決定部32は、各解析処理について算出する解析処理毎切替精度スコアのうち、最小のものを切替パターンの切替精度スコアとする。切替決定部32は、解析処理毎に算出する、切替時精度要求充足率および切替後精度要求充足率の時間平均を、解析処理毎切替精度スコアとする。
Moreover, the switching
ここで、切替決定部32は、切替時精度要求充足率を、以下のように算出する。まず、切替決定部32は、第1の実施の形態と同様にして、各解析処理について切替時精度予測値を算出する。次に、切替決定部32は、精度要求情報記憶部37を参照し、各解析処理について、切替を行う時の精度要求を満たす度合いを表す切替時精度要求充足率を以下の式を用いて算出する。
Here, the switching
切替時精度要求充足率=切替時精度予測値/精度要求
また、切替決定部32は、切替後精度要求充足率を、以下のように算出する。まず、切替決定部32は、第1の実施の形態と同様にして、各解析処理について、切替後精度予測値を算出する。次に、切替決定部32は、精度要求情報記憶部37を参照し、各解析処理について、切替を行った後の精度要求を満たす度合いを表す切替後精度要求充足率を以下の式を用いて算出する。
Switching accuracy requirement satisfaction rate = switching accuracy predicted value / accuracy requirement The switching
切替後精度要求充足率=切替後精度予測値/精度要求
[効果]
第3の実施の形態にかかる制御装置30は、ユーザの精度要求をできるだけ満たすように、最適な切替パターンを選択できる。
Post-switching accuracy requirement satisfaction rate = post-switching accuracy prediction value / accuracy request
[effect]
The
その理由は、切替決定部32が、精度要求情報記憶部37に記憶する精度要求に基づいて切替前、切替時および切替後の精度充足率を計算し、切替前精度スコアおよび切替精度スコアの算出に利用するからである。
The reason is that the switching
[第4の実施の形態]
図28は、本実施の形態にかかる制御装置30の構成図である。制御装置30は、切替決定部32を備える。
[Fourth embodiment]
FIG. 28 is a configuration diagram of the
切替決定部32は、第一の処理装置20で実行中の複数の解析処理のひとつ(以降、切替対象解析処理)を、第二の処理装置20に切替えて実行した場合の切替対象解析処理の精度を示す切替精度スコアを算出する。切替決定部32は、切替処理中の精度予測値、および、切替完了後の精度予測値に基づいて当該切替精度スコアを算出し、算出された当該切替精度スコアに基づいて、切替対象解析処理の切替を実行するか否かを決定する。
The switching
本実施の形態においては、第一の実施の形態における切替実行部31相当の要素は、図示されない他の装置が備えている。本実施の形態にかかる制御装置30は、当該他の装置に決定した結果を出力する。また、本実施の形態において、切替決定部32は、その内部に、切替処理中の精度予測値、および、切替完了後の精度予測値を設定パラメータとして記憶している。
In the present embodiment, the elements corresponding to the switching
実行する処理装置20を切替えるときに、一時的に処理精度の低下を発生する解析処理が存在する。例えば、切替後に入力データから学習をし直すような解析処理がある。本実施の形態にかかる制御装置30は、そのような解析処理の処理装置20の切替を効率的に実行できる。すなわち、制御装置30は、処理装置20の切替によって負荷を制御する場合において、精度の低下を抑制しながら、複数の処理装置20で複数の解析処理を実行させることを可能にする。
There is an analysis process that temporarily lowers the processing accuracy when the processing device 20 to be executed is switched. For example, there is an analysis process in which learning is performed again from input data after switching. The
その理由は、切替決定部32が、切替による精度の変化を表す切替処理中の精度予測情報に基づいて切替の実行を決定するからである。
The reason is that the switching
以上、これまで述べてきた各実施の形態は、本発明の実施形態の例であり、上記実施の形態のみに本発明の範囲を限定するものではなく、本発明の要旨を逸脱しない範囲において種々の変更を施した形態での実施が可能である。 As mentioned above, each embodiment described so far is an example of the embodiment of the present invention, and the scope of the present invention is not limited only to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention. It is possible to implement in a form that has been modified.
例えば、処理装置20の負荷計測部21、実行部22、および、制御装置30の切替実行部31、切替決定部32は、ファームウェアを含む論理回路で実現できる。制御装置30の切替時精度予測情報記憶部33、負荷毎精度予測情報記憶部34、処理装置資源情報記憶部35、環境毎切替時精度予測情報記憶部36、および精度要求情報記憶部37は、例えば、磁気ディスク装置で実現できる。
For example, the
更に、処理装置20、または制御装置30は、プログラム43を備えるコンピュータ装置40で実現することも出来る。
Further, the processing device 20 or the
図15は、コンピュータ装置40の構成図である。コンピュータ装置40は、バス45で相互に接続されたプロセッサ41、主記憶部42、補助記憶装置44を備える。ここで、例えば、主記憶部42は半導体メモリ、補助記憶装置44は磁気ディスク装置である。主記憶部42はプログラム43を記憶している。
FIG. 15 is a configuration diagram of the computer device 40. The computer device 40 includes a
処理装置20を実現するプログラム43は、プロセッサ41で実行されることにより、プロセッサ41を負荷計測部21、実行部22として機能させるとともに、プロセッサ41に解析処理を行わせる。
The
また、制御装置30を実現するプログラム43は、プロセッサ41で実行されることにより、プロセッサ41を切替実行部31、切替決定部32として機能させる。この場合、制御装置30の切替時精度予測情報記憶部33、負荷毎精度予測情報記憶部34、処理装置資源情報記憶部35、環境毎切替時精度予測情報記憶部36、および精度要求情報記憶部37は、補助記憶装置44で実現できる。
In addition, the
[第1の実施の形態の具体例]
図16は、第1の実施の形態の制御システム50の構成の具体例を示す図である。
[Specific example of the first embodiment]
FIG. 16 is a diagram illustrating a specific example of the configuration of the control system 50 according to the first embodiment.
本具体例において、データ配信装置10は、ネットワークに接続されたカメラ10eであり、撮影した動画像データを処理装置20に入力する。
In this specific example, the
また、本具体例において、処理装置20は、コンピュータ装置40により実現される。実行部22は、実行制御プログラム22eであり、各解析プログラムの起動、停止、通信の仲介を行う。 In this specific example, the processing device 20 is realized by the computer device 40. The execution unit 22 is an execution control program 22e, and activates, stops, and mediates communication of each analysis program.
図1に示される解析処理a、解析処理b、解析処理cは、それぞれ、図16の解析プログラムa、解析プログラムb、解析プログラムcによって実行され、カメラ10e−a、カメラ10e−b、カメラ10e−cから取得した動画像データを解析する。各解析プログラムは、顔特徴量抽出、人物追跡、群衆行動解析を行い、解析結果を制御装置30にネットワーク通信により出力する。また、各解析プログラムは、直近の一定時間におけるフレーム毎の平均処理時間を負荷計測プログラム21eにプログラム間通信により出力する。
The analysis process a, the analysis process b, and the analysis process c shown in FIG. 1 are executed by the analysis program a, the analysis program b, and the analysis program c in FIG. 16, respectively, and the
負荷計測部21は、負荷計測プログラム21eである。負荷計測プログラム21eは、各解析プログラムのフレーム毎の平均処理時間を取得し、解析プログラム毎の負荷を算出する。ここで、解析プログラム毎の負荷は解析プログラム毎に必要とするプロセッサのコア数であり、負荷計測プログラム21eは、負荷を以下の式で算出する。
The
解析プログラム毎の負荷=フレームレート×フレーム毎の処理時間
例えば、フレームレートが10フレーム/秒、フレーム毎の処理時間が0.2秒だった場合、解析プログラムは1秒間に2プロセッサ時間を消費するため、必要コア数は2となる。
Load per analysis program = frame rate x processing time per frame For example, if the frame rate is 10 frames / second and the processing time per frame is 0.2 seconds, the analysis program consumes 2 processor hours per second. Therefore, the required number of cores is 2.
負荷計測プログラム21eは、制御装置30に解析プログラム毎の負荷をネットワーク通信により出力する。
The
なお、実行制御プログラム22e、各解析プログラム、負荷計測プログラム21eは、処理装置20を実現するコンピュータ装置40が備えるプログラム43の一部である。
The execution control program 22e, each analysis program, and the
本具体例において、制御装置30は、処理装置20とは別のコンピュータ装置40により実現される。
In this specific example, the
切替決定部32は、切替決定プログラム32eである。切替決定プログラム32eは、負荷計測プログラム21eから各解析プログラムの負荷を取得し、切替の対象となる解析プログラムと切替先の処理装置20との組み合わせを表す切替パターンを決定する。その後、切替決定プログラム32eは、プログラム間通信により決定結果を切替実行プログラム31eに出力する。
The switching
切替実行部31は、切替実行プログラム31eであり、切替決定プログラム32eからの指示を受け、処理プログラムの切替を行う。
The switching
本具体例において、切替時精度予測情報記憶部33、負荷毎精度予測情報記憶部34、処理装置資源情報記憶部35は、コンピュータ装置40の補助記憶装置44であり、各種情報をデータベース化して記憶している。
In this specific example, the switching accuracy prediction
なお、切替実行プログラム31e、および切替決定プログラム32eは、制御装置30を実現するコンピュータ装置40が備えるプログラム43の一部である。
The switching
[動作]
次に、図8、図9を参照して、本具体例の制御システム50の全体の動作について説明する。
[Operation]
Next, the overall operation of the control system 50 of this specific example will be described with reference to FIGS.
切替決定プログラム32eは、負荷計測プログラム21eからネットワーク通信により各解析プログラムの負荷を取得する(ステップS1)。切替決定プログラム32eは、負荷に基づいて、切替の対象となる解析プログラムと切替先の処理装置との組み合わせを表す切替パターンを決定し、プログラム間通信により切替実行プログラム31eに伝える(ステップS2)。切替実行プログラム31eは、切替パターンに基づき、切替対象となる解析プログラムの処理装置の切替を行う(ステップS3)。
The switching
ここで、切替の動作について詳細に説明する。まず、切替実行プログラム31eは、ネットワーク通信により元の処理装置20の実行制御プログラム22eに切替対象となる解析プログラムの実行の停止を指示する。元の処理装置20において、実行制御プログラム21eは当該解析プログラムの実行を停止し、負荷計測プログラム21eに停止を通知する。次に、切替実行プログラム31eは、当該解析プログラムを元の処理装置20から切替先の処理装置20へと移動する。
Here, the switching operation will be described in detail. First, the switching
ここで、移動の動作について、詳細に説明する。切替実行プログラム31eは、当該解析プログラムの実行に必要なプログラムや設定情報等を、元の処理装置20から切替先の処理装置20へと転送する。切替先の処理装置20では、実行制御プログラム22eが、当該処理装置20で当該解析プログラムを実行可能な状態にセットアップする。
Here, the movement operation will be described in detail. The switching
なお、解析プログラムの実行に必要なプログラムや設定情報等を、予め各処理装置20に配置し、実行可能な状態にセットアップしておいてもよく、その場合、切替実行プログラム31eは、移動の動作を省略する。
Note that a program, setting information, and the like necessary for executing the analysis program may be arranged in advance in each processing device 20 and set up in an executable state. In this case, the switching
次に、切替実行プログラム31eは、切替先の処理装置20の実行制御プログラム22eに解析プログラムの実行を指示する。切替先の処理装置では、実行制御プログラム22eが、解析プログラムの実行を開始し、開始を負荷計測プログラム21eに通知する。制御装置30は、ステップS1、S2、S3を所定の間隔で繰り返し実行する。
Next, the switching
図9は、切替決定プログラム32eが、切替の対象となる解析プログラムと切替先の処理装置20との組み合わせを表す切替パターンを決定する動作(ステップS2)を詳細に示すフローチャートである。
FIG. 9 is a flowchart showing in detail an operation (step S2) in which the
また、図17、図18、図19は、本具体例における切替時精度予測情報、負荷毎精度予測情報、処理装置資源情報の値を例示したものである。図20は、負荷計測プログラム21eが出力する各解析プログラムの負荷を例示した表である。図21は、図17乃至図20に例示した値に基づいて、切替前精度予測値、切替前精度スコアの具体的な計算値を示した表である。図22は、図19乃至図20に例示した値に基づいて、切替パターン毎に、切替時精度予測値、切替後精度予測値、切替精度スコアの具体的な計算値を示した表である。ここで、切替決定プログラム32eが切替パターンを決定する動作を、具体的な数値を用いて説明する。
FIGS. 17, 18, and 19 exemplify values of switching accuracy prediction information, load-specific accuracy prediction information, and processing device resource information in this specific example. FIG. 20 is a table illustrating the load of each analysis program output by the
切替決定プログラム32eは、解析の負荷の情報に基づいて、切替前精度スコアを算出する(ステップS11)。ここで、切替前精度スコアは、切替を行わない場合において、予測期間における解析処理の精度の度合いを数値化したものである。
The switching
切替前精度スコアの算出について、具体的に説明する。ここで、切替を行う前の構成を図16が示す通りとする。図16を参照すると、切替を行う前は、解析プログラムaと解析プログラムbが処理装置20−aで実行される。図19が示すように、処理装置20−aの処理資源は4であり、また図20が示すように、解析プログラムaと解析プログラムbの負荷は各々2.5であるため、処理装置20−aの負荷率Lは、以下の通り1.25となる。 The calculation of the accuracy score before switching will be specifically described. Here, the configuration before switching is as shown in FIG. Referring to FIG. 16, before switching, the analysis program a and the analysis program b are executed by the processing device 20-a. As shown in FIG. 19, the processing resource of the processing device 20-a is 4, and as shown in FIG. 20, the loads of the analysis program a and the analysis program b are 2.5, respectively. The load factor L of a is 1.25 as follows.
(2.5+2.5)/4=1.25
同様にして、処理装置20−bの負荷率Lは0.500となる。図18の負荷毎精度予測情報の値より、解析プログラムaの切替前精度予測値は、以下の通り0.375となる。
(2.5 + 2.5) /4=1.25
Similarly, the load factor L of the processing device 20-b is 0.500. From the value of the accuracy prediction information for each load in FIG. 18, the accuracy prediction value before switching of the analysis program a is 0.375 as follows.
1−0.5×1.25=0.375
同様にして、解析プログラムb、解析プログラムcの切替前精度予測値は、0.875、1.00となる。切替前精度スコアは、各解析処理プログラムの切替前精度予測値のうち最小である0.375となる。
1-0.5 × 1.25 = 0.375
Similarly, the predicted accuracy values before switching of the analysis program b and the analysis program c are 0.875 and 1.00. The accuracy score before switching is 0.375, which is the smallest of the predicted accuracy values before switching of each analysis processing program.
切替決定プログラム32eは、次に、切替パターン毎に、切替精度スコアを算出する(ステップS12)。ここで、切替精度スコアは、予測期間において、切替時および切替後の解析の精度の度合いを数値化したものである。
Next, the switching
切替精度スコアの算出について、具体的に説明する。ここで、図22において、切替パターンP1は、図16が示す構成から、解析プログラムaを処理装置20−bに切り替える切替パターンを示す。切替パターンP2は、図16が示す構成から、解析処理プログラムbを処理装置20−bに切り替える切替パターンを示す。切替パターンP3は、図16が示す構成から、解析プログラムcを処理装置20−aに切り替える切替パターンを示す。 The calculation of the switching accuracy score will be specifically described. Here, in FIG. 22, a switching pattern P1 indicates a switching pattern for switching the analysis program a to the processing device 20-b from the configuration shown in FIG. The switching pattern P2 indicates a switching pattern for switching the analysis processing program b to the processing device 20-b from the configuration illustrated in FIG. The switching pattern P3 indicates a switching pattern for switching the analysis program c to the processing device 20-a from the configuration illustrated in FIG.
切替パターンP1において、解析プログラムaは切替対象であり、その切替時精度予測値は、図17の切替時精度予測情報より、図22が示すように0.800となる。解析プログラムbおよび解析プログラムcは切替対象ではなく、その切替時精度予測値は各々1.00となる。 In the switching pattern P1, the analysis program a is a switching target, and the switching accuracy prediction value is 0.800 as shown in FIG. 22 from the switching accuracy prediction information of FIG. The analysis program b and the analysis program c are not switching targets, and the switching accuracy prediction value is 1.00 respectively.
また、切替パターンP1において、切替を行った後、解析プログラムbを処理装置20−aが、解析プログラムa、解析プログラムcを処理装置20-bが実行する。処理装置20−aの切替後負荷率Lは、図19の処理装置資源情報および図20の負荷の値を参照すると、以下の通り、0.625となる。 Further, after switching in the switching pattern P1, the processing device 20-a executes the analysis program b, and the processing program 20-b executes the analysis program a and the analysis program c. The post-switching load factor L of the processing device 20-a is 0.625 as follows, referring to the processing device resource information in FIG. 19 and the load value in FIG.
2.5/4=0.625
同様にして、処理装置20-bの切替後負荷率Lは1.13となる。
2.5 / 4 = 0.625
Similarly, the post-switching load factor L of the processing device 20-b is 1.13.
図18の負荷毎精度予測情報より、解析プログラムaの切替後精度予測値は、以下の通り、0.438となる。 From the accuracy prediction information for each load in FIG. 18, the post-switching accuracy prediction value of the analysis program a is 0.438 as follows.
1−0.5×1.13=0.438
同様にして、解析プログラムb、解析プログラムbの切替後精度予測値は、1.00、0.719となる。
1-0.5 × 1.13 = 0.438
Similarly, the post-switch accuracy prediction values of the analysis program b and the analysis program b are 1.00 and 0.719.
解析プログラムaの解析処理毎切替精度スコアは、予測期間を20秒とすると、図17より切替期間が10秒であるため、切替後予測期間は10秒となり、時間平均をとると、以下のように0.618となる。 When the prediction period is 20 seconds, the switching accuracy score for each analysis process of the analysis program a is 10 seconds because the switching period is 10 seconds from FIG. 17, and the prediction period after switching is 10 seconds. 0.618.
0.800×(10/20)+0.438×(10/20)=0.618
同様にして、解析プログラムb、解析プログラムcの解析処理毎切替精度スコアは1.00、0.859となる。
0.800 × (10/20) + 0.438 × (10/20) = 0.618
Similarly, the switching accuracy score for each analysis process of the analysis programs b and c is 1.00 and 0.859.
従って、切替パターンP1において、切替精度スコアは、解析処理毎切替精度スコアのうち最小である0.618となる。同様にして、切替パターンP2、P3の切替精度スコアは図22に示すように0.543、0.500と算出される。 Therefore, in the switching pattern P1, the switching accuracy score is 0.618 which is the minimum of the switching accuracy scores for each analysis process. Similarly, the switching accuracy scores of the switching patterns P2 and P3 are calculated as 0.543 and 0.500 as shown in FIG.
次に、切替決定プログラム32eは、切替前精度スコアおよび切替精度スコアに基づいて、最適な切替パターンを選択する(ステップS13)。
Next, the switching
切替パターンを決定する動作について、図21、22を用いて具体的に説明する。図22を参照すると、切替精度スコアが最大となる切替パターンはP1であり、その切替精度スコアは0.618である。図21を参照すると、切替前精度スコアは0.375であり、切替精度スコアは切替前精度スコアより大きい。従って、切替決定プログラム32eは、切替パターンP1を最適な切替パターンとして決定し、切替を切替実行プログラム31eに指示する。
The operation for determining the switching pattern will be specifically described with reference to FIGS. Referring to FIG. 22, the switching pattern having the maximum switching accuracy score is P1, and the switching accuracy score is 0.618. Referring to FIG. 21, the pre-switching accuracy score is 0.375, and the switching accuracy score is larger than the pre-switching accuracy score. Therefore, the switching
図22を参照すると、切替後負荷率Lから、切替後の負荷の偏りの度合いは、切替パターンP1およびP2が同様に低く、切替パターンP3が高い。即ち、切替パターンP1およびP2において、切替後の負荷が平準化される。切替時精度予測値から、切替時の精度の劣化が最も小さいのは切替パターンP1である。即ち、本具体例では、切替決定プログラム32eは、精度の低下を抑制しながら複数の処理装置20で複数の解析プログラムを効率的に実行する、切替パターンP1を選択することができた。
Referring to FIG. 22, from the post-switching load factor L, the degree of load bias after switching is similarly low in switching patterns P1 and P2, and high in switching pattern P3. That is, the load after switching is leveled in the switching patterns P1 and P2. From the predicted accuracy value at the time of switching, the switching pattern P1 has the smallest deterioration in accuracy at the time of switching. That is, in this specific example, the switching
[第2の実施の形態の具体例]
図23は、第2の実施の形態の制御システム50の構成の具体例を示す図である。本具体例の制御システム50は、処理装置20が環境解析プログラム備える点で、第1の実施の形態の具体例と異なる。図10に示される環境解析処理a、環境解析処理b、環境解析処理cは、それぞれ、本図の環境解析プログラムa、環境解析プログラムb、環境解析プログラムcによって実行される。また、環境解析プログラムa、環境解析プログラムb、環境解析プログラムcは、それぞれ、解析プログラムa、解析プログラムb、解析プログラムcとペアを構成する。
[Specific example of the second embodiment]
FIG. 23 is a diagram illustrating a specific example of the configuration of the control system 50 according to the second embodiment. The control system 50 of this specific example is different from the specific example of the first embodiment in that the processing device 20 includes an environment analysis program. The environment analysis process a, the environment analysis process b, and the environment analysis process c shown in FIG. 10 are executed by the environment analysis program a, the environment analysis program b, and the environment analysis program c shown in FIG. The environment analysis program a, the environment analysis program b, and the environment analysis program c constitute a pair with the analysis program a, the analysis program b, and the analysis program c, respectively.
また、本具体例における制御装置30は、環境毎切替時精度予測情報記憶部36を備える点でも、第1の実施の形態の具体例と異なる。本具体例において、環境毎切替時精度予測情報記憶部36は、コンピュータ装置40の補助記憶装置44であり、情報をデータベース化して記憶している。その他の構成要素については、第1の実施の形態の具体例と同様である。第1の実施の形態の具体例と同様の構成要素については、同一の符号を付し、詳細な説明を省略する。
In addition, the
処理装置20−aは、環境解析プログラムa、環境解析プログラムbを備える。処理装置20−bは、環境解析プログラムcを備える。環境解析プログラムa、環境解析プログラムb、環境解析プログラムcは、それぞれカメラ10−a、カメラ10−b、カメラ10−cからネットワーク通信により動画像データを取得する。そして、各環境解析プログラムは、環境条件として映像データ中の人物数Eを解析し、切替決定プログラム32eに解析結果をネットワーク通信により出力する。
The processing device 20-a includes an environment analysis program a and an environment analysis program b. The processing device 20-b includes an environment analysis program c. The environment analysis program a, the environment analysis program b, and the environment analysis program c acquire moving image data from each of the cameras 10-a, 10-b, and 10-c through network communication. Each environmental analysis program analyzes the number of persons E in the video data as the environmental condition, and outputs the analysis result to the switching
切替決定プログラム32eは、各環境解析プログラムから人物数Eを取得し、人物数Eに応じて切替時精度予測値を算出した上で、切替の対象となる解析プログラムと切替先の処理装置との組み合わせを表す切替パターンを決定する。
The switching
図24は、環境毎切替時精度予測情報記憶部36が記憶する環境毎切替時精度予測情報を示す。この環境毎切替時精度予測情報は、切替を行った場合の精度の予測を、精度の最大値を1.0としたときの相対値として、映像データ中の人物数Eに応じた関数を用いて表している。例えば、動画像データ中の人物が異常行動をとった場合に、解析処理がその異常行動を検知してアラートの発報を行うとする。人物数Eが0の場合、異常行動は検知されず、切替によって正しいアラートの発報率は変化しない。動画像データ中の人物数Eが増加すると、異常行動とる人物の数が確率的に増加し、切替によって正しいアラートの発報率は低下することになる。即ち、図24の表の切替時精度予測欄に例示するように、切替時精度予測情報は、映像データ中の人物数Eという環境条件の増加に応じて、精度が低下する関数として表すことができる。
FIG. 24 shows switching accuracy prediction information for each environment stored in the switching accuracy prediction
[動作]
次に、図12のフローチャートを参照して、本具体例の制御システム50の全体の動作について説明する。第1の実施の形態の具体例と同様の動作については、詳細な説明を省略する。
[Operation]
Next, the overall operation of the control system 50 of this specific example will be described with reference to the flowchart of FIG. Detailed descriptions of operations similar to those of the specific example of the first embodiment are omitted.
本具体例の動作は、以下の点で第1の実施の形態の具体例の動作と異なる。相違点の一つ目は、切替決定プログラム32eが、各環境解析プログラムから環境条件を取得する(ステップS4)点である。また、相違点の二つ目は、切替決定プログラム32eが、環境条件に応じて切替時精度予測値を算出した上で、切替パターン毎に切替精度スコアを算出する(ステップS12)点である。相違点の三つ目は、切替実行プログラム31eが、対象となる解析プログラムに加えて、対象となる解析プログラムとペアになる環境解析プログラムの切替を行う(ステップS3)点である。
The operation of this example is different from the operation of the example of the first embodiment in the following points. The first difference is that the switching
切替決定プログラム32eは、環境条件に応じて、切替パターン毎に、切替精度スコアを以下のように算出する。まず、切替決定プログラム32eは、各環境解析プログラムから取得した環境条件である人物数Eの値を元に、環境毎切替時精度予測情報を参照し、各解析プログラムの切替時精度予測値を計算する。ここで、各環境解析プログラムが解析して得られた人物数Eはそれぞれ1人であったとすると、解析プログラムaの切替時精度予測値は、以下の通り、0.8となる。
The switching
1.0−0.2×1=0.8
同様に、解析プログラムb、解析プログラムcの切替時精度予測値は、0.2、0.5となる。
1.0−0.2 × 1 = 0.8
Similarly, the predicted accuracy values at the time of switching between the analysis program b and the analysis program c are 0.2 and 0.5.
次に、切替決定プログラム32eは、第1の実施形態の具体例における動作と同様にして、切替パターンごとに切替精度スコアを算出する。切替精度スコアは、第1の実施形態の具体例と同様に計算すると、図22の表に示す値となる。切替決定プログラム32eは、第1の実施形態の具体例と同様に、切替パターンP1を最適な切替パターンとして決定する。
Next, the switching
切替実行プログラム31eは、切替対象となる解析プログラムa、および解析プログラムaとペアを構成する環境解析プログラムaについて、処理装置20−aから処理装置20−bへの切替を行う(ステップS3)。
The switching
本具体例では、切替決定プログラム32eは、切替時精度予測値の値を固定値として保持せず、環境条件に応じて動的に生成し、切替パターンの選択に使用している。そのため、切替決定プログラム32eは、切替を行う場合の精度が、解析対象のデータの内容によって変動する場合においても、精度の低下を抑制しながら複数の処理装置20で複数の解析プログラムを効率的に実行する、切替パターンP1を選択できる。
In this specific example, the switching
[第3の実施の形態の具体例]
本具体例の制御装置30は、精度要求情報記憶部37を備える点で、第1の実施の形態の具体例と異なる。本具体例において、精度要求情報記憶部37は、コンピュータ装置40の補助記憶装置44であり、情報をデータベース化して記憶している。その他の構成要素については、第1の実施の形態の具体例と同様である。第1の実施の形態の具体例と同様の構成要素については、同一の符号を付し、詳細な説明を省略する。
[Specific example of the third embodiment]
The
[動作]
本具体例の制御システム50の動作は、以下の点で第1の実施の形態の具体例の動作と異なる。相違点は、切替決定プログラム32eが、精度要求情報を考慮して、切替前精度スコアを算出し(図9のステップS11)、切替精度スコアを算出する(ステップS12)点である。
[Operation]
The operation of the control system 50 of this example is different from the operation of the example of the first embodiment in the following points. The difference is that the switching
切替決定プログラム32eが切替パターンを決定する動作を、具体的な数値を用いて説明する。図25は、精度要求情報が含む、解析プログラム毎の精度要求の値を示す。図26は、図25に示した精度要求に基づいて、切替前精度要求充足率、切替前精度スコアの具体的な計算値を示した表である。また、図27は、切替時精度要求充足率、切替後精度要求充足率、切替精度スコアの具体的な計算値を示した表である。
The operation of the switching
ステップS11における、切替前精度スコアの算出について、具体的に説明する。ここで、切替を行う前の構成は図16が示す通りとする。第1の実施の形態の具体例と同様にして、解析プログラムbについて、切替前精度予測値は0.875と算出される。ここで、図25の精度要求情報の値を参照すると、解析プログラムbの精度要求は0.4であり、その切替前精度要求充足率は、以下の通り、2.19となる。 The calculation of the pre-switching accuracy score in step S11 will be specifically described. Here, the configuration before switching is as shown in FIG. Similarly to the specific example of the first embodiment, the pre-switching accuracy prediction value is calculated as 0.875 for the analysis program b. Here, referring to the value of the accuracy requirement information in FIG. 25, the accuracy requirement of the analysis program b is 0.4, and the accuracy requirement satisfaction rate before switching is 2.19 as follows.
0.875/0.4=2.19
同様にして、解析プログラムa、解析プログラムcの切替前精度要求充足率はそれぞれ0.375、1.25となる。この状況(図26)で、切替前精度スコアは、切替前精度要求充足率のうちの最小値である0.375と算出される。
0.875 / 0.4 = 2.19
Similarly, the required accuracy rates before switching between the analysis program a and the analysis program c are 0.375 and 1.25, respectively. In this situation (FIG. 26), the pre-switching accuracy score is calculated as 0.375, which is the minimum value of the pre-switching accuracy required satisfaction rate.
図9のステップS12における、切替精度スコアの算出について、具体的に説明する。ここで、図27において、切替パターンP1は、図16が示す構成から、解析プログラムaを処理装置20−bに切り替える切替パターンを示す。切替パターンP2は、図16が示す構成から、解析プログラムbを処理装置20-bに切り替える切替パターンを示す。切替パターンP3は、図16が示す構成から、解析プログラムcを処理装置20−aに切り替える切替パターンを示す。 The calculation of the switching accuracy score in step S12 in FIG. 9 will be specifically described. Here, in FIG. 27, a switching pattern P1 indicates a switching pattern for switching the analysis program a to the processing device 20-b from the configuration shown in FIG. The switching pattern P2 indicates a switching pattern for switching the analysis program b to the processing device 20-b from the configuration illustrated in FIG. The switching pattern P3 indicates a switching pattern for switching the analysis program c to the processing device 20-a from the configuration illustrated in FIG.
切替パターンP1において、第1の実施の形態の具体例と同様にして、解析プログラムbについて、切替時精度予測値は1.00と算出される。ここで、図25に示す精度要求情報の値を参照すると、解析プログラムbの精度要求は0.4であり、その切替時精度要求充足率は、以下に示すように、2.50となる。 In the switching pattern P1, similarly to the specific example of the first embodiment, the switching accuracy prediction value is calculated as 1.00 for the analysis program b. Here, referring to the value of the accuracy requirement information shown in FIG. 25, the accuracy requirement of the analysis program b is 0.4, and the accuracy requirement satisfaction rate at the time of switching is 2.50 as shown below.
1.00/0.4=2.50
同様にして、解析プログラムa、解析プログラムc0の切替時精度要求充足率は、それぞれ0.800、1.25となる。
1.00 / 0.4 = 2.50
Similarly, the accuracy requirement satisfaction rate at the time of switching between the analysis program a and the analysis program c0 is 0.800 and 1.25, respectively.
また、切替パターンP1において、第1の実施の形態の具体例と同様にして、解析プログラムbについて、切替後精度予測値は1.00と算出される。ここで、図25に示す精度要求情報の値を参照すると、解析プログラムbの精度要求は0.4であり、その切替時精度要求充足率は、以下のように、2.50となる。 In addition, in the switching pattern P1, the post-switching accuracy prediction value is calculated as 1.00 for the analysis program b, as in the specific example of the first embodiment. Here, referring to the value of the accuracy requirement information shown in FIG. 25, the accuracy requirement of the analysis program b is 0.4, and the switching accuracy requirement satisfaction rate is 2.50 as follows.
1.00/0.4=2.50
同様にして、解析プログラムa、解析プログラムcの切替後精度要求充足率は、それぞれ0.438、0.898となる。
1.00 / 0.4 = 2.50
Similarly, the required accuracy rates after switching between the analysis program a and the analysis program c are 0.438 and 0.898, respectively.
図17より解析プログラムbの切替期間は、10秒である。したがって、予測期間を20秒とすると切替後予測期間は10秒となり、時間平均をとると、解析処理毎切替精度スコアは、以下の通り2.50となる。 From FIG. 17, the switching period of the analysis program b is 10 seconds. Therefore, when the prediction period is 20 seconds, the post-switching prediction period is 10 seconds, and when the time average is taken, the switching accuracy score for each analysis process is 2.50 as follows.
2.50×(10/20)+2.50×(10/20)=2.50
同様にして、解析プログラムa、解析プログラムcの解析処理毎切替精度スコアは0.619、1.07となる。従って、切替パターンP1において、切替精度スコアは、解析処理毎切替精度スコアのうち最小値である0.619となる。同様にして、切替パターンP2、P3の切替精度スコアは図27に示すように、1.00、0.500と算出される。
2.50 × (10/20) + 2.50 × (10/20) = 2.50
Similarly, the switching accuracy scores for each analysis process of the analysis program a and the analysis program c are 0.619 and 1.07. Therefore, in the switching pattern P1, the switching accuracy score is 0.619 which is the minimum value among the switching accuracy scores for each analysis process. Similarly, the switching accuracy scores of the switching patterns P2 and P3 are calculated as 1.00 and 0.500 as shown in FIG.
図22と図27とを比較すると、切替決定プログラム32eは、第1の実施形態の具体例における図22では配置パターンP1を選択し、本具体例における図27では配置パターンP2を選択する。即ち、本具体例において、精度要求情報を用いることで、切替決定プログラム32eは、ユーザの精度要求に応じて切替パターンを選択することができる。
22 and 27 are compared, the switching
10 データ配信装置
10−a データ配信装置
10−b データ配信装置
10−c データ配信装置
10e カメラ
10e−a カメラ
10e−b カメラ
10e−c カメラ
20 処理装置
20−a 処理装置
20−b 処理装置
21 負荷計測部
21e 負荷計測プログラム
22 実行部
22e 実行制御プログラム
30 制御装置
31 切替実行部
31e 切替実行プログラム
32 切替決定部
32e 切替決定プログラム
33 切替時精度予測情報記憶部
34 負荷毎精度予測情報記憶部
35 資源情報記憶部
36 環境毎切替時精度予測情報記憶部
37 精度要求情報記憶部
40 コンピュータ装置
41 プロセッサ
42 主記憶部
43 プログラム
44 補助記憶装置
45 バス
50 制御システム
DESCRIPTION OF
Claims (7)
前記解析処理の環境条件値に基づいて前記切替処理中の精度予測値を算出する為の切替時精度予測情報を格納する切替時精度予測情報記憶手段とを、備え、
前記切替決定手段は、前記第一の処理装置から前記環境条件値を取得して、前記切替時精度予測情報を用いて前記切替処理中の予測値を算出する、
制御装置。 A switching accuracy score indicating the accuracy of the switching target analysis process when one of a plurality of analysis processes (hereinafter referred to as switching target analysis process) being executed in the first processing apparatus is switched to the second processing apparatus and executed. , Calculated based on the predicted accuracy value during the switching process and the predicted accuracy value after the switching is completed, and determines whether or not to switch the switching target analysis process based on the calculated switching accuracy score Switching decision means to
Switching accuracy prediction information storage means for storing switching accuracy prediction information for calculating the accuracy prediction value during the switching processing based on the environmental condition value of the analysis processing,
The switching determination means acquires the environmental condition value from the first processing device, and calculates a predicted value during the switching process using the switching accuracy prediction information.
Control device.
前記切替決定手段は、前記切替精度スコアを、切替処理中の精度予測値の前記精度要求に対する充足率、および、切替完了後の精度予測値の前記精度要求に対する充足率に基づいて算出する、請求項1の制御装置。 The accuracy requirements information storage means for storing the accuracy requirements of the switching target analysis, further comprising,
Said switching determining means, said switching accuracy score, fulfillment rate for the accuracy requirements of precision prediction values in the switching process, and is calculated based on the fill rate for the accuracy requirements of precision prediction value after completion of switching, wherein Item 2. The control device according to Item 1 .
前記切替対象解析処理の前記第一の処理装置から前記第二の処理装置への切替を実行する切替実行手段と、をさらに備え、
前記切替決定手段は、前記第一の処理装置から前記切替対象解析処理の処理量を取得し、当該処理量と前記第二の処理装置の処理資源量とから、前記切替対象解析処理の切替完了後の精度予測値を算出する請求項1又は2の制御装置。 Resource information storage means for storing the processing resource amount of the second processing device;
Switching execution means for executing switching from the first processing device to the second processing device in the switching target analysis processing,
The switching determination unit acquires the processing amount of the switching target analysis process from the first processing device, and completes switching of the switching target analysis processing from the processing amount and the processing resource amount of the second processing device. The control device according to claim 1 or 2, which calculates a subsequent accuracy prediction value.
前記第一の処理装置と、
複数の前記解析処理を実行する前記第二の処理装置を1以上包含する制御システムであって、
前記切替決定手段は、前記制御システム内の処理装置で実行中の前記解析処理の何れかを他の何れかの処理装置に切替えるすべての組み合わせの各々について、a1)前記切替対象解析処理の前記切替精度スコアを算出し、さらに、a2)前記切替対象解析処理以外の前記解析処理について、前記切替対象解析処理の切替完了後の当該解析処理の精度を示す前記切替精度スコアを切替完了後の精度予測値に基づいて算出し、b)前記解析処理中の精度スコアの最低値が最も高くなる組み合わせを選択して、当該組み合わせに従って前記切替対象解析処理の切替実施を決定する、制御システム。 A control device according to any one of claims 1 to 3 ;
The first processing device;
A control system including one or more of the second processing devices that execute a plurality of the analysis processes,
The switching determination means a1) the switching of the switching target analysis process for each of all combinations for switching any of the analysis processes being executed by the processing apparatus in the control system to any other processing apparatus. An accuracy score is calculated, and a2) for the analysis processing other than the switching target analysis processing, the switching accuracy score indicating the accuracy of the analysis processing after the switching of the switching target analysis processing is completed, and the accuracy prediction after the switching is completed B) A control system that calculates based on a value, and b) selects a combination having the highest accuracy score during the analysis process and decides to switch the switching target analysis process according to the combination.
前記解析処理の環境条件値に基づいて前記切替処理中の精度予測値を算出する為の切替時精度予測情報を切替時精度予測情報記憶手段に格納し、
前記第一の処理装置から前記環境条件値を取得して、前記切替時精度予測情報を用いて前記切替処理中の予測値を算出する、方法。 A switching accuracy score indicating the accuracy of the switching target analysis process when one of a plurality of analysis processes (hereinafter referred to as switching target analysis process) being executed in the first processing apparatus is switched to the second processing apparatus and executed. , Calculated based on the predicted accuracy value during the switching process and the predicted accuracy value after the switching is completed, and determines whether or not to switch the switching target analysis process based on the calculated switching accuracy score And
Storing the switching accuracy prediction information for calculating the accuracy prediction value during the switching process based on the environmental condition value of the analysis processing in the switching accuracy prediction information storage means;
A method of obtaining the environmental condition value from the first processing device and calculating a predicted value during the switching process using the switching accuracy prediction information .
前記切替精度スコアを、切替処理中の精度予測値の前記精度要求に対する充足率、および、切替完了後の精度予測値の前記精度要求に対する充足率に基づいて算出する、請求項5の方法。 Store the accuracy requirement of the switching target analysis processing in accuracy requirement information storage means,
6. The method according to claim 5, wherein the switching accuracy score is calculated based on a satisfaction rate of the accuracy prediction value during the switching process with respect to the accuracy requirement and a satisfaction rate of the accuracy prediction value after the switching is completed with respect to the accuracy requirement.
前記解析処理の環境条件値に基づいて前記切替処理中の精度予測値を算出する為の切替時精度予測情報を格納する切替時精度予測情報記憶手段を備えたコンピュータに実行させ、
さらに、前記コンピュータに、前記第一の処理装置から前記環境条件値を取得して、前記切替時精度予測情報を用いて前記切替処理中の予測値を算出する、前記切替決定処理を実行させる、プログラム。 A switching accuracy score indicating the accuracy of the switching target analysis process when one of a plurality of analysis processes (hereinafter referred to as switching target analysis process) being executed in the first processing apparatus is switched to the second processing apparatus and executed. , Calculated based on the predicted accuracy value during the switching process and the predicted accuracy value after the switching is completed, and determines whether or not to switch the switching target analysis process based on the calculated switching accuracy score Switch decision process to
The computer having the switching accuracy prediction information storage means for storing the switching accuracy prediction information for calculating the accuracy prediction value during the switching processing based on the environmental condition value of the analysis processing is executed,
Further, the computer acquires the environmental condition value from the first processing device, and calculates the predicted value during the switching process using the switching accuracy prediction information, and executes the switching determination process. program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015164743A JP6569388B2 (en) | 2015-08-24 | 2015-08-24 | Control device, control system, control method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015164743A JP6569388B2 (en) | 2015-08-24 | 2015-08-24 | Control device, control system, control method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017045107A JP2017045107A (en) | 2017-03-02 |
JP6569388B2 true JP6569388B2 (en) | 2019-09-04 |
Family
ID=58211265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015164743A Active JP6569388B2 (en) | 2015-08-24 | 2015-08-24 | Control device, control system, control method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6569388B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7011983B2 (en) * | 2018-07-11 | 2022-01-27 | 日立Astemo株式会社 | Arithmetic system, arithmetic unit |
-
2015
- 2015-08-24 JP JP2015164743A patent/JP6569388B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2017045107A (en) | 2017-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170262311A1 (en) | Methods, apparatuses, and systems for controlling task migration | |
CN112005218B (en) | Method, device and system for distributing power of image processor | |
JP2014006739A (en) | Program, management server and virtual machine migration control method | |
CN111240817B (en) | Resource scheduling method, resource scheduling device and storage medium | |
CN111447239B (en) | Video stream playing control method, device and storage medium | |
US9939982B2 (en) | Control of application based on user operation on information processing apparatus | |
JP5445914B2 (en) | Resource allocation system, resource allocation method, and resource allocation program | |
US9690626B2 (en) | Processing workloads in single-threaded environments | |
JP6569388B2 (en) | Control device, control system, control method, and program | |
US9983911B2 (en) | Analysis controller, analysis control method and computer-readable medium | |
CN114184885A (en) | Fault detection method, device and storage medium | |
US9406283B2 (en) | Display control device, display control method, and control system | |
US20050050541A1 (en) | Method of and apparatus for task control, and computer product | |
US11244462B2 (en) | Monitoring apparatus, monitoring system, control method, and non-transitory computer-readable storage medium | |
JP5371541B2 (en) | Data processing apparatus and processing method thereof | |
CN113033475B (en) | Target object tracking method, related device and computer program product | |
CN114356193B (en) | Method and device for switching pictures in game, electronic equipment and storage medium | |
CN115617518A (en) | Thread management method and device, electronic equipment and storage medium | |
CN113886746A (en) | Page loading method, device, equipment and medium | |
US20170017526A1 (en) | Information processing device, load control method and recording medium | |
US9244723B2 (en) | Medium, method, and apparatus | |
JP2014206934A (en) | Image processing apparatus, image processing method, and image processing program | |
US10908962B1 (en) | System and method to share GPU resources | |
CN114860455B (en) | Request processing method, device, equipment and storage medium | |
EP4250058A1 (en) | Scheduling method, scheduling apparatus and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180713 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190328 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190507 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190617 |
|
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: 20190709 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190722 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6569388 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |