Detecting Human Behavioral Pattern in Rock, Paper, Scissors Game Using Artificial Intelligence

Document Type : Original Article


1 M.Sc. Student, Department of Electrical Engineering, Faculty of Energy, Kermanshah University of Technology, Kermanshah, Iran

2 Assistant Professor, Department of Electrical Engineering, Faculty of Energy, Kermanshah University of Technology, Kermanshah, Iran

3 Assistant Professor, Department of Industrial Engineering, Faculty of Engineering Management, Kermanshah University of Technology, Kermanshah, Iran


As entertainment tools, computer games are important phenomena in the world, which are considered as a popular medium, an effective educational solution and a considerable economy resource. In this paper, Multi-Layer perceptron (MLP) neural network was used to detect human behavior pattern in rock, paper, scissors game. The similarity of artificial neural networks (ANNs) to the human brain is the main motivation of this study. MATLAB software was used to implement the network code. These codes consisted of two phases: 1) training the ANN to learn the human behavioral pattern considering forty games. 2) real play against a human by doing ten games. After the implementation of the network, its effectiveness in detecting human behavioral patterns was investigated. The network was tested on 40 people (20 women and 20 men). Each player played with the target network in three stages. The results of this study showed that the win percentage of computers with MLP neural network was 57.5% for men and 60.8% for women. While the percentage of the computer without neural networks and with random selections in 60 games was 52.5% for men and 42.5% for women


Google Scholar


Main Subjects

[1]      M.A. A. Game Psychology. Payame Noor Univ First Ed (in Persian) 1993.
[2]      Ali FF, Nakao Z, Chen Y-W. Playing the rock-paper-scissors game with a genetic algorithm. Proc. 2000 Congr. Evol. Comput. CEC00 (Cat. No. 00TH8512), vol. 1, IEEE; 2000, p. 741–5.
[3]      Hu W, Zhang G, Tian H, Wang Z. Chaotic Dynamics in Asymmetric Rock-Paper-Scissors Games. IEEE Access 2019;7:175614–21.
[4]      de Souza DFP, Carneiro HCC, França FMG, Lima PM V. Rock-paper-scissors WiSARD. 2013 BRICS Congr. Comput. Intell. 11th Brazilian Congr. Comput. Intell., IEEE; 2013, p. 178–82.
[5]      Cenggoro TW, Kridalaksana AH, Arriyanti E, Ukkas MI. Recognition of a human behavior pattern in paper rock scissor game using backpropagation artificial neural network method. 2014 2nd Int. Conf. Inf. Commun. Technol., IEEE; 2014, p. 238–43.
[6]      Salvetti F, Patelli P, Nicolo S. Chaotic time series prediction for the game, Rock-Paper-Scissors. Appl Soft Comput 2007;7:1188–96.
[7]      Chen W-Y, Chung C-H, Heish S, Ku C-C. Rock, Paper and Scissors image identification scheme. 4th Int. Conf. New Trends Inf. Sci. Serv. Sci., IEEE; 2010, p. 748–53.
[8]      Matsumoto Y, Yamamoto T, Honda K, Notsu A, Ichihashi H. Application of cluster validity criteria to Rock-Paper-Scissors game judgment. 2012 IEEE Int. Conf. Fuzzy Syst., IEEE; 2012, p. 1–5.
[9]      Hasuda Y, Ishibashi S, Kozuka H, Okano H, Ishikawa J. A robot designed to play the game" Rock, Paper, Scissors". 2007 IEEE Int. Symp. Ind. Electron., IEEE; 2007, p. 2065–70.
[10]    Gang T, Cho Y, Choi Y. Classification of rock-paper-scissors using electromyography and multi-layer perceptron. 2017 14th Int. Conf. Ubiquitous Robot. Ambient Intell., IEEE; 2017, p. 406–7.
[11]     Fausett L V. Fundamentals of neural networks: architectures, algorithms and applications. Pearson Education India; 2006.
[12]    Roshani GH, Roshani S, Nazemi E, Roshani S. Online measuring density of oil products in annular regime of gas-liquid two phase flows. Measurement 2018;129:296–301.
[13]    Dehlaghi V, Taghipour M, Haghparast A, Roshani GH, Rezaei A, Shayesteh SP, et al. Prediction of the thickness of the compensator filter in radiation therapy using computational intelligence. Med Dosim 2015;40:53–7.