<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>HumourSpace: A Novel Framework for Quantification and Characterisation of Humour</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Midhush Manohar T.K.</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ninaad R. Rao</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nishant Ravi Shankar</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ramamoorthy Srinath</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Professor, PES University</institution>
          ,
          <addr-line>Bengaluru</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Student, PES University</institution>
          ,
          <addr-line>Bengaluru</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2005</year>
      </pub-date>
      <fpage>15</fpage>
      <lpage>23</lpage>
      <abstract>
        <p>Humour, a human-trait, is an integral ingredient in day-to-day communication. This paper attempts to extend the processing of this complex and highly subjective quality to digital entities. The paper does this by introducing HumourSpace, a model-agnostic framework which transforms humorous sentences to a 9-dimensional feature space, with each dimension representing a computational linguistic feature. This is followed by objective evaluation of different strains of humour using unsupervised learning. Using this framework, the paper introduces a Personalised Rating Mapper (PRM) that seeks to capture an individual's affinity towards a particular strain of humour. To validate the improvements in humour content personalisation, experiments involving user-surveys have been conducted, which conclude that 73% of users agree more with the humour content recommended by the PRM as compared to 20.36% for crowdsourced ratings. By reducing a machine learning model's dependency on average crowdsourced ratings, this framework is a promising approach to improve the quality of human-computer interaction in a predictable and quantifiable manner.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Successfully capturing and characterising humour is one of the
most challenging AI-complete problems that is being tackled
in the field of Natural Language Processing (NLP). The notion
of AI-Completeness [Raymond, 1991] captures the “hardness”
of an AI problem similar to what NP-Completeness does for
algorithmic tractability. Considering humour, the desirable
capabilities of an AI system include both understanding the
context of the conversation and interpreting specific humour
preferences. Further, such a system must also have the ability
to detect and react to humour. Technical advances in
end-toend training of deep neural networks have led to significant
progress in various theoretical and applied domains of NLP,
including Information Extraction, Ontological Engineering,
Speech Processing, and Statistical NLP. Most of these domains
have achieved a considerable amount of success because of
their mathematical origins. However, this has not been the case
with humour in Natural Language (NL) owing to its highly
nuanced and subjective nature.</p>
      <p>Computational Humour is a field of study in the branches of
Computational Linguistics and AI which employs algorithmic
models in humour research. The first “computer model of a
sense of humour” was proposed by [Suslov, 1992]. This paper
suggested that to detect humour from a piece of text, there
must exist a possibility of a specific malfunction, along with
the necessity that one must instantly delete the unintended
interpretation of the text from one’s consciousness.
Simultaneously, one must also understand the interpretation from a
humorous context. This malfunction created above is strongly
correlated to the incongruity-resolution theory.</p>
      <p>To explore the subjective nature of humour in NL, two
different experiments were conducted, the first of which was
estimating the quality of humour using supervised multi-class
classification on the datasets referenced in Section 4. The
quality of humour was defined as the average crowdsourced
ratings given to humour content rounded off to the nearest
whole number, following the Likert scale system (1-5).
Likertscale is a psychometric scale that is commonly employed in
questionnaires. Pre-trained Universal Sentence Encoder [Cer
et al., 2018] was used for embedding the humour content.
Results of various classifiers such as Support Vector Machine
(SVM), Random Forest Classifier (RFC), Hierarchical
Attention Network (HAN) [Yang et al., 2016], and XLNet [Yang
et al., 2019] were similar, and the accuracy was close to the
majority-class model. Here, a majority-class model is a model
which predicts only the majority-class for every input. The
accuracy of such a model is equivalent to the proportion of the
majority class in the data it was trained on.</p>
      <p>The second experiment was an analysis based on user
ratings collected from 133 responses. These responses were
compared against crowdsourced ratings, with the method of
evaluation being an Inter-Annotator Agreement Percentage
(IAAP). It is defined as the relative frequency of the average
rating as follows:</p>
    </sec>
    <sec id="sec-2">
      <title>Inter AnnotatorAgreement = where : T = T otal number of responses</title>
      <p>A = Average rating</p>
      <p>F req(A)</p>
      <p>T
(1)</p>
      <p>This experiment showed that the overall inter-annotator
agreement between the users and crowdsourced ratings was
20.36%, further depicted in Table 1. This was in line with the
results from [Winters et al., 2018], where an agreement of
only 41.36% was obtained for the human-created jokes.</p>
      <p>The results of these experiments imply that a high amount
of subjectivity and bias goes behind evaluating humour, which
ends up impacting any machine learning model’s performance.
To tackle this problem of subjectivity, the paper proposes a
novel quality estimation pipeline that objectively evaluates
humour based on various computational linguistic features.
The humorous texts are transformed to a 9-dimensional
vector space, which are clustered using unsupervised learning to
represent the different strains of humour. This is followed by
PRM, which captures an individual user’s tastes in humour,
thus attempting to provide better humour content to users.
The objective approach also helps in establishing a ubiquitous
computational ranking system for various pieces of
humorous texts, to ensure a normalised method of comparison as
opposed to the different schemes used by various websites.
Experiments evaluating the proposed pipeline and the
dependency of domain in each humour cluster have been discussed
in Section 7.
2</p>
      <sec id="sec-2-1">
        <title>Background</title>
        <p>With the proliferation and widespread increase in the usage of
AI and NLP, there is much research being carried out on ways
to make AI systems more friendly and explainable. Products
including digital assistants in smart devices (Apple’s Siri and
Amazon’s Alexa), chatbots for social good adopted by
organisations (UNICEF), and interactive agents deployed by major
business entities around the world show that NLP has seen,
and continues to see rapid improvements in speed and
accuracy. However, most NLP solutions are confined to automating
tasks, and the human-chatbot conversation is programmatic
in nature, with the digital entity responding curtly in a few
sentences. The Turing Test, described by [Turing, 1950;
Turing, 2009], is a common baseline experiment that attempts
to provide a differentiating barrier between humans and
synthesised intelligence. An artificial system that subsumes human
emotions in its processing to cross this barrier, would have
come closer to solving the AI-complete problem. Humour,
an essential part in everyday conversation, is no exception
to the difficulties associated with clearing the Turing Test, a
necessary but not sufficient measure for evaluating machine
intelligence. The high complexity in successfully characterising
humour is because of its subjective nature. Virtual assistants
gaining the ability to characterise and inherently incorporate
humour can drastically enhance the quality of a conversation,
resulting in an improved user experience.
3</p>
      </sec>
      <sec id="sec-2-2">
        <title>Related Work</title>
        <p>In Computational Humour, several advancements have
already been made, such as detecting one-liners and
innuendos [Kiddon and Brun, 2011], generating analogies
using the power of big data [Petrovic´ and Matthews, 2013],
the creation of puns using the local-global principle [He
et al., 2019], and more [Binsted, 1996; Venour, 2000;
McKay, 2002; Stock and Strapparava, 2005; Ritchie, 2005;
Shahaf et al., 2015; Dybala, 2008].</p>
        <p>To recognise humour, [Cai and Ehrhardt, 2013] considered
computational linguistic features. Fifty-dimensional word
embeddings were trained and used along with the Parts Of Speech
(POS) tag of the previous and the next word to capture context.
[Cai and Ehrhardt, 2013] used this combined feature vector
and trained a single layer neural network for humour
recognition. [Yang et al., 2015] focused on identifying semantic
structures behind humour from four perspectives, namely
incongruity, ambiguity, interpersonal effect, and phonetic style.
They proposed a set of features for each of the semantic
structures. Random Forest Classifier (RFC) was trained to classify
the text into humour vs. non-humour. To enable humour in
a sentence, [Yang et al., 2015] also introduced the notion of
anchor extraction. [Chen and Soo, 2018] detected humour
using Convolutional Neural Networks (CNNs) and Highway
Networks, the latter of which was introduced by [Srivastava et
al., 2015] to help unimpeded information flow across several
hidden layers. However, all of these papers focus on detecting
humour by classifying content as humorous or non-humorous.</p>
        <p>[Winters et al., 2018] introduced an algorithm that learns
humour from a set of jokes that are human-rated. A website
called JokeJudger was created so that users can rate a joke
for the template: “I like my X like I like my Y, Z”. The
rating of jokes was done on the Likert scale. The features used
in [Winters et al., 2018] were inspired by [Ritchie, 1999].
Even though [Winters et al., 2018] focuses on recognising
different levels of humour, it is dependent on crowdsourced
ratings, which are highly subjective in nature. As an extension
to [Winters et al., 2018], [Winters et al., 2019] identified
useful humour metrics based on humour theory. [Winters et
al., 2019] used metrical schemas to associate lexical relations
on words for the purpose of humour recognition.</p>
        <p>In contrast to the work that has been previously done, our
system does not learn humour from crowdsourced ratings as
the underlying classification system tends to be noisy and
biased. The bias could be in terms of the number of users
looking at a given text or simply context based bias. To tackle
this, our system uses computational linguistic features in an
unsupervised manner to objectively evaluate humour. This
helps computers understand humour in an unbiased manner.
4</p>
      </sec>
      <sec id="sec-2-3">
        <title>Data Collection and Preprocessing</title>
        <p>The prerequisites to our dataset include domains of the jokes
(to distinguish between different kinds of humour), types of
jokes such as one-liner, short-paragraph, and question-answer
(to include a wide range of generalized humour content), as
well as ratings provided on a Likert scale (to obtain the
content’s humour level). To obtain a sizeable proportion of
training, validation and testing inputs, the data for this paper has
been taken from various sources. The humorous texts
comprise of web-scrapped data from websites 1 as well as a
compilation of jokes from [Pungas, 2017]. These sources have
content tagged with domains and crowdsourced ratings except
for Reddit 2, which lacks domain tags. The non-humorous
texts have been collected from [Misra, 2018] and Wikipedia.
When this data was aggregated, it resulted in 251 domains.
On inspection, a considerable number of these domains were
found to be similar, which necessitated their grouping. To
group the overlapping domains, different approaches such
as Universal Sentence Encoder (USE) based cosine
similarity, GloVe based semantic similarity and ELMo embeddings
based similarity were attempted. However, these techniques
performed similarly and resulted in poor segregation of
domains into Domain Groups (DGs), as depicted in Figure 1.
Therefore, manual clustering of these domains was performed,
which resulted in 12 primary domains as shown in Table 2.</p>
        <p>Before application, the data was cleaned in the following
steps:
• Removal of emojis and non-ASCII characters,
• Expansion of contractions (for example: “She’s” to “She
is”),
• Conversion of text into lowercase, and
• Tokenisation of text at both sentence and word levels.</p>
        <p>Due to the presence of a large corpus of unlabelled text,
domain classification has been performed for automated domain
tagging. Models such as a Feed-Forward Neural Network
(FFN), a Random Forest Classifier (RFC), a Support Vector
1https://www.ajokeaday.com, https://onlinefun.com, https://
unijokes.com and http://www.jokesoftheday.net
2https://www.reddit.com
FFN +
USE
RFT +
USE
SVM +
USE
HAN +
GloVe
FFN +
USE
RFT +
USE
SVM +
USE
HAN +
GloVe
Animal
Bar
Event/Day
Human
Inappropriate
Politics
Profession
Relationship
Religion
Sports
Technology
Transport/Location</p>
        <p>Data size
Machine (SVM), and a Hierarchical Attention Network (HAN)
have been compared. USE [Cer et al., 2018], the state of the
art sentence encoder, is used as the embedding layer for FFN,
RFC and SVM, as these models require sentence
representations. However, it has been found that HAN, which uses
GloVe based word embeddings, gives the best results. Table 3
specifies the performance of the different models.
5</p>
      </sec>
      <sec id="sec-2-4">
        <title>System Design</title>
        <p>The pipeline used in this paper include linguistic feature
generation, clustering the text based on the linguistic features and
creating a personalised rating system that caters to an
individual’s humour preferences. Sections 5.1 to 5.2 describe the
sub-modules depicted in the dataflow diagram (Figure 2).
(a) Quality Estimation.</p>
        <p>(b) Personalised Rating Mapper (PRM)
Quality Estimation takes text as input and estimates the quality
of humour content, which is further fine-tuned to a particular
user. The first stage of this pipeline is a binary classifier which
tags the text as humorous or non-humorous, as explained in
Section 7.1. Texts tagged as non-humorous receive a rating
of 0. The texts which get tagged as humorous, i.e., with
a rating of 1, are fed into the Humour Quality Estimation
module for further processing. In this module, the input is
processed by the Quality Feature Generator (QFG), which
generates linguistic features. These features are then used to
estimate humour using the Unsupervised Quality Estimator
(UQE). This has been further discussed in subsequent parts of
this section.</p>
        <sec id="sec-2-4-1">
          <title>Quality Feature Generator (QFG)</title>
          <p>The QFG outputs 9-dimensional feature vectors, and each
component of a vector specifies the value of humour-related
features. Some of these features including Obviousness,
Compatibility, Inappropriateness, Absurdity and Conflict are
inspired by Ritchie’s incongruity-resolution theory [Ritchie,
1999]. This theory stems from the principle that the process
of disambiguation between the obvious interpretation and the
hidden interpretation of a piece of text can be a source of
humour. It states that the meaning of the punchline conflicts with
the obvious and primary interpretation, but is compatible with,
and even evokes the hidden interpretation. The other features,
such as the HMM and N-Gram probability try to capture the
“rarity” in the sequencing of words in a piece of text, which
could be different for humorous and non-humorous texts.
Following the computation of the 9-dimensional feature vectors,
the output from QFG is then used in the unsupervised quality
estimation pipeline. The following paragraphs describe the
implementation of these features in detail. An example of the
values of these feature for a sample sentence has been shown
in Table 4.</p>
          <p>Obviousness. This helps measure how likely it is for a given
sentence to occur, based on the frequency of individual tokens
in a chosen corpora. It attempts to capture the notion of
using unconventional vocabulary, influencing text’s humorous
quality. The likelihood of a given text sequence, on the other
hand, is measured by features like HMM and N-gram based
probabilities.</p>
          <p>Obviousness =</p>
          <p>Ptt==1T P (tokent)</p>
          <p>T
(2)
Compatibility. Humour is usually derived from the usage
of vocabulary that can be reinterpreted with a secondary or
tertiary meaning during the formation of a “punchline”.
Compatibility explains the difficulty in understanding the different
interpretations of the content. This feature is calculated by
taking the average number of meanings of words of a given
humorous text. The usage of tokens with a higher number of
meanings increases the probability of reinterpretation, thus
influencing a text’s humorous quality.</p>
          <p>Compatibility =
Inappropriateness. This feature aims to capture the notion
that the usage of inappropriate vocabulary can explicitly
influence the humorousness of a sentence. [Sjobergh, 2006] did
a study describing the influence of inappropriate vocabulary
on humour and found that it has a significant influence in the
quality of humour. We take this idea and calculate the
inappropriateness of a token by comparing frequencies of such
tokens in a sensual domain to a normal domain. This is unlike
Compatibility, which quantifies humour based on the number
of different interpretations of a word or group of words.</p>
          <p>Inappropriateness =
Conflict. Conflict measures the difference between the
regular and the humorous interpretation of a text. This feature is
different from Compatibility which compares the different
humorous interpretations. The frequency of the combinations of
nouns and adjectives in a humorous/non-humorous corpus is
used to calculate Conflict. This calculation is similar to the one
mentioned in [Winters et al., 2018]. To capture the
dissimilarities between the perceptions of different adjective and noun
pairs in humorous and non-humorous contexts, two forms of
the features have been considered - Humorous Conflict and
Non-Humorous Conflict.</p>
          <p>Sum = X Bigramtext(tokenadj ; tokennoun)
Adjective Absurdity. This parameter helps estimate the
“Comparison” feature described in [Ritchie, 1999] by
comparing the usage of different adjectives with a given noun. This
feature is calculated as the ratio of the frequency of a given
noun-adjective pair to the total number of noun-adjective pairs
for a given noun, similar to cosine similarity. This feature is
similar to the adjective vector similarity feature mentioned in
[Winters et al., 2018] and the noun dissimilarity feature
mentioned in [Petrovic´ and Matthews, 2013] but with a slightly
modified calculation to cater to our dataset.
Noun Absurdity. This feature is similar to the Adjective
Absurdity feature and also helps estimate the “Comparison”
feature but with a different calculation. Instead of comparing
adjective with a given noun, Noun Absurdity compares the
usage of all nouns with a given adjective. Bi-grams, POS tags,
and ConceptNet distances are used to measure this parameter.
The noun vector calculation is weighted by the cosine distance
of the ConceptNet embeddings between the particular noun
and the list of nouns that appears with the adjective.
ConceptNet [Liu and Singh, 2004] is chosen as it is optimised
for making practical context-based inferences over real-world
texts, and its k-line knowledge increases the connectivity of
the semantic network. The usage of ConceptNet in humour
processing has further been substantiated in [Labutov and
Lipson, 2012].</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Concept Embedding(A))</title>
      <p>V alueN =
P(N; A)</p>
    </sec>
    <sec id="sec-4">
      <title>W eight</title>
      <p>Pj=n P(Nj ; A)</p>
      <p>j=1
N oun Absurdity =</p>
      <p>PiP=a1ir V aluei</p>
      <p>P air
A = Adjective
N = N oun
in a sample
P air = T otal number of adjective; noun pairs
(7)
HMM Probability. The HMM probability is used to
calculate the probability of a particular observation sequence. This
is different from the “Obviousness” feature. While
Obviousness helps measure the usage of a given word/vocabulary in a
text, HMM probability helps measure the likelihood of a given
sequence.</p>
      <p>HM M probability = log(P (Oj ))
(8)</p>
      <sec id="sec-4-1">
        <title>Unsupervised Quality Estimator (UQE)</title>
        <p>The UQE module takes 9-dimensional feature vector from
QFG as input. Unsupervised Density-Based Spatial
Clustering for Applications with Noise (DBSCAN) [Ester et al.,
1996] has been applied on the training data, identifying 5
well-separated clusters. Different clusters do not represent
different quality levels of humour. Instead, they represent
text groups based on objective humour characteristics. This
unsupervised clustering method objectively evaluates humour
based on the characteristics of the text, and not on how
different users perceive the text on reading it. This unsupervised
clustering is further used in designing a personalised rating
system as described in Section 5.2.
5.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Personalised Rating Mapper (PRM)</title>
        <p>To tackle subjectivity in humour, PRM attempts to identify
each user’s preferences. In the first step, each user rates a
few samples from the UQE clusters for a domain. Then, the
average for each of the clusters is calculated. For any user,
the cluster with the highest average value (from the samples
initially rated) maps to rating 5 and the cluster with the lowest
average value maps to rating 1. This way, the humour content
is fine-tuned to every user’s preferences.</p>
      </sec>
      <sec id="sec-4-3">
        <title>Algorithm 1: PRM algorithm to find user preference with respect to UQE clusters.</title>
        <p>Input: userRating, UQERating arrays for a given
domain
Output: Clusters mapped with user’s preference</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>PRM (userRating,U QERating);</title>
      <p>n1= number of UQE clusters ;
n2= length of userRating array ;
Let AvgScore[1 : : : n1] be array with average score
with index being the corresponding bucket;
for i = 1 to n1 do
count = 0;
score = 0;
for j = 1 to n2 do
if U QERating[j]==i then
count += 1;
score += userRating[j];
end
end
AvgScore[i] = score / count;
//Average for bucket i
end
clusters = array with cluster values sorted based on</p>
    </sec>
    <sec id="sec-6">
      <title>AvgScore array; return clusters;</title>
      <p>The PRM algorithm has been described in Algorithm 1. The
results of how PRM performs better than the crowdsourced
rating system are shown in Section 7.2.
6</p>
      <sec id="sec-6-1">
        <title>Experimental Setup</title>
        <p>For domain classification, mentioned in Section 4, we chose
a randomized train-test-validation split with a 80:10:10 ratio.
The learning rate was set to 0.001 for all the classifiers and
the Adam optimization technique [Kingma and Ba, 2014] was
used for its computational efficiency. For evaluating the
performance of different classifiers, we used a combination of
accuracy, precision, recall, and F-1 score. This provided a
better insight into the model performance. The hyperparameters
for the different models were obtained through a combination
of nested cross-validation (CV) and grid search techniques.</p>
        <p>The development of this work has been done on an Ubuntu
16.04 LTS operating system with x86-64 architecture. The
primary programming language used is Python 3.6, along with
its associated deep learning libraries, Tensorflow and PyTorch.</p>
        <p>For graphic intensive tasks, Google Colab and Kaggle have
been used to utilise their Nvidia Tesla K80/P100 graphical
processing units.
7
7.1</p>
      </sec>
      <sec id="sec-6-2">
        <title>Implementation and Inference</title>
        <sec id="sec-6-2-1">
          <title>Quality Estimation</title>
          <p>Binary Classification. For segregating samples based on
whether they are non-humorous or humorous (samples with
rating 0 vs. samples with rating 1,2,3,4, and 5), different
binary classification models such as a 1-layered FFN, a
2layered FFN and an SVM have been compared. Here, each
(a) K-means Clustering.
(b) DBSCAN Clustering.
text has been represented using 512 dimension pre-trained
USE embeddings [Cer et al., 2018]. Overall, the FFNs
perform better than SVM. There is a slight difference in
performance between the 1-layered FFN and the 2-layered FFN.
However, with the 2-layered FFN slightly overfitting, the
1layered FFN has been considered for the binary classification
pipeline. Table 5 compares the results for train and test data.
The results in Table 5 show that the best performing model,
i.e., the 1-layered FFN, performs better than the results from
the previous research [Yang et al., 2015; Chen and Soo, 2018;
Winters et al., 2018].</p>
        </sec>
        <sec id="sec-6-2-2">
          <title>Unsupervised Quality Estimator. To differentiate further</title>
          <p>between humorous samples, features generated from the QFG
have been used. Figure 3 shows the correlation between
the normalised features. These normalized features are then
used for 2 unsupervised clustering techniques, K-means and
DBSCAN. Figure 4a and Figure 4b show the Principal
Component Analysis (PCA) plotted results of K-means (k=5) and
DBSCAN clustering, respectively. From the figures, it is
inferred that the samples are not well segregated using K-means
clustering. However, the samples have been well separated
into 5 different clusters using DBSCAN clustering. Hence,</p>
          <p>DBSCAN performed better that K-means for the dataset used
in this paper. An example sentence for each DBSCAN cluster
has been listed in Table 6.</p>
          <p>Analysis of the clusters. The next step was to analyze the
clusters formed by DBSCAN. Figure 5 shows the skewness of
the features in the clusters. Skewness of a probabilistic
distribution measures the asymmetry that deviates the distribution
from a normal distribution. The graph shows that the clusters
are segregated based on the dominance (measured in terms
of skewness) of a single feature or a group of features, and
thus helps distinguish between different humour strains. It is
also observed that the domains are uniformly segregated in
these clusters. This further proves that the new segregation
proposed for estimating the quality is domain invariant and can
be extended to any other domain, implying that the domain of
the text does not influence the cluster distribution.
7.2</p>
        </sec>
        <sec id="sec-6-2-3">
          <title>Personalised Rating Mapper</title>
          <p>In order to test if the UQE clusters can be used to determine
user preference, a follow-up survey to the one mentioned in
Section 1 was sent to the same set of users to rate samples from
each cluster. The results from this analysis showed that the
correlation between ratings given by users and the 5 different
clusters is close to 0. This result explained that the clustering
mechanism based on the linguistic features is unbiased, thus
reducing the noise for computational model to classify and
quantify humour. This also showed that different users have
different levels of liking for humour based on how the content
is written linguistically.</p>
          <p>To cater to individual users, PRM was designed in such
a way that the issue of subjectivity in humour is minimized
significantly. After considering a user’s preference, PRM
personalises content by designing a different rating mechanism
for that user, as explained in Algorithm 1. In order to test
this algorithm, another survey was sent with the new rating
mechanism and we asked the users to rate the content. We
used F1-score and RMSE values to compare whether the PRM
rating system performs better than the average rating system
from different websites. From the survey, 97 out of 133 user
responses found PRM to be more aligned to their preferences
which is close to 72.9%. From the initial survey mentioned
in Section 1, only 27 of the 133 users felt that the
crowdsourced rating was aligned to their preference which is close
to 20.3%. This result clearly showed that PRM based system
is performing close to 50% better than the crowdsourced rating
mechanism.
8</p>
        </sec>
      </sec>
      <sec id="sec-6-3">
        <title>Conclusions and Future Work</title>
        <p>This paper proposes HumourSpace, a novel framework that
performs unsupervised clustering of samples based on
computational linguistic features for evaluating humour content. The
paper then moves on to personalised ratings of humour content
using PRM. Experimental analysis shows that the results from
PRM were performing better than the average crowdsourced
ratings by 50% (73% and 23% respectively), indicating that
the improvements via personalisation are significant. The
analysis of domains within each cluster showed uniformity,
proving that the clusters are domain invariant and can be
further extended to any new domain. As a corollary, it shows
that domain does not play a significant role in objectively
evaluating humour.</p>
        <p>The role of the clusters as an evaluation metric along with
existing metrics such as BLEU scores, for the task of
generating new humorous content, is being studied. Since these
computational linguistic features are humour specific, it can
be useful for existing generators to improve humorous content.
The nature of the computational linguistic features is such
that it can also be applied to languages other than English,
with the additional requirement of understanding the syntax
and semantics of these languages. The PRM proposed is an
abstract approach to identify the humour strain most suitable
for an individual. The current implementation is based on the
average-score model, where a humour strain is assigned to
a user based on the cluster that has the highest average
rating. This implementation can be further enhanced by studying
the current sentiment of a user based on recent conversations,
along with past behavioural trends, to get a better
understanding of an individual’s affinity to a particular humour strain.
This could result in a more well-rounded experience with a
conversational agent, thus leading to better human-computer
interaction.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>[Binsted</source>
          , 1996]
          <string-name>
            <given-names>Kim</given-names>
            <surname>Binsted</surname>
          </string-name>
          .
          <source>Machine humour: An implemented model of puns</source>
          .
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <source>[Cai and Ehrhardt</source>
          , 2013]
          <string-name>
            <given-names>Jim</given-names>
            <surname>Cai</surname>
          </string-name>
          and
          <string-name>
            <given-names>Nicolas</given-names>
            <surname>Ehrhardt</surname>
          </string-name>
          . Is this a joke?
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [Cer et al.,
          <year>2018</year>
          ] Daniel Matthew Cer, Yinfei Yang, Sheng yi Kong, Nan Hua, Nicole Limtiaco,
          <string-name>
            <given-names>Rhomni</given-names>
            <surname>St</surname>
          </string-name>
          . John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar,
          <string-name>
            <surname>Yun-Hsuan</surname>
            <given-names>Sung</given-names>
          </string-name>
          , Brian Strope, and
          <string-name>
            <given-names>Ray</given-names>
            <surname>Kurzweil</surname>
          </string-name>
          .
          <article-title>Universal sentence encoder</article-title>
          .
          <source>ArXiv</source>
          , abs/
          <year>1803</year>
          .11175,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <source>[Chen and Soo</source>
          , 2018]
          <article-title>Peng-Yu Chen</article-title>
          and
          <string-name>
            <surname>Von-Wun Soo</surname>
          </string-name>
          .
          <article-title>Humor recognition using deep learning</article-title>
          .
          <source>In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , Volume
          <volume>2</volume>
          (
          <issue>Short Papers)</issue>
          , pages
          <fpage>113</fpage>
          -
          <lpage>117</lpage>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <source>[Dybala</source>
          , 2008]
          <string-name>
            <given-names>Pawel</given-names>
            <surname>Dybala</surname>
          </string-name>
          .
          <article-title>Extracting dajare candidates from the web-japanese puns generating system as a part of humor processing research</article-title>
          .
          <source>The Proceedings of the First International Workshop on Laughter in Interaction and Body Movement (LIBM'08)</source>
          , Asahikawa, Japan, June, pages
          <fpage>46</fpage>
          -
          <lpage>51</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [Ester et al.,
          <year>1996</year>
          ]
          <string-name>
            <given-names>Martin</given-names>
            <surname>Ester</surname>
          </string-name>
          ,
          <string-name>
            <surname>Hans-Peter Kriegel</surname>
          </string-name>
          , Jo¨rg Sander, Xiaowei
          <string-name>
            <surname>Xu</surname>
          </string-name>
          , et al.
          <article-title>A density-based algorithm for discovering clusters in large spatial databases with noise</article-title>
          .
          <source>In Kdd</source>
          , volume
          <volume>96</volume>
          , pages
          <fpage>226</fpage>
          -
          <lpage>231</lpage>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [He et al.,
          <year>2019</year>
          ]
          <string-name>
            <surname>He</surname>
            <given-names>He</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nanyun Peng</surname>
            , and
            <given-names>Percy</given-names>
          </string-name>
          <string-name>
            <surname>Liang</surname>
          </string-name>
          .
          <article-title>Pun generation with surprise</article-title>
          .
          <source>In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , Volume
          <volume>1</volume>
          (Long and Short Papers), pages
          <fpage>1734</fpage>
          -
          <lpage>1744</lpage>
          , Minneapolis, Minnesota,
          <year>June 2019</year>
          .
          <article-title>Association for Computational Linguistics</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          <source>[Kiddon and Brun</source>
          , 2011]
          <string-name>
            <given-names>Chloe</given-names>
            <surname>Kiddon</surname>
          </string-name>
          and
          <string-name>
            <given-names>Yuriy</given-names>
            <surname>Brun</surname>
          </string-name>
          .
          <article-title>That's what she said: double entendre identification</article-title>
          .
          <source>In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies: short papers-Volume</source>
          <volume>2</volume>
          , pages
          <fpage>89</fpage>
          -
          <lpage>94</lpage>
          . Association for Computational Linguistics,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          <source>[Kingma and Ba</source>
          , 2014]
          <article-title>Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization</article-title>
          .
          <source>arXiv preprint arXiv:1412.6980</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          <source>[Labutov and Lipson</source>
          , 2012]
          <string-name>
            <given-names>Igor</given-names>
            <surname>Labutov</surname>
          </string-name>
          and
          <string-name>
            <given-names>Hod</given-names>
            <surname>Lipson</surname>
          </string-name>
          .
          <article-title>Humor as circuits in semantic networks</article-title>
          .
          <source>In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)</source>
          , pages
          <fpage>150</fpage>
          -
          <lpage>155</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          <source>[Liu and Singh</source>
          , 2004]
          <string-name>
            <given-names>Hugo</given-names>
            <surname>Liu</surname>
          </string-name>
          and
          <string-name>
            <given-names>Push</given-names>
            <surname>Singh</surname>
          </string-name>
          .
          <article-title>Conceptnet-a practical commonsense reasoning tool-kit</article-title>
          .
          <source>BT technology journal</source>
          ,
          <volume>22</volume>
          (
          <issue>4</issue>
          ):
          <fpage>211</fpage>
          -
          <lpage>226</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          <string-name>
            <surname>[McKay</surname>
          </string-name>
          ,
          <year>2002</year>
          ]
          <string-name>
            <given-names>Justin</given-names>
            <surname>McKay</surname>
          </string-name>
          .
          <article-title>Generation of idiom-based witticisms to aid second language learning</article-title>
          .
          <source>Stock et al</source>
          , pages
          <fpage>77</fpage>
          -
          <lpage>87</lpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          <source>[Misra</source>
          , 2018]
          <string-name>
            <given-names>Rishabh</given-names>
            <surname>Misra</surname>
          </string-name>
          .
          <source>News category dataset. 06</source>
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          <source>[Petrovic´ and Matthews</source>
          , 2013]
          <article-title>Sasˇa Petrovic´</article-title>
          and
          <string-name>
            <given-names>David</given-names>
            <surname>Matthews</surname>
          </string-name>
          .
          <article-title>Unsupervised joke generation from big data</article-title>
          .
          <source>In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)</source>
          , pages
          <fpage>228</fpage>
          -
          <lpage>232</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          <source>[Pungas</source>
          , 2017]
          <string-name>
            <given-names>Taivo</given-names>
            <surname>Pungas</surname>
          </string-name>
          .
          <article-title>A dataset of english plaintext jokes</article-title>
          .
          <source>GitHub repository</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          <source>[Raymond</source>
          , 1991]
          <article-title>Eric S Raymond</article-title>
          .
          <source>Jargon file version 2.8.1</source>
          ,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <source>[Ritchie</source>
          , 1999]
          <string-name>
            <given-names>Graeme</given-names>
            <surname>Ritchie</surname>
          </string-name>
          .
          <article-title>Developing the incongruityresolution theory</article-title>
          .
          <source>Technical report</source>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          <source>Workshop on Natural Language Generation (ENLG-05)</source>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [Shahaf et al.,
          <year>2015</year>
          ]
          <string-name>
            <given-names>Dafna</given-names>
            <surname>Shahaf</surname>
          </string-name>
          , Eric Horvitz, and
          <string-name>
            <given-names>Robert</given-names>
            <surname>Mankoff</surname>
          </string-name>
          .
          <article-title>Inside Jokes: Identifying Humorous Cartoon Captions</article-title>
          , page
          <volume>1065</volume>
          -
          <fpage>1074</fpage>
          . Association for Computing Machinery, New York, NY, USA,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          <source>[Sjobergh</source>
          , 2006]
          <string-name>
            <given-names>Jonas</given-names>
            <surname>Sjobergh</surname>
          </string-name>
          .
          <article-title>Vulgarities are fucking funny, or at least make things a little bit funnier</article-title>
          .
          <source>Proceedings of KTH CSC</source>
          , Stockholm.
          <year>2006</year>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [Srivastava et al.,
          <year>2015</year>
          ]
          <string-name>
            <given-names>Rupesh</given-names>
            <surname>Kumar</surname>
          </string-name>
          <string-name>
            <surname>Srivastava</surname>
          </string-name>
          , Klaus Greff, and Ju¨rgen Schmidhuber.
          <article-title>Highway networks</article-title>
          .
          <source>arXiv preprint arXiv:1505.00387</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          <source>[Stock and Strapparava</source>
          , 2005]
          <string-name>
            <given-names>Oliviero</given-names>
            <surname>Stock</surname>
          </string-name>
          and
          <string-name>
            <given-names>Carlo</given-names>
            <surname>Strapparava</surname>
          </string-name>
          .
          <article-title>Hahacronym: A computational humor system</article-title>
          .
          <source>In Proceedings of the ACL 2005 on Interactive poster and demonstration sessions</source>
          , pages
          <fpage>113</fpage>
          -
          <lpage>116</lpage>
          . Association for Computational Linguistics,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          <source>[Suslov</source>
          ,
          <year>1992</year>
          ]
          <string-name>
            <given-names>IM</given-names>
            <surname>Suslov</surname>
          </string-name>
          .
          <article-title>Computer model of a “sense of humour” i. general algorithm</article-title>
          .
          <source>Biophysics</source>
          ,
          <volume>37</volume>
          (
          <issue>2</issue>
          ):
          <fpage>242</fpage>
          -
          <lpage>248</lpage>
          ,
          <year>1992</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          <source>[Turing</source>
          ,
          <year>1950</year>
          ]
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Turing</surname>
          </string-name>
          .
          <source>Computing Machinery and Intelligence. Mind</source>
          , LIX(
          <year>236</year>
          ):
          <fpage>433</fpage>
          -
          <lpage>460</lpage>
          ,
          <year>10 1950</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          <source>[Turing</source>
          , 2009]
          <string-name>
            <surname>Alan</surname>
            <given-names>M</given-names>
          </string-name>
          <string-name>
            <surname>Turing.</surname>
          </string-name>
          <article-title>Computing machinery and intelligence</article-title>
          .
          <source>In Parsing the Turing Test</source>
          , pages
          <fpage>23</fpage>
          -
          <lpage>65</lpage>
          . Springer,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          <source>[Venour</source>
          ,
          <year>2000</year>
          ]
          <string-name>
            <given-names>CTJ</given-names>
            <surname>Venour</surname>
          </string-name>
          .
          <article-title>The computational generation of a class of pun</article-title>
          .
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [Winters et al.,
          <year>2018</year>
          ]
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Winters</surname>
          </string-name>
          , Vincent Nys, and Daniel De Schreye.
          <article-title>Automatic joke generation: Learning humor from examples</article-title>
          .
          <source>In International Conference on Distributed, Ambient, and Pervasive Interactions</source>
          , pages
          <fpage>360</fpage>
          -
          <lpage>377</lpage>
          . Springer,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [Winters et al.,
          <year>2019</year>
          ]
          <string-name>
            <given-names>Thomas</given-names>
            <surname>Winters</surname>
          </string-name>
          , Vincent Nys, and Danny De Schreye.
          <article-title>Towards a general framework for humor generation from rated examples</article-title>
          . http://computationalcreativity. net/iccc2019/assets/iccc proceedings 2019. pdf,
          <source>(Proceedings of the 10th International Conference on Computational Creativit)</source>
          :
          <fpage>274</fpage>
          -
          <lpage>281</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [Yang et al.,
          <year>2015</year>
          ]
          <string-name>
            <given-names>Diyi</given-names>
            <surname>Yang</surname>
          </string-name>
          , Alon Lavie, Chris Dyer, and
          <string-name>
            <given-names>Eduard</given-names>
            <surname>Hovy</surname>
          </string-name>
          .
          <article-title>Humor recognition and humor anchor extraction</article-title>
          .
          <source>In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing</source>
          , pages
          <fpage>2367</fpage>
          -
          <lpage>2376</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [Yang et al.,
          <year>2016</year>
          ]
          <string-name>
            <given-names>Zichao</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Diyi</given-names>
            <surname>Yang</surname>
          </string-name>
          , Chris Dyer, Xiaodong He,
          <string-name>
            <surname>Alex Smola</surname>
            , and
            <given-names>Eduard</given-names>
          </string-name>
          <string-name>
            <surname>Hovy</surname>
          </string-name>
          .
          <article-title>Hierarchical attention networks for document classification</article-title>
          .
          <source>In Proceedings of the 2016</source>
          conference
          <article-title>of the North American chapter of the association for computational linguistics: human language technologies</article-title>
          , pages
          <fpage>1480</fpage>
          -
          <lpage>1489</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          [Yang et al.,
          <year>2019</year>
          ]
          <string-name>
            <given-names>Zhilin</given-names>
            <surname>Yang</surname>
          </string-name>
          , Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le.
          <article-title>Xlnet: Generalized autoregressive pretraining for language understanding</article-title>
          .
          <source>In Advances in neural information processing systems</source>
          , pages
          <fpage>5753</fpage>
          -
          <lpage>5763</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>