.

Saturday, March 9, 2019

Koyal – a Multi-Purpose Expert System – Md-Cob-Coa Knowledge Representation Using Prolog in J2Se

Koyal A Multi-purpose Expert ashes MD-CoB-CoA acquaintance Representation use logic programing in J2SE Prof. Sreedhar Babu Department of Electrical Engineering Amrita Viswa Vidyapeetham Amritapuri, Kerala emailprotected com Archana, Vineeth & Veena Department of Computer lore & Applications Amrita Viswa Vidyapeetham Amritapuri, Kerala emailprotected com Abstract Expert outlines are AI? s greatest commercialised success. It is a look into-oriented application area of AI. An expert establishment uses association special(prenominal) to a problem domain to provide expert quality performance. glorify logic is being used for noesis way which is further programmed use PROLOG inference engine for deriving intelligent conclusions. The current research story introduces a regain- pedestald expert establishment that provides a aesculapian diagnosing for determining the health problems and classification of shuttlecocks and animals. The exploiter has to f etcetera some fam iliarity about these topics so that he can have the ashes. Three knowledge strands are provided for each domain. The narrow figurer language PROLOG plant into J2SE is used to farm this system.Keywords-comp atomic number 53nt Expert musical arrangement Knowledge- make Medical Diagnosis, Rule- brutald ES, Knowledge representation PROLOG J2SE. 1. INTRODUCTION THE KOYAL EXPERT SYSTEM The current paper of Koyal has generally two modules 1. 1. Knowledge Base 1. 2. User Interface 1. 1 Knowledge Base 1 & 2 Mainly, three knowledge bases are required for the system. They are bird? s knowledge base for identifying a bird, animal knowledge base for identifying an animal and a disease knowledge base for medical diagnose. The system uses this knowledge base for finding solutions.Knowledge is represent in direct-based format. The rule of the system is in the form of IF low premise and second premise, and . so conclusion This is semantically same as a Prolog rule conclusionfirst_ pr emise, second_ premise, Premises are written as attribute-value pair. The attribute is represented as a allege and the value as the argument to the predicate. from each one knowledge base go out have to have a superior goal, which calls the sub goals to be meet. When all the premises are satisfied, then(prenominal) the last-place conclusion is obtained. . 2. User Interface The substance abuser interface is the Prolog part? s interface, and the input data is stored directly in the program. It is implemented in java by consignment the prolog inference engine into the deep brown program. The prolog program itself give provide a user interface. The predicate ask and menuask give provide these functions. The ask is responsible is for getting the cultivation from the user and supposeing the user? s response. The ask predicate bequeath have to determine from the user whether or not a given(p) attribute-value pair is true.The ask prompts the user with the requested attri bute and value and seeks deterrent or denial of the proposed randomness. The ask is represented as object-attribute-value triples where the attribute value are tied to various objects in the system. The menuask will further better the user interface by adding a menu capability which gives the user a list of possible values for an attribute. The main precondition of our Koyal System is that a common user who has no knowledge about the specialized domain? annot interact with the system and in such a military post the output accuracy will depend on the user inputs. 2. definition of the System Flow The system flow chart represented in the figure 2 displays the flow of the learning from one process to another(prenominal) . We can say that it is a detailed representation of the structured chart in the Fig. 2. 1. 2. 1. User The user will enter the textual matter and this text is passed to the inference engine. 2. 2. Inference Engine A rule-based system requires some frame of progra m to manipulate the rules for example to fall which ones are ready to fire. (i. . which ones have conditions that match the contents of stooling memory). The program that does this is called an inference engine, be accept in many a(prenominal) rule-based systems, the task of the system is to infer something from knowledge base. This inference engine will prove or disprove the goal/rules in the knowledge base and used to derive conclusions. e. g. a diagnosis, from the data utilise the rules. 2. 3. Knowledge base The knowledge base defys rules which describe general knowledge about a particular problem domain. 2. 4. User Interface The User Interface will interact with the user i. e. it will query the user for getting study to satisfy goals inside knowledge base. The predicates ask and menuask works here to conform to information from user. 2. 5. Working Memory The working memory of a rule-based system is a store of information used by the system to decide which of the conditio n-action rules in the knowledge base is able to be fire. It might be used to store intermediate conclusions i. e. the satisfied goals and any other information inferred by the system from the data (using the condition-action rules). Finally the inference engine will infer the working memory more solution. . Knowledge Representation Using PL 4 & 5 Since Predicate Logic is one of the oldest and most important logistical orgasm for reasoning, primarily developed and used in the area of mathematics by logicians as a means of formal reasoning and now it is vastly being used by the programmers for expert systems for its flexibility of accurate native language representation, this paper also includes the various methods of knowledge representation back up by Predicate Logic that can be conveniently programmed with the PROLOG programming language.The major predicates that are being used in the paper include The following symbols will be used for logical connectives. not or negation & a nd or conjunction V or or disconnectedness ? if then or consequence ? If and only if or double implication Valid statements or sentences in PL are determined according to the rules of propositional syntax. For the estimated rigorousness of uncertainties, heuristics based on either fuzzy or neural interlocking or neuro-fuzzy can be implemented.Let the predicate function B(X) be a bird with a particular name X, then the mingled predicate B(X) which wishs various functional variables to be satisfied cause of family, color, head, voice, flight type, throat, type of food it eats, country, region, tail, size etc. Fig. 3. 1 represents the link up network for the classification of birds. For X = albatross, the functional variables are family type, color, size etc. are indicated, i. e. , if N1(F), N3(C) and N9(S) are the predicate functions with variables, family type, color and size of birds etc. , then the w. f. f. (well-formed formulae) can be written as follows, E1 ?X BIRD(X) E 2 B (N1(F) & N2(O) & N4(N) & N5 (L) & N6(Bi) & N9(S) & N10(W) & N3(C) ) E3 B (N1 (albatross) & N2 (tubenose) & N4 (external_tubular) & N5(at_sea) & N6(hooked) & N9(large) & N10(long_narrow) & N3(white) ) E1 E2 The various predicates for E2 are defined in E3 ? X B(X) E3 resulting in X = laysan_albatross The various functional predicates of the composite predicate expression E1 specified in E2 as B (N1(F) & N2(O) & N4(N) & N5 (L) & N6(Bi) & N9(S) & N10(W) & N3(C) ) where F indicated family, O indicates order, N indicates nostrils, L indicates sustain at, Bi indicates bill, S indicates size, W indicates wings, C indicates color . . Working of the System 6 User enters the problem which he wants to know about the particular domain. The entered query is analyzed and a keyword is extracted depending on the domains. The keyword is passed to the inference engine. The inference engine will call the high level goal of the knowledge base that starts the program. ask/2 and menuask/3 pred icate will poses questions to the users and get enough information which is used to satisfy the sub-goals. Known/3 predicate is used to remember the answer entered by the user. The built-in predicate asserta? stores the satisfied goals dynamically in the working memory. Another built-in predicate retractall/1 is used to wipe off clauses dynamically from the prolog internal database during the execution of a goal hence backtracking can be avoided. Finally the inference engine will suppose the final goal from the working memory and provide solution to the user problem. Fig 4. 2 describes the various major predicate functions implemented in Koyal J2SE with PROLOG as supportive declarative language. 5. SYSTEM writ of execution AND test 3 & 7 5. Introduction to System Implementation Implementation is the stage of project. When the theoretical rule is turned into a working system. At this stage the main work load, the greatest upheaval and the major impact on the existing practic es shifts to the user department. Prolog files include knowledge base and user interface. The size of the knowledge depends on the awareness of the creator about the domain. By referring theses knowledge base the system will derive solution for the problems. Knowledge base is one factor which determines the expertness of a system.It defines a common vocabulary for researchers who need to share information about the domain. It includes machine-interpretable definitions of basic concepts in the domain and family relationship among them. 5. 3 TESTING Testing methodologies are adopted in the way of any system development. Any systems performance is based on scrutiny that it follows. Some of the most prominent methods are White Box depressed Box 5. 3. 1 White Box Under white cut interrogatory the modules were tested individually and all the bugs were eliminated.This testing method has been of dinky influence to the whole project since most of the modules have to be incorporated for well functioning. 5. 3. 2 Black Box The core testing was belowtaken under this testing. Once all the modules were integrated the whole system was tested to train that it matches with the specification. 6. THE CONSTRAINTS OF KOYAL EXPERT SYSTEM 1. The knowledge of the Koyal expert system is domain specific. 2 . Identification of the keyword is critical 3. The user should have some knowledge about the domain otherwise the system will respond with less accuracy. defense We humbly express our gratitude to Sri Mata Amritanandamayi, the Chancellor of Amrita Visva Vidya Peettam and the fellow faculty and student members of computer science for the successful completion in the specimen invention and instruction execution human bodys. REFERENCES Websites ? ? ? ? http//en. wikipedia. org/wiki/Expert_system http//www. wtec. org/loyola/kb/c1_s1. htm http//www. aaai. org/aitopics/pmwiki/pmwiki. php/AIT opics/ExpertSystems http//www. paine. org/students/lectures/lect3/node7. ht ml Fig. 5. is the architectural flow diagram of Koyal for the classification of birds, animals and the medical diagnosis. If the implementation stage is not carefully planned and controlled, it can cause chaos. Implementation involves careful planning, investigation of the current system and its constraints on implementation, design of methods to achieve the changeover, training of staff in the changeover procedure and paygrade of changeover methods. This phase of implementation has allowed us to integrate various lancinate edge technologies in the project which involves the implementation of Prolog and Java.Testing phase included white box testing and black box testing thought most of the testing was performed as system testing. 5. 2 IMPLEMENTATION The implementation phase of software development is concerned with the translation of the morphological design specification into artificial lake code. The primary goal is to write source code and internal documentation. Testing, Debugging a nd modification are performed in this phase also. The first step in developing an expert system has been the creation of a Prototype model of the actual system on the basis of the quote model available.In case of an expert system each system? s knowledge is domain specific so every system has its own advantage and disadvantage. We cannot consider the system as expert in every aspect. This will require time and much effort to develop such a spool proof system. After testing the prototype further modification were incorporated in it by including extra features and implementing the knowledge base part of our system. The prototype is then tested. After the user is satisfied with the function of the prototype the actual system is developed.JPL is a library using the SWI-Prolog foreign interface and the Java jni interface providing a bidirectional interface between Java and Prolog that can be used to embed Prolog in Java as well as for embedding Java in Prolog. In both setups it provides a reentrant bidirectional interface. jpl allows the loading of prolog engine to Java. Thereby we can load the prolog files which contain knowledge regarding the domains. ? Books http//www. primenet. com/pcai/New_Home_Page/ai_in fo/expert_systems. html A Guide to Expert Systems by Donald A. Waterman Ist Edition, Addison-Wesley Publishing Company. 2 Russell, S. and P. Norvig, 2002.Artificial Intelligence A Modern Approach, prentice Hall, Second Edition. 3 Analysis and design of information systems by V. Rajaraman, 5th print, PH 1 Introduction to Artificial Intelligence and Expert Systems by Dan W. Patternson, PHI Pvt. Limited, Eighth reissue 2000. 5 Expert Systems Theoty and Practices by Jean-Louis Ermine, PHp Publications, 2007 6 Introduction to Expert Systems by Peter Jackson, Addison-Wesley, Pearson didactics Asia ltd. , Reprint 2000 7 Foundation of Artificial Intelligences and Expert Systems by V S Janakiraman, K Sarukesi, P Gopalakrishnan, Macmillan Series in Computed Science , Reprint 2001. 4

No comments:

Post a Comment