1 / 18

Programming for Geographical Information Analysis: Advanced Skills

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é”.

kawena
Download Presentation

Programming for Geographical Information Analysis: Advanced Skills

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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. 1 Membership function Young Middle Aged Old Degree of membership 0.5 50 Age 0 90 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 Crisp data Fuzzifier Member 90% hot 10% cold 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. 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)… 1 Membership function Degree of membership Happy 0.5 Bored 10 0 5 Foot itchiness 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” 1 Short Long 2 0 hours

  14. 1 0.6 Bored Short Long 0.4 Happy 2 0 Transfer the degrees to the output sets Adjust the heights of the sets to e.g. 40% for short. Hours 1 0.6 0.4 0 2 Hours

  15. Calculate the average The average is usually taken as the gravitational centre of the sets combined. 0.6 0.4 0 2 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. Modellingsubglacial 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.

More Related