SlideShare a Scribd company logo
1 of 18
Programming for
Geographical Information Analysis:
Advanced Skills
Online mini-lecture: Introduction to Fuzzy Logic
Dr Andy Evans
How do our statements match the
real world?
We’re assuming we know what words like “hunger” and “high”
mean in “if hunger is high go to café”.
While we might be able to give a clear RDF definition of
“hunger” it won’t ever match the real world. This may not
matter if our rules replicate reality quantitatively.
However, to do this, we need to define and use “high”.
For this, we need Fuzzy Sets and Fuzzy Logic.
Fuzziness
Traditional logic: true vs. false
Traditional empiricism: what exists or does not, what causes
something, and what doesn’t.
THESE ARE THE FOUNDATIONS OF SCIENCE.
However, since the early Greeks, people have found that the way we
understand the world isn’t black and white.
The Sorites Paradox
If I remove one sand grain from a pile, it’s still a pile, but if I carry on, it’s
soon not a pile (well, go figure…).
Reality is fuzzy
Language isn’t usually precise…
How hot is “hot”? 30 degrees? 40 degrees?
Reality isn’t actually that precise…
Most things, including us, are just continually renewing lumps of
geology! Where do we begin? Where do we end?
Atoms aren’t distinct.
Shrödinger’s poor old cat is both alive and dead.
Fuzzy Sets and Logic
.
Fuzzy Sets let us say something is 90% “one thing” and 10% “another”,
without being illogical.
Fuzzy Logic then lets us use this in rules:
E.g. it’s 90% “right” to do something, so I’ll do it 90% - adding warm
water to a washing machine cycle, for example.
The fuzzy rebellion
1923: “Bertie” Russell releases a paper on Vagueness.
How do we define objects that are partly in two normally mutually
exclusive sets?
1937: Black defines Vague sets.
1965: Zadeh coins the daft name “Fuzzy” for a logic based on Vague
set membership, instantly putting humourless scientist’s backs up.
1972: 1st practical demonstration Mamdani’s steam engine.
1981: 1st commercial applications using fuzzy logic to control
systems.
1994: Japan exported $35 billion worth of fuzzy products.
Scientists loved it so much…
“Fuzzy theory is wrong, wrong, and pernicious.
What we need is more logical thinking, not less.
The danger of fuzzy logic is that it will encourage
the sort of imprecise thinking that has brought us
so much trouble. Fuzzy logic is the cocaine of
science.”
Prof William Kahan
The advantages of Fuzzy Logic
Lets us use terms like “hot” in computers, integrating
knowledge and machine learning.
A very simple approach to building computer models of
geographical systems.
The model uses human language, so it’s reasonably
understandable.
Fuzzy Sets
We give things a degree of membership between 0 and 1 in several
sets (to a combined total of 1).
We then label these sets using human terms.
Encapsulates terms with no consensus definition, but we might use
surveys to define them.
Age
Degree
of
membership
0
1
90
Young Middle
Aged
Old
0.5
50
Membership
function
38yr old = 10% Young + 90% Middle Aged
Fuzzy Logic models
We give our variables membership functions, and
express the variables as nouns (“length”,
“temperature”) or adjectives (“long”, “hot”).
We can then build up linguistic equations (“IF length
long, AND temperature hot, THEN openWindow”).
How the models work
Inputs converted to
degrees of membership
of fuzzy sets.
Fuzzy rules applied to get
new sets of members.
These sets are then
converted back to real
numbers.
Crisp data
Fuzzifier
Member 90% hot
10% cold
Fuzzy rules
IF 90% hot THEN 80% open
IF 10% cold THEN 20% closed
Fuzzy output set
80% open, 20% closed
Defuzzifier
Crisp data
A model to work out time by foot
itchiness
Work out how bored you are (take a poll of happiness vs.
foot itchiness)…
Foot itchiness
Degree
of
membership
0
1
10
Happy Bored
0.5
5
Membership
function
0.6 bored to tears + 0.4 happy as Larry
Decide on rules
If BORED then LECTURE LONG.
If HAPPY the LECTURE SHORT.
Make Fuzzy sets defining people’s notion of “Long” and
“Short”
0
1
2
Short Long
hours
Transfer the degrees to the output sets
Adjust the heights of the sets to e.g. 40% for short.
Hours
Hours
0
1
2
0.4
0.6
0
1
2
Short Long
0.4 Happy
0.6 Bored
Calculate the average
The average is usually taken as the gravitational centre
of the sets combined.
0 2
0.4
0.6
We’re only half way through!
Uses in geography
Spatial Interaction: modelling flows between regions. Can
capture the following kind of rules..
If distance is SHORT then TRIPS are LOTS.
If distance is MEDIUM then TRIPS are some.
If distance is LONG then TRIPS are few.
GIS, remote sensing, land evaluation.
Fuzzy viewsheds.
Fuzzy GIS - expert system shell on an intelligent GIS.
Classification of land cover (vegetation, soils) from satellite imagery.
Uses in geography
Physical Geography
Creation of climate classifications.
Fuzzy models of infiltration.
Flood forecasting.
Modelling subglacial water systems.
Demographics
What is the typical behaviour of a group?
Is everyone acting normally?
Open to abuse – but think how it might catch murderous
extremists, for example. We simply must have it, or society will
disintegrate and we’ll all be eating babies before you can say
“police state”.
Other stuff
It’s often helpful to get other AI techniques to generate
the membership functions – e.g. Neural Nets and Genetic
Algorithms.
It’s often useful to combine several AIs with Fuzzy Logic –
e.g. you might have a Net for “low” river flows and
another for “high” ones, and a Fuzzy Logic engine
between combining the results.

More Related Content

Similar to fuzzy.ppt

The Kipling-Zachman lens
The Kipling-Zachman lensThe Kipling-Zachman lens
The Kipling-Zachman lensRichard Veryard
 
Unstructure: Smashing the Boundaries of Data (SxSWi 2014)
Unstructure: Smashing the Boundaries of Data (SxSWi 2014)Unstructure: Smashing the Boundaries of Data (SxSWi 2014)
Unstructure: Smashing the Boundaries of Data (SxSWi 2014)Ian Varley
 
Extending the Mind with Cognitive Prosthetics?
Extending the Mind with Cognitive Prosthetics? Extending the Mind with Cognitive Prosthetics?
Extending the Mind with Cognitive Prosthetics? PhiloWeb
 
Designing a Future We Want to Live In - UX STRAT USA 2017
Designing a Future We Want to Live In - UX STRAT USA 2017Designing a Future We Want to Live In - UX STRAT USA 2017
Designing a Future We Want to Live In - UX STRAT USA 2017Andrew Hinton
 
Stork-Content, Cognition & Robotics
Stork-Content, Cognition & RoboticsStork-Content, Cognition & Robotics
Stork-Content, Cognition & RoboticsHans-Georg Stork
 
Normal Considered Harmful
Normal Considered HarmfulNormal Considered Harmful
Normal Considered Harmfulgreenwop
 
First decision nature of the modelling work
First decision nature of  the modelling workFirst decision nature of  the modelling work
First decision nature of the modelling workCarlos Alberto Monteiro
 
Altruistic Self-Mastery
Altruistic Self-MasteryAltruistic Self-Mastery
Altruistic Self-MasteryJoshua Terziu
 
Chaos Theory: An Introduction
Chaos Theory: An IntroductionChaos Theory: An Introduction
Chaos Theory: An IntroductionAntha Ceorote
 
Scott Aaronson MIT Freewill Presentation
Scott Aaronson MIT Freewill PresentationScott Aaronson MIT Freewill Presentation
Scott Aaronson MIT Freewill PresentationElmer Rich
 
fuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptxfuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptxssuser92d367
 
Introduction to Artificial Intelligence.doc
Introduction to Artificial Intelligence.docIntroduction to Artificial Intelligence.doc
Introduction to Artificial Intelligence.docbutest
 
Maya in Mathemagical Metaphor
Maya in Mathemagical MetaphorMaya in Mathemagical Metaphor
Maya in Mathemagical MetaphorPrithwis Mukerjee
 
Introduction to AI - Third Lecture
Introduction to AI - Third LectureIntroduction to AI - Third Lecture
Introduction to AI - Third LectureWouter Beek
 

Similar to fuzzy.ppt (20)

The Kipling-Zachman lens
The Kipling-Zachman lensThe Kipling-Zachman lens
The Kipling-Zachman lens
 
Unstructure: Smashing the Boundaries of Data (SxSWi 2014)
Unstructure: Smashing the Boundaries of Data (SxSWi 2014)Unstructure: Smashing the Boundaries of Data (SxSWi 2014)
Unstructure: Smashing the Boundaries of Data (SxSWi 2014)
 
Extending the Mind with Cognitive Prosthetics?
Extending the Mind with Cognitive Prosthetics? Extending the Mind with Cognitive Prosthetics?
Extending the Mind with Cognitive Prosthetics?
 
Fuzzy logic ppt
Fuzzy logic pptFuzzy logic ppt
Fuzzy logic ppt
 
Designing a Future We Want to Live In - UX STRAT USA 2017
Designing a Future We Want to Live In - UX STRAT USA 2017Designing a Future We Want to Live In - UX STRAT USA 2017
Designing a Future We Want to Live In - UX STRAT USA 2017
 
Fuzzy logic mis
Fuzzy logic misFuzzy logic mis
Fuzzy logic mis
 
Stork-Content, Cognition & Robotics
Stork-Content, Cognition & RoboticsStork-Content, Cognition & Robotics
Stork-Content, Cognition & Robotics
 
Normal Considered Harmful
Normal Considered HarmfulNormal Considered Harmful
Normal Considered Harmful
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
First decision nature of the modelling work
First decision nature of  the modelling workFirst decision nature of  the modelling work
First decision nature of the modelling work
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Altruistic Self-Mastery
Altruistic Self-MasteryAltruistic Self-Mastery
Altruistic Self-Mastery
 
Chaos Theory: An Introduction
Chaos Theory: An IntroductionChaos Theory: An Introduction
Chaos Theory: An Introduction
 
Scott Aaronson MIT Freewill Presentation
Scott Aaronson MIT Freewill PresentationScott Aaronson MIT Freewill Presentation
Scott Aaronson MIT Freewill Presentation
 
fuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptxfuzzylogic-120105083314-phpapp01.pptx
fuzzylogic-120105083314-phpapp01.pptx
 
Introduction to Artificial Intelligence.doc
Introduction to Artificial Intelligence.docIntroduction to Artificial Intelligence.doc
Introduction to Artificial Intelligence.doc
 
Maya in Mathemagical Metaphor
Maya in Mathemagical MetaphorMaya in Mathemagical Metaphor
Maya in Mathemagical Metaphor
 
1. The Game Of The Century
1. The Game Of The Century1. The Game Of The Century
1. The Game Of The Century
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Introduction to AI - Third Lecture
Introduction to AI - Third LectureIntroduction to AI - Third Lecture
Introduction to AI - Third Lecture
 

Recently uploaded

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

fuzzy.ppt

  • 1. Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Fuzzy Logic Dr Andy Evans
  • 2. How do our statements match the real world? We’re assuming we know what words like “hunger” and “high” mean in “if hunger is high go to café”. While we might be able to give a clear RDF definition of “hunger” it won’t ever match the real world. This may not matter if our rules replicate reality quantitatively. However, to do this, we need to define and use “high”. For this, we need Fuzzy Sets and Fuzzy Logic.
  • 3. Fuzziness Traditional logic: true vs. false Traditional empiricism: what exists or does not, what causes something, and what doesn’t. THESE ARE THE FOUNDATIONS OF SCIENCE. However, since the early Greeks, people have found that the way we understand the world isn’t black and white. The Sorites Paradox If I remove one sand grain from a pile, it’s still a pile, but if I carry on, it’s soon not a pile (well, go figure…).
  • 4. Reality is fuzzy Language isn’t usually precise… How hot is “hot”? 30 degrees? 40 degrees? Reality isn’t actually that precise… Most things, including us, are just continually renewing lumps of geology! Where do we begin? Where do we end? Atoms aren’t distinct. Shrödinger’s poor old cat is both alive and dead.
  • 5. Fuzzy Sets and Logic . Fuzzy Sets let us say something is 90% “one thing” and 10% “another”, without being illogical. Fuzzy Logic then lets us use this in rules: E.g. it’s 90% “right” to do something, so I’ll do it 90% - adding warm water to a washing machine cycle, for example.
  • 6. The fuzzy rebellion 1923: “Bertie” Russell releases a paper on Vagueness. How do we define objects that are partly in two normally mutually exclusive sets? 1937: Black defines Vague sets. 1965: Zadeh coins the daft name “Fuzzy” for a logic based on Vague set membership, instantly putting humourless scientist’s backs up. 1972: 1st practical demonstration Mamdani’s steam engine. 1981: 1st commercial applications using fuzzy logic to control systems. 1994: Japan exported $35 billion worth of fuzzy products.
  • 7. Scientists loved it so much… “Fuzzy theory is wrong, wrong, and pernicious. What we need is more logical thinking, not less. The danger of fuzzy logic is that it will encourage the sort of imprecise thinking that has brought us so much trouble. Fuzzy logic is the cocaine of science.” Prof William Kahan
  • 8. The advantages of Fuzzy Logic Lets us use terms like “hot” in computers, integrating knowledge and machine learning. A very simple approach to building computer models of geographical systems. The model uses human language, so it’s reasonably understandable.
  • 9. Fuzzy Sets We give things a degree of membership between 0 and 1 in several sets (to a combined total of 1). We then label these sets using human terms. Encapsulates terms with no consensus definition, but we might use surveys to define them. Age Degree of membership 0 1 90 Young Middle Aged Old 0.5 50 Membership function 38yr old = 10% Young + 90% Middle Aged
  • 10. Fuzzy Logic models We give our variables membership functions, and express the variables as nouns (“length”, “temperature”) or adjectives (“long”, “hot”). We can then build up linguistic equations (“IF length long, AND temperature hot, THEN openWindow”).
  • 11. How the models work Inputs converted to degrees of membership of fuzzy sets. Fuzzy rules applied to get new sets of members. These sets are then converted back to real numbers. Crisp data Fuzzifier Member 90% hot 10% cold Fuzzy rules IF 90% hot THEN 80% open IF 10% cold THEN 20% closed Fuzzy output set 80% open, 20% closed Defuzzifier Crisp data
  • 12. A model to work out time by foot itchiness Work out how bored you are (take a poll of happiness vs. foot itchiness)… Foot itchiness Degree of membership 0 1 10 Happy Bored 0.5 5 Membership function 0.6 bored to tears + 0.4 happy as Larry
  • 13. Decide on rules If BORED then LECTURE LONG. If HAPPY the LECTURE SHORT. Make Fuzzy sets defining people’s notion of “Long” and “Short” 0 1 2 Short Long hours
  • 14. Transfer the degrees to the output sets Adjust the heights of the sets to e.g. 40% for short. Hours Hours 0 1 2 0.4 0.6 0 1 2 Short Long 0.4 Happy 0.6 Bored
  • 15. Calculate the average The average is usually taken as the gravitational centre of the sets combined. 0 2 0.4 0.6 We’re only half way through!
  • 16. Uses in geography Spatial Interaction: modelling flows between regions. Can capture the following kind of rules.. If distance is SHORT then TRIPS are LOTS. If distance is MEDIUM then TRIPS are some. If distance is LONG then TRIPS are few. GIS, remote sensing, land evaluation. Fuzzy viewsheds. Fuzzy GIS - expert system shell on an intelligent GIS. Classification of land cover (vegetation, soils) from satellite imagery.
  • 17. Uses in geography Physical Geography Creation of climate classifications. Fuzzy models of infiltration. Flood forecasting. Modelling subglacial water systems. Demographics What is the typical behaviour of a group? Is everyone acting normally? Open to abuse – but think how it might catch murderous extremists, for example. We simply must have it, or society will disintegrate and we’ll all be eating babies before you can say “police state”.
  • 18. Other stuff It’s often helpful to get other AI techniques to generate the membership functions – e.g. Neural Nets and Genetic Algorithms. It’s often useful to combine several AIs with Fuzzy Logic – e.g. you might have a Net for “low” river flows and another for “high” ones, and a Fuzzy Logic engine between combining the results.