Smarter “Maybes”: How Fuzzy Logic Helps Us Model Real Life

Ever notice how most choices aren’t yes or no? You’re not just “tired” or “awake,” your shower isn’t only “hot” or “cold.” Real life lives in the in-between. Flores-Parra and colleagues present a simple way to model fuzziness, allowing non-experts to build smarter simulations in NetLogo, a free tool that many students already use. Their idea is to plug in fuzzy logic—rules that accept shades of meaning—so digital “agents” make choices more like people do.

Here’s the core idea in plain terms. A fuzzy inference system is a set of everyday IF-THEN rules that turn inputs into decisions. Think: IF the room is “a bit warm” AND my budget is “low,” THEN set the fan to “medium.” In their toolkit, you name your inputs and outputs, define what words like “low,” “medium,” and “high” mean (those are membership functions), write a few rules, and then test the results on real numbers to see the decision the system makes. There are two flavors: Type-1 (great when things are fairly clear) and Type-2 (better when there’s extra uncertainty, like noisy sensors or vague opinions). The toolkit guides you through inputs, outputs, membership functions, rules, and evaluation, so you don’t get overwhelmed by the math.

You can build these rules by hand or let data suggest them. The team shows both paths. In a classic NetLogo voting model, they add a fuzzy rule so that each patch “prefers” blue or green depending on nearby votes—much like a friend is swayed by the vibe of their group, rather than just a strict majority. Then they flip to data-driven mode: using census information from Tijuana, they cluster neighborhoods and auto-generate fuzzy rules that classify agents as Catholic or non-Catholic, then watch how people move if they don’t feel similar to neighbors. The cool part is that the toolkit exports a ready-to-use file you drop into NetLogo, so your agents can start making fuzzy decisions right away.

Why should you care? Because this is how many daily systems actually work. Apps can sort posts by “kind of relevant,” not only “relevant.” A fitness plan can adjust when your sleep is “so-so,” not purely “bad.” City planners can weigh “a little traffic” against “big safety gains.” Flores-Parra et al. point out uses in tech profiles, social and eco systems, health risk, planning, and even prices and markets. If you’re modeling anything—study habits, saving money, a club’s attendance—start with simple fuzzy rules you believe (“IF stress is high AND time is short THEN study in 25-minute sprints”), then, when you have data, let clustering refine those rules. Manual rules are easy to understand; data-mined rules can be truer to life. Mix both, test often, and remember: in real life, “a bit,” “mostly,” and “it depends” are features, not bugs.

Reference:
Flores-Parra, J. M., Castañón-Puga, M., Gaxiola-Pacheco, C., Palafox-Maestre, L. E., Rosales, R., & Tirado-Ramos, A. (2018). A Fuzzy Inference System and Data Mining Toolkit for Agent-Based Simulation in NetLogo. In Computer Science and Engineering Theory and Applications, Studies in Systems, Decision and Control (Vol. 143, pp. 127–149). https://doi.org/10.1007/978-3-319-74060-7_7

Why Flight Cancellations Don’t Have to Wreck Your Day (and What Networks Have to Do with It)

Think of a busy airport like a giant group chat: lots of people, many links, and constant messages. Parra et al. explain that systems like this are “complex” because they’re made of many simple parts that interact all the time—no single boss controls everything, but patterns still appear, a bit like ant colonies working together without a leader. That’s why a few airports seem “popular” hubs with tons of connections, while others are quieter. In a single-layer view of the European air network, some airports have over 100 direct links, so if one of those big hubs fails, the whole trip can fall apart.

Here’s the twist: life isn’t just one layer, and neither are airline routes. You might fly the same city pair with different airlines. A “multilayer” view treats each airline as its own layer. That matters because a problem in one layer (say, Airline A cancels) doesn’t kill the route if Airline B still flies it. Parra et al. show that in this multilayer setup, each layer has fewer connections than the all-in-one map, but that’s actually good for resilience—you can still switch layers to keep moving. In their example, one airline layer had 42 airports and 53 flights (20 of which were also flown by other airlines), and another had 44 airports and 55 flights (25 of which overlapped). Translation: backup options exist.

Now imagine your flight gets canceled. What happens next isn’t just luck—it can be modeled as a simple two-round “offer–counteroffer” chat between a passenger agent and an airline agent. Round one: you propose a fix; the airline accepts or rejects. Round two: the airline counters; you accept or reject. If no one agrees, you end up with a refund (the “conflict deal”). In their tests, many simulated passengers chose “fly tomorrow” over fighting it out, because it avoids the conflict outcome. In one airline layer, the average was about 27, choosing “tomorrow,” and 16 ending in conflict; in another, “tomorrow” averaged 27.6, and conflict 17.4. That sounds familiar: when travel gets messy, the practical win is often a simple reschedule.

So what’s useful for your day-to-day? First, know that big hubs really do matter—more links mean more ways through the system, but also bigger headaches if they go down. Second, check alternatives by airline, not just route; another “layer” might save your trip. Third, when a cancellation occurs, a quick and reasonable counteroffer (such as accepting next-day travel) can often work out better than digging in, because the other side is using a similar playbook and the clock is ticking. Parra et al. even note this approach can be extended to delays and connections later on, which is basically everything you care about when traveling. Understanding the network—and how simple negotiations unfold—helps you stay calm, select smart options quickly, and keep your plans on track.

Reference:
Parra, J., Gaxiola, C., & Castañón-Puga, M. (2018). Multi-layered Network Modeled with MAS and Network Theory. In Computer Science and Engineering Theory and Applications, Studies in Systems, Decision and Control (1st ed.). Springer. https://doi.org/10.1007/978-3-319-74060-7_6

When Your Wi-Fi Argues with Itself (and Wins): How Smart Networks Keep Things Flowing

Imagine a city where traffic lights talk to each other. When one intersection becomes crowded, nearby lights adjust to keep cars moving. Raya et al. describe a network that behaves like that—except the “cars” are your video calls, game updates, and voice messages, and the “traffic lights” are tiny software agents that make quick decisions without waiting for a human. The idea is simple: detect when parts of the network are congested, then negotiate smarter routes so that the most important data gets through first. This self-managing style relies on four habits that every teen can recognize from life: setting yourself up, continually improving, addressing problems early, and protecting yourself. In network terms, these are referred to as self-configuration, self-optimization, self-repair, and self-protection.

To pull this off, the network sees itself as a web of “nodes” (devices) and “links” (connections). Some nodes are social butterflies with numerous connections; others are more reserved. By measuring who’s connected to whom and who sits in the “center” of things, the system spots the best places to send traffic when there’s trouble—think of texting a friend who knows everyone to spread the word fast. These ideas originate from graph theory, but you can visualize them as group chats and mutual connections: the more meaningful connections a node has, the more influence it holds in keeping the conversation moving.

Here’s the everyday win. When a device’s queue starts to overflow—like unread messages piling up—the system flags congestion and triggers a quick “vote” among nearby nodes about where to send each flow next. Flows get simple labels: video, voice, or data, each with a priority. The network then shares bandwidth based on that priority (for example, a higher share for top-priority traffic), so your voice call won’t stutter just because a background download got greedy. Only congested spots initiate this negotiation, and the choices aim to match each neighbor’s preferences and capacity, using straightforward rules such as first-in, first-out lines and a clear threshold for when to act. In short: notice the jam, ask the neighbors, and direct the flow where it will be treated most effectively.

The team built and tested this in a simulator to watch what happens over time. When parts of the network got crowded, the agents stepped in and rerouted traffic according to those priorities. Voice often came out ahead—useful when you care about smooth calls—while video and general data took turns depending on the situation. The big takeaway for daily life: smarter, fairer sharing means fewer glitches during the moments you actually notice, like streaming or chatting, while quieter tasks adapt in the background. It’s like having a friend group that instinctively gives the mic to whoever needs it most, then rotates it back. This approach makes networks more resilient and hands-off, allowing them to keep up with whatever you throw at them—without requiring you to think about it.

Reference:
K. Raya-Díaz, C. Gaxiola-Pacheco, & M. Castañón-Puga. (2018). Agent-Based Model for Self-Management of Network Flows using Negotiation. IEEE LATIN AMERICA TRANSACTIONS, 16(1), 204–209. https://doi.org/10.1109/TLA.2018.8291475

Smart Traffic for the Internet: How Tiny Helpers Can Unclog Your Network

Ever notice how a group chat, a video call, and a file download can make your Wi-Fi feel stuck in traffic? Raya-Díaz and colleagues developed a simple idea to tackle that problem: let small software “helpers” monitor the network and decide, together, which data should be prioritized when things get congested. Their model demonstrates how automating these choices can keep data flowing more smoothly, especially during congestion, and how the network’s structure itself affects performance.

The team relies on a concept called “autonomic” management—essentially a network that operates independently within rules established by a human. They outline five steps to achieve this, ranging from basic monitoring to a fully self-managed system. Their approach is a step toward reaching the top step by utilizing intelligent agents to respond when a node becomes busy. These agents pay attention to where congestion occurs and to which parts of the network are most critical, as identified through simple mathematical analysis of connections and “hub” nodes. In plain terms, if some spots are more central, they get priority because helping them helps everyone. Consider clearing the main hallway first so that every classroom empties more quickly.

When a hotspot appears, their SEHA method (Social Election with Hidden Authorities) runs a mini-vote among nearby agents. Each agent has preferences (such as “voice calls before video before file data,” if that’s the policy), and also a sense of who the “important” neighbors are. The “winning” flow type moves first through the cheapest path, and the agent that helps gets a point; non-preferred flows detour and take a small penalty. It’s like letting an urgent FaceTime call take precedence while a big download waits just a moment. This tiny, fast vote repeats whenever needed, so the system adapts on the fly instead of waiting for a person to click buttons.

Does it work? In simulations using NetLogo, the network remained less congested when SEHA was enabled than when flows were moved at random. Across hundreds of runs with different link costs and layouts, the “smart” version consistently showed fewer clogged nodes and steadier results. For example, in one set of 600 experiments, the SEHA setup averaged about 2.58 congested nodes, compared to about 2.66 with random routing, and it varied less from run to run. That may sound small, but in a busy network, even slight reductions keep calls crisp and streams smooth. The big takeaway is practical: a little local teamwork among simple agents—prioritizing the right traffic, at the right place, at the right moment—can make your everyday apps feel snappier without you lifting a finger.

Reference:
Raya-Díaz, K., Gaxiola-Pacheco, C., Castañón-Puga, M., Palafox, L. E., Castro, J. R., & Flores, D.-L. (2017). Agent-based model for automaticity management of traffic flows across the network. Applied Sciences (Switzerland), 7(9). https://doi.org/10.3390/app7090928

Finding Your Way Indoors: How Your Phone Can Tell Which Room You’re In

GPS is great outside, but it struggles to function effectively inside buildings. Walls block signals, elevators and people move around, and accuracy drops. Castañón-Puga et al. describe a simple idea that works indoors using what most places already have: Wi-Fi. Instead of trying to pin your exact coordinates, the phone figures out which “zone” you’re in—like a specific room in a museum or a corner of a classroom floor—by listening to the strength of nearby Wi-Fi access points. Think of it like a scent trail: your phone “sniffs” the signal from at least three routers and compares that pattern to what it has learned before.

To make this work, someone first collects example readings in each zone. This is called fingerprinting, and it builds a radio map of the place. In open areas where zones are far apart, three access points are usually enough. When zones are close together—such as two rooms side by side—adding a fourth access point helps the phone distinguish between them. Real life is messy, though. Signals bounce off walls, people walk by, and routers get moved. The authors tackle this issue with two tools: a clustering step that groups similar signal patterns, and fuzzy logic, which states, “this looks mostly like Zone 2, but a bit like Zone 1,” providing a more realistic assessment than a hard yes/no. If the app receives unusual readings—perhaps one router drops out—it can disregard those faulty samples and try again, ensuring the final guess remains reliable.

There are two phases. The heavy work is done offline: setting up the routers, walking around to collect Wi-Fi readings, and training the model. After that, the app’s online phase is fast. When you open the app in the building, it listens once, compares the data to the learned patterns, and returns the zone in milliseconds. The team tested this in places where young people actually go—an interactive science museum, a university floor with numerous devices, and a typical house. Even with noise from crowds and gadgets, the zone-by-zone approach achieved high accuracy once the training utilized the optimal number of access points and sufficient sample data.

What about battery life? During everyday use, the quick “where am I?” check is lightweight—far less demanding than streaming video. Most of the power cost is associated with the one-time training walks, which you won’t do as a visitor. That makes zone-level indoor location practical for things you’d actually use: museum guides that change as you step into a new exhibit, campus apps that auto-open the right classroom materials, or smart-home helpers that switch lights and music when you move between rooms. The big takeaway is that you don’t need special hardware to get helpful indoor location. With the Wi-Fi that’s already around you, a handful of example scans, and a model that embraces uncertainty rather than fighting it, your phone can figure out the right room—and do it quickly and quietly in the background.

Reference:
Castañón-Puga, M., Salazar, A., Aguilar, L., Gaxiola-Pacheco, C., & Licea, G. (2015). A Novel Hybrid Intelligent Indoor Location Method for Mobile Devices by Zones Using Wi-Fi Signals. In Sensors (Vol. 15, Issue 12, pp. 30142–30164). https://doi.org/10.3390/s151229791