| Literature DB >> 32807813 |
Lei Wang1, Wenbin Huang1,2, Yuanpeng Li1,2, Julian Evans1, Sailing He3,4,5.
Abstract
Predicting and modeling human behavior and finding trends within human decision-making processes is a major problem of social science. Rock Paper Scissors (RPS) is the fundamental strategic question in many game theory problems and real-world competitions. Finding the right approach to beat a particular human opponent is challenging. Here we use an AI (artificial intelligence) algorithm based on Markov Models of one fixed memory length (abbreviated as "single AI") to compete against humans in an iterated RPS game. We model and predict human competition behavior by combining many Markov Models with different fixed memory lengths (abbreviated as "multi-AI"), and develop an architecture of multi-AI with changeable parameters to adapt to different competition strategies. We introduce a parameter called "focus length" (a positive number such as 5 or 10) to control the speed and sensitivity for our multi-AI to adapt to the opponent's strategy change. The focus length is the number of previous rounds that the multi-AI should look at when determining which Single-AI has the best performance and should choose to play for the next game. We experimented with 52 different people, each playing 300 rounds continuously against one specific multi-AI model, and demonstrated that our strategy could win against more than 95% of human opponents.Entities:
Mesh:
Year: 2020 PMID: 32807813 PMCID: PMC7431549 DOI: 10.1038/s41598-020-70544-7
Source DB: PubMed Journal: Sci Rep ISSN: 2045-2322 Impact factor: 4.379
The internal calculation of our multi-AI algorithm with 5 models and focus length 5 playing against a human opponent.
Selection between AI-1 and AI-4 when focus length F = 5.
The transition matrix for AI-2 after 20 rounds of competition.
| RR | RS | RP | PR | PP | PS | SR | SP | SS | |
|---|---|---|---|---|---|---|---|---|---|
| R | 0 | 1/18 | 1/18 | 0 | 0 | 1/18 | 1/18 | 3/18 | 1/18 |
| P | 0 | 0 | 0 | 1/18 | 0 | 2/18 | 0 | 1/18 | 0 |
| S | 1/18 | 1/18 | 0 | 0 | 0 | 1/18 | 1/18 | 0 | 2/18 |
Figure 1300 rounds AI competition results for 4 typical players.
Figure 2Total scores for multi-AI competing against different players in 300 rounds game.
52 people’s preferences in choosing Rock Paper Scissors in 300 rounds competitions.
| R | P | S | |
|---|---|---|---|
| MEAN (times) | 106.6098 | 96.29268 | 97.09756 |
| STDEV.S | 13.08095 | 13.12239 | 12.11851 |
Game results (total scores) of our multi-10AI competing with human in 300 rounds.
| AI1 | AI2 | AI3 | AI4 | AI5 | AI6 | AI7 | AI8 | AI9 | AI10 | AI1 | 10 single models average score | Multi-10AI score | Multi-5AI score |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Player1 | − 13 | 37 | 24 | 20 | 22 | 14 | − 6 | − 2 | − 10 | 3 | 8.9 | 10 | |
| Player2 | 2 | 50 | 48 | 42 | 42 | 50 | 61 | 7 | 12 | 5 | 31.9 | 41 | |
| Player3 | 46 | 58 | 52 | 53 | 24 | 29 | 11 | − 15 | − 14 | 12 | 25.6 | 8 | |
| Player4 | 26 | 41 | 26 | 55 | 46 | 28 | 20 | 13 | 10 | 36 | 30.1 | 34 | |
| Player5 | 35 | 39 | 92 | 107 | 85 | 67 | 88 | 61 | 78 | 70 | 72.2 | 73 | |
| Player6 | 28 | 60 | 52 | 55 | 49 | 36 | 14 | 1 | − 18 | 12 | 28.9 | 43 | |
| Player7 | 56 | 63 | 68 | 65 | 55 | 46 | 54 | − 1 | − 14 | 17 | 40.9 | 48 | |
| Player8 | 28 | 29 | 47 | 29 | 12 | 5 | 21 | 5 | − 10 | − 5 | 16.1 | 43 | |
| Player9 | 32 | 63 | 58 | 72 | 62 | 72 | 32 | 26 | 20 | 15 | 45.2 | 59 | |
| Player10 | − 5 | − 14 | − 8 | 11 | 16 | − 7 | − 26 | 19 | 20 | 23 | 2.9 | 24 | |
| Player11 | 40 | 15 | 33 | 16 | 9 | 24 | 25 | − 9 | 6 | 37 | 19.6 | 9 | |
| MEAN | 25.00 | 40.09 | 44.73 | 47.73 | 38.36 | 33.09 | 26.73 | 9.55 | 7.27 | 20.45 | 29.30 | 35.64 | 37.39 |
| STDEVA | 21.61 | 23.57 | 26.02 | 28.36 | 23.93 | 24.52 | 31.69 | 20.76 | 27.38 | 20.86 | 19.05 | 21.21 | 33.12 |
Figure 3Game results (total scores) of Multi-10AI competing with human in 300 rounds.
Figure 4Game results (total scores) of multi-AI with Markov chain lengths 1–5 competing with 8 typical players in 300 rounds.
| R | P | S | |
|---|---|---|---|
| PS | 1/3 | 1/3 | 1/3 |