r/fuzzylogic • u/DaoIsTheWay • Jul 25 '21
r/fuzzylogic • u/kinow • Aug 23 '24
Release Scikit-Fuzzy 0.5.0 · scikit-fuzzy/scikit-fuzzy
r/fuzzylogic • u/darakennn • Mar 10 '23
How to use output of one fuzzy controller as an input of another fuzzy controller?
I am trying to create a temperature control system based on fuzzy logic for a roasting machine where the input is based on the weight of the load. The output of this controller will be the setpoint temperature and the other functions of the machine are dependent on that setpoint so I need to use it as an input as well but I don't know how to do that. Can anyone help me regarding on this matter? Is there any way?
r/fuzzylogic • u/ManuelRodriguez331 • Mar 13 '21
A human operator can use a mouse to control a robot gripper. The coordinates are converted by the fuzzy system into servo commands.
r/fuzzylogic • u/CampWendleton • Dec 02 '20
MATLAB Fuzzy Logic
Hello Reddit, doing a project in MATLAB using fuzzy logic. I have the setup but is there a way for the user to enter an input or value and that value be used for the input of the fuzzy logic.
Basically the user has to enter 3 inputs, those inputs are divided by 3 to give the Average. How do I take that average and use it as an input for my fuzzy logic controller? and conversely how do I take the output of the fuzzy logic controller and use it do display an image. I understand displaying the image but I don't understand how I make the connection of: I got a value of 1 for my fuzzy logic output and therefore this image needs to be displayed.
r/fuzzylogic • u/kinow • Jun 09 '18
Fuzzy Logic in Agent-Based Game Design (PDF)
r/fuzzylogic • u/1ogica1guy • Oct 13 '15
What are some current applications of fuzzy logic?
Recently ML has been hogging all the headlines with regards to AI. Is Fuzzy Logic still relevant for now and the future, and if so, in what areas and how?
Also, you could comment on what you're currently working on.
Thanks.
r/fuzzylogic • u/blanchedpeas • Oct 10 '26
Bringing Fuzzy Logic Control to Home Assistant: Core Architecture and Implemenetation
Hi r/fuzzylogic,
Home automation systems are one of the most natural real-world applications for fuzzy control, yet mainstream smart home platforms (like Home Assistant) still rely almost entirely on binary thresholds, PID controllers, or custom scripting.
To bridge this gap, I’ve built a full fuzzy inference engine for Home Assistant and just submitted a formal proposal to have it integrated into Home Assistant Core as a built-in helper:
👉 **[Home Assistant Architecture Discussion #1504: Built-in Fuzzy Logic Controller Helper](https://github.com/home-assistant/architecture/discussions/1504)**
### What Was Built
The integration brings declarative linguistic control to smart home entities:
- **Inference Engines**: Both Mamdani and Sugeno (zero-order and first-order).
- **Membership Functions**: Standard Triangular (`trimf`), Trapezoidal (`trapmf`), Gaussian (`gaussmf`), Sigmoidal (`sigmf`), and Generalized Bell (`gbellmf`).
- **Linguistic Hedges**: Support for concentration/dilation modifiers (`very`, `extremely`, `somewhat`, `slightly`, `not`) evaluated both inline in rules and on term definitions.
- **Defuzzification Algorithms**: Centroid (COG), Bisector (BOA), Mean of Maxima (MOM), SOM, LOM, Center of Sums (COS), and Weighted Average.
- **Full Observability**: Exposes real-time rule firing strengths ($\alpha$-cuts), term memberships, and universe distributions directly to the Home Assistant dashboard for live diagnostics.
- **Optimized for Embedded/IoT**: Pre-compiles DNF rule condition trees, membership function closures, and defuzzification dispatch tables on initialization for $O(1)$ evaluation on low-power devices (Raspberry Pi, ODROID, home servers).
### Core Problem Solved
In smart homes, controlling non-linear multi-input processes—such as HVAC fan modulation (indoor temp + outdoor delta + relative humidity), excess solar power diversion, or weather-aware irrigation—typically causes threshold "hunting" or requires complex PID tuning that fails due to large thermal lags. Fuzzy inference handles these naturally with simple, human-readable rules.
### Source Code
The working implementation and unit test suite are open source on GitHub:
🔗 **[dougransom/fuzzy_system](https://github.com/dougransom/fuzzy_system)**
### Call to Action
As fuzzy logic practitioners, your insights on rule formulation, inference models, and real-world control applications would be invaluable for this proposal.
Please check out the discussion on GitHub and add your perspective on how fuzzy systems can best serve smart home automation:
👉 **[Comment on Home Assistant Architecture Discussion #1504](https://github.com/home-assistant/architecture/discussions/1504)**
r/fuzzylogic • u/ManuelRodriguez331 • May 24 '26
Obituary for Siegfried Gottwald
He was a professor at the University Leipzig, Germany and died unexpectedly in 2015 with only 72 years. He wrote more than 150 scientific papers with a focus on multi value logic and fuzzy logic. He left 3 children.
r/fuzzylogic • u/ManuelRodriguez331 • Apr 18 '26
History of Fuzzy logic in Germany
The fuzzy boom in Japan after the year 1990 is commonly recognized as the starting point in mainstream adoption of Fuzzy logic for practical application. A seldom mentioned much earlier project was done in Germany in the year 1987: Vitra (Visual translator) was based on Fuzzy logic to convert camera signals of traffic scenes into textual description. Typical words used in the Vitra software were: near, far, left, right which are describing relations and proximity.
r/fuzzylogic • u/ManuelRodriguez331 • Mar 10 '26
Introduction into scikit-fuzzy
Even i'm not the author of the library, i can give a short overview about the project. The software library is located within the python ecosystem and is known under two different names: scikit-fuzzy and skfuzzy. It can be installed with the normal pip installer and depends on external libraries like Matplotlib, NumPy and other. The syntax for the rule parser is a bit complicated but can be mastered with little amount of effort. Here is an example.
rule="IF the obstacle is Near AND the speed is Fast, THEN the brake pressure is High." written in skfuzzy:
from skfuzzy import control as ctrl
obstacle = ctrl.Anticedent(np.arange(0, 11, 1), 'obstacle')
speed = ctrl.Anticedent(np.arange(0, 11, 1), 'speed')
brake = ctrl.Consequent(np.arange(0, 11, 1), 'brake')
rule1 = ctrl.Rule(obstacle['near'] & speed['fast'], brake['high'])The library was released in 2013 and has endless amount of functions for c-means clustering, interval subtraction and different membership functions like triangular, gaussian and of course trapezoidal.
r/fuzzylogic • u/Far-Act-8928 • May 18 '24
Fuzzy logic crate
Hey guys. Recently i have been developing a fuzzy logic crate. It's has been a great journey and I learned a lot. As of now I have implemented Both Mamdani and TSK inference systems. I have a road map in mind and want to improve it continuously. You can check it out from links below. My next step is to add type 2 fuzzy systems. I am currently styding Mechatronics Engineering for my masters degree so I need your help to point out my mistakes and help me improve it. Thank you guys
r/fuzzylogic • u/kinow • May 01 '24
FuzzyCLIPS - a fuzzy logic extension of the CLIPS expert system shell from NASA
en.m.wikipedia.orgr/fuzzylogic • u/[deleted] • Apr 19 '22
Computational Intelligence
There're real-life problems that include complexity and uncertainty; and mostly they lack a proper definition. Thereby, it isn't easy to deal with them by using traditional computing methods; and there should be another way.
I just published, please check:
https://medium.com/@fatih.gokmenoglu/computational-intelligence-e58ea0675f1
r/fuzzylogic • u/Carthodon • Jul 12 '21
Question about Fuzzy Composition
So I've been learning about fuzzy logic on my own time, and a question I had was on when to use fuzzy max product as opposed to fuzzy max min. I know how to compute these things but given this is the composition of two relations, if both of these methods are "composition" then why do I get two different answers? Thank you for your time.
r/fuzzylogic • u/LeEpicPotherb • Mar 24 '21
What is fuzzy knowlage base?
Hello,
I have to create presentation to explain idea of fuzzy knowledge base. I already took a closer look at Knowlage Base, Knowlage-based Systems and Fuzzy Logic. Now I cannot find single articale about fuzzy knowlage base. Can someone explain the idea or bring some articles that can explain it?
Thanks for help in advance,
David
r/fuzzylogic • u/ManuelRodriguez331 • Mar 09 '21
Fuzzy system with 2 input variables and 2 rules is able to stabilize a single wheeled robot
r/fuzzylogic • u/ManuelRodriguez331 • Dec 17 '20
Can a membership function represent a trajectory?
A trajectory is given for example [0.2,0.5,0.3,0.7]. The goal is to convert the spline into a fuzzy membership function. A first experiment has shown, that the task is a bit complicated. Because the normal Fuzzy membership function contains of trapezoid shape which is different from the wanted trajectory. Additionally, the trajectory needs to be matched exactly, but the amount of parameters in a trapezoid is low.
Perhaps it is possible to combine more than a single Fuzzy value into an aggregated membership function but it is unclear, if this makes sense. Is the problem known, or is it a typical beginner question which ignores what Fuzzy logic is about?
r/fuzzylogic • u/ManuelRodriguez331 • Nov 28 '20
Why is the AND operation realized with a min function?
In a Fuzzy inference system there is a common use case, in which the value of different variables is combined. The logical AND operation is one option in doing so. A typical assumption how to realize such operation would be the average function. If the values are: (0.8, 0.6, 1.0) the average is 0.8
The surprising fact is, that the AND symbol in the context of Fuzzy logic is defined different. Here is the idea, that AND is equal to the min() function and the resulting value is 0.6 because it is the lowest value in the list.
Why is the AND operation realized with min() and not with the average function?
r/fuzzylogic • u/RR_28023 • Oct 28 '20
Best Python library to implement fuzzy logic models. In particular, to perform fuzzy clustering.
Hi.
I have some experience with Machine Learning and I'm familiar with scikit-learn, tensorflow, etc. I'm starting to learn about fuzzy logic and I was wondering what is the best library (in terms of usability, dev. community, etc) out there to play with it in Python.
Thanks!
r/fuzzylogic • u/malouche1 • Sep 22 '20