An Expert System For Car Failure Diagnosis
An Expert System For Car Failure Diagnosis
International Journal of Mechanical, Aerospace, Industrial, Mechatronic and Manufacturing Engineering Vol:1, No:12, 2007
International Science Index, Mechanical and Mechatronics Engineering Vol:1, No:12, 2007 waset.org/Publication/161
I. INTRODUCTION
740
scholar.waset.org/1999.8/161
Agenda
Working Memory
A. User Interface
Communication between the user and the system is done
through the user interface which implemented in both Arabic
and English languages. The user interface is represented as a
menu which displays the questions to the user and the user
answers with Yes or No. When the system is started a main
menu is displayed on the screen which asks the user to choose
one of the three car states (Fig. 2).
Car Failure Diagnosis Expert System
1. Start-Up state.
2. Run-Stable state.
1.
2.
3.
4.
5.
3. Movement state.
Enter your selection according to the car state: ---Fig. 2 Start up menu of then system
B. Explanation Facility
Illustrates to the user how and why the system gave a
certain cause for the failure, i.e. explains the reasoning of the
system to the user.
C. Knowledge Base
The knowledge of the system is collected from mechanic
experts, specialized books, and from different car websites
[13-26]. The knowledge base contains about 150 production
rules for different types of car failures and causes.
As a rule-based shell, CLIPS stores the knowledge in rules,
which are logic-based structures, as shown in Fig. 3.
Interface
Inference
Engine
User
Knowledge Base
Explanation Facility
International Science Index, Mechanical and Mechatronics Engineering Vol:1, No:12, 2007 waset.org/Publication/161
741
scholar.waset.org/1999.8/161
____________________________________________
;Rule No 1 Run-Stable State
(Defrule Rule1 "gas smile and high avance"
(Selection 2)
(Fuel NotBurn)
(Cycle Ok)
(BlueGas No)
(Avance Bad)
=>
(printout t "Dirt in the
injections/carburetor or the
adjustment of ear and gasoline is not good")
(printout t "Advise: clear
injections/carburetor and adjust the ear"))
Rule
Rule
Rule
Rule
1
2
3
4
The problem is
spark plugs
______________________________________
International Science Index, Mechanical and Mechatronics Engineering Vol:1, No:12, 2007 waset.org/Publication/161
Production
rules
Working Memory
The engine is
getting gas
The problem is X
Rule 2
the engine is
getting gas
D. Inference Engine
When abnormal situation arises in the car, the KBS makes
inferences by deciding which rules are satisfied by facts stored
in the working memory and executes the rule with highest
priority and propose proper correcting solution. The rules
whose patterns are satisfied by facts in the working memory
are stored in the agenda part of the inference engine. Figure 6
explains the inference process of the system using the rules
listed in Figure 5. Figure 7 shows the relationships between
the four rules used in this example.
____________________________________________________
Rule 1: IF the engine is getting gas,
AND the engine will turn over,
THEN the problem is spark plugs.
Rule 2:
Rule 3:
Rule 4:
Rule 1
Rule 3
Rule 4
gas in fuel
tank
gas in
carburetor
E. Language selection
The proposed knowledge-based system is implemented
using the CLIPS expert system tool [12]. CLIPS is a forwardchaining rule-based language that resembles OPS5 and ART,
two other widely known expert system tools [1]. CLIPS was
developed by NASA and it has shown an increasing
popularity and acceptance by end users [13]We decided to use
CLIPS to implement the KBS of car failure diagnosis system
for four reasons. First, the data-driven nature of the domain
suggests the use of a forward-chaining inference engine.
Second, CLIPS runs in Windows environment, which is the
platform of choice among our end users. Third is the
availability of CLIPS source code. Finally, CLIPS provides
the ability to construct production rules which rely on patternmatching.
IV. RESULTS AND CONCLUSIONS
742
scholar.waset.org/1999.8/161
International Science Index, Mechanical and Mechatronics Engineering Vol:1, No:12, 2007 waset.org/Publication/161
the rules used. The system indicated that a full expert system
will be practical and can be extremely useful in providing
consistent car failure detection. Further work is needed to
improve the system by adding sufficient domain knowledge
that represents domain knowledge thoroughly. Plans are
underway to convene experts to use the system to assist them
in their jobs of car failure detection. The first advantage of
using CLIPS is it allowed us to keep the system small, while
maintaining speed and ease of programming. The second
important advantage of using CLIPS is the suitability of the
forward reasoning and matching to the application and
representation of the knowledge. No meta-level reasoning was
necessary in the system. In summary, the system has the
characteristics of good expert systems, such as high
performance, adequate response time, understandability, and
understandability.
http:// www.mercedescarpart.com/
[21] U Kiencke and L Nielsen, Automotive Control Systems: For Engine,
Driveline, and Vehicle. Berlin: Springer, 2000.
[22] Brown Franklin Lee, Lebeck A. O., 1997, Cars, Cans and Dumps, New
Mexico.
[23] R Smith, H Aderson, and J E Morris (2004), Cylinders and Cycles,
Physics Department, Victoria University, Wellington, New Zealand.
[24] A R Jones (2004), Combustion Physics. Imperial Collage, London, UK.
[25] http://www.chroma.med.miami.edu/~idickers/m2-engine.html
[26] AutoWord,
http://www.autoword.com/automaintainance/improve-yourengin.asp
[27] http://www.car.com/applications/engine/builging.html
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
[15]
[16]
[17]
[18]
[19]
[20]
743
scholar.waset.org/1999.8/161