SlideShare a Scribd company logo
1 of 17
Diagnosis Digestive
Diseases System
Gathering knowledge
First step was gathering knowledge from expert doctors in the field of diagnosing digestive
diseases.
Meetings with the experts were hard because of the experts’ time limits.
Gathered knowledge was un-ordered (natural-language knowledge).
Some diseases are very hard to diagnose without laboratory tests, they share the same
symptoms (Hepatitis A, B and C).
Ordering knowledge
Ordering knowledge is the process of transforming un-ordered knowledge (written in natural
language) to ordered knowledge (as rules and facts).
Some words were hard to implement as a rule or fact (i.e. usually, often, sometimes …etc.).
Certainty factor was the solution, giving a fact a certainty makes it uncertain (not absolutely true
and not absolutely false).
Writing rules in Jess
Diagnosing partitioned into four steps:
◦ Getting observations from patient.
◦ Asking patient to get more information for diagnosing.
◦ Asking patient for a laboratory test to make sure of the diagnosed disease.
◦ Giving the appropriate treatment or recommendation.
Getting observations step
In this step, we get:
◦ Basic information about patient (name, age).
◦ Information from patient about what he suffers (anorexia, nausea, fatigue, malaise, vomiting ...etc.).
We use forward chaining for this step.
Then the rules of this step will fire, and it will give a certainty-factor value for each disease.
(defrule acute-hepatitis-A
(control (phase 1))
(private-classification (class-name acute_hepatitis) (certainty-factor ?cf))
=>
(bind ?fcf (* 0.9 ?cf))
(assert (classification (class-name acute_hepatitis_A) (certainty-factor ?fcf)))
)
Asking step
In this step we ask the patient about the disease that has the highest probability (highest
certainty-factor value).
Backward chaining method is used in this step.
Our questions will be aimed to lower the certainty factor of the expected disease.
(defrule hepatitis-A-1
(control (phase 2))
?classification <- (classification (class-name acute_hepatitis_A) (certainty-factor ?cf1))
(askable (name "area_infected_hepatitis_A") (value ?value))
=>
(bind ?cf2 (if (= ?value TRUE) then 0.6 else -0.3))
(modify ?classification (certainty-factor (calculate-combined-uncertainty (list ?cf1 ?cf2))))
(identify-expected-class)
(undefrule hepatitis-A-1)
)
Requesting laboratory tests step
Here we will be asking patient to do a laboratory test, and give the results.
Requested tests will test the most expected disease (get an absolute decision).
Backward chaining method is used in this step.
(defrule lab-hepatitis-A
(control (phase 3))
?classification <- (classification (class-name acute_hepatitis_A))
(testable (name "positive_igm") (value ?value))
=>
(bind ?cf (if (= ?value FALSE) then -1 else 1))
(modify ?classification (certainty-factor ?cf))
(identify-expected-class)
(undefrule lab-hepatitis-A)
)
Recommending treatment/Diet step
In this step we will recommend the appropriate treatment/diet.
The recommended treatment/diet is based on the severity of the diagnosed disease and the
patients state.
In some cases, backward chaining method is used to question about the state of patient, or to
recommend doing some tests.
(defrule treat-H-pylori-peptic-ulcer
(control (phase 4))
(expected-classification (class-name "H_pylori_peptic_ulcer"))
=>
(printout t (?*strings* getString "treat_hpylori_peptic_ulcer") crlf)
)
Starting a new diagnosis
Below is the interface of starting a new diagnosis. Doctor should give the patient’s name and age
and some symptoms that are observed on the patient.
Test acute hepatitis A
Given observations: Dark urine, yellow skin, liver pain, weight loss and nausea.
Test chronic hepatitis B
Given observations: Dark urine, yellow skin, fever, weight loss, liver pain and fatigue.
Test chronic hepatitis C
Given observations: Yellow skin, acholic stool, liver pain, weight loss and vomiting.
Test peptic ulcer
Given observations: Upper abdominal pain, vomiting, headache, hematemesis and bloating.
Test ulcerative colitis
Given observations: Lower abdominal pain, fatigue, bloody diarrhea, headache and melena.
Test unknown state
Given observations: Lower abdominal pain, fatigue, bloody diarrhea, headache and melena.
Reviewing diagnoses
Below is the interface that helps doctor reviewing diagnoses. Doctor can select a patient to
review his diagnoses or continue his last un-finished diagnosis.
Future work
System can be improved by support diagnosing more digestive diseases.
It can also help doctor examining the tests (i.e. endoscopy, colonoscopy or testing biopsies and
more).
More support of giving treatments depending on the whole state of the patient.

More Related Content

Similar to Digestive diseases diagnosing system

Eugm 2012 unknown - incivex drug development process overview road to findi...
Eugm 2012   unknown - incivex drug development process overview road to findi...Eugm 2012   unknown - incivex drug development process overview road to findi...
Eugm 2012 unknown - incivex drug development process overview road to findi...Cytel USA
 
Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...
Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...
Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...European School of Oncology
 
Case Analysis For Genitalia and Rectum Essay Paper.docx
Case Analysis For Genitalia and Rectum Essay Paper.docxCase Analysis For Genitalia and Rectum Essay Paper.docx
Case Analysis For Genitalia and Rectum Essay Paper.docx4934bk
 
Guidelines-pptpresentation_001.ppt
Guidelines-pptpresentation_001.pptGuidelines-pptpresentation_001.ppt
Guidelines-pptpresentation_001.pptWylieMedwinLulan
 
2016 veterinary diagnostics
2016 veterinary diagnostics2016 veterinary diagnostics
2016 veterinary diagnosticsPerez Eric
 
unit 1. Introduction to CLM.pptx
unit  1. Introduction to CLM.pptxunit  1. Introduction to CLM.pptx
unit 1. Introduction to CLM.pptxreshadnuredin1
 
Acute abdomen – general principles and approach in ED
Acute abdomen – general principles and approach in ED Acute abdomen – general principles and approach in ED
Acute abdomen – general principles and approach in ED DaimaButt1
 
2Case Study Analysis Assessment of the Abdomen a.docx
2Case Study Analysis Assessment of the Abdomen a.docx2Case Study Analysis Assessment of the Abdomen a.docx
2Case Study Analysis Assessment of the Abdomen a.docxrobert345678
 
R-Baby Introductory Presentation
R-Baby Introductory PresentationR-Baby Introductory Presentation
R-Baby Introductory PresentationErik Shwarts
 
C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...
C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...
C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...I study at the last minute!!
 
Assessing The Abdomen Essay Example Paper.docx
Assessing The Abdomen Essay Example Paper.docxAssessing The Abdomen Essay Example Paper.docx
Assessing The Abdomen Essay Example Paper.docx4934bk
 
REVISION ON HISTORY TAKING.ppt
REVISION ON HISTORY TAKING.pptREVISION ON HISTORY TAKING.ppt
REVISION ON HISTORY TAKING.pptAme Mehadi
 
[Workshop] The science of screening in Psycho-oncology (Oct10)
[Workshop]  The science of screening in Psycho-oncology (Oct10)[Workshop]  The science of screening in Psycho-oncology (Oct10)
[Workshop] The science of screening in Psycho-oncology (Oct10)Alex J Mitchell
 

Similar to Digestive diseases diagnosing system (20)

Screening of Diseases
Screening of DiseasesScreening of Diseases
Screening of Diseases
 
Disease screening
Disease screeningDisease screening
Disease screening
 
Eugm 2012 unknown - incivex drug development process overview road to findi...
Eugm 2012   unknown - incivex drug development process overview road to findi...Eugm 2012   unknown - incivex drug development process overview road to findi...
Eugm 2012 unknown - incivex drug development process overview road to findi...
 
Assessment 2
Assessment 2Assessment 2
Assessment 2
 
Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...
Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...
Rare Solid Cancers: An Introduction - Slide 3 - P. Bruzzi - Methodological as...
 
Case Analysis For Genitalia and Rectum Essay Paper.docx
Case Analysis For Genitalia and Rectum Essay Paper.docxCase Analysis For Genitalia and Rectum Essay Paper.docx
Case Analysis For Genitalia and Rectum Essay Paper.docx
 
Guidelines-pptpresentation_001.ppt
Guidelines-pptpresentation_001.pptGuidelines-pptpresentation_001.ppt
Guidelines-pptpresentation_001.ppt
 
Screening
ScreeningScreening
Screening
 
2016 veterinary diagnostics
2016 veterinary diagnostics2016 veterinary diagnostics
2016 veterinary diagnostics
 
Screening of diseases
Screening of diseasesScreening of diseases
Screening of diseases
 
unit 1. Introduction to CLM.pptx
unit  1. Introduction to CLM.pptxunit  1. Introduction to CLM.pptx
unit 1. Introduction to CLM.pptx
 
Acute abdomen – general principles and approach in ED
Acute abdomen – general principles and approach in ED Acute abdomen – general principles and approach in ED
Acute abdomen – general principles and approach in ED
 
2Case Study Analysis Assessment of the Abdomen a.docx
2Case Study Analysis Assessment of the Abdomen a.docx2Case Study Analysis Assessment of the Abdomen a.docx
2Case Study Analysis Assessment of the Abdomen a.docx
 
R-Baby Introductory Presentation
R-Baby Introductory PresentationR-Baby Introductory Presentation
R-Baby Introductory Presentation
 
SCREENING TESTS
SCREENING TESTSSCREENING TESTS
SCREENING TESTS
 
C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...
C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...
C:\documents and settings\guest.lej 91 ad50999f3\desktop\semester 2\f.o.n\nsg...
 
Nt isepsis
Nt isepsisNt isepsis
Nt isepsis
 
Assessing The Abdomen Essay Example Paper.docx
Assessing The Abdomen Essay Example Paper.docxAssessing The Abdomen Essay Example Paper.docx
Assessing The Abdomen Essay Example Paper.docx
 
REVISION ON HISTORY TAKING.ppt
REVISION ON HISTORY TAKING.pptREVISION ON HISTORY TAKING.ppt
REVISION ON HISTORY TAKING.ppt
 
[Workshop] The science of screening in Psycho-oncology (Oct10)
[Workshop]  The science of screening in Psycho-oncology (Oct10)[Workshop]  The science of screening in Psycho-oncology (Oct10)
[Workshop] The science of screening in Psycho-oncology (Oct10)
 

Recently uploaded

The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 

Recently uploaded (20)

The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 

Digestive diseases diagnosing system

  • 2. Gathering knowledge First step was gathering knowledge from expert doctors in the field of diagnosing digestive diseases. Meetings with the experts were hard because of the experts’ time limits. Gathered knowledge was un-ordered (natural-language knowledge). Some diseases are very hard to diagnose without laboratory tests, they share the same symptoms (Hepatitis A, B and C).
  • 3. Ordering knowledge Ordering knowledge is the process of transforming un-ordered knowledge (written in natural language) to ordered knowledge (as rules and facts). Some words were hard to implement as a rule or fact (i.e. usually, often, sometimes …etc.). Certainty factor was the solution, giving a fact a certainty makes it uncertain (not absolutely true and not absolutely false).
  • 4. Writing rules in Jess Diagnosing partitioned into four steps: ◦ Getting observations from patient. ◦ Asking patient to get more information for diagnosing. ◦ Asking patient for a laboratory test to make sure of the diagnosed disease. ◦ Giving the appropriate treatment or recommendation.
  • 5. Getting observations step In this step, we get: ◦ Basic information about patient (name, age). ◦ Information from patient about what he suffers (anorexia, nausea, fatigue, malaise, vomiting ...etc.). We use forward chaining for this step. Then the rules of this step will fire, and it will give a certainty-factor value for each disease. (defrule acute-hepatitis-A (control (phase 1)) (private-classification (class-name acute_hepatitis) (certainty-factor ?cf)) => (bind ?fcf (* 0.9 ?cf)) (assert (classification (class-name acute_hepatitis_A) (certainty-factor ?fcf))) )
  • 6. Asking step In this step we ask the patient about the disease that has the highest probability (highest certainty-factor value). Backward chaining method is used in this step. Our questions will be aimed to lower the certainty factor of the expected disease. (defrule hepatitis-A-1 (control (phase 2)) ?classification <- (classification (class-name acute_hepatitis_A) (certainty-factor ?cf1)) (askable (name "area_infected_hepatitis_A") (value ?value)) => (bind ?cf2 (if (= ?value TRUE) then 0.6 else -0.3)) (modify ?classification (certainty-factor (calculate-combined-uncertainty (list ?cf1 ?cf2)))) (identify-expected-class) (undefrule hepatitis-A-1) )
  • 7. Requesting laboratory tests step Here we will be asking patient to do a laboratory test, and give the results. Requested tests will test the most expected disease (get an absolute decision). Backward chaining method is used in this step. (defrule lab-hepatitis-A (control (phase 3)) ?classification <- (classification (class-name acute_hepatitis_A)) (testable (name "positive_igm") (value ?value)) => (bind ?cf (if (= ?value FALSE) then -1 else 1)) (modify ?classification (certainty-factor ?cf)) (identify-expected-class) (undefrule lab-hepatitis-A) )
  • 8. Recommending treatment/Diet step In this step we will recommend the appropriate treatment/diet. The recommended treatment/diet is based on the severity of the diagnosed disease and the patients state. In some cases, backward chaining method is used to question about the state of patient, or to recommend doing some tests. (defrule treat-H-pylori-peptic-ulcer (control (phase 4)) (expected-classification (class-name "H_pylori_peptic_ulcer")) => (printout t (?*strings* getString "treat_hpylori_peptic_ulcer") crlf) )
  • 9. Starting a new diagnosis Below is the interface of starting a new diagnosis. Doctor should give the patient’s name and age and some symptoms that are observed on the patient.
  • 10. Test acute hepatitis A Given observations: Dark urine, yellow skin, liver pain, weight loss and nausea.
  • 11. Test chronic hepatitis B Given observations: Dark urine, yellow skin, fever, weight loss, liver pain and fatigue.
  • 12. Test chronic hepatitis C Given observations: Yellow skin, acholic stool, liver pain, weight loss and vomiting.
  • 13. Test peptic ulcer Given observations: Upper abdominal pain, vomiting, headache, hematemesis and bloating.
  • 14. Test ulcerative colitis Given observations: Lower abdominal pain, fatigue, bloody diarrhea, headache and melena.
  • 15. Test unknown state Given observations: Lower abdominal pain, fatigue, bloody diarrhea, headache and melena.
  • 16. Reviewing diagnoses Below is the interface that helps doctor reviewing diagnoses. Doctor can select a patient to review his diagnoses or continue his last un-finished diagnosis.
  • 17. Future work System can be improved by support diagnosing more digestive diseases. It can also help doctor examining the tests (i.e. endoscopy, colonoscopy or testing biopsies and more). More support of giving treatments depending on the whole state of the patient.