<!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>Expert-sourcing Domain-speci c Knowledge: The Case of Synonym Validation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Michael Unterkalmsteiner</string-name>
          <email>michael.unterkalmsteiner@bth.se</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrew Yates</string-name>
          <email>ayates@mpi-inf.mpg.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Max Planck Institute for Informatics</institution>
          ,
          <addr-line>Saarbrucken</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Software Engineering Research Lab Sweden, Blekinge Institute of Technology</institution>
          ,
          <addr-line>Karlskrona</addr-line>
          ,
          <country country="SE">Sweden</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>One prerequisite for supervised machine learning is high quality labelled data. Acquiring such data is, particularly if expert knowledge is required, costly or even impossible if the task needs to be performed by a single expert. In this paper, we illustrate tool support that we adopted and extended to source domain-speci c knowledge from experts. We provide insight in design decisions that aim at motivating experts to dedicate their time at performing the labelling task. We are currently using the approach to identify true synonyms from a list of candidate synonyms. The identi cation of synonyms is important in scenarios were stakeholders from di erent companies and background need to collaborate, for example when de ning and negotiating requirements. We foresee that the approach of expert-sourcing is applicable to any data labelling task in software engineering. The discussed design decisions and implementation are an initial draft that can be extended, re ned and validated with further application.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The training and validation of natural language processing models, that are based on supervised machine learning,
require data that is labelled by humans. Creating labelled data, in particular if it is domain speci c, is costly
and can require expert knowledge. Furthermore, the lack of high-quality labelled data may prevent the transfer
of an approach from one domain to the other, simply because not enough labelled data exists to train the
model [Fer18].</p>
      <p>Crowdsourcing platforms provide the possibility to harvest human intelligence that can be used for data
labelling. While this works well for tasks that target the humans' predisposition for pattern recognition, tasks
for which domain-speci c knowledge is required cannot be outsourced to an arbitrary crowd. Such tasks need
to be designed such that a limited target group remains engaged with the data labelling task and experiences
bene ts from participation. In this paper, we provide some insight in an ongoing study and provide motivation
for the design decisions we made when adopting an existing crowdsourcing tool for our particular task: validation
of domain-speci c synonym candidates.</p>
      <p>Copyright c 2019 by the paper's authors. Copying permitted for private and academic purposes.</p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>Our current research focuses at supporting requirements engineers to adopt an object classi cation system,
CoClass1, from the construction business domain. The classi cation is planned to be used throughout the
organization to identify and trace speci ed, designed, constructed and eventually maintained objects. CoClass
is a hierarchical ontology of construction objects that provides a coding system, a de nition and synonyms for
each object. CoClass is still under development and many object to synonym mappings are still incomplete.
These mappings are however important for the use of the classi cation system as it allows users, with di erent
background and vocabulary, to nd the objects they are looking for. Furthermore, we plan to use the ontology
to automatically classify natural language requirements such that they can be traced during the life-cycle of a
project.
2.1</p>
      <sec id="sec-2-1">
        <title>Domain-speci c synonym detection</title>
        <p>In order to ll the synonym gaps in CoClass, we use a learning-to-rank approach for domain-speci c synonym
detection [YU19]. The basic idea of this supervised approach is to learn term associations from a domain speci c
corpus, using features that indicate the synonymous use of a term. The approach produces a list of synonym
candidates for each term de ned in CoClass (1430 terms with each 1000 synonym candidates). A preliminary
evaluation of the candidates with a domain expert suggests that only 1% of the synonym candidates are
true synonyms (10 in 1000). While this precision might seem underwhelming, automated synonym detection is
di cult and should be compared against its manual alternatives or evaluated against the cost of not discovering
new synonyms at all.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Expert-sourcing synonym validation</title>
      <p>Reviewing 1,430,000 synonym candidates would be a monumental task for an individual. While
crowdsourcing [DRH11] the task to the general public would be possible, it would likely not succeed, as the task is language
(Swedish) and domain (construction business) speci c, limiting the potential and reliable participants
considerably. We chose therefore to use a crowdsourcing framework, Pybossa2, that allows us to control all aspects of
the validation process: participants, data storage and task design. Pybossa provides important infrastructure
for realizing a crowdsourcing project, such as task importing, management, scheduling, and redundancy, user
management and results analysis. In addition, Pybossa provides a REST API and convenience functions that
can be used for tasks, e.g. a media player for video/sound annotation tasks or a PDF reader for transcription
tasks. In the remainder of the paper, we focus on the task design and the decisions that were made in order
to make the validation process e cient and e ective. The code for task presentation and analysis is available
online3.
3.1</p>
      <sec id="sec-3-1">
        <title>Task design</title>
        <p>The validation task is separated into two phases. In phase 1, the selection, the expert selects 0::n synonyms from
a list of candidates for a particular target term. In phase 2, the result, the expert receives feedback on his/her
selection. Screenshots of the respective phases are shown in Figure 1 and 2. The red markers are inserted for
referencing purposes, used in the following discussion.</p>
        <p>Panel 1 in Figure 1 shows the target term for which the expert needs to select synonyms. In this area,
we show also the hierarchical structure of CoClass under which the target term (transl.: fence) can be found
(transl.: Components Limiting objects Access-limiting objects Fence), including the coding that is used
for such objects (R RU RUA). We also show the de nition used in CoClass of the target term (transl:
access restricting object by a horizontal elongated barrier with a vertical extent). The purpose is to provide
context, to foster organizational learning [Kim93] and to develop a common vocabulary that potentially reduces
misunderstandings in the organization.</p>
        <p>Panel 2 in Figure 1 shows the list of candidate synonyms. We group candidate synonyms with a nity
propagation clustering [FD07], measuring similarity with the Levenshtein distance. This reduces the perceived
number of terms an expert has to inspect as similar terms can be accepted/rejected in one task. If the expert is
1https://coclass.byggtjanst.se/en/about#about-coclass
2https://github.com/Scifabric/pybossa
3https://github.com/munterkalmsteiner/pybossa-trafikverket-theme
not sure about the meaning of the term or the synonym candidates, (s)he can skip the task and proceed to the
next one. Panel 3 in Figure 1 shows the overall progress, i.e. tasks done of the total number of tasks.</p>
        <p>Once the expert has made a decision, the results for the particular task are stored and analysed in order
to provide immediate feedback to the expert. An example of the analysis is shown in Panel 4 in Figure 2. In
the second column of the results table, we show whether the selected term is a correctly identi ed or a missed
actual synonym, according to the already de ned synonyms in CoClass, or a completely new identi ed synonym.
In the third column, we show how well aligned the current expert is with other experts that have already
performed the same task. For example, the selection of the expert in Figure 2 has missed the actual synonym
\parkeringsplanka", and so did another user. They agree that \parkeringsplanka" is not a synonym of \barriar".
However, two other experts had a di erent opinion, i.e. \parkeringsplanka" is indeed a synonym of \barriar".
Once the tasks are completed, it is straightforward to identify new synonyms with a simple majority vote.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Motivational aspects of expert-sourcing</title>
        <p>
          When we designed the task, we considered how to create a win-win situation for the participating experts,
management which pays for the time spent on the task, and researchers. There exists some evidence that
intrinsic motivation is more important than extrinsic motivation for crowd-sourcing workers [KSV11]. Figure 3
shows di erent aspects of motivation and their relative importance ranking (
          <xref ref-type="bibr" rid="ref1 ref2 ref5">1-13</xref>
          ), based on a survey of 431
Amazon Mechanical Turk workers. In the remainder of this section, we discuss our strategies to foster some
aspects of worker motivation.
        </p>
        <p>The synonym selection task should transfer some knowledge to the participants. We provide that by showing
term de nitions, the CoClass hierarchy and code under which the term is found. This fosters individual learning
as well as organizational learning as it promotes a common vocabulary (Human Capital Advancement, i.e.
motivation to enable training of skills). Similarly, the feedback on the results page helps individuals to understand
how well they are aligned with their colleagues (Direct Job Feedback, i.e. motivation provided by the perception
of achievement; Community Identi cation, i.e. the subconscious adoption of norms and values). For management,
this could also be useful information as it could indicate where adjustments in documentation or training are
needed. Since we know exactly how much time each expert has spent on their tasks, we can quantify the
cost for collecting synonyms and potential terminology misalignments (Payment, i.e. motivation by monetary
compensation). Such gures can help to get management buy-in when extending the study or replicating it in
another organization.</p>
        <p>A potential threat to the validation of the synonyms is the result page where we show the alignment of experts
immediately after their choice (Task Identity, i.e. the extent to which a participant perceives that his/her work
leads to a result). Therefore, we randomize the presentation of tasks (in blocks of ve, i.e. after ve tasks we
change the target term), counteracting conscious or unconscious bias. Finally, we seed a true synonym if the
expert did not select a synonym after 10 tasks in a row. The intention is both to keep the participant motivated
by \ nding" a synonym and to verify that the expert is still paying attention to the task and not submitting
random answers.</p>
        <p>In Figure 3, we highlight in bold typeface which motivational aspects we address. We brie y discuss which
aspects are not covered. Task Autonomy refers to the degree to which creativity and own decisions are permitted
by the task. The nature of data labelling tasks leaves little leeway and creativity would rather be counter
productive. It would be di cult to design a task that caters for this motivational aspect. Skill Variety refers
to the usage of di erent skills for solving a task that match to the available skill set of the worker. One way
to address this motivational aspect would be to segment the CoClass terms into themes that require specialized
subdomain knowledge, matching a subset of participants' specialized background and expertise. Pastime refers
to the motivation to do something in order to avoid boredom. One could argue that, since the synonym selection
task can be performed on mobile devices (e.g. while riding the train to work), this motivational aspect is
covered. On the other hand, the task is work and part of the professional activities of an employee, making
this motivational aspect not applicable to our context. We do not address any aspects from the range of social
motivations. Indirect Job Feedback, i.e. motivation through feedback about the delivered work, for example
through comments and other encouragements could however be implemented. Finally, we do not use yet any
form of gami cation mechanisms. Leaderboards and level systems can be e ective means to increase long-term
engagement and quality of output [MHK16].
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusions and Future Work</title>
      <p>In this paper, we suggest expert-sourcing as a mean to acquire labelled data from domain experts. We illustrate
the adoption of a crowd-sourcing platform and the design of the data labelling task for domain-speci c synonym
identi cation such that it is engaging and useful for the participating experts. We are currently in the process of
piloting the approach with select domain experts and gather feedback on the task design. Once the task design
is stabilized, we intend to deploy the data collection mechanism to approximately 500 participants.</p>
      <p>While we apply the approach to a narrow, specialised, problem (synonym identi cation), the idea and
design decisions to cater for motivational aspects are generally applicable to any data labelling task in Software
Engineering. One could design tasks to evaluate the quality of certain artefacts and use this assessment to
train a classi cation algorithm, for example to evaluate the degree of ambiguity in statements of requirements
speci cations, the understandability of test cases, identi cation of code refactorings, detection of code smells or
the readability of source code.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [DRH11]
          <string-name>
            <given-names>Anhai</given-names>
            <surname>Doan</surname>
          </string-name>
          , Raghu Ramakrishnan, and
          <string-name>
            <surname>Alon</surname>
            <given-names>Y.</given-names>
          </string-name>
          <string-name>
            <surname>Halevy</surname>
          </string-name>
          .
          <source>Crowdsourcing Systems on the World-Wide Web. Commun. ACM</source>
          ,
          <volume>54</volume>
          (
          <issue>4</issue>
          ):
          <volume>86</volume>
          {
          <fpage>96</fpage>
          ,
          <string-name>
            <surname>April</surname>
          </string-name>
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [FD07] [Fer18] [Kim93]
          <string-name>
            <surname>Brendan</surname>
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Frey</surname>
            and
            <given-names>Delbert</given-names>
          </string-name>
          <string-name>
            <surname>Dueck</surname>
          </string-name>
          .
          <article-title>Clustering by Passing Messages Between Data Points</article-title>
          .
          <source>Science</source>
          ,
          <volume>315</volume>
          (
          <issue>5814</issue>
          ):
          <volume>972</volume>
          {
          <fpage>976</fpage>
          ,
          <year>February 2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>Alessio</given-names>
            <surname>Ferrari</surname>
          </string-name>
          .
          <source>Natural Language Requirements Processing:</source>
          From Research to Practice.
          <source>In Proceedings 40th International Conference on Software Engineering</source>
          , pages
          <volume>536</volume>
          {
          <fpage>537</fpage>
          ,
          <string-name>
            <surname>Gothenburg</surname>
          </string-name>
          , Sweden,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <given-names>Daniel H.</given-names>
            <surname>Kim</surname>
          </string-name>
          .
          <article-title>The Link Between Individual and Organizational Learning</article-title>
          .
          <source>Sloan Management Review</source>
          ,
          <volume>35</volume>
          (
          <issue>1</issue>
          ):
          <fpage>37</fpage>
          +,
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [KSV11] Nicolas Kaufmann, Thimo Schulze, and Daniel Veit.
          <article-title>More than fun and money. Worker Motivation in Crowdsourcing-A Study on Mechanical Turk</article-title>
          .
          <source>In Proceedings of the Seventeenth Americas Conference on Information Systems</source>
          , volume
          <volume>11</volume>
          , pages
          <fpage>1</fpage>
          {
          <fpage>11</fpage>
          ,
          <string-name>
            <surname>Detroit</surname>
          </string-name>
          , Michigan, USA,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [MHK16]
          <string-name>
            <given-names>Benedikt</given-names>
            <surname>Morschheuser</surname>
          </string-name>
          , Juho Hamari, and
          <string-name>
            <given-names>Jonna</given-names>
            <surname>Koivisto</surname>
          </string-name>
          .
          <article-title>Gami cation in crowdsourcing: a review</article-title>
          .
          <source>In Proceedings 49th Hawaii International Conference on System Sciences (HICSS)</source>
          , pages
          <fpage>4375</fpage>
          {
          <fpage>4384</fpage>
          . IEEE,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [YU19]
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Yates</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Unterkalmsteiner</surname>
          </string-name>
          .
          <article-title>Replicating Relevance-Ranked Synonym Discovery in a New Language and Domain</article-title>
          .
          <source>In Proceedings 41st European Conference on Information Retrieval</source>
          , Cologne, Germany,
          <year>2019</year>
          . Springer.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>