Learning Positional Features for Annotating Chess Games: A Case Study Matej Guid, Martin Mozina, Jana Krivec, Aleksander Sadikov and Ivan Bratko CG 2008.

Slides:



Advertisements
Similar presentations
Problem solving skills
Advertisements

Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
ABML K NOWLEDGE R EFINEMENT L OOP A C ASE S TUDY Matej Guid, Martin Možina Vida Groznik, Aleksander Sadikov, Ivan Bratko Artificial Intelligence Laboratory.
Deriving Concepts and Strategies from Chess Tablebases Matej Guid, Martin Možina, Aleksander Sadikov, and Ivan Bratko Faculty of Computer and Information.
The Computer as a Tutor. With the invention of the microcomputer (now also commonly referred to as PCs or personal computers), the PC has become the tool.
D ESIGNING AN I NTERACTIVE T EACHING T OOL WITH ABML K NOWLEDGE R EFINEMENT L OOP enabling arguing to learn 1 Faculty of Education, University of Ljubljana,
Adversarial Search We have experience in search where we assume that we are the only intelligent being and we have explicit control over the “world”. Lets.
UIL Chess Puzzle Practice Material
Towards Adaptive Web-Based Learning Systems Katerina Georgouli, MSc, PhD Associate Professor T.E.I. of Athens Dept. of Informatics Tempus.
Place captured red pieces below Place captured blue pieces below Rules New Game Exit Left mouse click on piece – drag to desired location - left mouse.
Artificial Intelligence for Games Game playing Patrick Olivier
Artificial Intelligence in Game Design Heuristics and Other Ideas in Board Games.
Providing Constructive Feedback
Automated Changes of Problem Representation Eugene Fink LTI Retreat 2007.
R U There? Looking for those Teaching Moments in Chat Transcripts Frances Devlin, John Stratton and Lea Currie University of Kansas ALA Annual Conference.
ML ALGORITHMS. Algorithm Types Classification (supervised) Given -> A set of classified examples “instances” Produce -> A way of classifying new examples.
Factors Affecting Diminishing Returns for Searching Deeper Matej Guid and Ivan Bratko CGW 2007.
Game Playing: Adversarial Search Chapter 6. Why study games Fun Clear criteria for success Interesting, hard problems which require minimal “initial structure”
U.S. Army Research, Development and Engineering Command Unclassified – Unlimited Distribution Considerations for adaptive tutoring within serious games:
Classroom Test and Assessment
G OAL -O RIENTED C ONCEPTUALIZATION OF P ROCEDURAL K NOWLEDGE Martin Možina, Matej Guid, Aleksander Sadikov, Vida Groznik, Ivan Bratko Artificial Intelligence.
GoogolHex CS4701 Final Presentation Anand Bheemarajaiah Chet Mancini Felipe Osterling.
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
1. Learning Outcomes At the end of this lecture, you should be able to: –Define the term “Usability Engineering” –Describe the various steps involved.
Knowledge Acquisition from Game Records Takuya Kojima, Atsushi Yoshikawa Dept. of Computer Science and Information Engineering National Dong Hwa University.
17.5 Rule Learning Given the importance of rule-based systems and the human effort that is required to elicit good rules from experts, it is natural to.
A REVIEW OF FEATURE SELECTION METHODS WITH APPLICATIONS Alan Jović, Karla Brkić, Nikola Bogunović {alan.jovic, karla.brkic,
Kansas State University Department of Computing and Information Sciences CIS 830: Advanced Topics in Artificial Intelligence From Data Mining To Knowledge.
Artificial Intelligence in Game Design Problems and Goals.
1 Machine Learning: Lecture 11 Analytical Learning / Explanation-Based Learning (Based on Chapter 11 of Mitchell, T., Machine Learning, 1997)
#2. UIL Chess Puzzle Practice Material This year’s UIL Chess Puzzle Test includes “solve the mate” positions similar to last year’s, but it also tests.
Artificial Intelligence in Game Design Lecture 22: Heuristics and Other Ideas in Board Games.
Prepared by : Walaa Maqdasawi Razan Jararah Supervised by: Dr. Aladdin Masri.
Place Value Kim Burns. Chip-Trading Games Use chip-trading games to teach place value. These games stress the idea of exchanging many for one. The values.
Copyright 2004 Compsim LLC The Right Brain Architecture of a Holonic Manufacturing System Application of KEEL ® Technology to Holonic Manufacturing Systems.
Benk Erika Kelemen Zsolt
1 A Conceptual Framework of Data Mining Y.Y. Yao Department of Computer Science, University of Regina Regina, Sask., Canada S4S 0A2
Well Posed Learning Problems Must identify the following 3 features –Learning Task: the thing you want to learn. –Performance measure: must know when you.
Senior Project Poster Day 2007, CIS Dept. University of Pennsylvania Reversi Meng Tran Faculty Advisor: Dr. Barry Silverman Strategies: l Corners t Corners.
PYIWIT'021 Threat Analysis to Reduce the Effects of the Horizon Problem in Shogi Reijer Grimbergen Department of Information Science Saga University.
GAME PLAYING 1. There were two reasons that games appeared to be a good domain in which to explore machine intelligence: 1.They provide a structured task.
ASSESSING LEARNING ALGORITHMS Yılmaz KILIÇASLAN. Assessing the performance of the learning algorithm A learning algorithm is good if it produces hypotheses.
Intelligent Database Systems Lab N.Y.U.S.T. I. M. Externally growing self-organizing maps and its application to database visualization and exploration.
ASSESSING LEARNING ALGORITHMS Yılmaz KILIÇASLAN. Assessing the performance of the learning algorithm A learning algorithm is good if it produces hypotheses.
Chess By Kezia Farley.
A game based off of the esteemed classic By: Tadziu Kosiara.
Quoridor and Artificial Intelligence
Creating Subjective and Objective Sentence Classifier from Unannotated Texts Janyce Wiebe and Ellen Riloff Department of Computer Science University of.
The Basics Of Chess Student Name: Jovannie Charles Date: 3/25/11.
Every chess master was once a beginner. Irving Chernev
CpSc 810: Machine Learning Analytical learning. 2 Copy Right Notice Most slides in this presentation are adopted from slides of text book and various.
Data Mining and Decision Support
Boris Milašinović Faculty of Electrical Engineering and Computing University of Zagreb, Croatia.
RULES Patty Nordstrom Hien Nguyen. "Cognitive Skills are Realized by Production Rules"
Essay Questions. Two Main Purposes for essay questions 1. to assess students' understanding of and ability to think with subject matter content. 2. to.
Identifying “Best Bet” Web Search Results by Mining Past User Behavior Author: Eugene Agichtein, Zijian Zheng (Microsoft Research) Source: KDD2006 Reporter:
Chapter 9: Introduction to the t statistic. The t Statistic The t statistic allows researchers to use sample data to test hypotheses about an unknown.
February 25, 2016Introduction to Artificial Intelligence Lecture 10: Two-Player Games II 1 The Alpha-Beta Procedure Can we estimate the efficiency benefit.
Teaching Computers to Think:
Some counting questions with the Rules of Chess. Chessboard and Chess pieces The game of chess is played on an 8-by-8 grid of alternately colored squares.
Introduction to Machine Learning, its potential usage in network area,
CS 9633 Machine Learning Explanation Based Learning
Fighting Knowledge Acquisition Bottleneck
Influence of Search Depth on Position Evaluation
D1 Miwa Makoto Chikayama & Taura Lab
In-Service Teacher Training
Classroom test and Assessment
The Alpha-Beta Procedure
CS51A David Kauchak Spring 2019
Minimax Pathology and Real-Number Minimax Model
Presentation transcript:

Learning Positional Features for Annotating Chess Games: A Case Study Matej Guid, Martin Mozina, Jana Krivec, Aleksander Sadikov and Ivan Bratko CG 2008 Faculty of Computer and Information Science University of Ljubljana, Slovenia

Enhanced Knowledge in Chess Programs  The improvements of Rybka 3 in evaluation function for chess middlegames: understanding good and bad bishops, much more advanced understanding of kings attacks, importance of defending king by pieces, “space” (previously addresed only indirectly) (Larry Kaufmann, designer of Rybka’s evaluation function, RybkaForum.net) How to “teach” a program to recognise chess concepts?  Knowledge is particularly important when annotating chess games…

The Concept of the Bad Bishop  Chess experts in general understand the concept of bad bishop.  Precise formalisation of this concept is difficult. Traditional definition ( John Watson, Secrets of Modern Chess Strategy, 1999 )  A bishop that is on the same colour of squares as its own pawns is bad: its mobility is restricted by its own pawns, it does not defend the squares in front of these pawns.  Moreover, centralisation of these pawns is the main factor in deciding whether the bishop is bad or not.

CRAFTY 's Features for Describing Bishops FeatureDescriptionDefficiency for annotating BLACK_BISHOP_PLUS _PAWNS_ON_COLOR number of own pawns that are on same colour of square as bishop all such pawns count the same, regardless of their position and how badly they restrict the bishop BLACK_BISHOPS _POSITION evaluation of bishop's posi- tion based on predefined values for particular squares such predefined value is not the actual value of bishop's placement in a particular position BLACK_BISHOPS _MOBILITY number of squares that bishop attacks number of attacked squares and actual bishop's mobility are not necessarily the same thing

CRAFTY 's Features for Describing Bishops FeatureDescriptionDefficiency for annotating BLACK_BISHOP_PLUS _PAWNS_ON_COLOR number of own pawns that are on same colour of square as bishop all such pawns count the same, regardless of their position and how badly they restrict the bishop BLACK_BISHOPS _POSITION evaluation of bishop's posi- tion based on predefined values for particular squares such predefined value is not the actual value of bishop's placement in a particular position BLACK_BISHOPS _MOBILITY number of squares that bishop attacks number of attacked squares and actual bishop's mobility are not necessarily the same thing

CRAFTY 's Features for Describing Bishops FeatureDescriptionDefficiency for annotating BLACK_BISHOP_PLUS _PAWNS_ON_COLOR number of own pawns that are on same colour of square as bishop all such pawns count the same, regardless of their position and how badly they restrict the bishop BLACK_BISHOPS _POSITION evaluation of bishop's posi- tion based on predefined values for particular squares such predefined value is not the actual value of bishop's placement in a particular position BLACK_BISHOPS _MOBILITY number of squares that bishop attacks number of attacked squares and actual bishop's mobility are not necessarily the same thing

Static Nature of Positional Features  Positional features in evaluation functions are static in their nature  Heuristic search enables to fulfil their purpose – contributing to the program finding best moves

Static Nature of Positional Features  Positional features in evaluation functions are static in their nature  Heuristic search enables to fulfil their purpose – contributing to the program finding best moves  It is also desirable for positional features for annotating chess games to be of static nature! Heuristic search is important for instructive annotations.  see the paper Automated chess tutor. CG 2006, Turin, Italy, May 29-31, 2006.Automated chess tutor. Is freeing move e6-e5 possible or not?

Expert-Crafted Rules & Introducing Learning  Data set: 200 middlegame positions from real chess games: bad: 78 bishops not bad: 122 bishops  We randomly selected 100 positions for learning and 100 positions for testing.  CRAFTY ’s positional feature values served as attribute values for learning. Chess experts: wGM Jana Krivec FM Matej Guid  It is extremely difficult for chess experts to define appropriate rules for determining bad bishops -> knowledge acquisition bottleneck  various expert-crafted rules performed rather poorly (only 59% of examples were correctly classified) -> motivation for introducing machine learning Data Set for Machine Learning

Bad Bishops from Static Point of View  Our goal: construct a static positional feature BAD_BISHOP  Assessing bishops “statically” is counter-intuitive from chess point of view  Special guidelines were chosen for determining “statically” bad bishops… The bishop is bad from the static point of view in some position, if 1. its improvement or exchange is desirable 2. the pawn structure limits the bishop’s chances for taking an active part in the game, 3. its mobility in this position is limited or not important for the evaluation. Guidelines for Determining Bad Bishops from Static Point of View

Standard Machine Learning Methods' Performance with CRAFTY 's features only  Machine learning methods’ performance on initial dataset MethodClassification accuracy Decision trees (C4.5)73% Logistic regression70% Rule learning (CN2)72%  The results were obtained on test data set.  The results obtained with CRAFTY ’s positional features only are too inaccurate for commenting purposes… additional information for describing bad bishops is necessary.  see the paper Fighting Knowledge Acquisition Bottleneck with Argument Based Machine Learning. European Conference on Artificial Intelligence, Patras, Greece, July 21-25, Available at: Knowledge Acquisition Bottleneck with Argument BasedMachine Learning. Improved Method

First Critical Example  Rules obtained by ABML method ABCN2 failed to classify this example as "not bad“.  The following question was given to the experts: “Why is the black bishop not bad?“  The experts used their domain knowledge: “The black bishop is not bad, since its mobility is not seriously restricted by the pawns of both players.”

Introducing new attribute into the domain and adding argument to an example  Experts’ explanation could not be described with current domain attributes.  The argument “ BISHOP=“not bad” because IMPROVED_BISHOP_MOBILITY is high“ was added to the example.  A new attribute, IMPROVED_BISHOP_MOBILITY, was included into the domain: number of squares accessible to the bishop, taking into account only own and opponent’s pawn structure

Another Critical Example  The ABML-based knowledge elicitation process can be used to induce rules to determine both good (i.e., not bad) and bad bishops.  Now the following question was given to the experts: “Why is the black bishop bad?“  The experts used their domain knowledge: “The black bishop is bad, since black pawns block its diagonals.”

Introducing new attribute into the domain and adding argument to an example  Experts’ explanation could not be described with current domain attributes.  The argument “ BISHOP=“bad” because BLACK_PAWN_BLOCKS_BISHOP_DIAGONAL is high“ was added to the example.  A new attribute, BLACK_PAWN_BLOCKS_BISHOP_DIAGONAL, was included into the domain: pawns on the color of the square of the bishop that block the bishop's (front) diagonals weights of such pawns were taken into account (see the “Look-up table” that follows)

 Method failed to explain critical example with given argument.  Counter example was presented to experts:  Experts’ explanation: “The black bishop is not bad, since its mobility is not seriously restricted, taking the pawn structure into account.” Counter example: “bad”, although BLACK_PAWN_BLOCKS_BISHOP _DIAGONAL is high. Counter example  "Why is the “green” bishop not bad, compared to the “red” one?" Critical example: “not bad”, BLACK_PAWN_BLOCKS_BISHOP _DIAGONAL is high.

Improving Arguments with Counter Examples  The argument given to the critical example was extended to “ BISHOP=“bad” because BLACK_PAWN_BLOCKS_BISHOP_DIAGONAL is high and IMPROVED_BISHOP_MOBILITY is low.”  With this argument the method could not find any counter examples anymore.  The new rule covering the critical example became: if BAD_PAWNS_BLOCK_BISHOP_DIAGONAL > 16 and IMPROVED BISHOP MOBILITY < 4 then BAD_BISHOP = “bad” class distribution [42,0]

Assesing “Bad” Pawns  Experts designed a look-up table (left) with predefined values for pawns that are on color of square of the bishop in order to assign weights to such pawns. BAD_PAWNS_AHEAD = = 42

After the Final Iteration... AttributeDescription BAD_PAWNS pawns on the color of the square of the bishop - weighted according to their squares (bad pawns) BAD_PAWNS_AHEAD bad pawns ahead of the bishop BAD_PAWNS _BLOCK_BISHOP_DIAGONAL bad pawns that block the bishop's (front) diagonals BLOCKED_BAD_PAWNS bad pawns blocked by opponent's pawns or pieces IMPROVED_BISHOP_MOBILITY number of squares accessible to the bishop taking into account only pawns of both opponents  The whole process consisted of 8 iterations. 7 arguments were attached to automatically selected critical examples 5 new attributes were included into the domain

Classification Accuracy Through Iterations  The accuracies of all methods improved by adding new attributes.  ABCN2 (which also used the arguments) outperformed all others. Arguments suggested useful attributes AND lead to more accurate models.

The Final Model  Rule #2: if BAD_PAWNS_AHEAD > 18 and IMPROVED_BISHOP_MOBILITY < 3 then BISHOP = “bad” class distribution [46,0]

The Final Model  Possible comment: “Black bishop is bad, since black pawns on the same colour of squares ahead of it, and pawns of both opponents restrict its mobility.”

Conclusions  In this case study, Argument Based Machine Learning was shown to be a powerful knowledge-elicitation method for defining deep positional patterns.  ABML offers the following advantages for knowledge elicitation: explain single example easier for experts to articulate knowledge critical examples expert provides only relevant knowledge arguments constrain learning hypotheses are consistent with expert knowledge