Mining architectural information: A systematic mapping study

Musengamana Jean de Dieu, Peng Liang, Mojtaba Shahin, Chen Yang, Zengyang LiEmpir. Softw. Eng 2022

TL;DR

This paper presents a systematic mapping study of research on mining architectural information from software repositories. It synthesizes findings on what architectural information is mined, where it's found, what architecting activities it supports, and the challenges involved, providing a valuable overview for researchers and practitioners.

What Problem Does This Paper Address?

Software development relies heavily on understanding architectural information, which is crucial for activities like architecture understanding, maintenance, and evolution. However, this information is often scattered across various software repositories (e.g., code, documentation, issue trackers) and can be tacit or incomplete. This lack of clarity makes it difficult for practitioners to leverage existing knowledge and for researchers to identify research gaps and future directions. This paper aims to address this by systematically mapping the existing literature on mining architectural information.

Methods

The authors conducted a Systematic Mapping Study (SMS) to systematically identify, analyze, and synthesize relevant research. The process involved:

  • Automatic Search: Using a comprehensive search string across eight electronic databases.
  • Study Screening: A multi-round screening process (title, abstract, full text) with pilot studies and inter-rater agreement calculation (Cohen's Kappa of 0.935) to ensure rigor.
  • Snowballing: Both forward and backward snowballing techniques were employed to identify additional relevant studies.
  • Data Extraction: A predefined set of data items were extracted from the selected studies.
  • Data Synthesis: A hybrid approach combining open coding, constant comparison, predefined classifications, and descriptive statistics was used to analyze the extracted data and answer the research questions. MAXQDA was used as a qualitative data analysis tool.

Datasets

The paper does not introduce new datasets. Instead, it analyzes how existing datasets are used in the primary studies. The most common dataset types identified are:

  • Code-based datasets: Used by 50% of studies.
  • Text-based datasets: Used by 39% of studies.
  • Mixed datasets: Used by a smaller percentage.
  • Image-based and Metric-based datasets: Used even less frequently.

Key Insights and Ideas

  • Ubiquitous Need for Architectural Information: The sheer volume of research indicates a strong and growing interest in mining architectural information to support various software development activities.
  • Architectural Description is King: Architectural description is the most frequently mined type of architectural information, likely because it serves as a crucial blueprint for understanding and developing complex systems.
  • VCS and Q&A Sites are Goldmines: Version Control Systems (like GitHub) and Online Q&A sites (like Stack Overflow) are the most popular sources for mining architectural information, reflecting their widespread use in open-source development.
  • Architecture Understanding is the Most Supported Activity: The research primarily focuses on supporting architecture understanding, followed by architecture maintenance and evolution, and architecture recovery.
  • Classification Dominates Approaches: Architectural information classification is the most common task and approach used, likely due to the availability of existing classification schemes.
  • Challenges in Description: Vagueness, ambiguity, and incompleteness in architectural element descriptions are significant challenges, hindering the effectiveness of mining approaches.
  • Tool Support Lags Behind Approaches: While many approaches have been proposed, a substantial number of them are not yet supported by dedicated tools, indicating a gap in practical implementation.

Key Results

  • 104 primary studies were included in the analysis, published between 2006 and 2022.
  • 7 categories and 29 subcategories of mined architectural information were identified.
  • Architectural description was the most mined (69.2% of studies).
  • Version Control Systems (VCS) were the most frequently used source (57 studies), followed by Online Q&A sites (33 studies).
  • 11 architecting activities were found to be supported, with Architecture Understanding being the most supported (44.2% of studies).
  • 95 approaches and 56 tools were identified.
  • Classification-based approaches were the most common (52.6% of approaches).
  • Vagueness or ambiguity in architectural element description was the most prevalent challenge (10.6% of studies).

Limitations and Future Work

Limitations:

  • The study acknowledges the potential for missing relevant studies despite a rigorous search strategy.
  • The reliance on published literature might exclude insights from grey literature or informal practitioner discussions.
  • The study's scope is limited to the selected databases and search terms.

Future Work:

  • Develop dedicated tools: Create tools to support the proposed mining approaches, especially for those not yet tool-supported.
  • Address practitioner needs: Actively involve practitioners to understand their specific needs and challenges in mining architectural information.
  • Investigate under-mined sources: Explore why certain sources are less mined and how architectural information is stored (or not stored) in repositories.
  • Construct benchmark datasets: Develop large-scale, high-quality benchmark architectural datasets to facilitate research and evaluation.
  • Explore advanced techniques: Investigate the use of neural information retrieval and Large Language Models (LLMs) to address challenges like vagueness and incompleteness in architectural descriptions.
  • Expand search to grey literature: Include grey literature (blogs, reports) to capture a broader range of insights.
  • Conduct multi-vocal studies: Combine findings from various sources to enrich the research.

Summary updated

BibTeX
@inproceedings{dieu2022mining,
  author = {Musengamana Jean de Dieu and Peng Liang and Mojtaba Shahin and Chen Yang and Zengyang Li},
  title = {{Mining architectural information: A systematic mapping study}},
  booktitle = {Empir. Softw. Eng},
  year = {2022},
}
Figure