Score: 0

Automatic Identification of Machine Learning-Specific Code Smells

Published: August 4, 2025 | arXiv ID: 2508.02541v1

By: Peter Hamfelt , Ricardo Britto , Lincoln Rocha and more

Potential Business Impact:

Finds messy code in AI programs

Machine learning (ML) has rapidly grown in popularity, becoming vital to many industries. Currently, the research on code smells in ML applications lacks tools and studies that address the identification and validity of ML-specific code smells. This work investigates suitable methods and tools to design and develop a static code analysis tool (MLpylint) based on code smell criteria. This research employed the Design Science Methodology. In the problem identification phase, a literature review was conducted to identify ML-specific code smells. In solution design, a secondary literature review and consultations with experts were performed to select methods and tools for implementing the tool. We evaluated the tool on data from 160 open-source ML applications sourced from GitHub. We also conducted a static validation through an expert survey involving 15 ML professionals. The results indicate the effectiveness and usefulness of the MLpylint. We aim to extend our current approach by investigating ways to introduce MLpylint seamlessly into development workflows, fostering a more productive and innovative developer environment.

Country of Origin
🇧🇷 Brazil

Page Count
11 pages

Category
Computer Science:
Software Engineering