Emotion Classification in Arabic Poetry using Machine Learning

International Journal of Computer Applications
© 2013 by IJCA Journal
Volume 65 - Number 16
Year of Publication: 2013
Ouais Alsharif
Deema Alshamaa
Nada Ghneim

Ouais Alsharif, Deema Alshamaa and Nada Ghneim. Article: Emotion Classification in Arabic Poetry using Machine Learning. International Journal of Computer Applications 65(16):10-15, March 2013. Full text available. BibTeX

	author = {Ouais Alsharif and Deema Alshamaa and Nada Ghneim},
	title = {Article: Emotion Classification in Arabic Poetry using Machine Learning},
	journal = {International Journal of Computer Applications},
	year = {2013},
	volume = {65},
	number = {16},
	pages = {10-15},
	month = {March},
	note = {Full text available}


In recent years, work on sentiment analysis and automatic text classification in Arabic has seen some progress. However, the problem of emotion classification remains widely under-researched. This work attempts to remedy the situation by considering the problem of classifying documents by their overall sentiment into four affect categories that are present in Arabic poetry- Retha, Ghazal, Fakhr and Heja. This work begins by building an emotional annotated Arabic poetry corpus. The impact of different levels of language preprocessing settings, feature vector dimensions and machine learning algorithms is, then, investigated and evaluated on the emotion classi?cation task.


  • C. I. Nass, J. S. Stener, E. Tanber, "Computers are social actors," in Proc. of the SIGCHI conference on Human factors in computing systems: celebrating interdependence, Boston, MA, April, 1994, pp. 72-78.
  • J. Bates. (1997, July). The Role of Emotion in Believable Agents. Communications of the ACM [online]. 37(7), pp. 122-125. Available: http://dl. acm. org/citation. cfm?id=176803.
  • R. W. Picard, Affective Computing, Cambridge, MA: MIT Press, 1997.
  • T. S. Polzin, A. Waibel, "Emotion-Sensitive Human-Computer Interfaces," presented at the ISCA Workshop on Speech and Emotion, Northern Ireland, 2000.
  • R. Fernandez, "A Computational Model for the Automatic Recognition of Affect in Speech," Ph. D. thesis, MIT Media Arts and Science, MIT, Cambridge, MA, 2004.
  • J. Riseberg, J. Klein, R. Fernandez, R. W. Picard, "Frustrating the User on Purpose: Using Biosignals in a Pilot Study to Detect the User's Emotional State," CHI late-breaking, March 1998.
  • G. Mishne, "Experiments with Mood Classification in Blog Posts," in Proc. of the 1st Workshop on Stylistic Analysis of Text for Information Access, Salvador, Bahia, Brazil, 2005.
  • L. Holzman, W. Pottenger, "Classification of emotions in internet chat: An application of machine learning using speech phonemes," Comp. Sc. Eng. , Lehigh Uni. , Jackson, NJ, LU-CSE-03-002, 2003.
  • F. Keshtkar, D. Inkpen. "Using Sentiment Orientation Features for Mood Classification in Blog Corpus," IEEE International Conference on Natural Language Processing and Knowledge Eng. , Dalian, China, Sep. , 2009.
  • H. Liu, H. Lieberman, T. Selker, "A Model of Textual Affect Sensing using Real-World Knowledge," in Proc. of the Seventh International Conference on Intelligent User Interfaces, Miami Beach, Florida, 2003 , pp. 125-132.
  • A. C. Boucouvalas, X. Zhe, "Real Time Text-To-Emotion Engine for Expressive Internet Communications," presented at 8th International Symposium on Communication Systems, Networks & Digital Signal Processing, Pozna? , Poland, 2002.
  • S. Al-Harbi, A. Almuhareb, A. Al-Thubaity, M. S. Khorsheed, A. Al-Rajeh, "Automatic Arabic Text Classification," presented at the 9th International Conference on the Statistical Analysis of Textual Data, Lyon, France, 2008.
  • A. Abbasi, H. Chen, A. Salem. (June, 2008). Sentiment analysis in multiple languages: Feature selection for opinion classi?cation in web forums. [online]. ACM Trans. Inf. Syst. 26(3). Available: http://dl. acm. org/citation. cfm?id=1361685&dl=ACM&coll=DL&CFID=84879471&CFTOKEN=15130439.
  • M. A. Mageed, M. T. Diab, M. Korayem, "Subjectivity and Sentiment Analysis of Modern Standard Arabic," presented at the 49th Annual Meeting on Association for Computational Linguistics. Portland, Oregon, USA, June, 2011.
  • A. Ortony, G. L. Clore, A. Collins, The cognitive structure of emotions, New York: Cambridge University Press. 1988.
  • C. Elliott, "The Affective Reasoner: A Process Model of Emotions in a Multi-agent System," Ph. D. thesis, Inst. Learning Sciences, Northwestern Univ. ,Tech. Rep. 32, 1992.
  • M. G. Dyer. (1987). Emotions and Their Computations: Three Computer Models. Cognition and Emotion. 1(3), 323-347.
  • Y. Jung, H. Park, and S. Myaeng, "A hybrid mood classi?cation approach for blog text," in proc. of the 9th Pacific Rim international conference on Artificial intelligence, Berlin, Germany, 2006, pp. 1099–1103.
  • O. Alsharif, D. Alshamaa, J. Darrous. N. ghneim "Opinion Mining", Internalreport, (in Arabic), Artificial Intelligence Department, Information Technology Engineering Faculty, Damascus University, Syria, 2011.
  • Alkhalil Morphological Parser. Internet: http://alkhalil. sourceforge. net/ Jan. 10, 2012 [Jan. 10, 2012]
  • ShereenKhoja. "Khoja Arabic Stemmer". Internet: http://zeus. cs. pacificu. edu/shereen/research. htm. Aug. 16th, 2010 [Jan. 10, 2012].
  • B. Pang, L. Lee, S. Vaithyanathan, "Thumbs up? Sentiment Classification using Machine Learning Techniques," in the Conference on Empirical Methods in Natural Language Processing, PA,2002, pp. 79-86.
  • D. D. Lewis, "Naive (Bayes) at forty: The Independence Assumption in Information Retrieval," in Proc. of the European Conference on Machine Learning, 1998, pp. 4–15.
  • T. Joachims, "Text Categorization with Support Vector Machines: Learning with Many Relevant Features. " Presented at the European Conference on Machine Learning, Chemnitz, Germany, 1998.
  • Y. Yang, X. Liu. , "A Re-examination of Text Categorization Methods," in Proc. of the 22nd Annual International ACM SIGIR Conference on Research and development in Information Retrieval, New York, NY, 1999, pp. 42–49.
  • G. Demiro?z and H. Gu?venir, "Classification by Voting Feature Intervals," presented at the 9th European Conference on Machine Learning, London, UK, 1997, pp. 85–92.
  • S. E. Hansen. , "Solving Classi?cation Problems through Automatic Programming," M. S. thesis. , Dep. Comp. Sc. ,Østfold Univ. Col. , Halden, Norway, 2007.
  • Kristina Toutanova, Dan Klein, Christopher Manning, and Yoram Singer. 2003. Feature-Rich Part-of-Speech Tagging with a Cyclic Dependency Network.
  • I. H. Witten, E. Frank, Data Mining: Practical Machine Learning Tools and Techniques with Java Implementations. Morgan Kaufmann, San Francisco, CA. Available on WWW: www. cs. waikato. ac. nz/ml/weka
  • R. E. Fan, K. W. Chang, C. J. Hsieh, X. R. Wang, C. J. Lin. LIBLINEAR: A library for large linear classification Journal of Machine Learning Research 9(2008), 1871-1874.
  • C. C. Chang, C. J. Lin, LIBSVM: A Library for Support Vector Machines. ACM Transactions on Intelligent Systems and Technology, 2:27:1--27:27, 2011. Software available at http://www. csie. ntu. edu. tw/~cjlin/libsvm.