← Latest papers
🤖 machine learning

LLM for the development of FCM

This paper demonstrates that a local large language model (Qwen2.5-32B) can extract quantitative data from unfiltered TripAdvisor hotel reviews to construct and validate a data-driven Fuzzy Cognitive Map that effectively correlates reviewer preferences with star ratings.

Original authors: Alexis Kafantaris

Published 2026-07-10
📖 5 min read🧠 Deep dive

Original authors: Alexis Kafantaris

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a giant, chatty robot brain living on your own computer. This robot, named Qwen2.5-32B, is like a super-smart detective that can read thousands of hotel reviews and figure out exactly what makes a traveler happy. The paper by Alexis Kafantaris shows us how this local robot detective can build a "Fuzzy Cognitive Map" (FCM), which is basically a digital spiderweb of cause-and-effect that explains why people give hotels good or bad stars.

The Detective's Mission: Turning Words into Numbers

Usually, to understand hotel reviews, you might try to count words or guess the mood. But this paper suggests a smarter way: let the robot read the text and pull out specific numbers, like a score for "Staff," "Breakfast," or "Noise."

Think of it like a chef tasting a soup. Instead of just saying "it's good," the robot tastes it and says, "The salt is +0.6, the pepper is -0.1, and the broth is +0.7." The robot did this for 1,505 Greek hotel reviews from TripAdvisor. It turned messy, chatty text into a neat table of numbers.

Building the Spiderweb (The FCM)

Once the robot had the numbers, the researchers built the Fuzzy Cognitive Map. Imagine a spiderweb where the center is the "Satisfaction" of the guest. Tied to this center are nine different strands, each representing a hotel feature like Staff, Value, Comfort, or Location.

The researchers taught the spiderweb how strong each strand is using a mathematical trick called gradient descent. It's like a hiker trying to find the bottom of a valley by taking small steps downhill; the hiker keeps adjusting the path until they find the perfect spot where the error is smallest. In this case, the "hiker" adjusted the strength of the connections between the features (like Staff) and the final feeling (Satisfaction) until the model could accurately predict how happy a guest would be.

What the Spiderweb Revealed

The results were surprisingly clear. The robot found that for Greek reviewers, the two strongest strands holding up the "Satisfaction" center were Staff and Value.

  • Staff had a weight of +0.65.
  • Value had a weight of +0.56.
  • Comfort and Amenities were also important, but Check-in and Cleanliness were surprisingly weak links, contributing very little once the other factors were considered.

The paper explicitly rules out the idea that smaller robot brains (like the 0.5B or 7B versions) could do this job. The authors found that smaller models were "hallucinating" (making things up) or getting the signs wrong (saying something was good when it was bad). Only the bigger, smarter Qwen2.5-32B model could extract the data correctly. They also tried a tool called VADER (a standard sentiment analyzer), but it failed miserably because it couldn't handle mixed feelings or specific categories in hotel reviews.

Is the Spiderweb Real? (The Proof)

How do we know this isn't just a lucky guess? The researchers ran a series of tests:

  1. The "What If" Test: They shuffled the answers around randomly 200 times. When they did this, the model failed completely (getting a score of -0.324). This proves the model learned real patterns, not just noise.
  2. The "Star Rating" Test: Here is the coolest part. The robot never saw the star ratings (1 to 5 stars) during its training. It only saw the text and the extracted numbers. Later, the researchers compared the robot's predicted "Satisfaction" score against the actual star ratings the hotels received.
    • For hotels with at least 10 reviews, the robot's prediction matched the star rating with a correlation of +0.807.
    • This suggests that if the robot thinks a guest is satisfied based on the text, that guest is very likely to give the hotel a high star rating.

The Limits of the Magic

The paper is careful not to call this a perfect, solved problem.

  • It's not the strongest predictor: If you just want the highest possible score for predicting a number, other tools like XGBoost or Random Forest actually did better (scoring +0.856 vs. the FCM's +0.782).
  • The Trade-off: The reason to use this FCM spiderweb isn't raw power; it's clarity. You can look at the web and see exactly why the robot thinks a hotel is good (because of the Staff strand). You can't see inside the "black box" of the other tools.
  • The Cost: Running this local robot brain is expensive and slow. It requires a powerful computer (GPU) and takes hours to process even a few thousand reviews. The authors suggest that while it works, it's not yet a cheap, instant solution for millions of reviews.

The Bottom Line

This paper suggests that a local AI robot can read hotel reviews, turn them into numbers, and build a clear, understandable map of what makes guests happy. It proves that Staff and Value are the kings of Greek hotel satisfaction. While it's not the fastest or most powerful tool in the shed, it offers a unique, transparent view into human feelings that other tools can't provide. The authors conclude that this method works well enough to be useful, but future work needs to find cheaper ways to run it and maybe add more features to the map.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →