Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attributes in prolog

Status
Not open for further replies.
Apr 2, 2007
1
GB
Hi. I'm currently trying to create an expert system that can diagnose mental disorders. My background in prolog is very limited and I'm struggling with this. I'm trying to create it in the most simplistic form possible. Basically I have so far created a list of facts (disorders and symptons) and have attempted to create some rules, one of the rules is below:

disorder(majordepressiveepisode) :- sympton(distressed), sympton(depressed), sympton(diminishedinterest), sympton(weightchange),
sympton(insomnia), sympton(psychomotoragitation), sympton(lossofenergy), sympton(worthlessness), sympton(diminishedabilitytothink),
sympton(suicidalideation), minimumlength(14).

Obviously this is extremely complicated and there are a large number of symptons. Is there a better way of doing this? I.e using some sort of list or array that can link symptons to certain disorders. Any suggestions?

Many Thanks

Danny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top