Automatic Detection of Insulting Sentences in Conversation

An overall goal of our work is to use machine-learning based solutions to assist children with communication difficulties in their communication task. In this paper, we concentrate on the problem of recognizing insulting sentences the child says, or insulting sentences that are told to him. An automated agent that is able to recognize such sentences can alert the child in real time situations, and can suggest how to respond to the resulting social situation. We composed a dataset of 1241 non-insulting and 1255 insulting sentences. We trained different machine learning methods on 90% randomly chosen sentences from the dataset and tested it on the remaining. We used the following machine learning methods: Multi-Layer Neural Network, SVM, Naive Bayes, Decision Tree, and Tree Bagger for the task. We found that the best predictors of the insulting sentences, were the SVM method, with 80% recall and over 75%precision, and the Multi-Layer Neural Network and the Tree Bagger, with precision and recall exceeding 75%, We also found that adding additional data to the learning process, such as 9500 labeled sentences from twitter, or adding the word “positive” and the word “negative” to sentences including positive or negative words, respectively, slightly improves the results in most of the cases. Our results provide the cornerstones for an automated system that would enable on-line assistance and consultation for children with communication disabilities, and also for other persons with communication problems, in a way that will enable them to function better in society through this assistance.

[1]  Hsinchun Chen,et al.  Sentiment analysis in multiple languages: Feature selection for opinion classification in Web forums , 2008, TOIS.

[2]  H. Tager-Flusberg Evaluating the Theory-of-Mind Hypothesis of Autism , 2007 .

[3]  Vishal. A. Kharde,et al.  Sentiment Analysis of Twitter Data : A Survey of Techniques , 2016, ArXiv.

[4]  S. Leekam,et al.  What are the Links Between Theory of Mind and Social Relations? Review, Reflections and New Directions for Studies of Typical and Atypical Development , 2004 .

[5]  Hua Xu,et al.  A rule-based approach to emotion cause detection for Chinese micro-blogs , 2015, Expert Syst. Appl..

[6]  A. Leslie,et al.  Autistic children's understanding of seeing, knowing and believing , 1988 .

[7]  S. Berggren Emotion recognition and expression in autism spectrum disorder : significance, complexity, and effect of training , 2017 .

[8]  C. Maïano,et al.  Prevalence of School Bullying Among Youth with Autism Spectrum Disorders: A Systematic Review and Meta‐Analysis , 2016, Autism research : official journal of the International Society for Autism Research.

[9]  S. Baron-Cohen,et al.  Does the autistic child have a “theory of mind” ? , 1985, Cognition.

[10]  J. Keziya Rani,et al.  Mining Opinion Features in Customer Reviews. , 2016 .

[11]  Sofiane Boucenna,et al.  Interactive Technologies for Autistic Children: A Review , 2014, Cognitive Computation.

[12]  Lijiang Chen,et al.  Speech emotion recognition: Features and classification models , 2012, Digit. Signal Process..

[13]  Vadlamani Ravi,et al.  A survey on opinion mining and sentiment analysis: Tasks, approaches and applications , 2015, Knowl. Based Syst..