<!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>Augmenting the DonorsChoose.org Corpus for Meta-Learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Gordian Edenhofer</string-name>
          <email>g.edenhofer@campus.lmu.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrew Collins</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Akiko Aizawa</string-name>
          <email>aizawa@nii.ac.jp</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Joeran Beel</string-name>
          <email>beelj@tcd.ie</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ludwig Maximilian University of Munich, Faculty of Physics</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>National Institute of Informatics Tokyo, Digital Content and Media Sciences Division</institution>
          ,
          <country country="JP">Japan</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Trinity College Dublin, School of Computer Science &amp; Statistics, ADAPT Centre</institution>
          ,
          <country country="IE">Ireland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The DonorsChoose.org dataset of past donations provides a big and feature-rich corpus of users and items. The dataset matches donors to projects in which they might be interested in and hence is intrinsically about recommendations. Due to the availability of detailed item-, user- and transaction-features, this corpus represents a suitable candidate for meta-learning approaches to be tested. This study aims at providing an augmented corpus for further recommender systems studies to test and evaluate meta-learning approaches. In the augmentation, metadata of collaborative and content-based filtering techniques is amended to the corpus. It is further extended with aggregated statistics of users and transactions and an exemplary meta-learning experiment. The performance in the learning subsystem is measured via the recall of recommended items in a Top-N test set. The augmented dataset and the source code are released into the public domain at GitHub:BeelGroup/Augmented-DonorsChoose.org-Dataset.</p>
      </abstract>
      <kwd-group>
        <kwd>recommender systems</kwd>
        <kwd>meta-learning</kwd>
        <kwd>dataset augmentation</kwd>
        <kwd>ensemble learning</kwd>
        <kwd>hybrid recommenders</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Meta-Learning is the process of applying machine learning algorithms on metadata of
previous machine learning experiments. The goal is to improve existing approaches by
combining the strengths of several single machine learning systems [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. In recommender
systems it is an emerging field of interest as it utilizes patterns in metadata. In order to
investigate meta-learning, the required metadata needs to be computed in advance.
      </p>
      <p>
        One challenge for researchers interested in meta-learning is that suitable datasets are
time-consuming and cumbersome to construct. Creating a system of individual machine
learning experiments and amending their metadata to the original corpus takes time
and resources away from working with the actual meta-learners. Multiple examples
of manual and repetitious data augmentation may be found in the scientific literature,
for instance in [
        <xref ref-type="bibr" rid="ref2 ref3 ref4">2, 3, 4</xref>
        ]. Furthermore, the choice of the metric for computing metadata
of single machine learners is important. Using the RMSE, as is done in some of the
aforementioned publications, disallows using content-based methods.
? This publication emanated from research conducted with the financial support of Science
Foundation Ireland (SFI) under Grant Number 13/RC/2106.
      </p>
      <p>
        Our objective is to address the data augmentation part in a comprehensive and
reproducible [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] way as to allow researchers to focus on the actual meta-learning task.
We are augmenting a publicly available dataset intrinsically about recommendations
which to our best knowledge has not been used for meta-learning before in the scientific
community. Yet due to its feature-rich and vast corpus it is a suitable candidate. The
raw dataset is augmented with metadata of several machine learning algorithms from
a variety of fields (cf. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]). In place of a metric, the recall in a Top-N set is used as it
can be computed for a wide range of algorithms. The dataset is further amended with
aggregated statistics about users and items, and metadata of an exemplary experiment.
2
2.1
      </p>
    </sec>
    <sec id="sec-2">
      <title>Methodology</title>
      <p>The Dataset
DonorsChoose.org is an organization which enables teachers to file project requests
for resources for their school. Collectively the nonprofit has raised $685 million for
classrooms in the United States of America. Their dataset composed of past donations
features 4:69 million transactions performed by 2:12 million users having donated
to 1:11 million projects. This work uses the eighth version of the dataset hosted at
kaggle.com/donorschoose/io. An exemplary itemized view of the augmented dataset is
shown in Table 1 with an outline of the plain data to the left of the separator.</p>
      <p>The corpus features comprehensive information on the users (donors), items (projects)
and transactions respectively interactions (donations). Transactions are represented by
an interaction of a user with an item at a specific point in time and further include a
strength (amount donated). Users feature information about their location and a boolean
value indicating whether they are a teacher. Items feature multiple textual descriptions,
funding goals, a list of associated categories and types, information about the creator
and details about the location of the school which the item is about.</p>
      <p>In a first step, we apply two collaborative filtering techniques and two content-based
filtering techniques. The performance measures of the single algorithms are amended to
the table. Next, we calculate aggregated user and item statistics and added them to the
table. Lastly, four exemplary meta-learners are applied and the performance measures of
the individual approaches are added to the corpus.
To prepare the dataset for evaluations, duplicate interactions are merged as the
recommender systems shall not recommend items to which the user has already donated to.
Internal stop words in description strings of items are stripped. Furthermore, transactions
containing no information about the user’s location are dropped thereby enabling the
consistent usage of a user’s location information in new approaches.</p>
      <p>Additionally, users having interacted less than twice are removed as well. Although,
this limits the target group, the step is unavoidable as the employed validation process
requires at least one interaction per user for testing and one for training. The evaluation
requires user profiles and hence training-transactions in order to recommend new items
which in turn need to be validated against test-transactions. Lastly, the donated amount
is transformed to a transaction strength in the range of unity to five in analogy to a rating
score. This step reduces the influence of outliers.
2.3</p>
      <p>
        Learning Subsystem
The learning subsystem is a recommender system itself. SVD and KNN are used as
representatives for collaborative filtering techniques and TF-IDF and word-embedding
as content-based filters [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ]. Hereby, the otherwise intrinsic inductive bias is reduced.
The word-embedding relies on fastText and utilizes pre-trained vectors [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Vector
representations of items are the normalized sum of the vectors of the normalized embeddings
of the individual words. In order to work with the data in an efficient way, transactions
are sampled. For this study a sample-size of 100; 000 was chosen. This represents a fair
balance between required computing time and ability to generalize.
      </p>
      <p>The recall in a Top-N test set is used as score of how good an algorithm is able
to recommend an item. (1) For each user, first 100 items with which the user has not
interacted are selected. (2) The algorithm is then requested to rank an item with which
the user has interacted but which was not used for building the user’s profile and the 100
randomly sampled items. It is assumed that the random 100 items are of low interest to
the user. (3) The position of the item with which the user has interacted in the ranked
test set may now be taken as the recall in a Top-N test set.</p>
      <p>A classical 5-fold cross-validation on the users is applied for training the collaborative
filters. An ordering is assumed to be implied by the magnitudes of the values in the
reconstructed matrix of the decomposition respectively the distances to the neighbors.
The validation process of the content-based approaches uses leave-one-out. The ranking
is performed using the cosine similarity of an item’s vector and the user’s profile.</p>
      <p>
        The choice of evaluation method ensures that it can be applied to a vast set of
different algorithms as long as a ranking of items can be produced. Therefore, it allows
for a high variety within the set of algorithms in the learning subsystem in contrast to,
e.g., RMSE. It further ensures that not just the ability to decompose the data is measured
but the ability to recommend new items to users [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Hereby, the learning subsystem is
kept extensible while still providing useful metadata to meta-learning algorithms.
2.4
      </p>
      <p>Statistics and Application of the Learning Subsystem
The meta-learning system processes the metadata of the learning subsystem and further
statistics. Its performance is evaluated via a holdout split on the transaction table using
80% for training and the rest for testing. Transactions are expanded to contain more
detailed information about the time, the user’s location and aggregated statistics about
the mean of the categories, location and interaction-strength of items with which the user
has interacted with. Statistics are solely based on the training set. Values for unknown
users are filled with the mean in the training data.</p>
      <p>Four different meta-learning approaches are discussed which address the Algorithm
Selection Problem (ASP) via a switching hybrid ensemble. The aim of the system is to
predict the algorithm with the lowest recall-position for each transaction respectively
each row in Table 1. The overall performance of a meta-learner is measured using the
mean recall-position for when the recommended algorithm for each transaction is used.</p>
      <p>The first approach aims at predicting the algorithm which will best describe the
transaction via a classification based on the given meta-features using a decision tree.
The second approach employs a gradient boosting regressor to predict the position of the
recall for each transaction and for each algorithm in the learning subsystem separately.
As best algorithm, the one with the lowest predicted recall-position is chosen.</p>
      <p>The third meta-learner is a classical stacking ensemble using a decision tree which
is given the prediction from the learning subsystem as additional input. Based on that,
it performs a transaction classification. The final approach aims at solving the ASP via
clustering transactions based on the meta-features using K-Means and assigns clusters
an overall best algorithm via majority voting.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Results</title>
      <p>The preparation of the dataset preserves a little more than half of the data with the most
notable drop in the number of transactions being introduced by requiring users to have
donated at least twice. The sample of 100; 000 transactions contains 18; 735 unique users
and 88; 100 unique projects.</p>
      <p>5
10</p>
      <p>15 20
Interactions per user
25</p>
      <p>30
(a) Interaction Frequency
1
2
4</p>
      <p>5</p>
      <p>Ra3ting
(b) Interaction Strength</p>
      <p>Requiring users to have interacted at least twice, results in a distribution of the
number of interactions per user which decays exponentially as depicted in Figure 1a.
This is to be expected as the time and interaction strength (budget) a user can invest is
limited. The dataset is dominated by users which interacted exactly two times.</p>
      <p>The distribution of the transformed interaction strength in analogy to a rating score
is shown in Figure 1b. It peaks at the second highest score. Interactions with a weak to
0.5
0.4
cy
enu0.3
reqF0.2
0.1
0.0
medium interaction strength and ones with the strongest interaction strength are about
equally likely. Interactions with the lowest strength value are very infrequent.
100
t
tsse 80
e
t
-pN 60
o
T
in 40
n
o
i
t
iso 20
P
0</p>
      <p>N
KN.46%
0</p>
      <p>SV.0D3%
10</p>
      <p>TF4-9ID.3F2%</p>
      <sec id="sec-3-1">
        <title>Algorithm</title>
        <p>F 40
astText
.20%</p>
        <p>Statistical information about the performances are visualized in Figure 2. It can be
observed that the performance of the learning subsystem depends highly on the employed
filtering techniques. Overall, content-based filters are significantly better in achieving
a low recall-position (average position in Top-N set; content-based filtering: 19:48,
collaborative filtering: 83:28). The algorithm with the poorest performance is KNN. SVD
performs better but is still unable to reliably yield good recommendations. Grouping users
by shared item interactions has no observable positive impact on the recommendation.</p>
        <p>Considering the low average number of interactions per user and the vast number
of items available, KNN apparently fails to find appropriate neighbors. SVD seems to
struggle with the sparsity of the input matrix as looking at the reconstruction of the
decomposed matrix it is revealed that most values are well below unity and very similar
to each other. SVD yields recall-positions below 10 infrequently.</p>
        <p>Content-based filtering techniques achieve better performance scores on the dataset.
User profiles based on TF-IDF and fastText each yield recall-positions below 10 for
roughly half of all transactions with the simpler TF-IDF performing slightly better than
fastText. This could be at least in part due to users explicitly searching for specific terms
instead of exploring all possible items manually.</p>
        <p>Between the different meta-learning approaches, significant changes in the mean
recall-position can be noted as seen in Figure 3. The worst performer is the user-clustering
using K-Means (average position in Top-N: 15:56). The stacking decision tree performs
best (average position in Top-N: 9:02). Of the three non-stacking approaches the gradient
booster performs best (average position in Top-N: 11:21) and achieves a better score than
the single best algorithm, i.e., TF-IDF (average position in Top-N: 11:96). The classifying
decision tree (average position in Top-N: 15:27) outperforms the user-clustering but is
still notably worse than the overall best algorithm.</p>
        <p>t
e
s
t
s
e
t14
N
p
o
T12
n
i
n
iito10
s
o
p
eg 8
a
r
e
v
A
lassifying D
C</p>
        <sec id="sec-3-1-1">
          <title>Tree</title>
          <p>ecall Pred
GB R
iction
K-Means C</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>Algorithm</title>
        <p>lustering
tacking D
S</p>
        <sec id="sec-3-2-1">
          <title>Tree</title>
          <p>The fact that the stacking ensemble performs best is unsurprising as it is provided
significantly more information than the other algorithms. The performance of the gradient
booster is encouraging as it successfully addresses the ASP. From the poor performance
of the user-clustering it can be reasoned that similar transactions do not necessarily
yield similar results using the same recommender algorithm. Hence, the similarity of
meta-feature does not imply that the performance of recommendations is similar.</p>
          <p>The classification and error prediction approach apparently suffer from the level of
indirection which is introduced by predicting a single algorithm and disregarding the
penalty which is introduced if a bad performing one is chosen. Even a high accuracy
in algorithm selection does not guarantee a low mean recall-position. This is partly
mitigated by the error prediction approach but still not completely suppressed.
4</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>The study provides an extensively augmented dataset based on the transaction data
published by DonorsChoose.org. The corpus is amended with metadata of individual
recommender algorithms. Collaborative and content-based filtering techniques are used
in the process and their performance is evaluated via the recall in a Top-N test set.
Aggregated user and item statistics are amended to the table. Furthermore, Metadata of
four switching hybrid ensemble meta-learners is amended to the dataset. The augmented
public domain dataset lays the groundwork that future evaluations of existing and novel
meta-learning approaches can build upon.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Christiane</given-names>
            <surname>Lemke</surname>
          </string-name>
          , Marcin Budka, and Bogdan Gabrys. “
          <article-title>Metalearning: a survey of trends and technologies”</article-title>
          .
          <source>In: Artificial Intelligence Review 44.1 (June</source>
          <year>2015</year>
          ), pp.
          <fpage>117</fpage>
          -
          <lpage>130</lpage>
          . D
          <string-name>
            <surname>O I</surname>
          </string-name>
          :
          <volume>10</volume>
          .1007/s10462-013-9406-y. U R L: https://doi.org/10.1007/ s10462-013-9406-y.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Tiago</given-names>
            <surname>Cunha</surname>
          </string-name>
          , Carlos Soares, and
          <string-name>
            <surname>André C.P.L.F. de Carvalho</surname>
          </string-name>
          .
          <article-title>“Metalearning and Recommender Systems: A literature review and empirical study on the algorithm selection problem for Collaborative Filtering”</article-title>
          .
          <source>In: Information Sciences</source>
          <volume>423</volume>
          (
          <year>2018</year>
          ), pp.
          <fpage>128</fpage>
          -
          <lpage>144</lpage>
          . D
          <string-name>
            <surname>O I</surname>
          </string-name>
          : https : / / doi . org / 10 . 1016 / j . ins .
          <year>2017</year>
          .
          <volume>09</volume>
          . 050. U R L: http : //www.sciencedirect.com/science/article/pii/S0020025517309702.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Collins</surname>
          </string-name>
          , Dominika Tkaczyk, and Joeran Beel.
          <article-title>“A Novel Approach to Recommendation Algorithm Selection using Meta-Learning”</article-title>
          .
          <source>In: Proceedings of the 26th Irish Conference on Artificial Intelligence and Cognitive Science (AICS)</source>
          . Vol.
          <volume>2259</volume>
          .
          <string-name>
            <surname>CEUR-WS</surname>
          </string-name>
          ,
          <year>2018</year>
          , pp.
          <fpage>210</fpage>
          -
          <lpage>219</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Michael</given-names>
            <surname>Ekstrand</surname>
          </string-name>
          and John Riedl. “When Recommenders Fail:
          <article-title>Predicting Recommender Failure for Algorithm Selection and Combination”</article-title>
          .
          <source>In: Proceedings of the Sixth ACM Conference on Recommender Systems. RecSys '12</source>
          . Dublin, Ireland: ACM,
          <year>2012</year>
          , pp.
          <fpage>233</fpage>
          -
          <lpage>236</lpage>
          . D
          <string-name>
            <surname>O I</surname>
          </string-name>
          :
          <volume>10</volume>
          .1145/2365952.2366002. U R L: http: //doi.acm.
          <source>org/10</source>
          .1145/2365952.2366002.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Joeran</given-names>
            <surname>Beel</surname>
          </string-name>
          et al. “
          <article-title>Towards reproducibility in recommender-systems research”</article-title>
          .
          <source>In: User Modeling and User-Adapted Interaction 26</source>
          .1 (
          <issue>Mar</issue>
          .
          <year>2016</year>
          ), pp.
          <fpage>69</fpage>
          -
          <lpage>101</lpage>
          . D
          <string-name>
            <surname>O I</surname>
          </string-name>
          :
          <volume>10</volume>
          .1007/s11257-016-9174-x. U R L: https://doi.org/10.1007/s11257-016-9174-x.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>F.</given-names>
            <surname>Pedregosa</surname>
          </string-name>
          et al. “
          <article-title>Scikit-learn: Machine Learning in Python”</article-title>
          .
          <source>In: Journal of Machine Learning Research</source>
          <volume>12</volume>
          (
          <year>2011</year>
          ), pp.
          <fpage>2825</fpage>
          -
          <lpage>2830</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Radim</surname>
            <given-names>Rˇehu</given-names>
          </string-name>
          ˚rˇek and
          <string-name>
            <given-names>Petr</given-names>
            <surname>Sojka</surname>
          </string-name>
          . “
          <article-title>Software Framework for Topic Modelling with Large Corpora”</article-title>
          .
          <source>English. In: Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks. Valletta</source>
          , Malta: ELRA, May
          <year>2010</year>
          , pp.
          <fpage>45</fpage>
          -
          <lpage>50</lpage>
          . U R L: http://is.muni.cz/publication/884893/en.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Piotr</given-names>
            <surname>Bojanowski</surname>
          </string-name>
          et al. “
          <article-title>Enriching Word Vectors with Subword Information”</article-title>
          . In: CoRR (
          <year>2016</year>
          ). arXiv:
          <volume>1607</volume>
          .04606. U R L: http://arxiv.org/abs/1607.04606.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Paolo</given-names>
            <surname>Cremonesi</surname>
          </string-name>
          , Yehuda Koren, and Roberto Turrin. “
          <article-title>Performance of Recommender Algorithms on Top-n Recommendation Tasks”</article-title>
          .
          <source>In: Proceedings of the Fourth ACM Conference on Recommender Systems. RecSys '10</source>
          .
          <string-name>
            <surname>Barcelona</surname>
          </string-name>
          , Spain: ACM,
          <year>2010</year>
          , pp.
          <fpage>39</fpage>
          -
          <lpage>46</lpage>
          . D
          <string-name>
            <surname>O I</surname>
          </string-name>
          :
          <volume>10</volume>
          .1145/1864708.1864721. U R L: http://doi.acm.
          <source>org/10</source>
          .1145/1864708.1864721.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>