How to create an expert system in visual prolog
Posted: 26 Dec 2014 9:32
I am a newbie in prolog and would like friends to help me with my project, I have successfully built a prolog program to get information from the user to diagonize tuberculosis but I do not know how to set the rules that should be followed to tell the user he or she has tuberculosis
Take for instance the user logs in his information such as Name, Age and then states how high his cough, weight loss etc. is.
I want to set the following rules to clarify that the user has typhoid
Rule 01: IF cough > 3 weeks = high and weight loss = high and fever = high and drenching night sweats = mild and loss of appetite = high and anaemia = mild and sputum AFB = high and mantoux = moderate THEN TB = very high.
Rule 02: IF cough > 3 weeks = moderate and weight loss = low and fever = low and drenching night sweats = low and loss of appetite = low and anaemia = low and sputum AFB = low and mantoux = low THEN TB = low.
Please how do i set this rules and can someone please link me to a tutorial and an example on it.
I would be very grateful thanks in advance
Take for instance the user logs in his information such as Name, Age and then states how high his cough, weight loss etc. is.
I want to set the following rules to clarify that the user has typhoid
Rule 01: IF cough > 3 weeks = high and weight loss = high and fever = high and drenching night sweats = mild and loss of appetite = high and anaemia = mild and sputum AFB = high and mantoux = moderate THEN TB = very high.
Rule 02: IF cough > 3 weeks = moderate and weight loss = low and fever = low and drenching night sweats = low and loss of appetite = low and anaemia = low and sputum AFB = low and mantoux = low THEN TB = low.
Please how do i set this rules and can someone please link me to a tutorial and an example on it.
I would be very grateful thanks in advance