JP7572815B2 - Test support device and program - Google Patents
Test support device and program Download PDFInfo
- Publication number
- JP7572815B2 JP7572815B2 JP2020147231A JP2020147231A JP7572815B2 JP 7572815 B2 JP7572815 B2 JP 7572815B2 JP 2020147231 A JP2020147231 A JP 2020147231A JP 2020147231 A JP2020147231 A JP 2020147231A JP 7572815 B2 JP7572815 B2 JP 7572815B2
- Authority
- JP
- Japan
- Prior art keywords
- learning
- unit
- evaluation value
- test
- support device
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Software Systems (AREA)
- Development Economics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Game Theory and Decision Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Debugging And Monitoring (AREA)
- Electrically Operated Instructional Devices (AREA)
Description
本発明は、テスト支援装置およびプログラムに関する。 The present invention relates to a test support device and a program.
従来、コンピュータに構築された仮想環境上でゲームやユーザインターフェース等の製品テストを行い、当該テストで得られたパラメータを実環境の構成に適用することで製品設計を効率化することが行われている。近年では、コンピュータの演算能力の向上及び人工知能(AI)技術の進展により、仮想環境上での製品テストを活用できる環境が充実しつつある。 Traditionally, product testing of games, user interfaces, etc. has been performed in a virtual environment constructed on a computer, and the parameters obtained from the testing have been applied to the configuration of the real environment to improve the efficiency of product design. In recent years, with the improvement of computer computing power and advances in artificial intelligence (AI) technology, the environment in which product testing in virtual environments can be utilized is becoming more and more complete.
例えば、特許文献1では、統計的に処理した標準人の感性データベースを用いたコンピュータシステムにより、ユーザ個人の感性および体形に合わせた機器のデザインを行うことが提案されている。
For example,
例えば、対話形式のシステムを仮想環境上でテストするときには、AIプログラムをエージェントとしてテストを行わせることが考えられる。一方で、例えば習熟の容易さや面白さなどの感性的な要素を考慮してテストを行う場合、コンピュータが適切な評価を行うことがなお困難である。そのため、この種のテストでは、人間による作業工程が依然として多くを占めることが通常であり、その改善が要望されている。 For example, when testing an interactive system in a virtual environment, it is possible to have an AI program act as an agent to carry out the testing. However, when testing takes into account emotional factors such as ease of learning and entertainment value, it is still difficult for a computer to make an appropriate evaluation. For this reason, human work still accounts for a large portion of this type of testing, and there is a demand for improvements in this area.
本発明は、上記の課題を背景としてなされたものであり、感性的な要素を考慮したシステムの最適化において、テストの際の人間の作業負荷を低減しうるテスト支援装置およびプログラムを提供する。 The present invention was made against the background of the above problems, and provides a test support device and program that can reduce the human workload during testing when optimizing a system taking into account emotional factors.
本発明の一態様によれば、仮想環境上でテスト対象のシステムを模擬するとともに、システムに関するパラメータを設定可能なシミュレーション部(21)と、設定されたパラメータに基づきシミュレーション部(21)で模擬されるシステムをテストし、当該テストの結果を用いて機械学習を行う学習部(22)と、学習部(22)の学習の速度に応じて第1の評価値を求める第1演算部(26)と、学習部(22)がテスト時に選択した行動の多様さに応じて第2の評価値を求める第2演算部(27)と、設定されたパラメータに対応する第1の評価値および第2の評価値を表示装置(19)に表示させる出力処理部(28)と、を備えるテスト支援装置(10)が提供される。 According to one aspect of the present invention, there is provided a test support device (10) including: a simulation unit (21) that simulates a system to be tested in a virtual environment and is capable of setting parameters related to the system; a learning unit (22) that tests the system simulated by the simulation unit (21) based on the set parameters and performs machine learning using the results of the test; a first calculation unit (26) that calculates a first evaluation value according to the learning speed of the learning unit (22); a second calculation unit (27) that calculates a second evaluation value according to the diversity of actions selected by the learning unit (22) during the test; and an output processing unit (28) that displays the first evaluation value and the second evaluation value corresponding to the set parameters on a display device (19).
本発明の他の一態様によれば、設定されたパラメータに基づき仮想環境上で模擬されるシステムを、学習部(22)にテストさせて、当該テストの結果を用いて学習部(22)の機械学習を行う工程(S4)と、学習部(22)の学習の速度に応じて第1の評価値を求める工程(S5)と、学習部(22)がテスト時に選択した行動の多様さに応じて第2の評価値を求める工程(S6)と、設定されたパラメータに対応する第1の評価値および第2の評価値を表示装置(19)に表示させる工程(S10)と、をコンピュータ(11)に実行させるプログラムが提供される。 According to another aspect of the present invention, a program is provided that causes a computer (11) to execute the steps of: having a learning unit (22) test a system simulated in a virtual environment based on set parameters, and using the test results to perform machine learning in the learning unit (22) (S4); determining a first evaluation value according to the learning speed of the learning unit (22); determining a second evaluation value according to the diversity of actions selected by the learning unit (22) during the test (S6); and displaying on a display device (19) the first evaluation value and the second evaluation value corresponding to the set parameters (S10).
本発明によれば、感性的な要素を考慮したシステムの最適化において、テストの際の人間の作業負荷を低減できる。 The present invention makes it possible to reduce the human workload during testing when optimizing a system by taking into account emotional factors.
以下、本発明のテスト支援装置およびプログラムの実施形態について、図面を参照して説明する。以下に説明する構成は、本発明の一例(代表例)であり、これに限定されない。 Below, an embodiment of a test support device and a program of the present invention will be described with reference to the drawings. The configuration described below is an example (representative example) of the present invention, and is not limited to this.
<第1実施形態>
第1実施形態では、対話形式のシステムにおけるパラメータ調整の一例として、カードゲームのテストプレイの事例を説明する。具体的に、第1実施形態では、仮想環境上で機械学習を行うAIプログラムにカードゲームをテストプレイさせて、AIプログラムのテストプレイの結果に基づき当該カードゲームのパラメータPを調整する。これにより、ゲームバランスの良好なカードゲームのルールを作成することができる。
First Embodiment
In the first embodiment, a test play of a card game will be described as an example of parameter adjustment in an interactive system. Specifically, in the first embodiment, an AI program that performs machine learning in a virtual environment is made to test play the card game, and a parameter P of the card game is adjusted based on the results of the test play of the AI program. This makes it possible to create rules for a card game with good game balance.
このカードゲームではそれぞれが異なる複数のカードを使用するものとする。また、各カードには、例えばトランプのように、スートに相当するカードの種類と、当該種類でのカードの順番を規定する数値が割り当てられているものとする。 In this card game, multiple cards that are different from each other are used. Each card is assigned a type of card that corresponds to a suit, like playing cards, and a number that determines the order of the card within that type.
(テスト支援装置のハードウェア構成)
図1は、第1実施形態におけるテスト支援装置のハードウェア構成例を示すブロック図である。
(Hardware configuration of the test support device)
FIG. 1 is a block diagram showing an example of a hardware configuration of a test support device according to the first embodiment.
テスト支援装置10は、CPU(Central Processing Unit)11と、ROM(Read Only Memory)12と、RAM(Random Access Memory)13と、記憶装置14と、入力I/F15および表示I/F16を備えるコンピュータである。テスト支援装置10の各要素は、バス17を介して互いに接続されている。
The
CPU11は、ROM12またはRAM13に格納されたプログラムに従って、各種の演算処理を行うプロセッサである。ROM12は、不揮発性の記憶領域であって、例えばBIOSなどのプログラムが格納される。RAM13は、揮発性の記憶領域であって、CPU11が各種の演算処理を行う際の一時記憶領域として使用される。
The
記憶装置14は、不揮発性の大容量記憶媒体であって、例えば、ハードディスク(HDD)やソリッドステートドライブ(SSD)などが挙げられる。記憶装置14は、オペレーティングシステム(OS)、テスト支援装置の各種機能を実現するプログラム、および当該プログラムで使用されるデータなどを記憶する。
The
入力I/F15は、外付けの入力装置18と接続され、入力装置18からの入力を受け付けるインターフェースである。入力装置18としては、例えば、キーボードやポインティングデバイスなどが挙げられる。
The input I/
表示I/F16は、外付けの表示装置19と接続され、表示装置19への出力を担うインターフェースである。表示装置19としては、例えば、液晶ディスプレイなどのモニタ装置が挙げられる。
The display I/
テスト支援装置10においては、起動後にCPU11によりBIOSが実行され、記憶装置14からRAM13にOSが実行可能にロードされる。CPU11は、OSの動作に従って、テスト支援装置10のソフトウェアモジュールを記憶装置14からRAM13に随時実行可能にロードする。そして、ロードされたソフトウェアモジュールは、CPU11がプログラムを実行することで動作する。
After booting up the
(テスト支援装置のソフトウェア構成)
図2は、第1実施形態におけるテスト支援装置のソフトウェア構成例を示すブロック図である。
(Software configuration of the test support device)
FIG. 2 is a block diagram showing an example of the software configuration of the test support device in the first embodiment.
テスト支援装置10は、ソフトウェアモジュールとして、シミュレーション部21と、学習部22と、入力処理部23と、学習記録部24と、履歴記録部25と、第1演算部26と、第2演算部27と、出力処理部28とを備える。
The
シミュレーション部21は、テスト対象となる対話形式のシステムを仮想環境上で模擬したシミュレータである。シミュレーション部21は、例えば、学習部22からの入力に対し、仮想環境上で模擬されるシステムの出力を返す。例えば、第1実施形態では、シミュレーション部21はカードゲームを実行するゲームプログラムで構成される。
なお、シミュレーション部21は、テスト対象のシステムにつき指定を受けたパラメータPの設定値を変更することが可能である。
The
The
学習部22は、テスト対象のシステムのAIプレイヤーとして機能する機械学習のソフトウェアモジュールである。第1実施形態での学習部22は、強化学習のエージェントとして、行動価値関数にしたがってテスト対象のシステム上での行動の選択を行う。ここで、エージェントが行動すると環境の状態が変化し、報酬が得られる。この報酬の総和を最大化する方策を学習していくことで学習部22の強化学習が行われる。なお、強化学習で適用されるアルゴリズムは、例えば、モンテカルロ法、SARSA、Q学習などのいずれでもよい。
また、学習部22は、シミュレーション部21で適用されているパラメータの設定値をシミュレーション部21から取得する機能を有する。
The
The
図2の例では、簡単のため、1つの学習部22を有する構成を示している。しかし、テスト支援装置10は、二以上の独立した複数の学習部22を有していてもよい。
In the example of FIG. 2, for simplicity, a configuration having one
入力処理部23は、調整すべきパラメータの指定を、入力装置18を介してユーザから受け付ける。また、入力処理部23は、ユーザが対話形式のシステムの一方のプレイヤーとなる場合に、入力装置18からのユーザの操作情報をシミュレーション部21に出力する。
The
学習記録部24は、学習部22の強化学習の進行を示す学習曲線の情報を記憶装置14に記録する。学習曲線は、テストの回数とテスト結果の対応関係を示す。例えば、第1実施形態の学習記録部24は、学習曲線の情報として、ゲームのテストプレイ回数と学習部22の勝率の推移を示す情報を記録する。
The
履歴記録部25は、学習部22によるテスト時の行動履歴の情報を記憶装置14に記録する。履歴記録部25は、毎回のゲームプレイにおいて学習部22が選択した行動の履歴を時系列で記録し、テストプレイ回数を重ねるごとに当該履歴の情報を記憶装置14に蓄積してゆく。
The
第1演算部26は、学習部22の強化学習の速度に応じて第1の評価値V1を求める。例えば、第1実施形態での第1演算部26は、学習記録部24の学習曲線を用いて、ゲームの難易度を評価する指標として強化学習の速さから第1の評価値V1を算出する。
The
第2演算部27は、学習部22が選択した行動の多様さに応じて第2の評価値V2を求める。例えば、第1実施形態での第2演算部27は、履歴記録部25の行動履歴から場面ごとの方策を抽出し、当該方策に基づいてゲーム中の戦略の複雑さを評価する指標として第2の評価値V2を算出する。
The
出力処理部28は、パラメータPの設定値に対応する第1の評価値V1および第2の評価値V2を表示装置19に表示させる制御を行う。出力処理部28は、第1の評価値V1に対応付けて学習記録部24の学習曲線(図4参照)を表示してもよい。また、出力処理部28は、第2の評価値V2に対応付けて行動履歴の詳細や行動の状態遷移図(不図示)などを表示してもよい。
The
(テスト支援装置の動作例)
図3は、テスト支援装置の動作例を示す流れ図である。図3の処理は、入力装置18からのユーザの開始指示に応じて開始される。
(Example of operation of the test support device)
3 is a flow chart showing an example of the operation of the test support device 100. The process of FIG.
S1にて、入力処理部23は、システム(カードゲーム)において調整すべきパラメータPの指定を受け付ける。調整すべきパラメータPの種類と調整範囲は、ユーザによって決定される。第1実施形態のS1では、例えば、カードゲームのカードの種類、カードの数値範囲などのうちから、調整すべきパラメータPが指定される。なお、調整すべきパラメータPは、1種類でもよく、複数種類の組み合わせであってもよい。
In S1, the
S2にて、シミュレーション部21は、指定されたパラメータPの設定値としてテストに適用する初期値を決定する。
In S2, the
S3にて、学習部22は、パラメータPの設定値をシミュレーション部21から取得する。これにより、学習部22においてパラメータPが既知の状態となり、学習部22は、シミュレーション部21の現在の設定に応じた行動の選択が可能となる。
In S3, the
S4にて、学習部22は、プレイヤーとしてシミュレーション部21を介してゲームをテストプレイし、強化学習を行う。例えば、強化学習の際のゲームのテストプレイでは、人と学習部22の対戦や、異なる複数の学習部22同士での対戦や、学習部22と学習機能のないプレイヤープログラムの対戦など、様々な態様をとることができる。また、1回のテストプレイで対戦するプレイヤーの数は適宜変更することが可能である。
In S4, the
このとき、履歴記録部25は、学習部22によるテスト時の行動履歴を記録する。また、学習記録部24は、ゲームのテストプレイ回数に対応付けて学習部22の勝率を記録する。これにより、ゲームのテストプレイ回数と学習部22の勝率の推移を示す学習曲線を算出することができる。
At this time, the
S5にて、第1演算部26は、学習記録部24の学習曲線を用いて、学習部22の強化学習の速度(所定の勝率に達するプレイ回数の少なさ)に応じて第1の評価値V1を求める。例えば、所定の勝率に達するプレイ回数が少ないと第1の評価値V1は低い値を示し、所定の勝率に達するプレイ回数が多いと第1の評価値V1は高い値を示すものとする。
In S5, the
ここで、図4に学習部22の学習曲線の一例を示す。図4の横軸はゲームのテストプレイ回数pnであり、図4の縦軸はゲームの勝率wpである。また、図4の曲線C1はゲームの難易度が低いときの学習曲線の例を示し、図4の曲線C2はゲームの難易度がC1の場合よりも高いときの学習曲線の例を示す。
Here, FIG. 4 shows an example of a learning curve of the
学習部22が強化学習を行うケースでは、テストプレイ回数pnの増加に伴って学習部22の学習が進行する。一般にテストプレイ回数pnが増加するほど学習部22の勝率wpは向上する傾向を示す。
In cases where the
また、ゲームの難易度が低い場合には学習部22の学習が容易であるが、ゲームの難易度が高い場合には学習部22の学習が困難となる。つまり、ゲームの難易度が低い場合の曲線C1は、所定の閾値Thの勝率wpに相対的に少ないテストプレイ回数で達する。一方で、ゲームの難易度が高い場合の曲線C2は、曲線C1と比べると、閾値Thの勝率に達するテストプレイ回数が多くなる。
In addition, when the game difficulty level is low, it is easy for the
このように、学習部22の強化学習の速度(所定の勝率に達するテストプレイ回数)は、ゲームの難易度と高い相関を有している。そのため、第1の評価値V1はゲームの難易度の評価の指標として用いることが可能であることが分かる。例えば、第1の評価値V1が低い場合にはゲームの難易度が低く単調で飽きやすいと評価でき、第1の評価値V1が高い場合にはゲームの難易度が高く複雑で飽きにくいと評価できる。なお、第1の評価値V1が極端に高い場合には、ゲームが複雑すぎてとっつきにくいと評価される可能性もある。 In this way, the speed of reinforcement learning of the learning unit 22 (the number of test plays required to reach a predetermined winning rate) is highly correlated with the difficulty of the game. Therefore, it can be seen that the first evaluation value V1 can be used as an index for evaluating the difficulty of the game. For example, if the first evaluation value V1 is low, the game can be evaluated as having a low difficulty, being monotonous, and being easily boring, and if the first evaluation value V1 is high, the game can be evaluated as having a high difficulty, being complex, and not easily boring. Note that if the first evaluation value V1 is extremely high, the game may be evaluated as being too complex and difficult to get into.
S6にて、第2演算部27は、履歴記録部25の行動履歴を用いて、学習部22が選択した行動の多様さに応じて第2の評価値V2を求める。例えば、学習部22が選択した行動が多様であるほど、第2の評価値V2は高い値を示すものとする。
In S6, the
図5は、第2演算部27の処理の概要を示す図である。
第2演算部27は、まず、履歴記録部25が記録した複数の行動履歴25aを参照する。第2演算部27は、複数の行動履歴25aから、各々の場面Sxが適切なサイズとなるように状態空間を設定した上で、強化学習がある程度進行した状態における場面Sxごとの方策πを抽出する。場面Sxでの方策πは、以下の式(1)で表現される。
π(Sx,ay)=z …(1)
FIG. 5 is a diagram showing an outline of the process of the
The
π(S x , a y )=z...(1)
式(1)において、「ay」は場面Sxでエージェントが選択しうる行動の1つを示し、「z」は場面Sxでエージェントが行動ayを選択する確率を示す。 In formula (1), "a y " denotes one of the actions that the agent can select in the scene S x , and "z" denotes the probability that the agent selects the action a y in the scene S x .
そして、第2演算部27は、場面Sxの総数と、各々の場面Sxの方策πに含まれる行動の確率分布との2つの特徴に基づいて、第2の評価値V2を算出する。
Then, the
ここで、場面Sxの数が増えるほどプレイ中に発生する局面は多様となり、ゲームが複雑になる傾向がある。そのため、第2演算部27は、場面Sxの総数の多さに応じて第2の評価値V2の値を高くする。
Here, since the more the number of scenes Sx increases, the more diverse the situations that arise during play become, and the more complicated the game tends to become, the
また、強化学習がある程度進行した状態において場面Sxで選択されうる行動aが多様であれば、場面Sxでの行動が定石化されにくく、つまりゲーム中の行動が複雑なものとなる。そのため、第2演算部27は、方策πに含まれる各行動に対する確率分布に基づいて第2の評価値V2を調整する。例えば、第2演算部27は、方策πで複数の行動の確率がそれぞれ所定値以上となるケースでは、方策πで1つの行動のみ確率が高いケースよりも第2の評価値V2が高くする。なお、方策πでの行動aの多様さは、例えばπ行列の値の分布や、スペクトル分解等による圧縮情報量を用いて求めてもよい。
Furthermore, if the actions a that can be selected in the scene Sx are diverse when reinforcement learning has progressed to a certain extent, the actions in the scene Sx are less likely to be standardized, that is, the actions during the game become complex. Therefore, the
以上のようにして取得された第2の評価値V2は、展開の複雑さに起因するゲームの面白さ(あるいはゲームの戦略性の高さ)の指標として用いることが可能である。 The second evaluation value V2 obtained in the above manner can be used as an indicator of the fun factor of the game (or the strategic level of the game) resulting from the complexity of the game's development.
S7にて、テスト支援装置10は、現在の設定値でのテスト終了条件を満たすかを判断する。例えば、テスト支援装置10は、学習部22の強化学習の状態が所定の収束条件を満たした場合や、学習部22のプレイ回数が一定以上となった場合に、現在の設定値でのテスト終了条件を満たすと判断する。
テスト終了条件を満たす場合(S7のYes)、処理はS8に移行する。一方、テスト終了条件を満たさない場合(S7のNo)、S4に戻って上記の処理が繰り返される。
In S7, the
If the test end condition is met (Yes in S7), the process proceeds to S8. On the other hand, if the test end condition is not met (No in S7), the process returns to S4 and the above process is repeated.
S8にて、テスト支援装置10は、指定されたパラメータPの全テスト範囲でテストが実行済かを判断する。全テスト範囲でテストが実行済の場合(S8のYes)、S10に処理が移行する。一方、全テスト範囲でテストが実行済ではない場合(S8のNo)、S9に処理が移行する。
In S8, the
S9にて、シミュレーション部21は、パラメータPの設定値を次の値に更新する。その後、S4に戻って上記の処理が繰り返される。これにより、パラメータPの全テスト範囲で学習部22の強化学習が順次行われ、パラメータPの全範囲の設定値について、それぞれ第1の評価値V1および第2の評価値V2が取得される。
At S9, the
S10にて、出力処理部28は、パラメータPのテスト結果を表示装置19に表示する。S10のテスト結果の表示では、例えば、パラメータPの全テスト範囲の設定値につき、第1の評価値V1および第2の評価値V2がそれぞれ対応付けされて表示される。これにより、ユーザは、第1の評価値V1および第2の評価値V2の値を参考にして、パラメータPの最適な値を選択することが可能となる。また、ユーザは、S10のテスト結果の表示により、パラメータ空間におけるパラメータPの全体的な傾向を定性的に把握することも可能である。
その後、図3の処理が終了する。
In S10, the
Then, the process of FIG. 3 ends.
以上のように、第1実施形態においては、学習部22は、パラメータPの設定値に基づきシミュレーション部21で模擬されるシステムをテストし、当該テストの結果を用いて強化学習を行う(S4)。第1演算部26は、学習部22の強化学習の速度に応じて第1の評価値V1を求める(S5)。第2演算部27は、学習部22がテスト時に選択した行動の多様さに応じて第2の評価値V2を求める(S6)。そして、出力処理部28は、パラメータPの設定値に対応する第1の評価値V1および第2の評価値V2を表示装置19に表示させる(S10)。
As described above, in the first embodiment, the
第1実施形態では、シミュレーション部21で学習部22を用いてテスト対象のシステムをテストさせることで、実環境でテストするケースを大幅に削減することができる。また、シミュレーション部21でのテストは学習部22によって行われるため、人間によるテストプレイの手間を大幅に削減できる。
In the first embodiment, the
また、第1実施形態では、学習部22の強化学習により、パラメータPの設定値に対応する第1の評価値V1および第2の評価値V2がユーザに提示される。上記の評価値V1、V2はパラメータPの設定値に応じて変動する定量的な指標であるので、評価値V1、V2を用いることでシステムのパラメータ設定の良し悪しをユーザは客観的に評価することが容易となる。
In addition, in the first embodiment, a first evaluation value V1 and a second evaluation value V2 corresponding to the setting value of the parameter P are presented to the user through reinforcement learning by the
したがって、第1実施形態のテスト支援装置10によれば、感性的な要素を考慮したシステムの最適化において、テストプレイやテスト結果の評価の際の人間の作業負荷をそれぞれ低減できる。
Therefore, according to the
<第2実施形態>
第2実施形態は、第1実施形態の変形例であって、機械装置のヒューマンマシンインターフェース(HMI)に関するパラメータ調整の事例について説明する。第2実施形態におけるテスト支援装置10のハードウェア構成およびソフトウェア構成や、動作例はいずれも第1実施形態と同様である。そのため、第2実施形態の説明では第1実施形態との相違点を説明し、重複説明はいずれも省略する。
Second Embodiment
The second embodiment is a modified example of the first embodiment, and describes an example of parameter adjustment related to a human-machine interface (HMI) of a mechanical device. The hardware configuration and software configuration of the
第2実施形態では、一例として、自動車の運転用HMIを設計するときの前段階において、任意のパラメータPの見積を仮想環境上のテストで得る場合を想定する。 In the second embodiment, as an example, we consider a case in which an estimate of an arbitrary parameter P is obtained by testing in a virtual environment in the preliminary stage of designing an HMI for driving an automobile.
第2実施形態でのシミュレーション部21は、運転用HMIを介した自動車の挙動を仮想環境上で模擬した自動車シミュレータとして構成される。運転用HMIの要素には、例えば、自動車のハンドル、ブレーキ、アクセル、シフトレバーなどが含まれる。そして、シミュレーション部21は、自動車のハンドル、ブレーキ、アクセル、シフトレバーなどに関するパラメータP(例えば、ハンドル、ブレーキ、アクセルの応答性や、ギアの段数など)の設定値を変更することが可能である。
The
第2実施形態での学習部22は、シミュレーション部21の自動車シミュレータのドライバーとして機能し、運転結果に基づき強化学習を行う。なお、第2実施形態での学習記録部24は、学習曲線の情報として、例えば、学習部22の運転回数と、運転の的確さを評価するスコアの推移を示す情報などを記録する。
The
第2実施形態での第1演算部26の動作は第1実施形態と同様であるが、図3のS5で取得される第1の評価値V1の意味は以下のように相違する。機械装置のHMIの場合、強化学習が容易であるほど操作がシンプルで使いやすくHMIが良好とみなすことができる。したがって、第2実施形態では、学習部22の強化学習の速度が速い場合(第1の評価値V1が低い場合)は、強化学習の速度が遅い場合(第1の評価値V1が高い場合)よりも現在の設定が良好であると評価すればよい。
The operation of the
同様に、第2実施形態での第2演算部27の動作は第1実施形態と同様であるが、図3のS6で取得される第2の評価値V2の意味は以下のように相違する。機械装置のHMIの場合、場面Sxの総数が増えたり、個々の場面で選択すべき行動の種類が多いほど複雑な操作や状況判断を行う必要が生じ、HMIの操作の難易度が上昇する。したがって、第2実施形態では、学習部22が選択した行動が多様であって第2の評価値V2が高くなる場合を、第2の評価値V2が低くなる場合と比べて低く評価すればよい。
Similarly, the operation of the
第2実施形態においても、図3のS10の表示では、第1実施形態と同様の表示が行われる。これにより、第2実施形態のような機械装置のHMIのパラメータ調整においても、第1実施形態と同様の効果を得ることができる。 In the second embodiment, the display in S10 of FIG. 3 is the same as that in the first embodiment. This makes it possible to obtain the same effect as in the first embodiment when adjusting the parameters of the HMI of a machine device such as in the second embodiment.
<実施形態の変形例>
上記実施形態の1以上の機能を実現するプログラムは、ネットワークを介して装置に供給されてもよい。また、上記実施形態の構成は、1以上の機能を実現するハードウェア回路(例えば、ASIC)を用いて実現されてもよい。
<Modifications of the embodiment>
A program for implementing one or more of the functions of the above-described embodiments may be provided to the device via a network. Also, the configuration of the above-described embodiments may be implemented using a hardware circuit (e.g., ASIC) for implementing one or more of the functions.
また、テスト支援装置10でパラメータ調整のテストを行うケースは、上記実施形態のケースに限定されるものではない。例えば、自動車以外の機械装置のHMIを対象としてテスト支援装置10でテストを行ってもよい。また、例えば、ゲームの追加コンテンツのパラメータPをテスト対象とし、追加コンテンツを導入した状態でのゲームバランスをテスト支援装置10で調整することも可能である。
In addition, the cases in which parameter adjustment tests are performed using the
上記実施形態では、シミュレーション部21でプレイを行うAIプレイヤーが強化学習を行う構成を説明した。しかし、テスト対象の構成やパラメータPの範囲などの問題状況によっては、AIプレイヤーとしてルールベースエージェントを使用してもよい。ルールベースエージェントを使用する場合、学習の時間を大幅に削減することが可能となる。
In the above embodiment, a configuration has been described in which an AI player playing in the
上記実施形態では、パラメータPの全テスト範囲で学習部22の強化学習が行われる例を説明した。しかし、テスト支援装置10は、第1の評価値V1及び第2の評価値V2が所望の状態となるパラメータPを探索し、条件を満たすパラメータPの探索が終了した時点でテストを終了させてもよい。
In the above embodiment, an example has been described in which reinforcement learning of the
以上、本発明の好ましい実施形態について説明したが、本発明は、これらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。 The above describes preferred embodiments of the present invention, but the present invention is not limited to these embodiments, and various modifications and variations are possible within the scope of the gist of the invention.
10・・・テスト支援装置、11・・・CPU、14・・・記憶装置、19・・・表示装置、21・・・シミュレーション部、22・・・学習部、26・・・第1演算部、27・・・第2演算部、28・・・出力処理部
Reference Signs List 10: Test support device, 11: CPU, 14: Storage device, 19: Display device, 21: Simulation unit, 22: Learning unit, 26: First calculation unit, 27: Second calculation unit, 28: Output processing unit
Claims (7)
設定された前記パラメータに基づき前記シミュレーション部(21)で模擬される前記システムをテストし、当該テストの結果を用いて機械学習を行う学習部(22)と、
前記学習部(22)の学習の速度に応じて第1の評価値を求める第1演算部(26)と、
前記学習部(22)がテスト時に選択した行動の多様さに応じて第2の評価値を求める第2演算部(27)と、
設定された前記パラメータに対応する前記第1の評価値および前記第2の評価値を表示装置(19)に表示させる出力処理部(28)と、
を備えるテスト支援装置(10)。 A simulation unit (21) that can simulate a system to be tested in a virtual environment and set parameters related to the system;
a learning unit (22) that tests the system simulated by the simulation unit (21) based on the set parameters and performs machine learning using the results of the test;
a first calculation unit (26) that calculates a first evaluation value in accordance with a learning speed of the learning unit (22);
a second calculation unit (27) that calculates a second evaluation value according to the diversity of actions selected by the learning unit (22) during a test;
an output processing unit (28) for displaying on a display device (19) the first evaluation value and the second evaluation value corresponding to the set parameters;
A test support device (10) comprising:
請求項1に記載のテスト支援装置(10)。 The test support device (10) according to claim 1, wherein the learning unit (22) performs reinforcement learning using the results of the test.
請求項2に記載のテスト支援装置(10)。 The test support device (10) according to claim 2, wherein the first calculation unit (26) determines the first evaluation value based on a learning curve of reinforcement learning by the learning unit (22).
前記第2演算部(27)は、前記行動履歴から場面ごとの方策をそれぞれ抽出し、当該方策に基づき前記第2の評価値を求める
請求項2または請求項3に記載のテスト支援装置(10)。 The device further includes a recording unit (25) for recording a behavior history during a test performed by the learning unit (22),
The test support device (10) according to claim 2 or 3, wherein the second calculation unit (27) extracts a measure for each scene from the action history, and calculates the second evaluation value based on the measure.
請求項4に記載のテスト支援装置(10)。 The test support device (10) according to claim 4, wherein the second calculation unit (27) determines the second evaluation value based on at least one of the number of scenes or a distribution of probabilities for the actions of the policy.
前記出力処理部(28)は、前記複数の条件にそれぞれ対応する前記第1の評価値および前記第2の評価値を前記表示装置(19)に表示させる
請求項1から5のいずれかに記載のテスト支援装置(10)。 The learning unit (22) tests the system under a plurality of conditions each having a different value of the parameter,
The test support device (10) according to any one of claims 1 to 5, wherein the output processing unit (28) causes the display device (19) to display the first evaluation value and the second evaluation value corresponding to each of the plurality of conditions.
前記学習部(22)の学習の速度に応じて第1の評価値を求める工程(S5)と、
前記学習部(22)がテスト時に選択した行動の多様さに応じて第2の評価値を求める工程(S6)と、
設定された前記パラメータに対応する前記第1の評価値および前記第2の評価値を表示装置(19)に表示させる工程(S10)と、
をコンピュータ(11)に実行させるプログラム。
A step (S4) of having a learning unit (22) test the system simulated in the virtual environment based on the set parameters, and performing machine learning of the learning unit (22) using the results of the test;
A step (S5) of calculating a first evaluation value according to a learning speed of the learning unit (22);
A step (S6) of obtaining a second evaluation value according to the diversity of actions selected by the learning unit (22) during testing;
a step (S10) of displaying on a display device (19) the first evaluation value and the second evaluation value corresponding to the set parameters;
A program for causing a computer (11) to execute the above.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020147231A JP7572815B2 (en) | 2020-09-02 | 2020-09-02 | Test support device and program |
| DE102021119608.6A DE102021119608A1 (en) | 2020-09-02 | 2021-07-28 | Test support device and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020147231A JP7572815B2 (en) | 2020-09-02 | 2020-09-02 | Test support device and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022042058A JP2022042058A (en) | 2022-03-14 |
| JP7572815B2 true JP7572815B2 (en) | 2024-10-24 |
Family
ID=80221818
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020147231A Active JP7572815B2 (en) | 2020-09-02 | 2020-09-02 | Test support device and program |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP7572815B2 (en) |
| DE (1) | DE102021119608A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115048713B (en) * | 2022-03-31 | 2026-02-17 | 中国第一汽车股份有限公司 | Methods, devices, equipment and media for reducing the number of simulation test scenarios |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190351334A1 (en) | 2018-08-30 | 2019-11-21 | Beijing Shenji Intelligence Technology Co. Ltd | Method, device and system for game difficulty assessment |
| JP2020108733A (en) | 2018-11-09 | 2020-07-16 | 株式会社ソニー・インタラクティブエンタテインメント | Data processing system and method |
| CN111530081A (en) | 2020-04-17 | 2020-08-14 | 成都数字天空科技有限公司 | Game level design method and device, storage medium and electronic equipment |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH09218885A (en) | 1996-02-13 | 1997-08-19 | Sanyo Electric Co Ltd | Personal design system |
-
2020
- 2020-09-02 JP JP2020147231A patent/JP7572815B2/en active Active
-
2021
- 2021-07-28 DE DE102021119608.6A patent/DE102021119608A1/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190351334A1 (en) | 2018-08-30 | 2019-11-21 | Beijing Shenji Intelligence Technology Co. Ltd | Method, device and system for game difficulty assessment |
| JP2020108733A (en) | 2018-11-09 | 2020-07-16 | 株式会社ソニー・インタラクティブエンタテインメント | Data processing system and method |
| CN111530081A (en) | 2020-04-17 | 2020-08-14 | 成都数字天空科技有限公司 | Game level design method and device, storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| DE102021119608A1 (en) | 2022-03-03 |
| JP2022042058A (en) | 2022-03-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11458399B2 (en) | Systems and methods for automatically measuring a video game difficulty | |
| CN108499108B (en) | Real-time dynamic modification and optimization of game play parameters within a video game application | |
| US8597121B2 (en) | Modification of avatar attributes for use in a gaming system via a moderator interface | |
| CN111861588B (en) | Training method of loss prediction model, player loss reason analysis method and player loss reason analysis device | |
| US11497993B2 (en) | Method and apparatus for providing game strategy guide | |
| US20190351334A1 (en) | Method, device and system for game difficulty assessment | |
| CN108920213A (en) | Dynamic configuration method and device of game | |
| KR102751930B1 (en) | Device and method for generating npc capable of adjusting skill level | |
| JP7587851B2 (en) | Game evaluation method, device, program, and application evaluation method | |
| CN120022581A (en) | Attention and executive function assessment and training system and method based on virtual reality | |
| JP7572815B2 (en) | Test support device and program | |
| JP7375751B2 (en) | Information processing device and information processing method | |
| JP2021037060A (en) | System, method, and program for providing predetermined game, and method for creating classification of decks | |
| Kalafatis et al. | A modular framework for automated evaluation of procedural content generation in serious games with deep reinforcement learning agents | |
| JP7299709B2 (en) | Information processing device, information processing program and information processing method | |
| JP2024138321A (en) | Game evaluation method, device and program | |
| US11413541B2 (en) | Generation of context-aware, personalized challenges in computer games | |
| CN118179036A (en) | Game numerical value testing method and device | |
| US20090270178A1 (en) | Method and apparatus for developing video game elements with automatic game element evaluation | |
| JP7810456B2 (en) | Game evaluation method, device and program | |
| Aluloski | Actions Per Minute (APM) as an Analogue to Cognitive Workload: Measuring Workload Through In-game Metrics & Subjective Self Report Criteria in World of Warcraft | |
| JP7454082B1 (en) | Systems, methods, and programs for outputting game media sets | |
| US20230419857A1 (en) | Quarterback decision making and learning potential analyses and predictions | |
| Sakyev | Game Difficulty Balancing: Adaptive Difficulty and Its Effect on Player Experience | |
| JP6943458B2 (en) | Parameter optimizer, parameter optimization method and computer program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230824 |
|
| 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: 20241002 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20241011 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7572815 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |