CIS8398 - Group 7 - Text Classification of arXiv Research Abstracts


Durga Sumitra Duggirala
Mounica Danda
Surbhi Verma
Anjali Devarani
Katlynn Stodghill

2023-12-06

Problem Recape

Responding to Peer Comments

Comment: What kind of data does the arXiv API offer for building the classification model? Response: The arXiv API provides us with metadata for scientific papers, crucial for our model. This includes primary_category, categories, and abstracts, which are instrumental in training our algorithms for accurate classification based on abstract content.

Comment: Can you explain how the arXiv API provides access to research abstracts and what specific information you extract for text classification? Response: The arXiv API enables querying of their database to retrieve research abstracts and related metadata. For our text classification project, we’re focusing on extracting primary_category, categories, and the abstracts themselves. These elements are pivotal in training our model to predict the paper’s primary and secondary categories.

Comment: Have you considered using different models for Data Modeling, like Naive Bayes or Logistic Regression? Response: We acknowledge the suitability of Naive Bayes for our problem and have included it in our approach. However, per our professor’s guidance, we’re not using Logistic Regression. Our focus is on leveraging H2O’s AutoML for model selection, which provides a systematic and broad approach to identifying the most effective models for our task.

Dataset Summary for Classification Model

We have fetched a dataset from the arXiv API, consisting of metadata from scientific papers to train our classification model. The dataset includes the following columns:

The dataset comprises a diverse range of topics from condensed matter physics (cond-mat) to astrophysics (astro-ph) and beyond. The abstracts vary in length and complexity, containing detailed discussions of concepts such as electron-electron interactions, quantum entanglement, and many others.

Key Points from the Dataset:

Data Collection from arXiv API

To build our classification model, we gathered metadata for scientific papers from the arXiv API. Below are the key points about our data collection process:

Exploratory Data Analysis (EDA)

  1. Category Distribution: We used ggplot2 to visualize the distribution of the paper categories, gaining insights into the most prevalent topics within our dataset.

  2. Word Frequency: We utilized tidytext and wordcloud to analyze the frequency of words in abstracts, helping us identify the most common terms and potential keywords relevant to the categories.

  3. Abstract Length Analysis: We assessed the length of abstracts to understand the verbosity of each category and its potential impact on model performance.

Modeling

we approached for a 1. Naive Bayes Model 2. Neural Network Model using Keras 3. AutoML Models using H2O 4. Ensemble Model combining Decision Trees and Naive Bayes

  1. Data Preparation for Modeling: We tokenized abstracts using keras and padded them to create uniform input lengths. Labels were converted to numerical factors suitable for model training.

  2. H2O AutoML: We utilized H2O’s AutoML capabilities to automatically train and evaluate a range of models, selecting the best performer based on validation set performance and achieved 0.6621882 RMSE value that being the least in all the models.

  3. Ensemble Approach: We combined predictions from different models to create an ensemble, aiming to leverage their individual strengths and improve overall accuracy.We employed several models including Naive Bayes and Decision Trees from caret and e1071 packages

Model Evaluation

  1. Performance Metrics: We evaluated our models using confusion matrices, accuracy, precision, recall, and F1 scores to comprehensively understand their predictive capabilities.

AI/ML Result Summary and Discussion The results include confusion matrices for Naive Bayes and ensemble models, indicating the number of correct and incorrect predictions for each category. The Naive Bayes model shows significant confusion between certain categories, while the ensemble model exhibits a higher number of correct predictions, especially for Computer Science and High Energy Physics, indicating its better performance.

The Keras model’s training and validation loss and accuracy were plotted over epochs. The plots suggest the model may be overfitting, as validation accuracy does not improve with training accuracy, and validation loss does not decrease as sharply as training loss.

In summary, the models demonstrated the ability to classify research abstracts into categories effectively, with the ensemble model showing the most promise. The project highlights the importance of proper feature engineering, model selection, and validation in building effective AI/ML systems for text classification. The models’ confusion matrices and performance plots provide valuable feedback for further refinement.