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.
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)
Updated on Aug 22, 2018 07:38 AM IST
Copy Link
Hindustan Times, Mumbai | By

“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.

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.

“Using only a negative statement to express opinion about a bad service is not as intense or hurtful as a sarcastic statement.”

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.

SHARE THIS ARTICLE ON
  • ABOUT THE AUTHOR

    Snehal Fernandes is senior assistant editor at Hindustan Times, Mumbai. She writes on science and technology, environment, sustainable development, climate change, and nuclear energy. In 2012, she was awarded ‘The Press Club Award for Excellence in Journalism’ (Political category) for reports on Goa mining scam. Prior to HT, she wrote on education and transport at the Indian Express.

Close Story
QUICKREADS

Less time to read?

Try Quickreads

  • Preliminary findings by police stated that the crane used to ferry construction materials malfunctioned. (Representative image)

    Four killed after tower crane collapse in Navi Mumbai, 2 others critical

    In a tragic incident, four persons including two labourers, one crane operator and a car driver, died due to a crane accident Navi Mumbai on Tuesday evening. They working at an under construction site of City and Industrial Development Corporation's Taloja phase 2 project in Navi Mumbai The accident occurred after the tower crane used to transport construction materials atop Taloja collapsed from the 14th floor and landed on them.

  • NIA spokesman in a statement said that on Monday the NIA arrested two accused Tanveer Ahmad Wani of Achagoza, Rajpora, Pulwama and Peer Arshad Iqbal, alias Ashu of Khwaja Bagh, Baramulla in Jammu and Kashmir. (HT Photo/ Representational image)

    NIA arrests two from Jammu and Kashmir for cross-LoC trade, terror funding

    The NIA has arrested two accused in Jammu & Kashmir in the cross-LoC trade and terror funding case. Earlier, the NIA had conducted multiple raids across the Valley in the terror-funding case. NIA spokesman in a statement said that on Monday the NIA arrested two accused Tanveer Ahmad Wani of Achagoza, Rajpora, Pulwama and Peer Arshad Iqbal, alias Ashu of Khwaja Bagh, Baramulla.

  • Three-tier security will be in place for the entire Amarnath Yatra route, including the mountains in the south and central Kashmir. (HT File Photo)

    Three-tier security in place across Jammu and Kashmir for Amarnath Yatra

    With a day left for the start of the Amarnath Yatra, high-level security is in place across Jammu and Kashmir, especially in Kashmir valley, where foolproof security arrangements have been made for the peaceful conduct of the yatra, which is taking place after two years. Three-tier security will be in place for the entire yatra route, including the mountains in the south and central Kashmir.

  • The police have announced a suitable reward for clues leading to the arrest of LeT commander Talib Shah, the brain behind recent terror activities, in Jammu and Kashmir’s Rajouri and Poonch districts. (PTI File Photo)

    LeT behind blasts in Jammu and Kashmir’s Rajouri, 2 operatives arrested

    Ahead of the annual Amarnath pilgrimage, the Jammu and Kashmir Police on Tuesday claimed to have solved recent blasts in Kotranka and Budhal areas of the Rajouri district with the arrest of two Lashkar operatives. The police have launched searches for Talib Shah. “A huge cache of explosive material, including five improvised explosive devices (IEDs), was recovered at the disclosure of the LeT operatives”, additional director general of police (ADGP), Mukesh Singh said.

  • Union minister of state for women and child development Dr Mahendra Munjapara on Tuesday said cash incentives given to pregnant women under the Pradhan Mantri Matritva Vandana Yojana will now be given in two instalments instead of three. (Representative Image/HT File)

    Now, cash incentives to pregnant women to be given in 2 instalments:Union minister

    Union minister of state for women and child development Dr Mahendra Munjapara on Tuesday said cash incentives given to pregnant women under the Pradhan Mantri Matritva Vandana Yojana will now be given in two instalments instead of three, and women will also be given a cash incentive of 6,000 on the birth of a second girl child.

SHARE
Story Saved
×
Saved Articles
Following
My Reads
Sign out
New Delhi 0C
Wednesday, June 29, 2022