Test support device and program
The test support device and program address the challenge of evaluating emotional factors in virtual testing by simulating systems, performing machine learning, and displaying evaluation values, thereby reducing human workload and enhancing system optimization.
Patent Information
- Application Number
- JP2020147231
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-02
- Publication Date
- 2024-10-24
- Estimated Expiration
- 2040-09-02
AI Technical Summary
Existing systems struggle to perform appropriate evaluations of emotional factors such as ease of learning and fun during product testing in virtual environments, often requiring significant human involvement.
A test support device and program that simulates a system in a virtual environment, utilizing a simulation unit, learning unit for machine learning, and calculation units to evaluate learning speed and behavior variety, reducing human workload by displaying evaluation values.
Reduces human effort in testing by objectively evaluating emotional factors through simulation and machine learning, enabling efficient system optimization.
Smart Images

Figure 0007572815000001 
Figure 0007572815000002 
Figure 0007572815000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a test support device and a program. [Background technology]
[0002] Conventionally, product tests for games, user interfaces, etc. have been conducted in a virtual environment constructed on a computer, and the parameters obtained from the tests 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 the progress of artificial intelligence (AI) technology, the environment in which product testing in a virtual environment can be utilized is becoming more and more complete.
[0003] For example, Patent Document 1 proposes designing equipment that matches the sensitivities and body shape of an individual user by using a computer system that uses a statistically processed sensitivity database of standard people. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 9-218885 Summary of the Invention [Problem to be solved by the invention]
[0005] For example, when testing an interactive system in a virtual environment, it is possible to have an AI program act as an agent to perform the test. However, when performing tests that take 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.
[0006] The present invention has been made in light of the above-mentioned problems, and provides a test support device and program capable of reducing the workload of people during testing in optimizing a system taking into account sensory elements. [Means for solving the problem]
[0007] 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).
[0008] According to another aspect of the present invention, there is provided a program for causing a computer (11) to execute the following steps: a step (S4) of having a learning unit (22) test a system simulated in a virtual environment based on set parameters, and performing machine learning in the learning unit (22) using the results of the test; a step (S5) of determining a first evaluation value according to the learning speed of the learning unit (22); a step (S6) of determining a second evaluation value according to the diversity of actions selected by the learning unit (22) during the test; and a step (S10) of displaying on a display device (19) the first evaluation value and the second evaluation value corresponding to the set parameters. Effect of the Invention
[0009] According to the present invention, in optimizing a system taking into account emotional factors, the workload of a person during testing can be reduced. [Brief description of the drawings]
[0010] [Figure 1]FIG. 2 is a block diagram showing an example of a hardware configuration of the test support device. [Diagram 2] 2 is a block diagram showing an example of a software configuration of the test support device; [Diagram 3] 13 is a flowchart showing an example of the operation of the test support device. [Figure 4] FIG. 4 is a diagram illustrating an example of a learning curve of a learning section. [Diagram 5] FIG. 4 is a diagram illustrating an overview of processing by a second calculation unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a test support device and a program according to an embodiment of the present invention will be described with reference to the drawings. The configurations described below are examples (representative examples) of the present invention, and the present invention is not limited to these.
[0012] 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 test plays the card game, and the 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.
[0013] In this card game, a number of different cards are used, each of which is assigned a type of card that corresponds to a suit, as in playing cards, and a number that defines the order of the card within that type.
[0014] (Hardware configuration of 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.
[0015] The test support device 10 is a computer including a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage device 14, an input I / F 15, and a display I / F 16. The elements of the test support device 10 are connected to each other via a bus 17.
[0016] The CPU 11 is a processor that performs various arithmetic processing according to programs stored in the ROM 12 or the RAM 13. The ROM 12 is a non-volatile storage area, and stores programs such as the BIOS. The RAM 13 is a volatile storage area, and is used as a temporary storage area when the CPU 11 performs various arithmetic processing.
[0017] The storage device 14 is a non-volatile large-capacity storage medium, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc. The storage device 14 stores an operating system (OS), programs that realize various functions of the test support device, data used by the programs, etc.
[0018] The input I / F 15 is an interface that is connected to an external input device 18 and receives input from the input device 18. Examples of the input device 18 include a keyboard and a pointing device.
[0019] The display I / F 16 is an interface that is connected to an external display device 19 and is responsible for output to the display device 19. An example of the display device 19 is a monitor device such as a liquid crystal display.
[0020] In the test support device 10, after booting, the CPU 11 executes the BIOS and loads the OS from the storage device 14 into the RAM 13 in an executable manner. The CPU 11 loads software modules of the test support device 10 from the storage device 14 into the RAM 13 in an executable manner as needed in accordance with the operation of the OS. The loaded software modules then operate when the CPU 11 executes a program.
[0021] (Software configuration of 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.
[0022] The test support device 10 includes, as software modules, a simulation unit 21, a learning unit 22, an input processing unit 23, a learning recording unit 24, a history recording unit 25, a first calculation unit 26, a second calculation unit 27, and an output processing unit 28.
[0023] The simulation unit 21 is a simulator that simulates an interactive system to be tested in a virtual environment. For example, the simulation unit 21 returns an output of a system simulated in a virtual environment in response to an input from the learning unit 22. For example, in the first embodiment, the simulation unit 21 is configured with a game program that executes a card game. The simulation unit 21 can change the set value of the parameter P designated for the system under test.
[0024] The learning unit 22 is a machine learning software module that functions as an AI player for the system under test. In the first embodiment, the learning unit 22, as a reinforcement learning agent, selects an action on the system under test according to an action value function. When the agent takes action, the state of the environment changes and a reward is obtained. The reinforcement learning of the learning unit 22 is performed by learning a policy for maximizing the sum of the rewards. The algorithm applied in the reinforcement learning may be, for example, any of the Monte Carlo method, SARSA, and Q-learning. Furthermore, the learning unit 22 has a function of acquiring the setting values of the parameters applied by the simulation unit 21 from the simulation unit 21 .
[0025] 2, for simplicity, a configuration including one learning unit 22 is shown. However, the test support device 10 may include two or more independent learning units 22.
[0026] The input processing unit 23 receives designation of parameters to be adjusted from the user via the input device 18. Furthermore, the input processing unit 23 outputs user operation information from the input device 18 to the simulation unit 21 when the user is one of the players in an interactive system.
[0027] The learning record unit 24 records information on a learning curve indicating the progress of reinforcement learning by the learning unit 22 in the storage device 14. The learning curve indicates the correspondence between the number of tests and the test results. For example, the learning record unit 24 in the first embodiment records information indicating the number of test plays of the game and the progress of the winning rate of the learning unit 22 as the learning curve information.
[0028] The history recording unit 25 records information on the behavior history during testing by the learning unit 22 in the storage device 14. The history recording unit 25 records the history of the behavior selected by the learning unit 22 in each game play in chronological order, and accumulates the history information in the storage device 14 each time the test play is performed.
[0029] The first calculation unit 26 calculates the first evaluation value V1 according to the speed of reinforcement learning of the learning unit 22. For example, the first calculation unit 26 in the first embodiment uses the learning curve of the learning record unit 24 to calculate the first evaluation value V1 from the speed of reinforcement learning as an index for evaluating the difficulty level of the game.
[0030] The second calculation unit 27 calculates a second evaluation value V2 according to the diversity of actions selected by the learning unit 22. For example, the second calculation unit 27 in the first embodiment extracts a measure for each scene from the action history in the history recording unit 25, and calculates a second evaluation value V2 as an index for evaluating the complexity of the strategy during the game based on the measure.
[0031] The output processing unit 28 performs control to display the first evaluation value V1 and the second evaluation value V2 corresponding to the set value of the parameter P on the display device 19. The output processing unit 28 may display the learning curve (see FIG. 4) of the learning record unit 24 in association with the first evaluation value V1. The output processing unit 28 may also display details of the behavior history and a state transition diagram of the behavior (not shown) in association with the second evaluation value V2.
[0032] (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.
[0033] In S1, the input processing unit 23 receives a specification of a parameter P to be adjusted in the system (card game). The type and adjustment range of the parameter P to be adjusted are determined by the user. In S1 of the first embodiment, the parameter P to be adjusted is specified from, for example, the type of card in the card game, the numerical range of the card, etc. The parameter P to be adjusted may be one type, or a combination of multiple types.
[0034] In S2, the simulation unit 21 determines an initial value to be applied to the test as the setting value of the specified parameter P.
[0035] In S3, the learning unit 22 acquires the setting value of the parameter P from the simulation unit 21. As a result, the parameter P becomes known in the learning unit 22, and the learning unit 22 becomes able to select an action according to the current setting of the simulation unit 21.
[0036] In S4, the learning unit 22 test plays the game as a player via the simulation unit 21, and performs reinforcement learning. For example, the test play of the game during reinforcement learning can take various forms, such as a match between a person and the learning unit 22, a match between a plurality of different learning units 22, or a match between the learning unit 22 and a player program without a learning function. In addition, the number of players competing in one test play can be changed as appropriate.
[0037] At this time, the history recording unit 25 records the behavior history during the test by the learning unit 22. Furthermore, the learning recording unit 24 records the winning percentage of the learning unit 22 in association with the number of test plays of the game. This makes it possible to calculate a learning curve indicating the transition between the number of test plays of the game and the winning percentage of the learning unit 22.
[0038] In S5, the first calculation unit 26 uses the learning curve of the learning record unit 24 to determine the first evaluation value V1 according to the speed of reinforcement learning of the learning unit 22 (how few plays are required to reach a predetermined winning percentage). For example, if the number of plays required to reach a predetermined winning percentage is small, the first evaluation value V1 will indicate a low value, and if the number of plays required to reach a predetermined winning percentage is large, the first evaluation value V1 will indicate a high value.
[0039] Here, an example of a learning curve of learning unit 22 is shown in Fig. 4. The horizontal axis of Fig. 4 is the number of test plays of the game pn, and the vertical axis of Fig. 4 is the win rate of the game wp. Furthermore, curve C1 in Fig. 4 shows an example of a learning curve when the game difficulty level is low, and curve C2 in Fig. 4 shows an example of a learning curve when the game difficulty level is higher than that of C1.
[0040] In the case where the learning unit 22 performs reinforcement learning, the learning of the learning unit 22 progresses with an increase in the number of test plays pn. In general, the winning percentage wp of the learning unit 22 tends to improve as the number of test plays pn increases.
[0041] Also, when the game difficulty level is low, learning by the learning unit 22 is easy, but when the game difficulty level is high, learning by the learning unit 22 becomes difficult. In other words, when the game difficulty level is low, the curve C1 reaches the win rate wp of the predetermined threshold Th with a relatively small number of test plays. On the other hand, when the game difficulty level is high, the curve C2 reaches the win rate of the threshold Th with a larger number of test plays than the curve C1.
[0042] 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) has a high correlation 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 being low in difficulty, monotonous, and easily boring, and if the first evaluation value V1 is high, the game can be evaluated as being high in difficulty, 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.
[0043] In S6, the second calculation unit 27 uses the behavior history in the history recording unit 25 to calculate a second evaluation value V2 according to the variety of behaviors selected by the learning unit 22. For example, the more diverse the behaviors selected by the learning unit 22, the higher the second evaluation value V2 will be.
[0044] FIG. 5 is a diagram showing an outline of the process of the second calculation unit 27. As shown in FIG. The second calculation unit 27 first refers to the plurality of behavior histories 25a recorded by the history recording unit 25. The second calculation unit 27 calculates, from the plurality of behavior histories 25a, each scene S x After setting the state space so that is an appropriate size, the scene S x Extract the policy π for each scene S. x The strategy π in is expressed by the following equation (1). π(S x ,a y )=z …(1)
[0045] In formula (1), "a y " is scene Sx Let z denote one of the actions that the agent can choose, and z denotes the scene S. x The agent takes action a y The probability of selecting
[0046] Then, the second calculation unit 27 calculates the scene S x The total number of scenes and each scene S x A second evaluation value V2 is calculated based on the two features of the probability distribution of actions included in the policy π.
[0047] Here, scene S x As the number of situations increases, the situations that occur during play tend to become more diverse and the game becomes more complicated. x The second evaluation value V2 is increased in accordance with the total number of the second evaluation values.
[0048] In addition, when reinforcement learning has progressed to a certain extent, scene S x If the possible actions a in a scene are diverse, then x In this case, the actions in the strategy π are unlikely to be standardized, that is, the actions during the game become complex. Therefore, the second calculation unit 27 adjusts the second evaluation value V2 based on the probability distribution for each action included in the strategy π. For example, in a case where the probabilities of multiple actions in the strategy π are each equal to or greater than a predetermined value, the second calculation unit 27 sets the second evaluation value V2 higher than a case where only one action in the strategy π has a high probability. Note that the diversity of the actions a in the strategy π may be calculated using, for example, the distribution of the values of the π matrix or the amount of compressed information obtained by spectral decomposition or the like.
[0049] The second evaluation value V2 obtained in the above manner can be used as an index of the entertainment value of the game (or the strategic level of the game) resulting from the complexity of the game's development.
[0050] In S7, the test support device 10 judges whether the test end condition is satisfied with the current set values. For example, the test support device 10 judges that the test end condition is satisfied with the current set values when the state of the reinforcement learning of the learning unit 22 satisfies a predetermined convergence condition or when the number of plays of the learning unit 22 reaches a certain number or more. 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.
[0051] In S8, the test support device 10 judges whether the test has been performed in the entire test range of the specified parameter P. If the test has been performed in the entire test range (Yes in S8), the process proceeds to S10. On the other hand, if the test has not been performed in the entire test range (No in S8), the process proceeds to S9.
[0052] In S9, the simulation unit 21 updates the set value of the parameter P to the next value. After that, the process returns to S4 and the above-mentioned process is repeated. As a result, the reinforcement learning of the learning unit 22 is sequentially performed in the entire test range of the parameter P, and the first evaluation value V1 and the second evaluation value V2 are obtained for each of the set values of the entire range of the parameter P.
[0053] In S10, the output processing unit 28 displays the test results of the parameter P on the display device 19. In displaying the test results in S10, for example, a first evaluation value V1 and a second evaluation value V2 are displayed in association with each set value of the entire test range of the parameter P. This allows the user to select an optimal value for the parameter P by referring to the first evaluation value V1 and the second evaluation value V2. In addition, the display of the test results in S10 allows the user to qualitatively grasp the overall tendency of the parameter P in the parameter space. Then, the process of FIG. 3 ends.
[0054] As described above, in the first embodiment, the learning unit 22 tests the system simulated by the simulation unit 21 based on the set value of the parameter P, and performs reinforcement learning using the test results (S4). The first calculation unit 26 calculates a first evaluation value V1 according to the speed of reinforcement learning of the learning unit 22 (S5). The second calculation unit 27 calculates a second evaluation value V2 according to the diversity of actions selected by the learning unit 22 during the test (S6). Then, the output processing unit 28 causes the display device 19 to display the first evaluation value V1 and the second evaluation value V2 corresponding to the set value of the parameter P (S10).
[0055] In the first embodiment, the simulation unit 21 tests the system to be tested using the learning unit 22, thereby making it possible to significantly reduce the number of cases where testing is performed in a real environment. In addition, since the testing in the simulation unit 21 is performed by the learning unit 22, the effort required for human test play can be significantly reduced.
[0056] Furthermore, 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 by reinforcement learning of the learning unit 22. Since the above evaluation values V1 and V2 are quantitative indexes that vary according to the setting value of the parameter P, the use of the evaluation values V1 and V2 makes it easy for the user to objectively evaluate the quality of the parameter settings of the system.
[0057] Therefore, according to the test support device 10 of the first embodiment, in optimizing a system taking into account emotional factors, it is possible to reduce the human workload during test play and evaluation of test results.
[0058] <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 test support device 10 in the second embodiment, as well as the operation example, are all similar to those in the first embodiment. Therefore, in the description of the second embodiment, differences from the first embodiment will be described, and any overlapping description will be omitted.
[0059] In the second embodiment, as an example, it is assumed that 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.
[0060] The simulation unit 21 in the second embodiment is configured as an automobile simulator that simulates the behavior of an automobile via a driving HMI in a virtual environment. Elements of the driving HMI include, for example, the steering wheel, brake, accelerator, shift lever, etc. of the automobile. The simulation unit 21 can change the setting values of parameters P (for example, the responsiveness of the steering wheel, brake, accelerator, number of gears, etc.) related to the steering wheel, brake, accelerator, shift lever, etc. of the automobile.
[0061] The learning unit 22 in the second embodiment functions as a driver of the automobile simulator of the simulation unit 21, and performs reinforcement learning based on the driving results. Note that the learning recording unit 24 in the second embodiment records, as information on the learning curve, for example, information indicating the number of driving times of the learning unit 22 and the progress of the score that evaluates the accuracy of driving.
[0062] The operation of the first calculation unit 26 in the second embodiment is similar to that in the first embodiment, but the meaning of the first evaluation value V1 acquired in S5 of Fig. 3 is different as follows. In the case of an HMI of a mechanical device, the easier the reinforcement learning is, the simpler the operation is, and the easier it is to use, and the better the HMI can be considered to be. Therefore, in the second embodiment, when the speed of reinforcement learning of the learning unit 22 is fast (when the first evaluation value V1 is low), it is sufficient to evaluate the current settings as being better than when the speed of reinforcement learning is slow (when the first evaluation value V1 is high).
[0063] Similarly, the operation of the second calculation unit 27 in the second embodiment is the same as that in the first embodiment, but the meaning of the second evaluation value V2 acquired in S6 in FIG. 3 is different as follows. In the case of the HMI of a machine, in scene S xAs the total number of actions increases or the number of types of actions to be selected in each scene increases, more complex operations and situational judgments become necessary, and the difficulty of operating the HMI increases. Therefore, in the second embodiment, the case where the actions selected by the learning unit 22 are diverse and the second evaluation value V2 is high may be evaluated lower than the case where the second evaluation value V2 is low.
[0064] In the second embodiment, the display in S10 of Fig. 3 is similar to that in the first embodiment. This makes it possible to obtain the same effect as in the first embodiment in parameter adjustment of the HMI of a mechanical device as in the second embodiment.
[0065] <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.
[0066] Furthermore, the cases in which the test support device 10 performs a test of parameter adjustment are not limited to the cases in the above embodiment. For example, the test support device 10 may perform a test on the HMI of a mechanical device other than an automobile. Also, for example, it is possible to test a parameter P of additional content of a game, and adjust the game balance with the additional content introduced by the test support device 10.
[0067] In the above embodiment, a configuration has been described in which reinforcement learning is performed by an AI player playing in the simulation unit 21. However, depending on the problem situation, such as the configuration of the test target and the range of the parameter P, a rule-based agent may be used as the AI player. When a rule-based agent is used, it becomes possible to significantly reduce the learning time.
[0068] In the above embodiment, an example has been described in which the reinforcement learning of the learning unit 22 is performed over the entire test range of the parameter P. However, the test support device 10 may search for a parameter P that brings the first evaluation value V1 and the second evaluation value V2 into a desired state, and end the test when the search for the parameter P that satisfies the condition is completed.
[0069] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention. [Explanation of symbols]
[0070] 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
1. 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:
2. The learning unit (22) performs reinforcement learning using the results of the test. A test support device (10) according to claim 1.
3. The first calculation unit (26) calculates the first evaluation value based on a learning curve of reinforcement learning by the learning unit (22). A test support device (10) according to claim 2.
4. The device further includes a recording unit (25) for recording a behavior history during a test performed by the learning unit (22), The second calculation unit (27) extracts measures for each scene from the action history and calculates the second evaluation value based on the measures. A test support device (10) according to claim 2 or 3.
5. The second calculation unit (27) calculates the second evaluation value based on at least one of the number of scenes or the distribution of probabilities for the actions of the measures. A test support device (10) according to claim 4.
6. The learning unit (22) tests the system under a plurality of conditions each having a different value of the parameter, 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. A test support device (10) according to any one of claims 1 to 5.
7. 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.
Citation Information
Patent Citations
Game level design method and device, storage medium and electronic equipment
CN111530081A
Personal design system
JP1997218885A
Data processing system and method
JP2020108733A
Method, device and system for game difficulty assessment
US20190351334A1
