JP7631064B2 - Information processing device, information processing method, and program - Google Patents
Information processing device, information processing method, and program Download PDFInfo
- Publication number
- JP7631064B2 JP7631064B2 JP2021051160A JP2021051160A JP7631064B2 JP 7631064 B2 JP7631064 B2 JP 7631064B2 JP 2021051160 A JP2021051160 A JP 2021051160A JP 2021051160 A JP2021051160 A JP 2021051160A JP 7631064 B2 JP7631064 B2 JP 7631064B2
- Authority
- JP
- Japan
- Prior art keywords
- machine learning
- model
- predetermined time
- evaluation
- learning models
- 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
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Description
本発明の実施形態は、情報処理装置、情報処理方法およびプログラムに関する。 Embodiments of the present invention relate to an information processing device, an information processing method, and a program.
従来、例えばスーパーマーケット、量販店、コンビニエンスストア等の店舗では、過去の売上実績に基づいて本日等の未来の売上を予測することが行われている。また、過去の売上実績を用いて機械学習を行うことで機械学習モデル(学習済モデル)を作成し、作成した機械学習モデルを用いて売上げ等を予測することも行われている。 Conventionally, for example, in stores such as supermarkets, mass retailers, and convenience stores, future sales (e.g., for today) are predicted based on past sales records. In addition, machine learning is performed using past sales records to create machine learning models (trained models), and the created machine learning models are used to predict sales, etc.
ところで、機械学習の学習手法は複数存在しており、何れの手法がより適切かを判別するため、実際に複数の機械学習モデルを作成して学習結果を確認することが行われている。また、同一の学習手法であっても使用するパラメータの違いにより学習結果が変化する可能性があるため、この場合においても実際に複数の機械学習モデルを作成して確認することが好ましい。しかしながら、学習の手法やパラメータの違いによって、学習結果を得るまでに相当の時間を要する場合がある。このような場合、複数の機械学習モデルから一つの機械学習モデルを選定するのに相当の時間を要することがある。 By the way, there are multiple learning methods for machine learning, and in order to determine which method is more appropriate, multiple machine learning models are actually created and the learning results are checked. Even if the same learning method is used, the learning results may vary depending on the parameters used, so in this case, it is preferable to actually create and check multiple machine learning models. However, depending on the learning method and parameters, it may take a considerable amount of time to obtain the learning results. In such cases, it may take a considerable amount of time to select one machine learning model from the multiple machine learning models.
本発明が解決しようとする課題は、多くの時間を要せずに機械学習モデルの選定が可能な情報処理装置、情報処理方法およびプログラムを提供することである。 The problem that the present invention aims to solve is to provide an information processing device, an information processing method, and a program that can select a machine learning model without spending a lot of time.
実施形態の情報処理装置は、学習手法又は作成に係るパラメータの条件が異なる複数の機械学習モデルを作成する学習手段と、前記複数の機械学習モデルのうち、機械学習の開始から第1所定時間の経過後に、前記機械学習が終了している前記機械学習モデルの各々に、評価用のデータを入力することで得られた前記機械学習モデル毎の出力結果に基づいて、前記機械学習モデルの各々の精度を評価する評価手段と、前記評価手段の評価結果に基づいて、一つの前記機械学習モデルを選択するモデル選択手段と、前記機械学習の開始から前記第1所定時間より長い第2所定時間を経過しても前記機械学習が終了しない前記機械学習モデルについて、前記機械学習を終了させる学習終了手段と、を備える。 An information processing device of an embodiment includes a learning means for creating a plurality of machine learning models having different learning methods or parameter conditions related to creation, an evaluation means for evaluating the accuracy of each of the plurality of machine learning models based on output results for each machine learning model obtained by inputting evaluation data into each of the machine learning models for which the machine learning has been completed after a first predetermined time has elapsed from the start of the machine learning, a model selection means for selecting one of the machine learning models based on the evaluation result of the evaluation means, and a learning termination means for terminating the machine learning for a machine learning model for which the machine learning has not been completed even after a second predetermined time longer than the first predetermined time has elapsed from the start of the machine learning .
以下、図面を参照して、実施形態について説明する。実施形態では、スーパーマーケット、量販店、コンビニエンスストア等の店舗において、売上予測に使用するための機械学習モデルの選択を行う、例えば本部に設置された本部サーバ(クラウドサーバ)を情報処理装置の一例として説明する。なお、実施形態により本発明が限定的に解釈されない。 The following describes the embodiments with reference to the drawings. In the embodiments, a headquarters server (cloud server) installed at the headquarters, for example, which selects a machine learning model to be used for sales forecasting in a store such as a supermarket, mass retailer, or convenience store, is described as an example of an information processing device. Note that the present invention should not be interpreted in a limited manner based on the embodiments.
機械学習とは、経験からの学習により自動的に改善するコンピュータアルゴリズムであって、大量の学習データを使ってパターンを学習し、学習結果を使って未知のデータを予測(推論)する公知の技術である。例えば、商品の購買履歴に関する大量のデータに基づいて人の好みを分析して、興味や関心がありそうな情報をもとに当該人に合った情報を提供する。また、例えば大量の文字等のデータを学習して、人が書いた文字等を推測するOCRに利用する。 Machine learning is a computer algorithm that automatically improves by learning from experience. It is a well-known technique that uses large amounts of training data to learn patterns and uses the learning results to predict (infer) unknown data. For example, it can analyze a person's preferences based on large amounts of data on product purchasing history, and provide them with information that suits them based on information that they are likely to be interested in. It can also be used for OCR, which learns from large amounts of character data and infers characters written by people.
機械学習を行う機械学習モデルは、通常複数のパターンを有する複数個が用いられ、それぞれの機械学習モデルは、学習手法、または/および、入力されるパラメータ条件が異なっている。これは、使用する学習手法、パラ―メータの種類によってそれぞれの機械学習モデルの精度が異なることから、入力されるデータに対して精度が高い機械学習モデルを選択することを可能にするためである。 When performing machine learning, multiple machine learning models with multiple patterns are usually used, and each machine learning model has a different learning method and/or input parameter conditions. This is because the accuracy of each machine learning model differs depending on the learning method and type of parameters used, so it is possible to select a machine learning model with high accuracy for the input data.
実施形態の本部サーバは、機械学習によって作成された機械学習モデルのうち、精度が最も高い機械学習モデルを利用して、店舗や商品の販売予測を行う。具体的には、販売実績に伴う過去の売上データを入力して、最も精度が高い機械学習モデルを選択するものである。また、実施形態の本部サーバは、当該機械学習モデルを用いて未来の売上データを推論する。 The headquarters server of the embodiment uses the most accurate machine learning model among the machine learning models created by machine learning to make sales forecasts for stores and products. Specifically, past sales data associated with sales performance is input and the most accurate machine learning model is selected. The headquarters server of the embodiment also uses the machine learning model to infer future sales data.
図1は、実施形態に係る情報処理システムを示す図である。図1に示すように、情報処理システム10は、本部サーバ1、店舗サーバ3、POS(Point of Sales)端末5等を有する。本部サーバ1と店舗サーバ3は、例えばインターネットや専用回線等のネットワークNを介して通信可能に接続される。本部サーバ1には、ネットワークNを介して一または複数の店舗サーバ3が接続される。また、店舗サーバ3とPOS端末5は、店舗T内において、例えばLAN(Local Area Network)等の通信回線Lを介して通信可能に接続される。店舗サーバ3には、通信回線Lを介して一または複数台のPOS端末5が接続される。
FIG. 1 is a diagram showing an information processing system according to an embodiment. As shown in FIG. 1, the
POS端末5は、店舗Tで販売される商品の商品登録処理および決済処理を実行する。商品登録処理とは、商品に付されているバーコード等のシンボルを読み取って、当該シンボルに含まれる商品を特定する商品コードに基づいて、当該商品の商品情報(商品名、商品の価格、等)を読み出して、記憶する処理を含む。決済処理とは、商品登録処理した商品についての決済を行う処理を含む。具体的には、商品登録した商品の合計金額を算出し、釣り銭がある場合は釣り銭額を算出し、商品情報、合計金額、釣り銭額等の決済情報を印字したレシートを発行する処理を含む。
The
また、POS端末5は、決済した商品に係る売上情報(商品情報および決済情報を含む)を、逐次または所定のタイミングで店舗サーバ3に送信する処理を行う。
The
店舗サーバ3は、POS端末5が送信した売上情報を受信する。店舗サーバ3は、各POS端末5から受信した売上情報を集計して売上情報部31に累積的に記憶する。また、店舗サーバ3は、売上情報部31に記憶した売上情報を定期的(例えば一日に一回)に本部サーバ1に送信する。
The
本部サーバ1は、各店舗サーバ3から受信した売上情報を記憶する。本部サーバ1は、各店舗サーバ3から受信した売上情報を累積的に記憶する。また、本部サーバ1は、受信した売上情報を種々の単位に分類して、種別の情報として記憶する。例えば、本部サーバ1は、売上情報を店舗T別に記憶する。また、例えば本部サーバ1は、売上情報を商品別に記憶する。また、例えば本部サーバ1は、売上情報を期間別(年別、月別、週別、日別、時間帯別、曜日別、季節別、等)に記憶する。本部サーバ1は、その他にもいろいろな単位で売上情報を記憶する。
The
本部サーバ1は、過去の売上情報に基づいて未来の売上予測をするために、定期的に機械学習を行う。図2は、本部サーバ1における機械学習の仕組みを示す説明図である。図2に示すように、本部サーバ1は、過去データを用いて複数の機械学習モデルを作成(生成)する。実施形態では、モデル1、モデル2、モデル3の3種類の機械学習モデルを作成する。各機械学習モデルは、それぞれ、学習手法、または/および、機械学習モデルの作成に係るパラメータ条件が異なっている。具体的には、各機械学習モデルの作成において、天気、気温、実施した施策等の情報を含む毎日異なるパラメータとその日の売上情報を毎日セットにして蓄積する。本部サーバ1は、蓄積された毎日の売上情報とパラメータの情報のセットから機械学習を行うことで、各機械学習モデル別の傾向を示す所定の予測結果(売上予測)を出力することが可能な各機械学習モデルを作成する。そして、本部サーバ1は、作成した機械学習モデルの各々に、当該過去の売上情報に係る売上実績情報等の評価用データを入力することで得られる予測結果(以下、学習結果ともいう)を比較することで、学習結果が最も売上実績情報に近い(すなわち精度が高い)一つの機械学習モデルを選択する。評価用データは、機械学習モデルの作成の際に入力されなかった一部の売上情報である。売上情報のうちの多くは機械学習モデルの作成の際に入力され、売上情報のうちの一部は評価用データとして作成された評価用データに入力される。
The
次に本部サーバ1は、選択した機械学習モデルに対して売上予測をしたいデータに係る過去の売上データを入力することで、未来(例えば本日)の売上を予測させる。
Next, the
また、本部サーバ1は、複数の機械学習モデルの機械学習を開始してから第1所定時間が経過すると、その時点で機械学習が終了している機械学習モデルについて学習結果を評価し、売上実績情報と比較し、一つの機械学習モデルを選択する。また、本部サーバ1は、その後一定期間が経過したら、再度その時点で機械学習が終了している機械学習モデルについて評価し、売上実績情報と先に選択された一つの機械学習モデルとの精度の比較を行い、精度が高い再度一つの機械学習モデルを選択する。
Furthermore, when a first predetermined time has elapsed since starting machine learning for multiple machine learning models, the
また、本部サーバ1は、第1所定時間が経過後、第1所定時間より長い第2所定時間(例えば機械学習開始から24時間)を経過しても機械学習が終了しない機械学習モデルについて、当該機械学習モデルに対する機械学習を強制的に終了させる。
In addition, for a machine learning model for which machine learning has not ended even after a second specified time (e.g., 24 hours from the start of machine learning) that is longer than the first specified time has elapsed after the first specified time has elapsed, the
このような本部サーバ1は、例えば店舗Tの閉店時(所定時刻)に、過去の売上情報を入力して機械学習モデルに機械学習をさせる。そして所定時刻から第1所定時間が経過した例えば翌日の朝5時に機械学習が終了した機械学習モデルがあれば当該機械学習モデルを抽出する。そして機械学習が終了した機械学習モデルの学習結果を評価する。そして、各機械学習モデルの評価に基づいて、最も評価(精度)が高い一つの機械学習モデルを選択する。
For example, when store T closes (a specified time), the
次に本部サーバ1は、選択した機械学習モデルに対して例えば先週の同じ曜日の売上情報を入力して推論を行い、本日の売上を予測する。 Next, the headquarters server 1 inputs sales information for the same day of the week last week, for example, into the selected machine learning model, performs inference, and predicts today's sales.
また、本部サーバ1は、第1所定時間の経過後の一定時間が経過した時点で、機械学習が終了した機械学習モデルが新たにあれば当該機械学習モデルを抽出する。そして機械学習が終了した機械学習モデルに評価用のデータを入力して得られる出力結果を評価する。そして、先に選択した機械学習モデルの精度と比較して、精度が高い一つの機械学習モデルを選択する。先に選択した機械学習モデルが再度選択された場合には再度推論は行わず、後で選択した機械学習モデルが選択された場合には、当該機械学習モデルを使用して推論をやり直す。
Furthermore, when a certain period of time has elapsed after the first predetermined time has elapsed, if there is a new machine learning model for which machine learning has been completed, the
また、本部サーバ1は、第1所定時間が経過後第2所定時間を経過しても機械学習が終了しない機械学習モデルに対する機械学習を強制的に終了させる。
In addition, the
ここからは、本部サーバ1のハードウェアについて説明する。図3は、本部サーバ1のハードウェア構成を示すブロック図である。図3に示すように、本部サーバ1は、CPU(Central Processing Unit)11、ROM(Read Only Memory)12、RAM(Random Access Memory)13、メモリ部14等を備えている。CPU11は制御主体となる。ROM12は各種プログラムを記憶する。RAM13はプログラムや各種データを展開する。メモリ部14は各種プログラムを記憶する。CPU11、ROM12、RAM13、メモリ部14は、互いにバス15を介して接続されている。CPU11とROM12とRAM13が、制御部100を構成する。すなわち、制御部100は、CPU11がROM12やメモリ部14に記憶されRAM13に展開された制御プログラムに従って動作することによって、後述する本部サーバ1の制御処理を実行する。
From here, the hardware of the
RAM33は、売上管理部131、学習終了情報部132、終了フラグ部133を備えている。売上管理部131は、各店舗サーバ3から受信した、各店舗Tにおける売上情報を累積的に記憶する。売上管理部131については図4で後述する。学習終了情報部132は、機械学習が終了した機械学習モデルを特定(識別)するモデル特定情報と、当該機械学習モデルの学習結果を示す情報を記憶する。終了フラグ部133は、終了フラグの状態を記憶する。まだ機械学習が終了していない機械学習モデルが存在する場合は、終了フラグ部133は終了フラグ「0」を記憶する。すべての機械学習モデルにおいて機械学習が終了している場合は、終了フラグ部133は終了フラグ「1」を記憶する。
The RAM 33 includes a
メモリ部14は、電源を切っても記憶情報が保持されるHDD(Hard Disc Drive)やフラッシュメモリ等の不揮発性メモリで構成され、本部サーバ1を制御する制御プログラムを記憶する制御プログラム部141、モデル記憶部142、パラメータ部143、時刻記憶部144を有する。モデル記憶部142は、定期的に機械学習を行う機械学習モデルを記憶する。実施形態では、一例として、モデル1、モデル2、モデル3の3種類の機械学習モデルを記憶する。パラメータ部143は、機械学習モデルの機械学習の際に入力されるパラメータをモデル別かつ日別かつ店舗別に記憶する。パラメータは、例えば店舗T別の日別の客層のデータ、店舗T別の周辺の日別のイベントの情報、日付、曜日、日別の天気等のデータである。時刻記憶部144は、売上情報を入力する時刻、第1所定時間、第2所定時間、一定時間の情報を記憶する。
The
また、制御部100は、バス15およびコントローラ16を介して、操作部17、表示部18と接続している。コントローラ16は、制御部100からの指示を受けて、操作部17、表示部18を制御する。ただし、説明の都合上、コントローラ16が行う制御を制御部100が行うとして説明する。操作部17は例えばキーボードやタッチパネルであり、本部サーバ1の操作者が操作する。表示部18は例えば液晶表示器であり、本部サーバ1の操作者に対して情報を表示する。
The
また、制御部100は、バス15を介して、通信部19と接続している。通信部19は、ネットワークNを介して、各店舗サーバ3と接続される。また、制御部100は、タイマ20と接続する。タイマ20は、現在の時刻を計時し、第1所定時間、第2所定時間、一定時間を計測する。
The
ここからは、売上管理部131について説明する。売上管理部131は、各店舗サーバ3から受信した、各店舗Tでの売上情報を集約して累積的に記憶する。図4は、売上管理部131の構成を示すメモリマップである。図4に示すように、売上管理部131は、店舗別売上管理部1311、商品別売上管理部1312、合計売上管理部1313等を備える。店舗別売上管理部1311は、店舗T別の例えば過去の売上情報をたとえば1年毎に記憶する。店舗別売上管理部1311は、同様に、各店舗T別の例えば一月毎、一週間毎、一日毎等の売上情報をそれぞれ記憶する。商品別売上管理部1312は、商品別(あるいは商品の分類別)の売上情報を、例えば一月毎、一週間毎、一日毎等に記憶する。合計売上管理部1313は、各店舗サーバ3から受信した売上情報を、例えば一月毎、一週間毎、一日毎等に記憶する。なお、売上管理部131は、その他の切り口でまとめた売上情報を例えば一月毎、一週間毎、一日毎等に記憶する。
From here, the
ここからは、本部サーバ1の機能構成について説明する。図5は、本部サーバ1の機能構成を示す機能ブロック図である。図5に示すように、本部サーバ1の制御部100は、ROM12やメモリ部14の制御プログラム部141に記憶された制御プログラムに従うことで、学習手段101、評価手段102、モデル選択手段103、学習終了手段104、推論手段105として機能する。
From here, the functional configuration of the
学習手段101は、学習手法又は作成に係るパラメータ条件が異なる複数の機械学習モデルを作成する機能を有する。売上情報とは、例えば日別の売上実績データと当該日に係るパラメータを関連付けて蓄積した、例えば1年分のデータのように、大量のデータとしたものである。 The learning means 101 has a function of creating multiple machine learning models with different learning methods or parameter conditions related to creation. Sales information is a large amount of data, such as a year's worth of data, that is accumulated by associating daily sales performance data with parameters related to that day.
評価手段102は、複数の機械学習モデルのうち、機械学習の開始から第1所定時間の経過後に、機械学習が終了している機械学習モデルの各々に、評価用のデータを入力することで得られた機械学習モデル毎の出力結果に基づいて、機械学習モデルの各々の精度を評価する機能を有する。具体的には、評価手段102は、機械学習の開始からタイマ20が計測した第1所定時間経過した時点で、学習手段101による機械学習が終了している機械学習モデルのモデル特定情報が学習終了記憶部132に記憶されている場合に、当該機械学習モデルに評価用のデータを入力し、得られた機械学習モデル毎の学習結果(出力結果)と、当該学習結果に対する評価用のデータの実績データとに基づいて、機械学習モデルの各々の精度を評価する。機械学習が終了している機械学習モデルが複数ある場合に、それぞれの機械学習モデルについて、得られた機械学習モデル毎の学習結果と、当該学習結果に対する実績データとに基づいて、機械学習モデルの各々の精度を評価する。
The evaluation means 102 has a function of evaluating the accuracy of each of the machine learning models based on the output result for each machine learning model obtained by inputting evaluation data into each of the machine learning models for which machine learning has been completed after a first predetermined time has elapsed from the start of machine learning. Specifically, when the model identification information of the machine learning model for which machine learning by the learning means 101 has been completed is stored in the learning
モデル選択手段103は、評価手段102によって最も評価された一つの機械学習モデルを選択する機能を有する。具体的には、モデル選択手段103は、評価手段102による評価が最も高い一つの機械学習モデルを選択する。さらに具体的には、モデル選択手段103は、評価手段102によって精度が最も高いと評価された一つの機械学習モデルを選択する。モデル選択手段103は、評価した機械学習モデルが一つの場合は、当該機械学習モデルを選択する。モデル選択手段103は、評価した機械学習モデルが複数の場合は、その中から最も評価が高い一つの機械学習モデルを選択する。 The model selection means 103 has a function of selecting one machine learning model that has been most highly evaluated by the evaluation means 102. Specifically, the model selection means 103 selects one machine learning model that has been most highly evaluated by the evaluation means 102. More specifically, the model selection means 103 selects one machine learning model that has been evaluated by the evaluation means 102 as having the highest accuracy. If only one machine learning model has been evaluated, the model selection means 103 selects that machine learning model. If multiple machine learning models have been evaluated, the model selection means 103 selects the machine learning model that has been most highly evaluated.
学習終了手段104は、第1所定時間より長い第2所定時間を経過しても機械学習が終了しない機械学習モデルについて、機械学習を終了させる機能を有する。具体的には、学習終了手段104は、第1所定時間より長い第2所定時間をタイマ20が計測した時点で機械学習が終了していない機械学習モデルについて、機械学習を強制的に終了させる。
The learning termination means 104 has a function of terminating machine learning for a machine learning model for which machine learning has not been completed even after a second predetermined time longer than the first predetermined time has elapsed. Specifically, the learning termination means 104 forcibly terminates machine learning for a machine learning model for which machine learning has not been completed at the time when the
推論手段105は、モデル選択手段103が選択した一つの機械学習モデルを用いて、売上情報等の予測データを出力する機能を有する。具体的には、推論手段105は、モデル選択手段103が選択した一つの機械学習モデルに、予測の対象となる諸条件(パラメータ)を入力し、当該機械学習モデルが出力する売上予測の出力結果を予測データとして取得する。例えば、推論手段105は、売上予測をしたい日の曜日や時間帯、気象条件等のパラメータを機械学習モデルに入力することで、これらのパラメータから推論される未来の売上予測の出力結果を予測データとして取得する。 The inference means 105 has a function of outputting prediction data such as sales information using one of the machine learning models selected by the model selection means 103. Specifically, the inference means 105 inputs the conditions (parameters) to be predicted into one of the machine learning models selected by the model selection means 103, and acquires the output result of the sales forecast output by the machine learning model as prediction data. For example, the inference means 105 inputs parameters such as the day of the week, time of day, and weather conditions of the day for which sales are to be predicted into the machine learning model, and acquires the output result of the future sales forecast inferred from these parameters as prediction data.
ここからは、本部サーバ1の制御について説明する。図6は、本部サーバ1における機械学習モデルの選択に係る制御処理の流れを示すフローチャートである。図7は、本部サーバ1における予測データの出力に係る制御処理の流れを示すフローチャートである。
From here, the control of the
図6に示すように、本部サーバ1の制御部100は、タイマ20の計時により所定時刻であるかを判断する(S11)。所定時刻は、例えば店舗Tの閉店後の決められた時刻であり、時刻記憶部144に記憶されている。タイマ20の計時によって所定時刻であると判断した場合には(S11のYes)、制御部100は、売上管理部131に記憶されている、予想データを出力するための過去データとしての売上情報を入力する(S12)。
As shown in FIG. 6, the
例えば、ある店舗Tの今日の売上を予測したい場合は、当該店舗Tに係る過去の売上情報を店舗別売上管理部1311から呼び出して入力する。また、ある商品の売上を予測したい場合は、当該商品に係る売上情報を商品別売上管理部1312から呼び出して入力する。また、すべての店舗Tをまとめた売り上げを予測したい場合は、売上情報を合計売上管理部1313から呼び出して入力する。入力する売上情報は、データの数が多いほど機械学習モデルは精度が高い出力をすることから、いずれの場合もできるだけ多く(例えば1年分)の売上情報を入力する。
For example, if it is desired to predict today's sales for a certain store T, past sales information for that store T is retrieved and input from the store
次に学習手段101は、機械学習モデル(実施形態ではモデル1、モデル2、モデル3)の各々について、機械学習を開始させる(S13)。モデル1、モデル2、モデル3に係るパラメータは、それぞれ異なっている。そして制御部100は、S11に戻る。機械学習が終了した機械学習モデルについて、制御部100は、当該機械学習モデルを特定するモデル特定情報と、当該機械学習モデルによる機械学習の学習結果の出力を学習終了情報部132に記憶する。
Next, the learning means 101 starts machine learning for each of the machine learning models (in this embodiment,
また、所定時刻ではないと判断した場合には(S11のNo)、制御部100は、タイマ20の所定時刻の計時と時刻記憶部144に記憶されている第1所定時間とから、第1所定時間を経過したかを判断する(S21)。第1所定時間は、S13において機械学習モデルが機械学習を開始した時刻から予め決められた時間であって、例えば店舗Tの早朝の所定時刻(例えばAM5時)になるまでの時間である。第1所定時間を経過したと判断した場合には(S21のYes)、制御部100は、機械学習を開始してから第1所定時間を経過した時点で機械学習を終了した機械学習モデルがあるかを判断する(S22)。具体的には、制御部100は、学習終了情報部132にモデル特定情報が記憶されているか否かで、機械学習を終了した機械学習モデルがあるかを判断する。
If it is determined that the time has not yet reached the predetermined time (No in S11), the
機械学習を終了した機械学習モデルがあると判断した場合には(S22のYes)、制御部100は、すべての機械学習モデルが機械学習を終了したかを判断する(S23)。実施形態の場合、モデル1、モデル2、モデル3の3種類の機械学習モデルが機械学習を行っているため、すべて(3種類)の機械学習モデルを特定するモデル特定情報が学習終了情報部132に記憶されていれば、制御部100は、すべての機械学習モデルが機械学習を終了したと判断する。すべて(3種類)の機械学習モデルを特定するモデル特定情報が学習終了情報部132に記憶されていなければ、制御部100は、すべての機械学習モデルが機械学習を終了していない(すなわち、まだ機械学習中の機械学習モデルが存在する)と判断する。
When it is determined that there is a machine learning model that has completed machine learning (Yes in S22), the
すべての機械学習モデルが機械学習を終了したと判断した場合には(S23のYes)、制御部100は、終了フラグ部133に、すべての機械学習モデルが機械学習を終了したことを示すフラグを記憶する(S24)。例えば、すべての機械学習モデルが機械学習を終了したと判断した場合には、すべての機械学習モデルが機械学習を終了したことを示すフラグ「1」を記憶する。なお、すべての機械学習モデルが機械学習を終了していないと判断した場合には、すべての機械学習モデルが機械学習を終了していないことを示すフラグ「0」が記憶されている。
When it is determined that all machine learning models have finished machine learning (Yes in S23), the
S24の処理後、またはS23において、すべての機械学習モデルが機械学習を終了していないと判断した場合には(S23のNo)、次に制御部100は、学習終了情報部132に記憶されている、機械学習が終了した機械学習モデルに評価用のデータを入力して学習結果を抽出する(S25)。そして評価手段102は、抽出した機械学習モデル別の学習結果と、当該学習結果に対する実績データを比較して、機械学習モデルの各々の精度を評価する(S26)。実績データとは、入力された過去データに対して実際に計測した回答(実績データ)であって、実施形態の場合、例えば過去1年間の売上情報に係る実績データである。機械学習モデルは、学習結果が実績データに近いほど精度が高いと評価される。
After the process of S24 or in S23, if it is determined that not all machine learning models have completed machine learning (No in S23), the
次に制御部100は、評価された複数の機械学習モデルについて、どの機械学習モデルの評価(精度)が高いかを比較する(S27)。そしてモデル選択手段103は、最も評価が高い一つの機械学習モデルを選択する(S28)。
Next, the
次に制御部100は、終了フラグ部133に記憶されている終了フラグが「1」であるかを判断する(S29)。終了フラグ部133に記憶されている終了フラグが「1」でない(すなわち「0」である)場合には(S29のNo)、次に制御部100は、制御部100が一つの機械学習モデルを選択してから終了時刻部144に記憶されている一定時間経過したかを判断する(S30)。一定時間は、まだ第2所定時間を計時する前の時間である。一定時間経過するまで待機し(S30のNo)、一定時間経過したと判断した場合には(S30のYes)、制御部100は、タイマ20の所定時刻の計時から終了時刻部144に記憶されている第2所定時間を経過したかを判断する(S31)。第2所定時間は第1所定時間より長い時間であって、例えば24時間である。タイマ20の所定時刻の計時から24時間経過しても機械学習が終了しない機械学習モデルは、翌日になるため、これ以上機械学習を継続させる意味が薄い。第2所定時間は、このように、タイマ20の所定時刻の計時から機械学習を継続させる意味が薄くなる時間を設定する。タイマ20の所定時刻の計時から第2所定時間を経過していないと判断した場合には(S31のNo)、制御部100は、S22に戻り、未だ機械学習を継続している機械学習モデルが機械学習を終了したかを判断する。
Next, the
一方、タイマ20の所定時刻の計時から第2所定時間を経過したと判断した場合には(S31のYes)、学習終了手段104は、機械学習を継続している機械学習モデルにおける機械学習を強制的に終了させる(S32)。そして制御部100は、処理を終了する。また、終了フラグ部133に記憶されている終了フラグが「1」の場合には(S29のYes)、制御部100は、処理を終了する。なお、S22において、機械学習を終了した機械学習モデルはないと判断した場合には(S22のNo)、制御部100は、S30およびS31の判断を行う。すなわち、制御部100は再度一定時間の経過を待ってさらに機械学習を終了した機械学習モデルの有無を判断する。すなわち、制御部100は、一定時間が経過するたびに、機械学習が終了した機械宅習モデルがあるかを判断する。
On the other hand, if it is determined that the second predetermined time has elapsed since the
なお、一度S28において一つの機械学習モデルを選択し、S31のNoの判断を経て再度S22の判断において新たに機械学習を終了した機械学習モデルがあると判断した場合には(S22のYes)、制御部100は、当該機械学習モデルについてS26で評価し、S27において、当該機械学習モデルの評価と先にS28で選択されている機械学習モデルの評価とを比較する。そして制御部100は、評価が高かった一つの機械学習モデルをS28で選択する。
Note that if one machine learning model is selected in S28, and then after determining No in S31, it is determined again in S22 that there is a new machine learning model for which machine learning has been completed (Yes in S22), the
ここからは、S28で選択された一つの機械学習モデルを使用して推論をし、予測データを出力する制御について説明する。図7は、本部サーバ1における予測データの出力に係る制御処理の流れを示すフローチャートである。図7に示すように、制御部100は、S28の処理において一つの機械学習モデルが選択されたかを判断する(S41)。一つの機械学習モデルが選択されるまで待機し(S41のNo)、一つの機械学習モデルが選択されたと判断した場合には(S41のYes)、制御部100は、選択された機械学習モデルに対し予測をしたい日に対応した過去のデータであるパラメータの情報を入力する(S42)。S42で入力するパラメータとは、例えば前日のパラメータである。また例えば前週の同じ曜日のパラメータである。また、例えば前月の同じ日のパラメータである。また例えば前年の同じ月日のパラメータである。
From here, we will explain the control of inference using one machine learning model selected in S28 and outputting predicted data. FIG. 7 is a flowchart showing the flow of control processing related to the output of predicted data in the
次に推論手段105は、入力された過去のデータに基づいて機械学習モデルに推論させる(S43)。そして制御部100は、機械学習モデルが推論した結果として未来の予想データを出力する(S44)。この予測データは、例えば本日の売上予測情報である。そして制御部100は、処理を終了する。
Next, the inference means 105 causes the machine learning model to make an inference based on the input past data (S43). The
以上説明したように、実施形態の本部サーバ1は、学習手法又は作成に係るパラメータの条件が異なる複数の機械学習モデルを作成する学習手段101と、複数の機械学習モデルのうち、機械学習の開始から第1所定時間の経過後に、機械学習が終了している機械学習モデルの各々に、評価用のデータを入力することで得られた機械学習モデル毎の出力結果に基づいて、機械学習モデルの各々の精度を評価する評価手段102と、記評価手段102の評価結果に基づいて、一つの機械学習モデルを選択するモデル選択手段103と、を備える。
As described above, the
このような本部サーバ1は、第1所定時間を経過した時点で機械学習を終了した機械学習モデルの出力を評価して、最も評価が高い一つの機械学習モデルを選択するようにした。そのため、多くの時間を要せずに一つの機械学習モデルの選定を行うことが可能となる。
The
以上、本発明の実施形態を説明したが、この実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。この新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。この実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although an embodiment of the present invention has been described above, this embodiment is presented as an example and is not intended to limit the scope of the invention. This new embodiment can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. This embodiment and its modifications are included in the scope and gist of the invention, and are included in the scope of the invention and its equivalents described in the claims.
例えば、実施形態では、店舗Tにおける売上情報を入力される過去データの一例として説明した。しかしながらこれに限らず、入力される過去データ、得ようとする出力に応じた種類の過去データであればよい。 For example, in the embodiment, sales information for store T has been described as an example of input past data. However, the input past data is not limited to this, and any type of past data may be used as long as it corresponds to the output to be obtained.
また、実施形態では、本部サーバ1をクラウドサーバとして説明したが、本部サーバ1はクラウドサーバ以外のサーバであってもよい。
In addition, in the embodiment, the
また、実施形態では、本部サーバ1を情報処理装置の一例として説明したが、例えば一店舗において機械学習機能を実現させる場合、店舗Tに設置された店舗サーバ3が情報処理装置であってもよい。
In addition, in the embodiment, the
なお、実施形態の本部サーバ1で実行されるプログラムは、インストール可能な形式または実行可能な形式のファイルでCD-ROM、フレキシブルディスク(FD)、CD-R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録されて提供される。
The programs executed by the
また、実施形態の本部サーバ1で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、実施形態の本部サーバ1で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。
The program executed by the
また、実施形態の本部サーバ1で実行されるプログラムを、それぞれROM等に予め組み込んで提供するように構成してもよい。
In addition, the programs executed by the
1 本部サーバ
3 店舗サーバ
5 POS端末
10 情報処理システム
11 CPU
12 ROM
13 RAM
14 メモリ部
17 操作部
18 表示部
19 通信部
20 タイマ
31 売上情報部
33 RAM
100 制御部
101 学習手段
102 評価手段
103 モデル選択手段
104 学習終了手段
105 推論手段
131 売上管理部
132 学習終了情報部
133 終了フラグ部
142 モデル記憶部
143 パラメータ部
144 時刻記憶部
1311 店舗別売上管理部
1312 商品別売上管理部
1313 合計売上管理部
REFERENCE SIGNS
12 ROM
13 RAM
14
REFERENCE SIGNS
Claims (5)
前記複数の機械学習モデルのうち、機械学習の開始から第1所定時間の経過後に、前記機械学習が終了している前記機械学習モデルの各々に、評価用のデータを入力することで得られた前記機械学習モデル毎の出力結果に基づいて、前記機械学習モデルの各々の精度を評価する評価手段と、
前記評価手段の評価結果に基づいて、一つの前記機械学習モデルを選択するモデル選択手段と、
前記機械学習の開始から前記第1所定時間より長い第2所定時間を経過しても前記機械学習が終了しない前記機械学習モデルについて、前記機械学習を終了させる学習終了手段と、
を備える情報処理装置。 A learning means for creating a plurality of machine learning models having different learning methods or parameter conditions related to the creation;
an evaluation means for evaluating accuracy of each of the machine learning models based on an output result for each of the machine learning models obtained by inputting evaluation data into each of the machine learning models for which the machine learning has been completed after a first predetermined time has elapsed since the start of machine learning; and
A model selection means for selecting one of the machine learning models based on the evaluation result of the evaluation means;
A learning termination means for terminating the machine learning for the machine learning model in which the machine learning has not been terminated even after a second predetermined time that is longer than the first predetermined time has elapsed since the start of the machine learning;
An information processing device comprising:
前記モデル選択手段は、当該評価した機械学習モデルと前記選択された機械学習モデルとから最も評価された一つの前記機械学習モデルを選択する、
請求項1に記載の情報処理装置。 the evaluation means evaluates accuracy of each of the machine learning models based on output results for each of the machine learning models obtained by inputting the evaluation data into the machine learning models for which machine learning by the learning means has been completed, and performance data for the output results, within a certain time period before the second predetermined time has elapsed since the machine learning models were evaluated;
The model selection means selects the most evaluated machine learning model from the evaluated machine learning models and the selected machine learning model.
The information processing device according to claim 1 .
をさらに備える請求項1または2に記載の情報処理装置。 an inference means for outputting prediction data inferred based on input past data using the machine learning model selected by the model selection means;
The information processing device according to claim 1 , further comprising:
前記複数の機械学習モデルのうち、機械学習の開始から第1所定時間の経過後に、前記機械学習が終了している前記機械学習モデルの各々に、評価用のデータを入力することで得られた前記機械学習モデル毎の出力結果に基づいて、前記機械学習モデルの各々の精度を評価する評価工程と、
前記評価工程の評価結果に基づいて、一つの前記機械学習モデルを選択するモデル選択工程と、
前記機械学習の開始から前記第1所定時間より長い第2所定時間を経過しても前記機械学習が終了しない前記機械学習モデルについて、前記機械学習を終了させる学習終了工程と、
を含む情報処理方法。 A learning process for creating a plurality of machine learning models having different learning methods or parameter conditions related to the creation;
an evaluation step of evaluating accuracy of each of the machine learning models based on an output result for each of the machine learning models obtained by inputting evaluation data into each of the machine learning models for which the machine learning has been completed after a first predetermined time has elapsed since the start of machine learning;
a model selection step of selecting one of the machine learning models based on the evaluation result of the evaluation step;
a learning termination step of terminating the machine learning for the machine learning model in which the machine learning has not been terminated even after a second predetermined time that is longer than the first predetermined time has elapsed since the start of the machine learning;
An information processing method comprising:
学習手法又は作成に係るパラメータの条件が異なる複数の機械学習モデルを作成する学習手段と、
前記複数の機械学習モデルのうち、機械学習の開始から第1所定時間の経過後に、前記機械学習が終了している前記機械学習モデルの各々に、評価用のデータを入力することで得られた前記機械学習モデル毎の出力結果に基づいて、前記機械学習モデルの各々の精度を評価する評価手段と、
前記評価手段の評価結果に基づいて、一つの前記機械学習モデルを選択するモデル選択手段と、
前記機械学習の開始から前記第1所定時間より長い第2所定時間を経過しても前記機械学習が終了しない前記機械学習モデルについて、前記機械学習を終了させる学習終了手段と、
して機能させるためのプログラム。 A computer as an information processing device
A learning means for creating a plurality of machine learning models having different learning methods or parameter conditions related to the creation;
an evaluation means for evaluating accuracy of each of the machine learning models based on an output result for each of the machine learning models obtained by inputting evaluation data into each of the machine learning models for which the machine learning has been completed after a first predetermined time has elapsed since the start of machine learning;
A model selection means for selecting one of the machine learning models based on the evaluation result of the evaluation means;
A learning termination means for terminating the machine learning for the machine learning model in which the machine learning has not been terminated even after a second predetermined time that is longer than the first predetermined time has elapsed since the start of the machine learning;
A program to make it function as such.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021051160A JP7631064B2 (en) | 2021-03-25 | 2021-03-25 | Information processing device, information processing method, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021051160A JP7631064B2 (en) | 2021-03-25 | 2021-03-25 | Information processing device, information processing method, and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022149144A JP2022149144A (en) | 2022-10-06 |
| JP7631064B2 true JP7631064B2 (en) | 2025-02-18 |
Family
ID=83463830
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021051160A Active JP7631064B2 (en) | 2021-03-25 | 2021-03-25 | Information processing device, information processing method, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7631064B2 (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000276460A (en) | 1999-03-24 | 2000-10-06 | Fuji Electric Co Ltd | Power demand forecasting method |
| JP2007109164A (en) | 2005-10-17 | 2007-04-26 | Oki Electric Ind Co Ltd | Data classification apparatus, method, and program; and data classification retrieval system, method, and program |
| JP2019067327A (en) | 2017-10-05 | 2019-04-25 | 富士通株式会社 | Learning program, learning device and learning method |
| JP2019079214A (en) | 2017-10-24 | 2019-05-23 | 富士通株式会社 | Search method, search device and search program |
| JP2020106340A (en) | 2018-12-26 | 2020-07-09 | キヤノン株式会社 | Information processing apparatus, control method of information processing apparatus, and program |
| JP2020204970A (en) | 2019-06-18 | 2020-12-24 | キヤノンメディカルシステムズ株式会社 | Medical information processing device and medical information processing method |
-
2021
- 2021-03-25 JP JP2021051160A patent/JP7631064B2/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000276460A (en) | 1999-03-24 | 2000-10-06 | Fuji Electric Co Ltd | Power demand forecasting method |
| JP2007109164A (en) | 2005-10-17 | 2007-04-26 | Oki Electric Ind Co Ltd | Data classification apparatus, method, and program; and data classification retrieval system, method, and program |
| JP2019067327A (en) | 2017-10-05 | 2019-04-25 | 富士通株式会社 | Learning program, learning device and learning method |
| JP2019079214A (en) | 2017-10-24 | 2019-05-23 | 富士通株式会社 | Search method, search device and search program |
| JP2020106340A (en) | 2018-12-26 | 2020-07-09 | キヤノン株式会社 | Information processing apparatus, control method of information processing apparatus, and program |
| JP2020204970A (en) | 2019-06-18 | 2020-12-24 | キヤノンメディカルシステムズ株式会社 | Medical information processing device and medical information processing method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022149144A (en) | 2022-10-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12039564B2 (en) | Method and system for generation of at least one output analytic for a promotion | |
| US11048530B1 (en) | Predictive action modeling to streamline user interface | |
| US11017422B2 (en) | Dynamically generating digital product notifications over time based on product expiration data | |
| JP6352798B2 (en) | Marketing measure optimization apparatus, method, and program | |
| US11227309B2 (en) | Method and system for optimizing user grouping for advertisement | |
| US11631102B2 (en) | Optimization of markdown schedules for clearance items at physical retail stores | |
| US20200380541A1 (en) | Method and system for adjustable automated forecasts | |
| JP2010198243A (en) | Device and method for action prediction | |
| CN111727451A (en) | Information processing device, etc. for calculating prediction data | |
| CN111311332A (en) | User data processing method and device | |
| EP4208838A1 (en) | Methods and systems for profit optimization | |
| KR102929367B1 (en) | Retail store comprehensive management system | |
| JP3668642B2 (en) | Data prediction method, data prediction apparatus, and recording medium | |
| JP2016134180A (en) | Agent based demand forecasting system and method | |
| JP7666966B2 (en) | Learning method, learning model, prediction method, prediction device, and computer program | |
| JP2007233944A (en) | System for predicting commodity sales | |
| JP7631064B2 (en) | Information processing device, information processing method, and program | |
| CN118586953A (en) | Product retail method and system | |
| US20240127277A1 (en) | Markup optimization | |
| JP2022149951A (en) | Information processing device, and program | |
| JP7476973B2 (en) | Estimation system, estimation method, and estimation program | |
| JP7809866B1 (en) | Information processing device, information processing method, program, and model generation method | |
| JP7538302B2 (en) | Predictive management device and program | |
| JP2019049842A (en) | Forecast management device and program | |
| JP7333442B1 (en) | data processor and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240115 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20241031 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20241112 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250107 |
|
| 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: 20250121 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250205 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7631064 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |