...
...
Next Story

Don’t get sarcasm? This bot trained by IIT-B researchers could help you

Researchers at the Indian Institute of Technology-Bombay have used different machine learning techniques (artificial intelligence) to detect sarcasm in texts on various social media platforms such as Twitter, Facebook and blogs.

Updated on: Aug 22, 2018, 07:38:33 IST
Hindustan Times, Mumbai | By
Prefer HTon Google
Advertisement

“Excellent service”, an Indian flier posted recently on the Twitter handle of an airline that had sent her luggage to a different city. “Thank you for flying with us,” the airline responded promptly.

About 10-15% texts on social media pertaining to food, movies or political parties are sarcastic, and 50% currently used algorithms are unable to detect them. The team has developed a programme to generate sarcastic texts for chatbots. (Getty Images/Picture for representation)
About 10-15% texts on social media pertaining to food, movies or political parties are sarcastic, and 50% currently used algorithms are unable to detect them. The team has developed a programme to generate sarcastic texts for chatbots. (Getty Images/Picture for representation)

Sarcasm has become a popular tool of ridicule on social media, but the algorithms that analyse or respond to users are still not equipped to understand it. Researchers at the Indian Institute of Technology - Bombay (IIT-B) found that 11% of the content shared in the short text space — on platforms such as Twitter and Facebook — is sarcastic, and, while there are algorithms that help social media managers detect sentiments in texts, ordinary programs fail to detect sarcasm 50% of the time.

To catch this glitch, IIT-B and IITB-Monash University researchers are training artificial intelligence to detect and generate sarcastic comments.

“Sarcasm is an attack in disguise,” said Pushpak Bhattacharyya, a professor at the institute’s computer science and engineering department.

Sarcasm comprises both positive and negative words, the researchers said.

For instance, ‘I love being ignored’, or, ‘my phone has an awesome battery life of two hours’.

So, Bhattacharyya, his student Aditya Joshi decided to base their research, and train their algorithm on a computational linguistic theory called incongruity or incompatibility.

“The idea is, that a text is considered sarcastic when there is an incompatibility involved, and when there is an intention to ridicule,” said Joshi, whose PhD thesis on the subject was published as a book by Springer Nature Singapore.

“Our computer programmes become a plug-in for sentimental analysts to get the right sentiment.”

The team has been developing the programme for years.

The open-source algorithm has been shared and downloaded at least a 100 times till now, they said.

For almost a decade, brand reputation and market survey companies have been using sentiment analysis to find out what people think of their products and services — from food and movies, to reactions on a political speech. But, with more and more people across age groups taking to the web and social media to express opinions and criticise, researchers said door-to-door surveys are being replaced by analysing what’s appearing on social media. Computer programmes are able to detect those that are positive and negative. Sarcasm is difficult to catch, though.

“It is a challenging form of sentiment,” said Joshi, who received his PhD degree for his work on computational sarcasm this month.

“By definition, while sarcasm means ridiculing or mocking someone, it often has positive words. Since sarcasm is known to be a difficult problem for the sentimental analysis industry, we thought detecting and generating sarcasm will be useful.”

Studies by the International Institute of Informational Technology – Hyderabad (IIIT-H) also found the proportion of non-literal expressions, such as sarcasm, wit, humour and irony, can vary from 0.25% to 40% of the total user generated text on social media, and especially higher on Twitter.

“When users generate content on social media, there is a lot of creativity. It is always difficult to detect sarcasm because the meaning of the expression is not the sum of the individual meanings of the words,” said Vasudeva Varma, professor and dean (research), IIIT-H, who was not involved in the research work. “Computer algorithms find it hard to detect the anomaly in the juxtaposition of the words.”

Varma, who also heads the Search and Information Extraction Lab at the institute added, “In social media, computer programs must have the ability to detect sarcasm and other non-literal expressions to find out opinions and sentiments of people.”

The IIT-B team has also worked on another aspect of the program that enables chatbots to generate sarcastic comments.

A chatbot is a computer programme that conducts a conversation via audio or text.

“Fifty years ago, humans wanted to move from papers to computers. Now, through artificial intelligence, we are trying to bring human qualities in computers. And, sarcasm generation is a step in that direction,” said Joshi.

 
ABOUT THE AUTHOR
Snehal Fernandes

Snehal Fernandes is senior associate editor, who joined HT in 2006. She heads the Mumbai edition’s city reporting team that writes on civic and urban governance, transport and infrastructure, health, and education. She is also the National Science Editor. With a career spanning more than two decades, her expertise lies in writing on science and technology, space, environment, sustainable development, climate change, and nuclear energy. Her work consistently breaks down, and without oversimplyfying, science and research developments into an easy read for a broad audience. In 2009, she was among the very first journalist to report on the opposition to the Jaitapur nuclear power plant in Ratnagiri (Konkan) following the Indo- US civil nuclear agreement and consistently followed it with multiple stories from ground zero; wrote about the introduction and subsequent halt to the cultivation of genetically modified (BT) brinjal, and has interviewed Nobel laureates and award winning scientists. In 2012, she was awarded ‘The Press Club Award for Excellence in Journalism’ (Political category) for reports on the mining scam in Goa. Prior to HT, she wrote on education and transport at the Indian Express. She graduated in sociology from St Xavier's College, and firmly believes in the phrase by Karl Marx that ‘Religion is the opium of the people’. When she is not keeping a tab on the going-ons in Mumbai and the scientific world, you'll find her reading world news, or watching crime/espionage series or political dramas. She can repeatedly watch Kill Bill with the same interest as Planet of the Apes and Spiderman. For someone who was not remotely interested in dogs or cats, she loves every bit of her time with her two-year-old Indie cat Bunny.

Catch every big hit, every wicket with Crickit, a one stop destination for Live Scores, Match Stats, Infographics & much more. Explore now!

Stay updated with all the Breaking News and Latest News from Mumbai. Click here for comprehensive coverage of top Cities including Bengaluru, Delhi, Hyderabad, and more across India along with Stay informed on the latest happenings in World News.
Catch every big hit, every wicket with Crickit, a one stop destination for Live Scores, Match Stats, Infographics & much more. Explore now!

Stay updated with all the Breaking News and Latest News from Mumbai. Click here for comprehensive coverage of top Cities including Bengaluru, Delhi, Hyderabad, and more across India along with Stay informed on the latest happenings in World News.
SHARE THIS ARTICLE ON
Notifications

Get breaking alerts directly from the newsroom

Notifications are on!You'll be notified when news breaks