← Latest papers
💻 computer science

Comparative Evaluation of Machine Learning and Deep Learning Models for Targeted Metaphor Detection

This paper evaluates various machine learning and deep learning models for targeted metaphor detection on a dataset of seven target words, finding that a hybrid LDA-Sentence-BERT-Random Forest approach outperforms other methods, including a consensus ensemble, by achieving 84% accuracy through the effective combination of contextual sentence embeddings and topic-level information.

Original authors: Muhammad Hassam Aslam Khan, Ninad Deshpande

Published 2026-08-04
📖 4 min read☕ Coffee break read

Original authors: Muhammad Hassam Aslam Khan, Ninad Deshpande

Original paper licensed under CC BY 4.0 (https://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 are trying to teach a robot to understand human jokes, poetry, or even just the way we talk about our feelings. Humans are tricky; we often say things that aren't literally true but mean something deeper. If you tell a friend, "I'm feeling a bit down," you aren't talking about gravity or a hole in the ground; you're talking about sadness. This is called a metaphor, a way of using words to paint a picture with meaning that goes beyond their dictionary definition. For computers, this is a massive headache. A computer usually just looks at words like "road" or "light" and thinks of asphalt or a lamp. It struggles to know when "road" means a literal path and when it means "the journey of life." This is the world of Natural Language Processing (NLP), a branch of computer science dedicated to teaching machines to read and understand us. The big question researchers are asking is: How do we build a computer that doesn't just read the words, but actually gets the vibe?

This paper is like a giant science fair where researchers set up a series of different "detective teams" to solve a specific mystery: Is a specific word being used as a metaphor or just literally? They picked seven common words—road, candle, light, spice, ride, train, and boat—and gave their detective teams a massive pile of sentences (1,870 for practice and 800 for the final test) to figure out if those words were being used in their normal sense or in a figurative one.

The researchers didn't just use one type of detective; they tried out several different "brains" to see which one was the sharpest. Some were simple and old-school, like Logistic Regression, which is like a detective who looks at how often certain words appear together and makes a quick guess based on patterns. Others were high-tech and deep, like LSTMs and BERT, which are fancy neural networks designed to remember long conversations and understand the deep context of a sentence, kind of like a detective who reads the whole book before solving the crime. They also tried a hybrid team that mixed a topic-finder (LDA) with a super-smart sentence analyzer (SBERT) and a decision-maker (Random Forest). Finally, they tried a consensus model, which is like asking all the detectives to vote on the answer and going with whatever the majority says.

After running the numbers, the results were clear. The hybrid team (LDA-SBERT-Random Forest) was the star of the show. It got the answer right 84% of the time and had a weighted F1-score (a fancy way of measuring how balanced and accurate the guesses were) of 0.82. This suggests that mixing a "big picture" view of the text's topics with a deep understanding of sentence meaning works really well, especially when you don't have a huge amount of data to train on.

The simple Logistic Regression detective did a pretty good job too, hitting 80% accuracy. The consensus model, where everyone voted, got 82% accuracy. This is interesting because it shows that while getting a group of detectives to agree makes the predictions more balanced, it didn't actually beat the single best detective. In fact, some of the high-tech deep learning models, like the LSTM with a custom attention layer, actually struggled, only getting 49% accuracy—basically guessing at random. The LSTM with BERT did better at 73%, but still couldn't top the hybrid team.

The main takeaway here isn't that the most complex machine learning model always wins. Instead, the paper suggests that for this specific task of spotting metaphors in a small dataset, a clever mix of different tools—combining topic analysis with deep sentence embeddings—is the most effective strategy. The "voting" system helped smooth things out but didn't create a magic super-detective. It turns out that sometimes, the best way to understand a metaphor isn't just to look deeper, but to look at the story from a few different angles at once.

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 →