[Paper Review] Fit or Unfit : Analysis and Prediction of 'Closed Questions' on Stack Overflow
This study analyzes and predicts 'closed' questions on Stack Overflow using 3.4 million questions from 2008–2012. It employs a machine learning model with user, content, and community features, achieving 73% accuracy in predicting question closure, with URL references and code snippet length as top predictive features.
Stack Overflow is widely regarded as the most popular Community driven Question Answering (CQA) website for programmers. Questions posted on Stack Overflow which are not related to programming topics, are marked as 'closed' by experienced users and community moderators. A question can be 'closed' for five reasons - duplicate, off-topic, subjective, not a real question and too localized. In this work, we present the first study of 'closed' questions in Stack Overflow. We download 4 years of publicly available data which contains 3.4 Million questions. We first analyze and characterize the complete set of 0.1 Million 'closed' questions. Next, we use a machine learning framework and build a predictive model to identify a 'closed' question at the time of question creation. One of our key findings is that despite being marked as 'closed', subjective questions contain high information value and are very popular with the users. We observe an increasing trend in the percentage of closed questions over time and find that this increase is positively correlated to the number of newly registered users. In addition, we also see a decrease in community participation to mark a 'closed' question which has led to an increase in moderation job time. We also find that questions closed with the Duplicate and Off Topic labels are relatively more prone to reputation gaming. For the 'closed' question prediction task, we make use of multiple genres of feature sets based on - user profile, community process, textual style and question content. We use a state-of-art machine learning classifier based on an ensemble learning technique and achieve an overall accuracy of 73%. To the best of our knowledge, this is the first experimental study to analyze and predict 'closed' questions on Stack Overflow.
Motivation & Objective
- To analyze the characteristics of 'closed' questions on Stack Overflow, which are marked as unfit for the Q&A format due to reasons like duplicate, off-topic, or subjective content.
- To investigate trends in question closure over time, including increasing closure rates and declining community participation in moderation.
- To develop a predictive model that identifies 'closed' questions at the time of creation using machine learning.
- To evaluate the impact of reputation gaming on specific closure types, particularly Duplicate and Off Topic.
- To identify the most informative features for predicting question closure using an ensemble learning classifier.
Proposed method
- Collected and analyzed 3.4 million publicly available questions from Stack Overflow (August 2008–August 2012), including 101,691 closed questions.
- Categorized closed questions into five labels: duplicate, off-topic, subjective, not a real question, and too localized.
- Constructed a predictive model using Stochastic Gradient Boosted Trees (SGBT) with four feature sets: user profile, community process, textual style, and question content.
- Applied 70%-30% train-test split with 10-fold cross-validation and evaluated performance using accuracy, F1 score, and AUC.
- Used feature importance analysis from SGBT to identify top predictors, including Stack Overflow URLs, code snippet length, title length, post score, and account age.
- Conducted incremental feature addition to assess the contribution of each feature set to model performance.
Experimental results
Research questions
- RQ1What are the key characteristics and trends in the types and frequency of 'closed' questions on Stack Overflow over a four-year period?
- RQ2How does the popularity and information value of 'closed' questions vary by closure reason, particularly for subjective questions?
- RQ3What factors contribute to increased question closure rates over time, and how do they correlate with user growth and moderation workload?
- RQ4To what extent can machine learning predict question closure at the time of posting using user, content, and community features?
- RQ5Which features are most predictive of a question being closed, and how do they differ across closure types?
Key findings
- Subjective questions that were closed still had high information value and were highly popular among users, challenging the assumption that closed questions are low-quality.
- The percentage of closed questions increased over time, and this trend was positively correlated with the number of newly registered users.
- Community participation in marking questions as closed decreased over time, leading to longer moderation job times.
- Questions closed as 'Duplicate' and 'Off Topic' were more prone to reputation gaming, indicating potential manipulation of the voting system.
- The predictive model achieved an overall accuracy of 73%, with F1 score and AUC improving incrementally as more feature sets were added.
- The most important predictive features were the presence of Stack Overflow URLs, code snippet length, title length, post score, and account age, with shorter titles and lower scores increasing closure likelihood.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.