Answer To: Logic Programming for Engineers Assignment Brief Overview You will conduct domain analysis, design,...
Swapnil answered on Jun 11 2021
84947/medical-diagnosis.pl
go :-
write('What is the patient''s name? '),
read(Patient),get_single_char(Code),
hypothesis(Patient,Disease),
write_list([Patient,', probably has ',Disease,'.']),nl.
go :-
write('Sorry, I don''t seem to be able to'),nl,
write('diagnose the disease.'),nl.
symptom(Patient,fever) :-
verify(Patient," have a fever (y/n) ?").
symptom(Patient,rash) :-
verify(Patient," have a rash (y/n) ?").
symptom(Patient,headache) :-
verify(Patient," have a headache (y/n) ?").
symptom(Patient,runny_nose) :-
verify(Patient," have a runny_nose (y/n) ?").
symptom(Patient,conjunctivitis) :-
verify(Patient," have a conjunctivitis (y/n) ?").
symptom(Patient,cough) :-
verify(Patient," have a cough (y/n) ?").
symptom(Patient,body_ache) :-
verify(Patient," have a body_ache (y/n) ?").
symptom(Patient,chills) :-
verify(Patient," have a chills (y/n) ?").
symptom(Patient,sore_throat) :-
verify(Patient," have a sore_throat (y/n) ?").
symptom(Patient,sneezing) :-
verify(Patient," have a sneezing (y/n) ?").
symptom(Patient,swollen_glands) :-
verify(Patient," have a swollen_glands (y/n) ?").
ask(Patient,Question) :-
write(Patient),write(', do you'),write(Question),
read(N),
( (N == yes ; N == y)
->
assert(yes(Question)) ;
assert(no(Question)), fail).
:- dynamic yes/1,no/1.
verify(P,S) :-
(yes(S) -> true ;
(no(S) -> fail ;
ask(P,S))).
undo :- retract(yes(_)),fail.
undo :- retract(no(_)),fail.
undo.
hypothesis(Patient,german_measles) :-
symptom(Patient,fever),
symptom(Patient,headache),
symptom(Patient,runny_nose),
symptom(Patient,rash).
hypothesis(Patient,common_cold) :-
symptom(Patient,headache),
symptom(Patient,sneezing),
symptom(Patient,sore_throat),
symptom(Patient,runny_nose),
symptom(Patient,chills).
hypothesis(Patient,measles) :-
symptom(Patient,cough),
symptom(Patient,sneezing),
symptom(Patient,runny_nose).
hypothesis(Patient,flu) :-
symptom(Patient,fever),
symptom(Patient,headache),
symptom(Patient,body_ache),
symptom(Patient,conjunctivitis),
symptom(Patient,chills),
symptom(Patient,sore_throat),
symptom(Patient,runny_nose),
symptom(Patient,cough).
hypothesis(Patient,mumps) :-
symptom(Patient,fever),
symptom(Patient,swollen_glands).
hypothesis(Patient,chicken_pox) :-
symptom(Patient,fever),
symptom(Patient,chills),
symptom(Patient,body_ache),
symptom(Patient,rash).
write_list([]).
write_list([Term| Terms]) :-
write(Term),
write_list(Terms).
response(Reply) :-
get_single_char(Code),
put_code(Code), nl,
char_code(Reply, Code).
84947/Report.docx
Medical Diagnostic System
Abstract:
The medical diagnostics can be used for the emergency cases in the developed countries. So it can basically access the right qualified medical emergency personal cases so it is used for the very high patient ratio that can be given the rise of the web based medical diagnosis and it can be used for the medical diagnosis system to design the diagnosis based models using the artificial intelligence. Thus the basic precautionary system subject used to time the patient can accessing the user interface and the database system. The system generally diagnoses the different common elements for the ailments like malaria and typhoid which are basically peculiar to the students.
The disease diagnosis will generally identify for the health issue and the disease and the other different conditions to work on the large data sets that are available to the different patterns and the prediction for the medical emergency cases. The medical diagnostic can be sometimes for the easy task for the traditional methods that can be used to diagnosis the artificial intelligence that can be used for the predictive techniques enables auto diagnosis for the human expertise. The main aim was to use the artificial intelligence to provide the usage for the database. So the artificial intelligence based on the diagnostics systems for the different AI techniques and its challenges.
Introduction:
In the field of healthcare, we can basically focus on the different diagnostics system because it can play an important role in the field of medical science. The circumstances that can be used for the different disease like illness, dysfunction and many more like a human being’s death. So these diseases can be affected by the human life. And it can provide the pathological path to the process. So it can be interpreted by the clinical experts to provide the identifying the disease and it can generally provide the symptoms to concluding the pathology. The revolutionary impact can be accessed by an automation into the medical systems. So to provide the web service technology that can affect over the different kind of services that are generally influenced by the many more human race and it can give the computer technology that can be accessed by the healthcare through the application of the branch of artificial intelligence techniques and it can be provided through the medical diagnosis system through artificial intelligence.
To achieve the intelligent behaviour to the great performance for all the medical task it can generate the computer programs that can be depicted by the human automated system. The computer technology can be accessed by the medicine and the healthcare through the different branches of the artificial intelligence and it can be served to the cognitive task so the knowledge based expert’s systems can be providing the available quality and its efficiency. The control of medical diagnosis system can be applied to the different sectors that can be diverse to the medicine and the education sectors. The web design portals can be providing the medical diagnostic system can be given the rate of medical diagnostic and it can get the access over the user friendly web based medical diagnostic medical diagnosis systems.
An automatic medical diagnostic can be providing the accuracy of the human knowledge and the accuracy of the machine. The decision support can be providing the accurate results and that...