Optimizing Library Migration: A Multi-Metric Ranking Approach for Improved Recommendations
- Keywords:
- Library Migration Recommendation, Software Modernization, Third-Party Library Evolution, Multi-Metric Ranking, Mining Software Repositories, Dependency Management, API Support Analysis
- Abstract
-
Third-party library migration is a critical activity in software modernization, enabling systems to adopt updated dependencies, address security vulnerabilities, and align with evolving architectural requirements. Existing approaches to library migration recommendation typically mine dependency changes from software repositories and apply frequency-based filtering, but suffer from low precision or low recall due to the limitations of global thresholds. We reformulate library migration recommendation as a ranking problem and introduce a multi-metric framework that combines four evidence sources: Rule Support (frequency), Message Support (developer intent from commit messages), Distance Support (temporal proximity of changes), and API Support (code-level replacement evidence). Rather than filtering candidates using fixed thresholds, we rank them by multiplicative aggregation of these metrics. We evaluate our approach on 21,358 Java projects with 1,384 manually verified migration rules, achieving a Mean Reciprocal Rank (MRR) of 0.8566, Precision@1 of 0.7947, and Recall@20 of 0.8939, substantially outperforming existing frequency-based methods. We also confirm 661 previously undocumented migration rules across 480 popular libraries. Our work demonstrates that ranking-based aggregation of multiple evidence sources provides robust, data-driven decision support for library migration in software modernization projects. The framework is positioned as a software-analytics recommendation method.
- References
- Downloads
- Published
- 2026-11-30
- Issue
- Vol. 1 No. 7 (2026)
- Section
- Articles
- License
-
Copyright (c) 2026 International Journal of Intelligent Systems and Data Science

This work is licensed under a Creative Commons Attribution 4.0 International License.
