Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/313880802

An Expert System for Advising to Buy a Football Player Using Visual Prolog

Article  in  Intelligent Information Management · January 2012

CITATIONS READS
2 573

2 authors, including:

Hossein Shirazi
Malek Ashtar University of Technology
283 PUBLICATIONS   1,163 CITATIONS   

SEE PROFILE

Some of the authors of this publication are also working on these related projects:

A textbook on the design and analysis of algorithms View project

Enterprise Architecture View project

All content following this page was uploaded by Hossein Shirazi on 20 August 2017.

The user has requested enhancement of the downloaded file.


An Expert System for advising to buy a football player using Visual prolog

Mahdi Gholami mehr Hossein Shirazi


Department of Computer and Information Technology Department of Computer and Information Technology
Malek-Ashtar University of Technology Malek-Ashtar University of Technology
Tehran, Iran Tehran, Iran
Mahdi.gholami.mehr@gmail.com Shirazi@mut.ac.ir

player that in the whole season is injured, the club team


Abstract— This work presents the design of an expert system may have trouble in the post that this player is played.
that aims to advice the club teams to buy a football player in the Therefore, a person who can have good advice to buy a
post that their needed. Suggesting different player in many posts player in the post that the club team needed is very
by an expert person is based on football experience, knowledge important. This person should have much information about
about the player and the club that he works. For mechanization the club team that works in it and the entire player that the
the ability of this person, we use expert system because it can
club team needed. For buying a player we have a knowledge
model the ability of a person in solving a problem. Visual prolog
language is used as a tool for designing our expert system.
base based on the condition of club team and the player
features. According to our knowledge no one designed
KEYWORDS: ARTIFICIAL INTELLIGENCE, EXPERT SYSTEMS – VISUAL expert systems for advising to buy a football player, so in
PROLOG, FOOTBALL ADVISER. this work, we will present a design of an expert system for
advising to buy a football player using Visual Prolog.
1. INTRODUCTION We preset in section 2 Advise to buy Knowledge, section 3
Many real-world problems have no algorithmic solution or the Function of the System, section 4 Expert System, section
the use of these types of solutions required to respond in 5 User Interface, and in section 6 Conclusions.
good time performance, ease of changing requirements, and
2. ADVISE KNOWLEDGE
there are uncertainties in the behavior of the system.
However, the argument that people in solving problems The advice knowledge of specialized advisor is required for
such as advice to buy a football player, select the direction the development of an expert system. This knowledge is
for tourism, and ... cannot see that disabled people are not collected through the creation of personal interview with
dead-end computing. Among the ideas that are inspired by football advisor. Then, a set of rules is created where each
the human reasoning, are neural networks and expert rule contains in IF part that has the symptoms and in THEN
systems "if - then" rules. Expert systems for problems that part that has the player that should be suggested. The
do not have any specific algorithm, is the best solution. An inference engine is a mechanism through which rules are
expert system is a system that employs human knowledge selected to be fired. It is based on a pattern matching
captured in a computer to solve problems that ordinarily algorithm whose main purpose is to associate the facts
require human expertise [1], [4]. Expert system seeks and (input data) with applicable rules from the rule base.
utilizes relevant information from their human users and Finally, the players are suggested by the inference engine.
from available knowledge bases in order to make This expert system defined the symptoms for buying a
recommendations [2]. With the expert system, the user can player. The scope of our expert system is the following
interact with a computer to solve a certain problem. This features: post needed by club, money to pay, player age,
can occur because the expert system can store heuristic contract time, player injury type, player defence type, player
knowledge. The development of expert system is foot, body balance, stamina, height, technic, tenacity,
implemented in visual prolog environment. This responsibility, speed, pass, shot power, acceleration,
programming tool is designed for facilitate the development teamwork, head ability, nationality, free kick accuracy, goal
of software to model human knowledge. keeper skills, jump ability.
In this article we want to show that why advice club team to All of these features have an importance degree. It means
buy a player, is important. Many club teams in the transfer that for example the post needed by club feature is more
season are looking for players that can help their team in important than player age and our system ask this feature
the future season. Buying the player that has the condition before player age. For each post the expert system asks a
of a club team is very important because a bad buy can have part of these features that are important. For example, if
financial losses and the team cannot have success in the GK post (Goal keeper) is selected, these features are asked:
whole season. For example, if without any expertise buy a post needed by club, money to pay, player age, contract
time, goal keeper skills, jump ability, height, body balance,
stamina, responsibility, defence, shot power, injury, jump ability ["Bad","Medium","Good","Very good"].
tenacity, nationality.
Each of these features has some conditions that are
explained in table 1: For each of features the user selects one of the conditions.
Then, we have an importance factor ("Very
Table 1. Features and its conditions high","High","Medium","Low", and "Not important"). The
user selects one of them and it means that how much this
Feature Condition feature is important for him? We define each of these
importance factors as following:
post needed by club ["GK","DF","MF","FW"].
Table 2 Importance factor and its percent
["(Less than 2M1$)","(2M$ and 5M$)",
money to pay
"(5M$ and 10M$)","(Up to 10M$)"]. Importance factor
Percent
["(Less than 18)", "(18 and 23)",
player age
"(23 and 30)","(Up to 30)"].
Very high 100%
contract time ["1","2","3","4","5"].
High 0.75
["Very weak", "Weak",
player injury type
"Medium","Strong","Very Strong"].
Medium 0.5
["Very weak", "Weak",
player defence type
"Medium","Strong","Very Strong"]. Low 0.25
player foot ["Left","Right","Both"].
Not important 0.01
["Very weak", "Weak",
body balance
"Medium","Strong","Very Strong"].
["Very weak", "Weak", For the first question the system asks post needed by club
stamina
"Medium","Strong","Very Strong"]. and you can select for example GK post and the importance
factor "Very high". Then, you can set this condition in our
height ["Short","Medium","Tall","Very tall"]. system and the inference engine with these conditions that
you are selected decides whom players suggest to you
technic ["Bad","Medium","Good","Very good"].

tenacity ["Bad","Medium","Good","Very good"]. 3. THE FUNCTION OF THE SYSTEM


The proposed system performs many functions. It will
responsibility ["Bad","Medium","Good","Very good"].
conclude the players based on answers of the user to
["Very slow", "Slow", specific question that the system asks the user. The
speed
"Medium","Fast","Very Fast"]. questions provide the system for explanation for the
symptoms of the suggested players that help the expert
pass ["Bad","Medium","Good","Very good"]. system for advice to buy a player by inference engine. It
["Very weak", "Weak", stores the facts and the conclusion of the inference of the
shot power system, and the user, for each case, in database. It
"Medium","Strong","Very Strong"].
processes the database in order to extract rules, which
acceleration ["Bad","Medium","Good","Very good"]. complete the knowledge base.
teamwork ["Bad","Medium","Good","Very good"]. 4. EXPERT SYSTEM
A literature review of the last decade for the recording of
head ability ["Bad","Medium","Good","Very good"]. development methodologies of expert systems surveys and
["Iran","America ML ", classifies these methodologies using six categories [5]. This
nationality
"Europe ML","Africa ML","Asia ML"]. expert system use following categories:
 Rule-based systems
freekick accuracy ["Bad","Medium","Good","Very good"].
 Knowledge-based systems
goal keeper skills ["Bad","Medium","Good","Very good"].  Intelligent agent (IA)
 Database methodology
 Inference engine.
1
Million  System-user interaction.
The expert system developed in this work consists of the /*******************buy5GK*********************/
user interface, the explanation facility, the knowledge base, buy5GK(Player,CFMain,Rate,RuleNum,Post,Salary,Age,Co
and the inference engine. The structure of the expert system
ntract,GKSkills):-
is shown in Figure1.
(postrate(Player,Post,Rate1),
salary(Player, Salary),
Inference age(Player, Age),
Knowled Engine Working contract(Player, Contract),
ge base )Agenda( Memory gkskill(Player,GKSkills),
)Rules(
Rate=Rate1,
RuleNum="buy5GK, R1",
CFMain=1);
(postrate(Player,Post,Rate1),
salary(Player, Salary),
Explanation Knowledge
age(Player, Age),
facility Acquisition
facility contract(Player, Contract),
not(gkskill(Player,GKSkills)),
Rate=Rate1,
RuleNum="buy5GK, R2",
CFMain=0.8);
User
(postrate(Player,Post,Rate1),
interface
salary(Player, Salary),
age(Player, Age),
Figure 1 the structure of the expert system
not(contract(Player, Contract)),
not(gkskill(Player,GKSkills)),
In the present article the problem of advice to buy a football
player are implemented by methodology rule based Rate=Rate1,
systems[6]. One of the well-known methods of RuleNum="buy5GK, R3",
representation in the expert system is prolog. Prolog is one
of the principal languages used by researchers in Artificial CFMain=0.6);
Intelligence, with many applications developed in that field, (postrate(Player, Post,Rate1),
especially in the form of Expert Systems – programs that
'reason out' the solution to complex problems using rules. salary(Player, Salary),
You do not need to be an experienced programmer to learn not(age(Player, Age)),
Prolog [3]. Some initial familiarity with basic computing
concepts such as program, variable, constant and function not(contract(Player, Contract)),
would make it easier to achieve, but paradoxically too much not(gkskill(Player,GKSkills)),
experience of writing programs in other languages may
make the task harder – it may be necessary to unlearn bad Rate=Rate1,
habits of thinking learnt elsewhere. On our expert system RuleNum="buy5GK, R4",
contains 120 rules. The system asks in each post max 15
questions. In each five question system can give some CFMain=0.4);
suggestions. This is because the user may not want to (postrate(Player,Post,Rate1),
answer the all the questions and the questions on the first
satisfies his conditions. Below we present the five rules for not(salary(Player, Salary)),
GK post that answers the user in five questions. not(age(Player, Age)),
not(contract(Player, Contract)), 6. CONCLUSION

not(gkskill(Player,GKSkills)), The application of expert system in advice to buy a player is


very efficient. The proposed system can help club team to
Rate=Rate1, buy a good football player for its team. The system
RuleNum="buy5GK, R5", constitutes part of intelligent system of advising to buy a
football player. An initial evaluation of the expert system
CFMain=0.2). was done by club team advisor and management. A number
/********************************************/ of them tested the system and gave us a positive feedback to
As shown in above each player has rate that is the skill of develop this system. As future work we will constitute the
the player and each rule has CFMain that means the certain expert system to cover more information from other advisor
factor of rule. The final CF (Certain factor) shows to user is and implemented it with big database of players.
computed as follows:
REFERENCES
If x1 with CF1 and x2 with CF2 then H with CF
[1] Beverly G. Hope, Rosewary H. Wild, « An Expert Support System for
Service Quality Improvement», Proceedings of the Twenty- Seventh
C=min (CF1, CF2) Annual Hawaii International Conference on System Science, 1994.
CFFinal=CF*C [2] Turban E., 1992. Expert System and Applied Artificial Intelligence,
Macmillan Publishing Company, New York.
5. USER INTERFACE [3] Tomas W.de Boer 2009, a beginner's guide to visual prolog.
Communication between the user and the system is done [4] Azaab S., Abu Naser S., and Sulisel O.,2000.A proposed expert
through the user interface which was implemented in system for selecting exploratory factor analysis procedures, Journal
of the college of education, 4(2):9-26.
English. The user interface has two parts: Question part
[5] Methodologies and applications - a decade review from 1995 to
and Advice part. In the Question part system ask question 2004, Expert Systems with Applications, 28: 93-103.
and you select your condition then with set condition button [6] Monsef.H, A.M.Ranjbar, S.Jadid. “A Rule-Based Expert System for
you set it. For each question that the user sees in the system power system fault diagnosis”,Proc.9th International power system
he can see the 'why condition' with click why button. In the conference, st.petersburg, pp.375-365. July 1994,
Advice part for each five question that the user is answered, [7] H. Shirazi and C. Sammut
he can click on 'Advice player' button and the system can Acqu tion control knowledge from examples using ripple-down rules
suggest players for him. The system answers the player's and Machine Learning
Iranian Journal of Science and Technology (Transaction B:
name, rate (skill of player), CF and the fired rule. With the Engineering), Volume 32,
button 'how' and 'show rule' if you select a player and the Number B3, Pages 295-304, 2008
click on 'how' button the system shows you how answer this [8] Mahdi Gholami mehr, H. Shirazi
player and if you select the rule and the click on 'show rule', An Expert System for Adv ng to Buy a Football Player Using Visual
the system shows you rule fired. The 'system result' is shown Prolog
Intelligent Information Management, Vol. 4, No. 1, April 2011
in figure2. [9] Ali Shemshadi, Mehran Toreihi, H. Shirazi and M. J. Tarookh
Supplier selection based on supplier risk: An ANP and fuzzy TOPSIS
approach
The Journal of Mathematics and Computer Science, Volume 2, No.
1, pp 111-121, 2011
[10] Ali Shemshadi, H. Shirazi and M. J. Tarookh
Simulating a state of the art agent based system with fuzzy reasoning
for supply chain coordination
The Journal of Mathematics and Computer Science, Volume 1, No.
4, pp 293-304, 2010
[11] H. Shirazi, S. Peyvandi
Proposing a Classification Algorithm for User Identification
According To User Web Log Analysis
Australian Journal of Applied Science Research, 2011
[12] H. Shirazi, N. Mozayani and A. Baee
A new Method for Iris Segmentation
Australian Journal of Applied Science Research, 2010
[13] H. Shirazi
Intelligent Intrusion Detection System Using Genetic Algorithms
Majlesi Journal of Computing, Volume 4, Number 1, March 2010,
www.mjee.org
[14] H. Shirazi, and A. Zahedian
A Uniform Method for Evaluating the Products of DoDAF
Figure 2 A sample of the system result Architecture Framework
Journal of Computing, Volume.1, Issue. 3, October 2009
[15] H. Shirazi, M. Soryani, and A. A. Salarnejad
A new method for HTML documents Clustering with combined
algorithms
Journal of Computing, Volume.1, Issue. 3, pp 398-403, October
2009
[16] M. R. Hajari and H. Shirazi
Use of Machine Learning for the Improvement of Intrusion
Detection
Journal of Convergence Information Technology, Volume 4, Number
4, December 2009
[17] H. Shirazi
Fuzzy Expert Systems with easy maintenance
Australian Journal of Applied Science Research, 2009
[18] H. Beigi, A. Farahi, H. Shirazi, A. Golabpour
Using Genetic Algorithm for Prediction of Information for Cache
Operation in Mobile Database
Journal of Computing, Volume 1, Issue 2, September 2009, pp 314-
317
[19] H. Shirazi
Anomaly Intrusion Detection System Using Information Theory, K-
NN and KMC Algorithms
Australian Journal of Applied Science Research, 2009, Volume 3,
Number 3, pp 2581-259
[20] H. Shirazi, Fareghzadeh N. and Seyyedi A.
A Combinational Approach to Service Identification in SOA
Journal of Applied Science Research, Volume 5, Number 10, pp
1390-1397, 2009.
[21] H. Shirazi and P. Almasi Nejad
An Intelligent Method for Multi-Processor Scheduling using
Memetic Algorithms
Journal of Applied Science Research, Volume 5, Number 10, pp
1409-1415, 2009.
[22] H. Shirazi, B. D. Rouhani and M. M. Shirazi
A Framework for Agile Enterprise Architecture
International Journal of Intelligent Information Technology
Application (IJIITA), Volume 2, Issue 4,
August 2009, ISSN 1999-2459,
[23] H. Shirazi
A New Model for Secure Software Development
International Journal of Electronic Commerce and Security (IJECS),
ISSN 1999-2467, August 2009
[24] H. Shirazi, M. M. Shirazi and N. Fardroo
Discovering User Interest by Ontology-based User Profile
Journal of Information and Communication Technology, ISSN 2072-
1471, August 2009
[25] H. Shirazi and H. Salehi
Automatic Cooperation between Filters and Firewalls for Improving
Network Security
Journal of Information and Communication Technology
(JICT), ISSN 2072-1471,
August 2009, Volume 2, No. 2, pp 107-113
[26] H. Shirazi
Smart Congestion Control in TCP/IP Networks
Journal of Information and Communication Technology
(JICT), ISSN 2072-1471,
August 2009, Volume 2, No. 2, pp 73-78
[27] H. Shirazi
Smart Connection Admission Control in MLPS Networks
Journal of Information and Communication Technology
(JICT), ISSN 2072-1471,
August 2009, Volume 2, No. 1, pp 9-15

View publication stats

You might also like