Skip to main content
QUICK REVIEW

[Paper Review] Towards Software Analytics: Modeling Maintenance Activities

Stanislav Levin, Amiram Yehudai|arXiv (Cornell University)|Mar 9, 2019
Software Engineering ResearchComputer Science42 references7 citations
TL;DR

This paper proposes a cross-project commit classification model that combines fine-grained source code changes and commit message analysis to improve software maintenance activity classification. Using random forest and feature engineering, the method achieves 76% accuracy and 63% Kappa—over 20 percentage points higher than prior work—demonstrating significant gains in reliability for software analytics and maintenance planning.

ABSTRACT

Lehman's Laws teach us that a software system will become progressively less satisfying to its users over time, unless it is continually adapted to meet new needs. Understanding software maintenance can potentially relieve many of the pains currently experienced by practitioners in the industry and assist in reducing uncertainty, improving cost-effectiveness, reliability and more. The research community classifies software maintenance into 3 main activities: Corrective: fault fixing; Perfective: system improvements; Adaptive: new feature introduction. In this work we seek to model software maintenance activities and design a commit classification method capable of yielding a high quality classification model. We performed a comparative analysis of our method and existing techniques based on 11 popular open source projects from which we had manually classified 1151 commits, over 100 commits from each of the studied projects. The model we devised was able to achieve an accuracy of 76% and Kappa of 63% (considered '"Good" in this context) for the test dataset, an improvement of over 20 percentage points, and a relative improvement of ~40% in the context of cross-project classification. We then leverage our commit classification method to demonstrate two applications: (1) a tool aimed at providing an intuitive visualization of software maintenance activities over time, and (2) an in-depth analysis of the relationship between maintenance activities and unit tests.

Motivation & Objective

  • Improve the accuracy and reliability of commit classification into maintenance activities (corrective, perfective, adaptive) beyond existing word-frequency-based methods.
  • Address the limitations of prior work by focusing on cross-project classification, which better reflects real-world software engineering scenarios.
  • Account for class imbalance in maintenance activity distributions by using Cohen’s Kappa, a metric often overlooked in prior studies.
  • Develop practical applications for the classification model, including visualization and test deficiency detection, to support software analytics and maintenance planning.
  • Demonstrate that fine-grained source code change types are effective features for distinguishing maintenance activity types, even across diverse open source projects.

Proposed method

  • Collected and manually classified 1,151 commits from 11 popular open source projects, with ~100 commits per project, to form a balanced benchmark dataset.
  • Extracted fine-grained source code change types (e.g., addition, deletion, modification) using static analysis of commit diffs, treating them as structural features.
  • Preprocessed commit messages via text cleaning, normalization, and TF-IDF vectorization to extract linguistic features.
  • Combined structural (code change) and linguistic (commit message) features into hybrid models for classification.
  • Trained and evaluated multiple classifiers—Random Forest (RF), Gradient Boosting Machines (GBM), and J48—using repeated 5-fold cross-validation on 85% of the data, with the remaining 15% used for testing.
  • Selected the best-performing model (RF-based compound model) based on accuracy and Kappa, and validated its performance on unseen cross-project test data.

Experimental results

Research questions

  • RQ1RQ1: Can fine-grained source code changes be effectively used to build high-quality models for classifying maintenance activities in software commits?
  • RQ2RQ2: Can models combining source code changes and commit message features outperform existing word-frequency-based models in cross-project commit classification?
  • RQ3RQ3: Can the proposed classification method enable practical applications in software analytics, such as visualizing maintenance trends and detecting test-deficient projects?

Key findings

  • The proposed compound model achieved 76% accuracy and 63% Kappa on the test set, representing an improvement of over 20 percentage points in accuracy and a relative improvement of ~40% compared to prior cross-project classification methods.
  • The Random Forest (RF) algorithm outperformed both GBM and J48 in cross-project classification, demonstrating its robustness for this task.
  • Text-cleaning and normalization improved baseline word-frequency models, achieving 68–69% accuracy and 51–53% Kappa on cross-project data.
  • The best-performing model (compound model) reached 76% accuracy and 63% Kappa on the test set, which is classified as "Good" according to Altman (1990) standards.
  • The study confirms that source code change types are statistically significant predictors of maintenance activity types, supporting their use in predictive modeling.
  • The Software Maintenance Activity Explorer tool successfully visualized maintenance activity trends over time, enabling identification of homogeneous maintenance profiles across projects and developers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.