SlideShare una empresa de Scribd logo
1 de 47
Descargar para leer sin conexión
AI Sherlock Holmes Style
Introduction to Automated Abductive Inference
Phillip Rhodes
All Things Open
Raleigh NC
10-15-2019
“Abductive” Inference?
As opposed to what?
Inference?
● Inferences are steps in reasoning, moving from premises to
logical consequences
● In epistemology, a number of specific methods for acquiring
new knowledge are defined: perception, introspection,
memory, reason, and testimony
● The distinction between “reasoning” and “inference” is subtle
and we’ll mostly treat the terms as synonymous
“That’s a strange thing, you are the second man today that has used that expression to me.” --
Stamford
“And who was the first?” -- Watson
“A fellow who is working at the chemical laboratory at the hospital … He is a little queer in his
ideas - an enthusiast in some branches of science” -- Stamford
“A medical student, I suppose?” -- Watson
(A Study in Scarlet)
Reasoning
● Reasoning is a means to:
○ Establish and verify facts
○ Make sense of things
○ Adapt or justify practices and beliefs
○ Explain or justify events
○ Predict the future
○ Create new knowledge
○ Build a model of the world from sensory perception
Types of Reasoning / Inference
● Classical Logic
● Statistical
○ Bayesian
○ Frequentist
● Analogical
● Spatial
● Temporal
● Prediction
“You see Watson, it was perfectly obvious from the first that the only possible object of
this rather fantastic business of the advertisement of the League, and the copying of
the encyclopedia, must be to get this not over-bright pawnbroker out of the way for a
number of hours every day.” -- Sherlock Holmes
(The Red Headed League)
Classical Logic
● Traditionally (since ~300 BC) divided into two main
branches:
○ Deductive
○ Inductive
Deductive Inference
● If a Deductive argument is valid and the premises are true, the conclusion must be
true
● Syllogism
All men are mortal
Socrates is a man
--------------------------
Socrates is mortal
“You know me too well to think that I am boasting when I say that I shall either confirm or
destroy his theory by means which he is quite incapable of employing, or even understanding. To
take the first example at hand, I very clearly perceive that in your bedroom the window is on the
right-hand side, and yet I question whether Mr. Lestrade would have noted even so self-evident a
thing as that. -- Holmes
“How on Earth??” -- Watson
“My dear fellow, I know you well. I know the military neatness which characterizes you. You
shave every morning, and in this season you shave by the sunlight; but since your shaving is less
and less complete as we get farther back on the left side, until it becomes positively slovenly as we
get round the angle of the jaw, it is surely very clear that that side is less illuminated than the
other.” -- Holmes
(The Boscombe Valley Mystery)
More Deduction
● Modus Ponens
● X 🡒 Y, X : Y
X 🡒 Y
X
--------------------------
Y
More Deduction
● Modus Tollens
● X 🡒 Y, ~Y : ~X
X 🡒 Y
~Y
--------------------------
~X
“You appeared to be surprised when I told you, on our first meeting, that you had come from
Afghanistan.” - Sherlock Holmes
“You were told no doubt.” -- Watson
“Nothing of the sort. I knew you had come from Afghanistan… “The train of reasoning ran: ‘Here
is a gentleman of a medical type, but with the air of a military man. Clearly an Army doctor then.
He has just come from the tropics for his face is dark, and that is not the natural tint of his skin,
for his wrists are fair. He has undergone hardship and sickness, as his haggard face says clearly.
His left arm has been injured.He holds it in a stiff and unnatural manner. Where in the tropics
could an English army doctor have seen much hardship and got his arm wounded? Clearly in
Afghanistan.’”
(A Study in Scarlet)
Deduction Can Get Complicated
● Remember these crazy truth tables from Discrete Math?
P Q P 🡒 (~ Q 🡒 (P & ~ Q))
T T T T F T T T F F T
T F T T T F T T T T F
F T F T F T T F F F T
F F F T T F F F F T F
Inductive Inference (Generalisation)
● Inductive Generalisation
● Infer from some set of observations, some general truth about the observed thing
This person in this town is nice
This person in this town is nice
This person in this town is nice
This person in this town is nice
---------------------------------------------
Everybody in this town is nice
“I have already explained to you that what is out of the common is usually a guide
rather than a hindrance. In solving a problem of this sort, the grand thing is to be able
to reason backward. That is a very useful accomplishment, and a very easy one, but
people do not practice it much. In the everyday affairs of life it is more useful to reason
forward, and so the other comes to be neglected. There are fifty who can reason
synthetically for one who can reason analytically.” - Sherlock Holmes
(A Study in Scarlet)
“The Problem of Induction”
● A single counter example completely destroys your inductive argument, no matter
how many positive examples you have
● If the argument is couched in terms of “All X”
● “All swans are white”
● Was accepted scientific wisdom… until a species of black swans were discovered in
New Zealand
● A notorious problem that lies at the heart of all inductive reasoning
● Major thorn in the side of empiricists everywhere
● This is why induction is generally considered a “weaker” form of inference,
compared to deduction
Examples of Statistical Reasoning
● Regression
● Using linear regression to fit a line to data
● y=mx+b
● Statistical Syllogism
● Can think of these as the probabilistic version of inductive
generalization
● Rules couched in terms of “MOST X are …” instead of “ALL X
are …”
“Most people, if you describe a train of events to them, will tell you what the result
would be. They can put those events together in their minds, and argue from that
something will come to pass. There are few people, however, who, if you told them a
result, would be able to evolve from their own inner consciousness what the steps were
which led up to that result. This power is what I mean when I talk of reasoning
backwards, or analytically” -- Sherlock Holmes
(A Study in Scarlet)
Statistical Syllogism Continued
Almost all people are more than 2 feet tall
Rodney is a person
-------------------------------------------------------------
Rodney is more than 2 feet tall
Adding “Abductive” Inference To The Mix
● Charles Sanders Peirce began to define abduction as a unique form of inference -
apart from induction - in the 1860’s.
● “Inference to the best explanation”
● A form of inference that goes from data describing something, to a hypothesis that
best explains or accounts for the data.
● Peirce contended that abduction, as a distinctive pattern of reasoning wherein
explanatory hypotheses are formed and accepted, occurs in science and in
everyday life
● Charniak and McDermott characterize abduction as modus ponens turned
backwards, inferring the cause of something; as generation of explanations for
what we see around us
“To begin at the beginning, I approached the house, as you know, on foot, and with my
mind entirely free from all impressions. I naturally began by examining the roadway,
and there, as I have already explained to you, I saw clearly the marks of a cab, which, I
ascertained by query, must have been there during the night. I satisfied myself that it
was a cab and not a private carriage by the narrow gauge of the wheels. The ordinary
London growler is considerably less wide than a gentleman’s brougham.” -- Sherlock
Holmes
(A Study in Scarlet)
Abduction in Human Thought
● Medical diagnosis
● Criminal Investigation
● Fault diagnosis (machines, computer programs, etc.)
● Story understanding
● Vision
● Natural Language Understanding
The Abduction Pattern
D is a collection of data (facts, observations, givens)
H explains D (would, if true, explain D)
No other hypothesis can explain D as well as H does
______________________________________________
Therefore, H is probably true
“Some facts should be suppressed, or, at least, a just sense of proportion should be
observed in treating them. The only point in the case which deserved mention was the
curious analytical reasoning from effects to causes, by which I succeeded in unravelling
it” - Sherlock Holmes
(The Sign of Four)
Abduction in Ordinary Life
Joe: Why are you pulling into the filling station?
Tidmarsh: Because the gas tank is nearly empty.
Joe: What makes you think so?
Tidmarsh: Because the gas gauge indicates nearly empty. Also, I have no reason to think that the gauge is
broken, and it has been a long time since I filled the tank.
“Nearly empty gas tank” is the best explanation for the gauge reading. An alternative hypothesis is that the
gauge is broken, but there’s no particular reason to believe this. OTOH, “long time since tank was filled”
provides additional support for the “tank is nearly empty” hypothesis.
Abduction in Detection
Harman (1965) says that when a detective puts the evidence together and decides that
the culprit must have been the butler, the detective is really reasoning that no other
explanation that accounts for all the facts is plausible enough or simple enough to be
accepted.
Truzzi (1983) alleges that at least 217 examples of abduction can be found in the
Sherlock Holmes canon.
“There is no great mystery in this matter,'' he said, taking the cup of tea which I had
poured out for him; “the facts appear to admit of only one explanation.” -- Sherlock
Holmes
(The Sign of Four)
Abduction and Artificial Intelligence
● Deduction (various inference engines) and induction (via rule induction
algorithms like C4.5, etc.) are already widely implemented on digital computers
● Implementing abductive inference on a computer gives us one more tool for
building artificially intelligent systems
● First attempts to introduce abductive reasoning into AI began about 1973 (Pople)
● Early successes:
○ RED (antibody identification in blood)
○ RED-2
○ MDX2
○ TIPS
○ QUAWDS
“Ah, my dear Watson, there we come to the realms of conjecture where the most logical
mind may be at fault. Each may form his own hypothesis upon the present evidence,
and yours is as likely to be correct as mine.” -- Sherlock Holmes,
(The Empty House)
Implementing Abduction On A Computer
● Parsimonious Covering Theory (PCT)
● Major challenge: dealing with the combinatorial explosion of possible hypotheses
(since effects may have multiple causes)
● Prescreening “cause fragments” to remove the implausible ones helps deal with
this
● Evaluating the plausibility of different competing hypotheses is difficult
● “Parsimony criteria” are one way to disambiguate among possible hypotheses
Implementing Abduction, Continued
● Human abductive reasoning seems to involve stages of “hypothesis generation”, “hypothesis
updating”, and “hypothesis testing”, combined in a “hypothesize-and-test” cycle
● In PCT terms, the process involves three steps:
○ Disorder evocation - a set of individual hypothesis elements are evoked through association to a
given manifestation
○ Hypothesis formation - the hypothesis elements are combined with previously formed hypotheses
to form a set of new hypotheses that can account for both old and new manifestations
○ Question generation (or “hypothesis testing”) - a new question is generated, whose answer may be
used to test and further disambiguate existing hypotheses
Unfortunately...
A truly deep dive into the theoretical foundations of PCT would take far longer than
the time we have available.
References
● Abductive Inference Models for Diagnostic Problem-Solving - Yun Peng & James Reggia, Springer-Verlag,
1990
● Abductive Inference: Computation, Philosophy, Technology - John R. Josephson & Susan G. Josephson,
Cambridge University Press, 1996
● The Complete Sherlock Holmes, Volume 1 - Sir Arthur Conan Doyle, Barnes & Noble Books, 2004
● Logic for Dummies - Mark Zegarelli, Wiley Publishing, 2007
● https://en.wikipedia.org/wiki/Abductive_reasoning
● https://en.wikipedia.org/wiki/Reason
● https://en.wikipedia.org/wiki/Inference
● https://en.wikipedia.org/wiki/Deductive_reasoning
● https://en.wikipedia.org/wiki/Inductive_reasoning
● https://en.wikipedia.org/wiki/Statistical_inference
● https://plato.stanford.edu/entries/epistemology/

Más contenido relacionado

Similar a AI, Sherlock Holmes style - Introduction to automated Abductive Inference

Arthur Conan Doyle - The Hound of the Baskervilles
Arthur Conan Doyle - The Hound of the BaskervillesArthur Conan Doyle - The Hound of the Baskervilles
Arthur Conan Doyle - The Hound of the BaskervillesGeorge Grayson
 
Index Of Wp-ContentUploads201001. Online assignment writing service.
Index Of Wp-ContentUploads201001. Online assignment writing service.Index Of Wp-ContentUploads201001. Online assignment writing service.
Index Of Wp-ContentUploads201001. Online assignment writing service.Nicole Wells
 
The Hound of the Baskervilles.pdf
The Hound of the Baskervilles.pdfThe Hound of the Baskervilles.pdf
The Hound of the Baskervilles.pdfPiyushPriyadarshi27
 
[Literature] a glossary of literary terms
[Literature] a glossary of literary terms[Literature] a glossary of literary terms
[Literature] a glossary of literary termsMuhammad Ardiansyah
 
[Literature] a glossary of literary terms
[Literature] a glossary of literary terms[Literature] a glossary of literary terms
[Literature] a glossary of literary termsMuhammad Ardiansyah
 
Human sciences introduction no build
Human sciences introduction no buildHuman sciences introduction no build
Human sciences introduction no buildNothingnerdy
 
The myth of the scientific method
The myth of the scientific methodThe myth of the scientific method
The myth of the scientific methodFawad Kiyani
 
A Scandal in BohemiaArthur Conan DoyleThis text is.docx
A Scandal in BohemiaArthur Conan DoyleThis text is.docxA Scandal in BohemiaArthur Conan DoyleThis text is.docx
A Scandal in BohemiaArthur Conan DoyleThis text is.docxannetnash8266
 
Cassandra’s paradox
Cassandra’s paradoxCassandra’s paradox
Cassandra’s paradoxplangdale
 
Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014Patrick Mooney
 
UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...
UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...
UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...UKSG: connecting the knowledge community
 
Defeating the imposter within: or, "they haven't found me out yet"
Defeating the imposter within: or, "they haven't found me out yet"Defeating the imposter within: or, "they haven't found me out yet"
Defeating the imposter within: or, "they haven't found me out yet"Sarah Pittaway
 
Time and Death by Dr.Mahboob ali khan Phd
Time and Death by Dr.Mahboob ali khan Phd Time and Death by Dr.Mahboob ali khan Phd
Time and Death by Dr.Mahboob ali khan Phd Healthcare consultant
 
Lecture 13 - Perception/Epistemology
Lecture 13 - Perception/EpistemologyLecture 13 - Perception/Epistemology
Lecture 13 - Perception/EpistemologyPatrick Mooney
 
The Great Sherlock Holmes Debate - I
The Great Sherlock Holmes Debate - IThe Great Sherlock Holmes Debate - I
The Great Sherlock Holmes Debate - IMX Publishing
 
Critical Thinking and the Use of Evidence, by Professor Joel Hayward
Critical Thinking and the Use of Evidence, by Professor Joel HaywardCritical Thinking and the Use of Evidence, by Professor Joel Hayward
Critical Thinking and the Use of Evidence, by Professor Joel HaywardProfessor Joel Hayward
 
How to win argument
How to win argumentHow to win argument
How to win argumentPurveshDesai
 
How to Win Every Argument
How to Win Every Argument How to Win Every Argument
How to Win Every Argument LanguageNow1
 
How to Win Every Argument ( PDFDrive.com ).pdf
How to Win Every Argument ( PDFDrive.com ).pdfHow to Win Every Argument ( PDFDrive.com ).pdf
How to Win Every Argument ( PDFDrive.com ).pdfshivanichowdhury
 

Similar a AI, Sherlock Holmes style - Introduction to automated Abductive Inference (20)

Arthur Conan Doyle - The Hound of the Baskervilles
Arthur Conan Doyle - The Hound of the BaskervillesArthur Conan Doyle - The Hound of the Baskervilles
Arthur Conan Doyle - The Hound of the Baskervilles
 
Index Of Wp-ContentUploads201001. Online assignment writing service.
Index Of Wp-ContentUploads201001. Online assignment writing service.Index Of Wp-ContentUploads201001. Online assignment writing service.
Index Of Wp-ContentUploads201001. Online assignment writing service.
 
The Hound of the Baskervilles.pdf
The Hound of the Baskervilles.pdfThe Hound of the Baskervilles.pdf
The Hound of the Baskervilles.pdf
 
[Literature] a glossary of literary terms
[Literature] a glossary of literary terms[Literature] a glossary of literary terms
[Literature] a glossary of literary terms
 
[Literature] a glossary of literary terms
[Literature] a glossary of literary terms[Literature] a glossary of literary terms
[Literature] a glossary of literary terms
 
Human sciences introduction no build
Human sciences introduction no buildHuman sciences introduction no build
Human sciences introduction no build
 
The myth of the scientific method
The myth of the scientific methodThe myth of the scientific method
The myth of the scientific method
 
A Scandal in BohemiaArthur Conan DoyleThis text is.docx
A Scandal in BohemiaArthur Conan DoyleThis text is.docxA Scandal in BohemiaArthur Conan DoyleThis text is.docx
A Scandal in BohemiaArthur Conan DoyleThis text is.docx
 
Mahatma Letters 3
Mahatma Letters 3Mahatma Letters 3
Mahatma Letters 3
 
Cassandra’s paradox
Cassandra’s paradoxCassandra’s paradox
Cassandra’s paradox
 
Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014Being Sherlock Holmes: Guest Lecture, 9 January 2014
Being Sherlock Holmes: Guest Lecture, 9 January 2014
 
UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...
UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...
UKSG 2018 Breakout - Defeating the imposter within, or, "They haven't found m...
 
Defeating the imposter within: or, "they haven't found me out yet"
Defeating the imposter within: or, "they haven't found me out yet"Defeating the imposter within: or, "they haven't found me out yet"
Defeating the imposter within: or, "they haven't found me out yet"
 
Time and Death by Dr.Mahboob ali khan Phd
Time and Death by Dr.Mahboob ali khan Phd Time and Death by Dr.Mahboob ali khan Phd
Time and Death by Dr.Mahboob ali khan Phd
 
Lecture 13 - Perception/Epistemology
Lecture 13 - Perception/EpistemologyLecture 13 - Perception/Epistemology
Lecture 13 - Perception/Epistemology
 
The Great Sherlock Holmes Debate - I
The Great Sherlock Holmes Debate - IThe Great Sherlock Holmes Debate - I
The Great Sherlock Holmes Debate - I
 
Critical Thinking and the Use of Evidence, by Professor Joel Hayward
Critical Thinking and the Use of Evidence, by Professor Joel HaywardCritical Thinking and the Use of Evidence, by Professor Joel Hayward
Critical Thinking and the Use of Evidence, by Professor Joel Hayward
 
How to win argument
How to win argumentHow to win argument
How to win argument
 
How to Win Every Argument
How to Win Every Argument How to Win Every Argument
How to Win Every Argument
 
How to Win Every Argument ( PDFDrive.com ).pdf
How to Win Every Argument ( PDFDrive.com ).pdfHow to Win Every Argument ( PDFDrive.com ).pdf
How to Win Every Argument ( PDFDrive.com ).pdf
 

Más de All Things Open

Building Reliability - The Realities of Observability
Building Reliability - The Realities of ObservabilityBuilding Reliability - The Realities of Observability
Building Reliability - The Realities of ObservabilityAll Things Open
 
Modern Database Best Practices
Modern Database Best PracticesModern Database Best Practices
Modern Database Best PracticesAll Things Open
 
Open Source and Public Policy
Open Source and Public PolicyOpen Source and Public Policy
Open Source and Public PolicyAll Things Open
 
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...All Things Open
 
The State of Passwordless Auth on the Web - Phil Nash
The State of Passwordless Auth on the Web - Phil NashThe State of Passwordless Auth on the Web - Phil Nash
The State of Passwordless Auth on the Web - Phil NashAll Things Open
 
Total ReDoS: The dangers of regex in JavaScript
Total ReDoS: The dangers of regex in JavaScriptTotal ReDoS: The dangers of regex in JavaScript
Total ReDoS: The dangers of regex in JavaScriptAll Things Open
 
What Does Real World Mass Adoption of Decentralized Tech Look Like?
What Does Real World Mass Adoption of Decentralized Tech Look Like?What Does Real World Mass Adoption of Decentralized Tech Look Like?
What Does Real World Mass Adoption of Decentralized Tech Look Like?All Things Open
 
How to Write & Deploy a Smart Contract
How to Write & Deploy a Smart ContractHow to Write & Deploy a Smart Contract
How to Write & Deploy a Smart ContractAll Things Open
 
Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlow
 Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlow Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlow
Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlowAll Things Open
 
DEI Challenges and Success
DEI Challenges and SuccessDEI Challenges and Success
DEI Challenges and SuccessAll Things Open
 
Scaling Web Applications with Background
Scaling Web Applications with BackgroundScaling Web Applications with Background
Scaling Web Applications with BackgroundAll Things Open
 
Supercharging tutorials with WebAssembly
Supercharging tutorials with WebAssemblySupercharging tutorials with WebAssembly
Supercharging tutorials with WebAssemblyAll Things Open
 
Using SQL to Find Needles in Haystacks
Using SQL to Find Needles in HaystacksUsing SQL to Find Needles in Haystacks
Using SQL to Find Needles in HaystacksAll Things Open
 
Configuration Security as a Game of Pursuit Intercept
Configuration Security as a Game of Pursuit InterceptConfiguration Security as a Game of Pursuit Intercept
Configuration Security as a Game of Pursuit InterceptAll Things Open
 
Scaling an Open Source Sponsorship Program
Scaling an Open Source Sponsorship ProgramScaling an Open Source Sponsorship Program
Scaling an Open Source Sponsorship ProgramAll Things Open
 
Build Developer Experience Teams for Open Source
Build Developer Experience Teams for Open SourceBuild Developer Experience Teams for Open Source
Build Developer Experience Teams for Open SourceAll Things Open
 
Deploying Models at Scale with Apache Beam
Deploying Models at Scale with Apache BeamDeploying Models at Scale with Apache Beam
Deploying Models at Scale with Apache BeamAll Things Open
 
Sudo – Giving access while staying in control
Sudo – Giving access while staying in controlSudo – Giving access while staying in control
Sudo – Giving access while staying in controlAll Things Open
 
Fortifying the Future: Tackling Security Challenges in AI/ML Applications
Fortifying the Future: Tackling Security Challenges in AI/ML ApplicationsFortifying the Future: Tackling Security Challenges in AI/ML Applications
Fortifying the Future: Tackling Security Challenges in AI/ML ApplicationsAll Things Open
 
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...All Things Open
 

Más de All Things Open (20)

Building Reliability - The Realities of Observability
Building Reliability - The Realities of ObservabilityBuilding Reliability - The Realities of Observability
Building Reliability - The Realities of Observability
 
Modern Database Best Practices
Modern Database Best PracticesModern Database Best Practices
Modern Database Best Practices
 
Open Source and Public Policy
Open Source and Public PolicyOpen Source and Public Policy
Open Source and Public Policy
 
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...
Weaving Microservices into a Unified GraphQL Schema with graph-quilt - Ashpak...
 
The State of Passwordless Auth on the Web - Phil Nash
The State of Passwordless Auth on the Web - Phil NashThe State of Passwordless Auth on the Web - Phil Nash
The State of Passwordless Auth on the Web - Phil Nash
 
Total ReDoS: The dangers of regex in JavaScript
Total ReDoS: The dangers of regex in JavaScriptTotal ReDoS: The dangers of regex in JavaScript
Total ReDoS: The dangers of regex in JavaScript
 
What Does Real World Mass Adoption of Decentralized Tech Look Like?
What Does Real World Mass Adoption of Decentralized Tech Look Like?What Does Real World Mass Adoption of Decentralized Tech Look Like?
What Does Real World Mass Adoption of Decentralized Tech Look Like?
 
How to Write & Deploy a Smart Contract
How to Write & Deploy a Smart ContractHow to Write & Deploy a Smart Contract
How to Write & Deploy a Smart Contract
 
Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlow
 Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlow Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlow
Spinning Your Drones with Cadence Workflows, Apache Kafka and TensorFlow
 
DEI Challenges and Success
DEI Challenges and SuccessDEI Challenges and Success
DEI Challenges and Success
 
Scaling Web Applications with Background
Scaling Web Applications with BackgroundScaling Web Applications with Background
Scaling Web Applications with Background
 
Supercharging tutorials with WebAssembly
Supercharging tutorials with WebAssemblySupercharging tutorials with WebAssembly
Supercharging tutorials with WebAssembly
 
Using SQL to Find Needles in Haystacks
Using SQL to Find Needles in HaystacksUsing SQL to Find Needles in Haystacks
Using SQL to Find Needles in Haystacks
 
Configuration Security as a Game of Pursuit Intercept
Configuration Security as a Game of Pursuit InterceptConfiguration Security as a Game of Pursuit Intercept
Configuration Security as a Game of Pursuit Intercept
 
Scaling an Open Source Sponsorship Program
Scaling an Open Source Sponsorship ProgramScaling an Open Source Sponsorship Program
Scaling an Open Source Sponsorship Program
 
Build Developer Experience Teams for Open Source
Build Developer Experience Teams for Open SourceBuild Developer Experience Teams for Open Source
Build Developer Experience Teams for Open Source
 
Deploying Models at Scale with Apache Beam
Deploying Models at Scale with Apache BeamDeploying Models at Scale with Apache Beam
Deploying Models at Scale with Apache Beam
 
Sudo – Giving access while staying in control
Sudo – Giving access while staying in controlSudo – Giving access while staying in control
Sudo – Giving access while staying in control
 
Fortifying the Future: Tackling Security Challenges in AI/ML Applications
Fortifying the Future: Tackling Security Challenges in AI/ML ApplicationsFortifying the Future: Tackling Security Challenges in AI/ML Applications
Fortifying the Future: Tackling Security Challenges in AI/ML Applications
 
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
Securing Cloud Resources Deployed with Control Planes on Kubernetes using Gov...
 

Último

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Último (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

AI, Sherlock Holmes style - Introduction to automated Abductive Inference

  • 1. AI Sherlock Holmes Style Introduction to Automated Abductive Inference Phillip Rhodes All Things Open Raleigh NC 10-15-2019
  • 2.
  • 4. Inference? ● Inferences are steps in reasoning, moving from premises to logical consequences ● In epistemology, a number of specific methods for acquiring new knowledge are defined: perception, introspection, memory, reason, and testimony ● The distinction between “reasoning” and “inference” is subtle and we’ll mostly treat the terms as synonymous
  • 5. “That’s a strange thing, you are the second man today that has used that expression to me.” -- Stamford “And who was the first?” -- Watson “A fellow who is working at the chemical laboratory at the hospital … He is a little queer in his ideas - an enthusiast in some branches of science” -- Stamford “A medical student, I suppose?” -- Watson (A Study in Scarlet)
  • 6. Reasoning ● Reasoning is a means to: ○ Establish and verify facts ○ Make sense of things ○ Adapt or justify practices and beliefs ○ Explain or justify events ○ Predict the future ○ Create new knowledge ○ Build a model of the world from sensory perception
  • 7. Types of Reasoning / Inference ● Classical Logic ● Statistical ○ Bayesian ○ Frequentist ● Analogical ● Spatial ● Temporal ● Prediction
  • 8. “You see Watson, it was perfectly obvious from the first that the only possible object of this rather fantastic business of the advertisement of the League, and the copying of the encyclopedia, must be to get this not over-bright pawnbroker out of the way for a number of hours every day.” -- Sherlock Holmes (The Red Headed League)
  • 9. Classical Logic ● Traditionally (since ~300 BC) divided into two main branches: ○ Deductive ○ Inductive
  • 10. Deductive Inference ● If a Deductive argument is valid and the premises are true, the conclusion must be true ● Syllogism All men are mortal Socrates is a man -------------------------- Socrates is mortal
  • 11. “You know me too well to think that I am boasting when I say that I shall either confirm or destroy his theory by means which he is quite incapable of employing, or even understanding. To take the first example at hand, I very clearly perceive that in your bedroom the window is on the right-hand side, and yet I question whether Mr. Lestrade would have noted even so self-evident a thing as that. -- Holmes “How on Earth??” -- Watson “My dear fellow, I know you well. I know the military neatness which characterizes you. You shave every morning, and in this season you shave by the sunlight; but since your shaving is less and less complete as we get farther back on the left side, until it becomes positively slovenly as we get round the angle of the jaw, it is surely very clear that that side is less illuminated than the other.” -- Holmes (The Boscombe Valley Mystery)
  • 12. More Deduction ● Modus Ponens ● X 🡒 Y, X : Y X 🡒 Y X -------------------------- Y
  • 13. More Deduction ● Modus Tollens ● X 🡒 Y, ~Y : ~X X 🡒 Y ~Y -------------------------- ~X
  • 14. “You appeared to be surprised when I told you, on our first meeting, that you had come from Afghanistan.” - Sherlock Holmes “You were told no doubt.” -- Watson “Nothing of the sort. I knew you had come from Afghanistan… “The train of reasoning ran: ‘Here is a gentleman of a medical type, but with the air of a military man. Clearly an Army doctor then. He has just come from the tropics for his face is dark, and that is not the natural tint of his skin, for his wrists are fair. He has undergone hardship and sickness, as his haggard face says clearly. His left arm has been injured.He holds it in a stiff and unnatural manner. Where in the tropics could an English army doctor have seen much hardship and got his arm wounded? Clearly in Afghanistan.’” (A Study in Scarlet)
  • 15. Deduction Can Get Complicated ● Remember these crazy truth tables from Discrete Math? P Q P 🡒 (~ Q 🡒 (P & ~ Q)) T T T T F T T T F F T T F T T T F T T T T F F T F T F T T F F F T F F F T T F F F F T F
  • 16. Inductive Inference (Generalisation) ● Inductive Generalisation ● Infer from some set of observations, some general truth about the observed thing This person in this town is nice This person in this town is nice This person in this town is nice This person in this town is nice --------------------------------------------- Everybody in this town is nice
  • 17. “I have already explained to you that what is out of the common is usually a guide rather than a hindrance. In solving a problem of this sort, the grand thing is to be able to reason backward. That is a very useful accomplishment, and a very easy one, but people do not practice it much. In the everyday affairs of life it is more useful to reason forward, and so the other comes to be neglected. There are fifty who can reason synthetically for one who can reason analytically.” - Sherlock Holmes (A Study in Scarlet)
  • 18. “The Problem of Induction” ● A single counter example completely destroys your inductive argument, no matter how many positive examples you have ● If the argument is couched in terms of “All X” ● “All swans are white” ● Was accepted scientific wisdom… until a species of black swans were discovered in New Zealand ● A notorious problem that lies at the heart of all inductive reasoning ● Major thorn in the side of empiricists everywhere ● This is why induction is generally considered a “weaker” form of inference, compared to deduction
  • 19. Examples of Statistical Reasoning ● Regression ● Using linear regression to fit a line to data ● y=mx+b ● Statistical Syllogism ● Can think of these as the probabilistic version of inductive generalization ● Rules couched in terms of “MOST X are …” instead of “ALL X are …”
  • 20. “Most people, if you describe a train of events to them, will tell you what the result would be. They can put those events together in their minds, and argue from that something will come to pass. There are few people, however, who, if you told them a result, would be able to evolve from their own inner consciousness what the steps were which led up to that result. This power is what I mean when I talk of reasoning backwards, or analytically” -- Sherlock Holmes (A Study in Scarlet)
  • 21. Statistical Syllogism Continued Almost all people are more than 2 feet tall Rodney is a person ------------------------------------------------------------- Rodney is more than 2 feet tall
  • 22. Adding “Abductive” Inference To The Mix ● Charles Sanders Peirce began to define abduction as a unique form of inference - apart from induction - in the 1860’s. ● “Inference to the best explanation” ● A form of inference that goes from data describing something, to a hypothesis that best explains or accounts for the data. ● Peirce contended that abduction, as a distinctive pattern of reasoning wherein explanatory hypotheses are formed and accepted, occurs in science and in everyday life ● Charniak and McDermott characterize abduction as modus ponens turned backwards, inferring the cause of something; as generation of explanations for what we see around us
  • 23. “To begin at the beginning, I approached the house, as you know, on foot, and with my mind entirely free from all impressions. I naturally began by examining the roadway, and there, as I have already explained to you, I saw clearly the marks of a cab, which, I ascertained by query, must have been there during the night. I satisfied myself that it was a cab and not a private carriage by the narrow gauge of the wheels. The ordinary London growler is considerably less wide than a gentleman’s brougham.” -- Sherlock Holmes (A Study in Scarlet)
  • 24. Abduction in Human Thought ● Medical diagnosis ● Criminal Investigation ● Fault diagnosis (machines, computer programs, etc.) ● Story understanding ● Vision ● Natural Language Understanding
  • 25. The Abduction Pattern D is a collection of data (facts, observations, givens) H explains D (would, if true, explain D) No other hypothesis can explain D as well as H does ______________________________________________ Therefore, H is probably true
  • 26. “Some facts should be suppressed, or, at least, a just sense of proportion should be observed in treating them. The only point in the case which deserved mention was the curious analytical reasoning from effects to causes, by which I succeeded in unravelling it” - Sherlock Holmes (The Sign of Four)
  • 27. Abduction in Ordinary Life Joe: Why are you pulling into the filling station? Tidmarsh: Because the gas tank is nearly empty. Joe: What makes you think so? Tidmarsh: Because the gas gauge indicates nearly empty. Also, I have no reason to think that the gauge is broken, and it has been a long time since I filled the tank. “Nearly empty gas tank” is the best explanation for the gauge reading. An alternative hypothesis is that the gauge is broken, but there’s no particular reason to believe this. OTOH, “long time since tank was filled” provides additional support for the “tank is nearly empty” hypothesis.
  • 28. Abduction in Detection Harman (1965) says that when a detective puts the evidence together and decides that the culprit must have been the butler, the detective is really reasoning that no other explanation that accounts for all the facts is plausible enough or simple enough to be accepted. Truzzi (1983) alleges that at least 217 examples of abduction can be found in the Sherlock Holmes canon.
  • 29. “There is no great mystery in this matter,'' he said, taking the cup of tea which I had poured out for him; “the facts appear to admit of only one explanation.” -- Sherlock Holmes (The Sign of Four)
  • 30. Abduction and Artificial Intelligence ● Deduction (various inference engines) and induction (via rule induction algorithms like C4.5, etc.) are already widely implemented on digital computers ● Implementing abductive inference on a computer gives us one more tool for building artificially intelligent systems ● First attempts to introduce abductive reasoning into AI began about 1973 (Pople) ● Early successes: ○ RED (antibody identification in blood) ○ RED-2 ○ MDX2 ○ TIPS ○ QUAWDS
  • 31. “Ah, my dear Watson, there we come to the realms of conjecture where the most logical mind may be at fault. Each may form his own hypothesis upon the present evidence, and yours is as likely to be correct as mine.” -- Sherlock Holmes, (The Empty House)
  • 32. Implementing Abduction On A Computer ● Parsimonious Covering Theory (PCT) ● Major challenge: dealing with the combinatorial explosion of possible hypotheses (since effects may have multiple causes) ● Prescreening “cause fragments” to remove the implausible ones helps deal with this ● Evaluating the plausibility of different competing hypotheses is difficult ● “Parsimony criteria” are one way to disambiguate among possible hypotheses
  • 33. Implementing Abduction, Continued ● Human abductive reasoning seems to involve stages of “hypothesis generation”, “hypothesis updating”, and “hypothesis testing”, combined in a “hypothesize-and-test” cycle ● In PCT terms, the process involves three steps: ○ Disorder evocation - a set of individual hypothesis elements are evoked through association to a given manifestation ○ Hypothesis formation - the hypothesis elements are combined with previously formed hypotheses to form a set of new hypotheses that can account for both old and new manifestations ○ Question generation (or “hypothesis testing”) - a new question is generated, whose answer may be used to test and further disambiguate existing hypotheses
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44. Unfortunately... A truly deep dive into the theoretical foundations of PCT would take far longer than the time we have available.
  • 45.
  • 46.
  • 47. References ● Abductive Inference Models for Diagnostic Problem-Solving - Yun Peng & James Reggia, Springer-Verlag, 1990 ● Abductive Inference: Computation, Philosophy, Technology - John R. Josephson & Susan G. Josephson, Cambridge University Press, 1996 ● The Complete Sherlock Holmes, Volume 1 - Sir Arthur Conan Doyle, Barnes & Noble Books, 2004 ● Logic for Dummies - Mark Zegarelli, Wiley Publishing, 2007 ● https://en.wikipedia.org/wiki/Abductive_reasoning ● https://en.wikipedia.org/wiki/Reason ● https://en.wikipedia.org/wiki/Inference ● https://en.wikipedia.org/wiki/Deductive_reasoning ● https://en.wikipedia.org/wiki/Inductive_reasoning ● https://en.wikipedia.org/wiki/Statistical_inference ● https://plato.stanford.edu/entries/epistemology/