---
title: "An LSTM-Based Deep Learning Approach for Detecting"
description: "The authors build a two-stage pipeline for English tweets. 3 references, cited by 2 papers here."
authors: ["Ashraf Kamal", "Muhammad Abulaish"]
year: 2019
venue: "Proceedings of the 16th International Conference on Natural Language Processing"
source: "https://aclanthology.org/2019.icon-1.24/"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/kamal-2019-lstm-based-deep-learning-approach/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/kamal-2019-lstm-based-deep-learning-approach/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/page/7/) / An LSTM-Based Deep Learning Approach for Detecting Self-Deprecating Sarcasm in Textual Data

# An LSTM-Based Deep Learning Approach for Detecting Self-Deprecating Sarcasm in Textual Data

**Authors:** Ashraf Kamal and Muhammad Abulaish · **Year:** 2019 · **Venue:** [Proceedings of the 16th International Conference on Natural Language Processing](https://md.research.elamur.ai/free/en/venues/icon/) ([International Conference on Natural Language Processing 2019](https://md.research.elamur.ai/free/en/venues/icon/2019/)) · **Publisher:** [NLP Association of India](https://md.research.elamur.ai/free/en/publishers/nlp-association-of-india/) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/2019.icon-1.24/) · [PDF](https://aclanthology.org/2019.icon-1.24.pdf)

**Citations:** [2](https://md.research.elamur.ai/free/en/papers/kamal-2019-lstm-based-deep-learning-approach/cited-by/) in our library, of the 141,840 papers whose bibliographies we read

## Summary
The paper addresses a narrow kind of sarcasm in which authors mock themselves, often with exaggerated claims of their own worthlessness. Brands increasingly use this style in marketing. The authors build a two-stage pipeline for English tweets. First, a filter keeps only tweets in which writers refer to themselves. Hand-written regular expressions catch explicit cases. Those explicit tweets are then clustered by shared tri-grams using Jaccard similarity, and each cluster's most frequent tri-gram becomes a pattern for finding implicit self-referential tweets. Second, the surviving tweets are mapped to pre-trained GloVe vectors and classified by an LSTM. Evaluation covers two benchmark corpora, Ptácek et al. (2014) and SemEval-2015, which were re-crawled from their tweet IDs, plus a new hashtag-based set called Twitter-280. Each corpus is tested in balanced and unbalanced versions. F-scores range from about 0.83 to 0.93. The LSTM generally beats the authors' earlier rule-plus-ML system. The authors present this as the first deep-learning treatment of self-deprecating sarcasm.

## Key points
- Data: Ptácek et al. (2014) and SemEval-2015 were rebuilt from released tweet IDs, and some tweets could no longer be retrieved. Twitter-280 was collected from 1 April to 19 May 2019 via "#sarcasm", with non-sarcastic tweets gathered through #not and #hate.
- The explicit self-reference filter has two kinds of regex patterns:
  - specific ones, such as "(i | my) … love" or "when (my | our)";
  - generic ones, triggered by first-person singular or plural pronouns.
- Classifier: GloVe embeddings feed an LSTM with dropout of 0.4 after the LSTM layer, trained for 40 epochs.
- Results (P / R / F1):
  - Ptácek balanced: 0.93 / 0.94 / 0.93.
  - SemEval-2015 unbalanced: 0.93 / 0.75 / 0.83.
  - Twitter-280: F1 of 0.93 on the balanced version and 0.88 on the unbalanced one.
- Comparison with Abulaish and Kamal (2018): the LSTM wins on most settings, but the older method keeps a slight edge in precision and F-score on Ptácek.

## Interesting ideas
- A cheap pre-filter narrows the input to a relevant subpopulation before the expensive classifier runs, so the model only sees texts where the target phenomenon can plausibly occur.
- Patterns are bootstrapped from high-confidence seeds: explicit matches are clustered, a recurring n-gram is mined from each cluster, and that n-gram is reused to catch implicit cases.
- Self-reference is treated as a precondition of the phenomenon, so the question "who is the target of the remark" is answered separately from "is it sarcastic".
- Every corpus is reported in both a balanced and an unbalanced version, which shows how recall drops when the target class is rare (SemEval recall falls to 0.75).

## For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

- **I1** (frames): The irony detector in prag could first require an experiencer or agent that corefers with the speaker, and only then test for evaluative mismatch.
- **I2** (learn): Self-induced repair rules could be grown the same way, by clustering confident witness-agreed cases and extracting a shared pattern to apply to uncertain sentences.
- **I3** (frames): Speaker-targeted irony could be modelled by checking whether the semantic-role holder of a positive emotion verb ("love", "enjoy") is the speaker, rather than by first-person regexes.
- **I4** (learn): Evaluation of rare pragmatic labels such as irony or implicature could routinely include a skewed-distribution split, so that inflated balanced-set scores are exposed.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

📚 Shelves (2): [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 9,296 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 9,206 works

🧭 Topics (2): [English](https://md.research.elamur.ai/free/en/topics/english/) · 1,373 works · [😊 Sentiment & emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) · 608 works

## Cite

Cite as: Ashraf Kamal and Muhammad Abulaish. 2019. An LSTM-Based Deep Learning Approach for Detecting Self-Deprecating Sarcasm in Textual Data. Proceedings of the 16th International Conference on Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{kamal2019lstm,
  title = {{An LSTM-Based Deep Learning Approach for Detecting Self-Deprecating Sarcasm in Textual Data}},
  author = {Ashraf Kamal and Muhammad Abulaish},
  booktitle = {Proceedings of the 16th International Conference on Natural Language Processing},
  year = {2019},
  url = {https://aclanthology.org/2019.icon-1.24/}
}
```

- [← previous A Partially Rule-Based Approach to AMR Generation](https://md.research.elamur.ai/free/en/papers/manning-2019-partially-rule-based-approach-amr/)
- [next → Automatic Propbank Generation for Turkish](https://md.research.elamur.ai/free/en/papers/ak-2019-automatic-propbank-generation-turkish/)
- [↑ back to papers of 2019](https://md.research.elamur.ai/free/en/papers/2019/page/7/)

## References

3 references, 1 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Muhammad Abulaish and Ashraf Kamal. 2018. Self-deprecating sarcasm detection: An amalgamation of rule-based and machine learning approach. In Proceedings of the International Conference on Web Intelligence (IEEE/WIC/ACM), Santiago, Chile, pages 574–579. IEEE. [find](https://scholar.google.com/scholar?q=Muhammad+Abulaish+and+Ashraf+Kamal%2E+2018%2E+Self%2Ddeprecating+sarcasm+detection%3A+An+amalgamation+of+rule%2Dbased+and+machine+learning+approach%2E+In+Proceedings+of+the+International+Conference+on+Web+Intelli)
2. Silvio Amir, Byron C. Wallace, Hao Lyu, Paula Carvalho, and Mário J. Silva. 2016. [Modelling context with user embeddings for sarcasm detection in social media](https://md.research.elamur.ai/free/en/papers/amir-2016-modelling-context-user-embeddings-sarcasm/). In Proceedings of the 20th Special Interest Group on Natural Language Learning Conference on Computational Natural Language Learning((SIGNLL-CoNLL), Berlin, Germany, pages 167–177. Association for Computational Linguistics.
3. Conclusion and Future Work David Bamman and Noah A. Smith. 2015. Contextualized sarcasm detection on twitter. In Proceedings of the 9th International Association for the Advancement of Artificial Intelligence Conference on Web and Social Media (ICWSM), Oxford, UK, pages 574–577. Citeseer. [find](https://scholar.google.com/scholar?q=Conclusion+and+Future+Work+David+Bamman+and+Noah+A%2E+Smith%2E+2015%2E+Contextualized+sarcasm+detection+on+twitter%2E+In+Proceedings+of+the+9th+International+Association+for+the+Advancement+of+Artificial+Inte)

*Updated 24 October 2026*
