The enduring wisdom of fuzzy logic

May 18, 2020

In an era where we expect our machines to think and act more like us, a quirky branch of computer science is getting a fresh look.

Fuzzy logic, a branch of computer science that dates back to 1965, powers everything from smartphones to cars to washing machines.
Fuzzy logic, a branch of computer science that dates back to 1965, powers everything from smartphones to cars to washing machines. Graphic by Violet Dashi

This article was originally published on May 18, 2020.

The popular representation of computer processes as endless strings of ones and zeros is so enduring, it may be hard to conceive of them any other way. But computers that only think in absolutes 鈥 one and zero, true and false 鈥 have some proven limitations. This is especially the case with vague concepts of human experience and language, of which there are endless examples. The woman is tall. It鈥檚 cold today. The stock market is good right now. 鈥淭all,鈥 鈥渃old,鈥 and 鈥済ood鈥 all express values not of absolutes, but subjective ranges with mushy edges that are still nonetheless distinguishable to most people. After all, when you tell me someone is 鈥渢all,鈥 I know more or less what you mean, even if you haven鈥檛 told me an exact value for the person鈥檚 height.

Fuzzy logic, a branch of computer science that popped into existence with a single less-than-two-page research paper in 1965, is the computer scientist鈥檚 proven tool for capturing this vagueness in our linguistic concepts. To do this, variables aren鈥檛 measured against a binary system of true and false, but a continuous spectrum between true and false. To take one of the above examples, when I say it鈥檚 cold, what I鈥檓 indicating to you is that the temperature is somewhere between two extremes 鈥 really hot and really cold 鈥 and more toward the colder end of the spectrum. Conceived of in this way, computers can model this thinking pretty easily, by simply assigning individual cases numerical values between 0 and 1. In other words, the relevant question with fuzzy logic isn鈥檛 whether something is true or false. It鈥檚 how true or false it is. And because of this, it鈥檚 perfect for modeling human experiences that operate not in the realm of black and white, but shades of gray.

When computers operate according to these fuzzy principles, they can do some pretty cool things. Professor of Electrical and Computer Engineering Adnan Shaout, who鈥檚 been working in fuzzy logic since its initial heyday in the mid-1980s, says 鈥渇uzzy鈥 (for short) first took hold when consumer electronics started incorporating more intelligent sensors. Things like the 鈥減opcorn鈥 button on your microwave, the 鈥渄elicates鈥 setting on your washing machine owe their power to fuzzy logic. Shaout says with technologies like this, sensors are taking continuous readings of the environment and responding with constant adjustments to, say, cooking or drying time and intensity. The result is not only popcorn that鈥檚 not burned and clothes that don鈥檛 get fried, but appliances that are more energy efficient thanks to their optimized processes.

Professor of Electrical and Computer Engineering Adnan Shaout is an expert in fuzzy logic.
Professor of Electrical and Computer Engineering Adnan Shaout is an expert in fuzzy logic.

Despite that initial burst of interest, Shaout says fuzzy fell on hard times by the early 2000s. 鈥淲e got very good at using it in these kinds of applications, but people thought, 鈥榃ell, that鈥檚 it. That鈥檚 the limit.鈥 There simply weren鈥檛 any new advancements in the theory.鈥 But Shaout says attitudes have shifted more recently. On the theoretical side, computer scientists like Shaout are discovering that fuzzy can enhance the power and efficiency of neural networks and deep learning systems. And it continues to be the engine that powers today鈥檚 sensor-dependent consumer devices. Smart thermostats; the image stabilization in our cameras that corrects out-of-focus shots; image processing that can turn a keyword into a list of all the cat photos you have on your phone; and new automatic braking systems in cars all wouldn鈥檛 be possible without fuzzy logic.

In fact, Shaout says our demand for ever-more intuitive technologies that think and act more like us may mean the best days are still ahead for this 鈥渙ld鈥 branch of computer science.

鈥淢y feeling is that fuzzy is coming back even stronger than before,鈥 Shaout says. 鈥淎s humans, our needs are becoming more 鈥榞reedy.鈥 We need more intelligence, more features, more speed, more security. We are demanding more of these intuitive conveniences in our technology all the time, and that鈥檚 where fuzzy will play a large role. It鈥檚 still one of our most powerful tools for mimicking human thinking.鈥