Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Fuzzy Inference System | Approximate Reasoning and Rule-Based Systems
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Fuzzy Logic and Approximate Reasoning

bookChallenge: Fuzzy Inference System

Task

Swipe to start coding

You are building a mini fuzzy inference system that determines fan speed based on temperature and humidity.

Your goal is to:

  • fuzzify crisp inputs;
  • evaluate fuzzy rules using logical operators;
  • aggregate rule outputs;
  • compute a final crisp value using centroid defuzzification.

Instructions

  1. Use the provided membership functions for:

    • temperature;
    • humidity;
    • fan speed.
  2. Fuzzify the given inputs:

    • temperature = 28;
    • humidity = 65.
  3. Evaluate the following fuzzy rules:

    • Rule 1: IF temperature is Hot OR humidity is Humid THEN fan speed is High;
    • Rule 2: IF temperature is Cool AND humidity is Dry THEN fan speed is Low.
  4. Aggregate the rule outputs over the range 0 to 80.

  5. Compute the final fan speed using centroid defuzzification.

  6. Store the result in the variable fan_speed.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Fuzzy Inference System

Swipe to show menu

Task

Swipe to start coding

You are building a mini fuzzy inference system that determines fan speed based on temperature and humidity.

Your goal is to:

  • fuzzify crisp inputs;
  • evaluate fuzzy rules using logical operators;
  • aggregate rule outputs;
  • compute a final crisp value using centroid defuzzification.

Instructions

  1. Use the provided membership functions for:

    • temperature;
    • humidity;
    • fan speed.
  2. Fuzzify the given inputs:

    • temperature = 28;
    • humidity = 65.
  3. Evaluate the following fuzzy rules:

    • Rule 1: IF temperature is Hot OR humidity is Humid THEN fan speed is High;
    • Rule 2: IF temperature is Cool AND humidity is Dry THEN fan speed is Low.
  4. Aggregate the rule outputs over the range 0 to 80.

  5. Compute the final fan speed using centroid defuzzification.

  6. Store the result in the variable fan_speed.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 4
single

single

some-alt